/* The public site (personaldash.app and /pricing): the app's own tokens, radii and type (DESIGN.md).
   One dark look. Sections stack in one column of 1080px; feature rows are two columns that fold
   to one below 760px. Gutters are 16px on a phone. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/vendor/inter-5.3.0-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/vendor/inter-5.3.0-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #0d0f12; --panel: #131720; --surface: #1a1f29; --raised: #212736;
  --line: #252c38; --line-strong: #353e4f;
  --text: #f1f3f8; --muted: #9aa3b2; --label: #aeb4c2;
  --accent: #6cb6f5; --good: #4ec291; --warn: #f0675a; --amber: #e0a44a;
  /* day ranks, as in the app */
  --rank-s: #f2c14e; --rank-a: #4ec291; --rank-b: #7aa7ff; --rank-c: #e0a44a; --rank-f: #f0675a;
  --t-lg: 16px; --t-md: 14px; --t-sm: 12px;
  --r-chip: 4px; --r-control: 7px; --r-surface: 8px; --r-drawer: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: var(--t-md)/1.5 Inter, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
ul { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.page { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; }
main { display: flex; flex-direction: column; gap: 80px; min-width: 0; padding: 48px 0 56px; }

/* nav */
.nav { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.nav .brand { font-weight: 600; color: var(--text); text-decoration: none; margin-right: auto; font-size: var(--t-lg); }
.nav a:not(.btn):not(.brand) { color: var(--label); text-decoration: none; }
.nav a:not(.btn):not(.brand):hover, .nav a[aria-current] { color: var(--text); }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--bg); font: inherit; font-weight: 600; border-radius: var(--r-control);
  padding: 9px 16px; border: 0; text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease-out), filter .15s var(--ease); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { background: var(--surface); filter: none; }
.btn.wide { display: block; padding: 12px; }
.acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.hero .lead { color: var(--label); font-size: var(--t-lg); max-width: 44ch; margin-top: 16px; }
.hero .acts { margin-top: 24px; }

/* the two devices in the hero (drawings: their corner radii are the devices', not the app's) */
.devices { position: relative; min-height: 330px; }
.browser { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); overflow: hidden; margin-right: 70px; }
.browser .bar { height: 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.browser .body { padding: 14px; display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.side { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; }
.side b { color: var(--text); font-weight: 600; }
.wmain { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.runrow { display: flex; gap: 3px; flex-wrap: wrap; }
.runrow b { width: 16px; height: 16px; border-radius: var(--r-chip); font-size: 10px; display: grid; place-items: center; color: var(--bg); }
.phone { width: 190px; border: 1px solid var(--line-strong); border-radius: 26px; background: var(--bg); padding: 16px 12px;
  display: flex; flex-direction: column; gap: 10px; position: absolute; right: 0; bottom: 0; }
.stamp { display: flex; align-items: center; gap: 10px; }
.stamp strong { font-weight: 600; display: block; }
.stamp small { color: var(--muted); font-size: var(--t-sm); }
.rank { width: 44px; height: 44px; border-radius: var(--r-surface); display: grid; place-items: center; font-size: 24px; font-weight: 700;
  color: var(--bg); background: var(--rank-a); flex: none; }
.cells { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.cell { background: var(--surface); border-radius: var(--r-surface); padding: 7px 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cell span { color: var(--label); font-size: 11px; }
.chip { min-width: 20px; height: 20px; border-radius: var(--r-chip); display: inline-grid; place-items: center; font-weight: 700; font-size: 11px; color: var(--bg); }
.cs { background: var(--rank-s); } .ca { background: var(--rank-a); } .cb { background: var(--rank-b); } .cc { background: var(--rank-c); } .cf { background: var(--rank-f); }
.todo { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.todo li { background: var(--surface); border-radius: var(--r-surface); padding: 8px; }

/* feature rows */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.feat h2, .band h2, .stack > h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.feat h2 { margin-bottom: 8px; }
.feat p { color: var(--label); max-width: 44ch; font-size: var(--t-lg); }
.shot { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bub { border-radius: var(--r-drawer); padding: 10px 12px; max-width: 88%; }
.bub.u { background: var(--raised); align-self: flex-end; }
.bub.b { background: var(--surface); color: var(--label); }
.nexts { display: flex; gap: 8px; flex-wrap: wrap; }
.nexts li { border: 1px solid var(--line-strong); border-radius: var(--r-control); padding: 5px 10px; font-size: var(--t-sm); color: var(--label); }
.rows > * { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--label); }
.rows > :first-child { border-top: 0; }
.rows b { color: var(--text); font-weight: 600; text-align: right; }
.dots { display: flex; gap: 4px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: var(--r-chip); background: var(--line-strong); }
.dots i.on { background: var(--good); }
.note { background: var(--raised); border-radius: var(--r-drawer); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.note small { color: var(--muted); font-size: var(--t-sm); }

/* it goes everywhere */
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.everywhere { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ev { border: 1px solid var(--line); border-radius: var(--r-surface); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev b { font-weight: 600; }
.ev span { color: var(--label); font-size: var(--t-sm); }
.srcs { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); border-block: 1px solid var(--line); padding: 16px 0; }

/* closing band + footer */
.band { border-top: 1px solid var(--line); padding-top: 56px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.band h2 { font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -0.04em; font-weight: 700; }
.band p { color: var(--label); font-size: var(--t-lg); }
.band .acts { margin-top: 12px; }
.foot { display: flex; gap: 20px; flex-wrap: wrap; font-size: var(--t-sm); border-top: 1px solid var(--line); padding-top: 16px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* pricing */
.phead { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.phead h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.04em; line-height: 1.04; font-weight: 700; }
.phead p { font-size: var(--t-lg); color: var(--label); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-surface); overflow: hidden; }
.seg button { background: transparent; color: var(--label); border: 0; padding: 7px 12px; font: inherit; cursor: pointer; transition: background .15s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.plans { gap: 32px; }
.joined { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-surface); }
.col { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col + .col { border-left: 1px solid var(--line); background: var(--panel); border-radius: 0 var(--r-surface) var(--r-surface) 0; }
.col h2 { font-size: var(--t-lg); font-weight: 600; }
.col .price { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.col .per { color: var(--muted); font-size: var(--t-sm); margin-top: 6px; }
.grp { display: flex; flex-direction: column; gap: 6px; }
.grp h3 { font-size: var(--t-md); font-weight: 600; }
.grp li { color: var(--label); padding-left: 22px; position: relative; }
.grp li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--good); }
.grp li.no { color: var(--muted); }
.grp li.no::before { background: var(--line-strong); }
.col .btn { margin-top: auto; }
.stack > h2.small { font-size: var(--t-lg); letter-spacing: -0.02em; }
.tl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tl li { border-top: 2px solid var(--line-strong); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.tl li:first-child { border-color: var(--accent); }
.tl b { font-weight: 600; }
.tl span { color: var(--label); }
.faq > div { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.faq dt { font-weight: 600; }
.faq dd { color: var(--label); max-width: 72ch; }

@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .feat { grid-template-columns: 1fr; gap: 16px; }
  .feat .shot { order: 2; }
  .everywhere { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .joined, .tl { grid-template-columns: 1fr; }
  .col + .col { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-surface) var(--r-surface); }
}
@media (max-width: 560px) {
  .page { padding: 0 16px 32px; }
  main { gap: 56px; padding: 32px 0 40px; }
  .nav { gap: 16px; }
  .band { padding-top: 40px; }
}
@media (max-width: 480px) { .browser { margin-right: 40px; } .devices { min-height: 300px; } }
@media (prefers-reduced-motion: reduce) { .btn, .seg button { transition: none; } .btn:active { transform: none; } }
