/* DailyHabit — site styles.
   Layout: one centred 1160px column; outlined (1px) cards on the app's lavender-grey ground,
   the brand green gradient used once per section, never as a full background. */
:root {
  --bg: #F3F4F9;          /* app ground */
  --surface: #FFFFFF;
  --surface-2: #EEEFF5;
  --ink: #101114;
  --ink-2: #5E6372;
  --ink-3: #9A9EAB;
  --line: #E1E3EB;        /* outline */
  --accent: #12A150;      /* app accent */
  --accent-soft: #E0F5E8;
  --done: #22C55E;
  --bad: #E0352B;
  --bad-soft: #FDECEB;
  --amber: #FF9500;
  --amber-soft: #FFF3E0;
  --flame: #F05A1A;
  --flame-soft: #FFF0E8;
  --navy: #101114;
  --on-navy: #FFFFFF;
  --g1: #4CF07A; --g2: #15C05E; --g3: #04704A;   /* brand gradient, from the app icon */
  --shadow: 0 1px 2px rgba(16,17,20,.04), 0 10px 30px rgba(16,17,20,.06);
  --display: "Bricolage Grotesque", "Roboto", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0F12; --surface: #17181D; --surface-2: #202228; --ink: #F2F3F6; --ink-2: #A3A7B3; --ink-3: #6E7280;
    --line: #2A2C33; --accent: #34D27A; --accent-soft: #11301F; --bad-soft: #3A1715; --amber-soft: #3A2A12; --flame-soft: #3A1D10;
    --navy: #F2F3F6; --on-navy: #0E0F12; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0F12; --surface: #17181D; --surface-2: #202228; --ink: #F2F3F6; --ink-2: #A3A7B3; --ink-3: #6E7280;
  --line: #2A2C33; --accent: #34D27A; --accent-soft: #11301F; --bad-soft: #3A1715; --amber-soft: #3A2A12; --flame-soft: #3A1D10;
  --navy: #F2F3F6; --on-navy: #0E0F12; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lede { color: var(--ink-2); font-size: 18px; max-width: 60ch; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-block: 12px; }
.bar { display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 12px; background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 99px; transition: background .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .nav, .bar .play-sm { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .mobile-nav.open { display: grid; gap: 4px; margin-top: 8px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
  .mobile-nav a { padding: 12px 14px; border-radius: 14px; text-decoration: none; font-weight: 500; }
  .mobile-nav a:hover { background: var(--surface-2); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 99px; font: 700 16px/1 var(--body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-line { border-color: var(--line); background: var(--surface); color: var(--ink); }
.play { background: var(--navy); color: var(--on-navy); padding: 0 22px 0 18px; height: 56px; gap: 12px; text-align: left; }
.play svg { width: 26px; height: 26px; flex: none; }
.play small { display: block; font: 500 11px/1.2 var(--body); opacity: .75; letter-spacing: .02em; }
.play b { display: block; font: 700 18px/1.15 var(--display); letter-spacing: -.01em; }
.play:hover { box-shadow: 0 10px 24px rgba(4,112,74,.25); }
.play-sm { height: 44px; padding: 0 16px 0 12px; font-size: 14.5px; gap: 8px; }
.play-sm svg { width: 20px; height: 20px; }
.soon { font-size: 13px; color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { padding-block: 56px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.6vw, 82px); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 .mark { background: linear-gradient(100deg, var(--g2), var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--ink-2); font-size: 14.5px; }
.hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes svg { width: 17px; height: 17px; color: var(--accent); }
.hero-art { position: relative; display: flex; justify-content: center; min-width: 0; }
.halo { position: absolute; inset: 6% 2% 10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g1) 35%, transparent), transparent); filter: blur(10px); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 28px; } .hero-art { order: 2; } }

/* floating chips around the phone */
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; white-space: nowrap; }
.float .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; }
.float b { font: 700 18px/1 var(--display); display: block; }
.float small { color: var(--ink-2); font-size: 12px; }
.f1 { left: -2%; top: 18%; animation: bob 6s ease-in-out infinite; }
.f2 { right: -4%; top: 46%; animation: bob 7s ease-in-out -2s infinite; }
.f3 { left: -4%; bottom: -2%; animation: bob 6.5s ease-in-out -4s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .f1 { left: -6px; } .f2 { right: -6px; } .f3 { left: 0; } .float { font-size: 12.5px; padding: 8px 10px; } }

/* ---------- phone mock (mirrors the app UI) ---------- */
.phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 300 / 620; border-radius: 44px; padding: 10px; background: #0B0C0F; box-shadow: 0 30px 70px rgba(16,17,20,.22), inset 0 0 0 2px #2A2C33; }
.screen { height: 100%; border-radius: 35px; overflow: hidden; background: #F3F4F9; color: #101114; position: relative; font-size: 12px; }
.screen .sb { height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font: 600 11px/1 var(--body); }
.scr-pad { padding: 4px 14px; display: grid; gap: 9px; }
.app-h { display: flex; align-items: flex-end; gap: 8px; }
.app-h .t { flex: 1; min-width: 0; }
.app-h small { display: block; color: #5E6372; font-size: 10.5px; }
.app-h b { font: 700 21px/1.1 var(--body); letter-spacing: -.02em; }
.ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: linear-gradient(135deg, #FFB37A, #FF7A3D); }
.addb { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2) 50%, var(--g3)); font-size: 20px; line-height: 1; }
.card { background: #fff; border-radius: 18px; padding: 11px; box-shadow: 0 1px 2px rgba(16,17,20,.04), 0 6px 16px rgba(16,17,20,.05); }
.sum { display: flex; align-items: center; gap: 10px; }
.ring { width: 54px; height: 54px; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring .tr { stroke: #E2E3EA; }
.ring .pr { stroke: #22C55E; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }
.ring text { font: 700 13px var(--body); fill: #101114; }
.sum .t { flex: 1; min-width: 0; }
.sum .t b { display: block; font-size: 13px; font-weight: 500; }
.sum .t span { color: #5E6372; font-size: 10.5px; }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 99px; background: #FFF0E8; color: #F05A1A; font-weight: 600; font-size: 10px; margin-top: 4px; }
.mini { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.mini i { width: 7px; border-radius: 4px; background: #22C55E; display: block; }
.mini i.lo { background: #E2E3EA; }
.mini-l { display: flex; gap: 4px; color: #9A9EAB; font-size: 8px; }
.mini-l span { width: 7px; text-align: center; }
.seg { display: flex; background: #EEEFF5; border-radius: 99px; padding: 3px; }
.seg span { flex: 1; text-align: center; padding: 5px 0; border-radius: 99px; color: #5E6372; font-size: 10.5px; font-weight: 500; }
.seg span.on { background: #fff; color: #101114; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.row { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 16px; padding: 8px 10px 8px 8px; box-shadow: 0 1px 2px rgba(16,17,20,.04); }
.tile { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; flex: none; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-block; margin-top: 3px; padding: 2px 7px; border-radius: 99px; background: #EEEFF5; color: #5E6372; font-size: 9.5px; font-weight: 500; }
.pill.next { background: #E0F5E8; color: #12A150; }
.ck { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #E2E3EA; background: #EEEFF5; flex: none; display: grid; place-items: center; transition: background .35s, border-color .35s, transform .2s; }
.ck svg { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: .3s; }
.ck.done { background: #22C55E; border-color: #22C55E; }
.ck.done svg { opacity: 1; transform: scale(1); }
.ck.skip { background: #F2F2F7; border-color: #D9D9E0; }
.row.done b { color: #9A9EAB; text-decoration: line-through; }
.bnav { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; background: #fff; border-radius: 22px; padding: 5px; box-shadow: 0 8px 20px rgba(16,17,20,.1); }
.bnav span { flex: 1; text-align: center; font-size: 9px; color: #9A9EAB; padding: 5px 0 4px; border-radius: 16px; display: grid; gap: 1px; justify-items: center; }
.bnav span.on { background: #EEEFF5; color: #12A150; font-weight: 600; }
.bnav svg { width: 16px; height: 16px; }

/* ---------- numbers strip ---------- */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.facts div { padding: 22px 18px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font: 700 clamp(30px, 4vw, 42px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.facts span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div { border-left: 0; border-top: 1px solid var(--line); } .facts div:nth-child(-n+2) { border-top: 0; } .facts div:nth-child(even) { border-left: 1px solid var(--line); } .facts div:last-child { grid-column: span 2; border-left: 0; } }

/* ---------- sections ---------- */
section { padding-block: 72px; scroll-margin-top: 80px; }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } section { padding-block: 52px; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; min-width: 0; }
.panel h3 { font-size: 26px; font-weight: 700; margin-top: 14px; }
.panel p { color: var(--ink-2); margin-top: 10px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--accent); background: var(--accent-soft); }
.icon svg { width: 22px; height: 22px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li > span { min-width: 0; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Today / tap demo */
.tap-demo { display: grid; gap: 10px; margin-top: 22px; }
.tap-demo .row { box-shadow: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 12px; border-radius: 18px; }
.tap-demo .row b { font-size: 15px; }
.tap-demo .pill { font-size: 11.5px; background: var(--surface-2); color: var(--ink-2); }
.tap-demo .ck { width: 34px; height: 34px; cursor: pointer; }
.tap-demo .ck svg { width: 18px; height: 18px; }
.tap-demo .tile { width: 42px; height: 42px; border-radius: 13px; font-size: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; color: var(--ink-2); font-size: 13.5px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

/* stats */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); min-width: 0; }
.kpi .h { display: flex; align-items: center; justify-content: space-between; }
.kpi .ki { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.kpi .ki svg { width: 19px; height: 19px; }
.delta { font: 600 12px/1 var(--body); padding: 5px 8px; border-radius: 99px; display: inline-flex; gap: 3px; align-items: center; }
.delta.up { background: var(--accent-soft); color: var(--accent); }
.delta.down { background: var(--bad-soft); color: var(--bad); }
.kpi b { font: 700 30px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi b small { font: 500 13px var(--body); color: var(--ink-2); margin-left: 3px; letter-spacing: 0; }
.kpi .l { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.kpi svg.spark { width: 100%; height: 34px; margin-top: auto; }
.bar-now { display: grid; gap: 6px; margin-top: auto; }
.bar-now span { font-size: 12px; font-weight: 600; color: var(--flame); }
.track { height: 7px; border-radius: 99px; background: var(--amber-soft); overflow: hidden; }
.track i { display: block; height: 100%; width: 62%; border-radius: 99px; background: var(--amber); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis .kpi:last-child { grid-column: span 2; } }

.chart-card { margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.chart-card .h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chart-card h4 { margin: 0; font: 600 15px var(--body); }
.chart-card .h span { color: var(--ink-3); font-size: 12.5px; }
.line-chart { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
.line-chart text { font: 500 11px var(--body); fill: var(--ink-3); }
.line-chart .grid { stroke: var(--line); stroke-width: 1; }
.line-chart .ln { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .ar { fill: url(#lg); }
.line-chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 130px; margin-top: 14px; }
.wk div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.wk i { flex: none; width: 100%; max-width: 30px; border-radius: 9px; background: var(--accent); display: block; transform-origin: bottom; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.wk i.best { background: linear-gradient(180deg, var(--g1), var(--g3)); }
.wk span { font-size: 12px; color: var(--ink-3); font-weight: 500; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 14px; text-align: center; justify-items: center; }
.cal .d { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.cal .c { aspect-ratio: 1; width: 100%; max-width: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 13px var(--body); font-variant-numeric: tabular-nums; }
.cal .ok { background: var(--done); color: #fff; }
.cal .sk { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.cal .mi { background: var(--bad-soft); color: var(--bad); }
.cal .fu { color: var(--ink-3); }
.cal .to { box-shadow: 0 0 0 2px var(--ink); }

/* reminders */
.notif { border: 1px solid var(--line); background: var(--surface); border-radius: 26px; padding: 16px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.notif .top-l { display: flex; gap: 12px; align-items: center; }
.notif .appi { width: 44px; height: 44px; border-radius: 12px; }
.notif .meta { color: var(--ink-3); font-size: 12.5px; }
.notif b { font-size: 16px; }
.notif p { color: var(--ink-2); font-size: 14px; }
.notif .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.notif .acts span { flex: 1 1 auto; text-align: center; padding: 10px 12px; border-radius: 99px; background: var(--surface-2); font-weight: 600; font-size: 13.5px; }
.notif .acts span:first-child { background: var(--accent-soft); color: var(--accent); }
.popup { border: 1px solid var(--line); background: var(--surface); border-radius: 28px; padding: 22px; text-align: center; display: grid; gap: 8px; justify-items: center; box-shadow: var(--shadow); }
.popup .big { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 34px; background: #FFF3D6; position: relative; }
.popup .big em { position: absolute; right: -6px; bottom: -6px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-style: normal; font-size: 17px; box-shadow: var(--shadow); }
.popup h4 { margin: 6px 0 0; font: 700 22px var(--display); letter-spacing: -.02em; }
.popup .when { color: var(--ink-2); font-weight: 500; }
.popup .go { width: 100%; height: 48px; border-radius: 99px; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(100deg, var(--g1), var(--g2) 55%, var(--g3)); margin-top: 6px; }
.popup .two { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.popup .two span { height: 46px; border-radius: 99px; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 14.5px; }
.tones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tones span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.tones span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* explore */
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats button { font: 500 14px var(--body); padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: .2s; }
.cats button[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 18px; }
.idea { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); animation: pop .35s ease both; }
.idea b { display: block; font-weight: 500; font-size: 15px; }
.idea small { color: var(--ink-2); font-size: 12.5px; }
.idea .plus { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
@keyframes pop { from { transform: translateY(6px); } }

/* customise */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.swatches i { width: 30px; height: 30px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1px var(--line); }
.avatars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; max-width: 340px; }
.avatars span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 26px; transition: transform .2s; }
.avatars span:hover { transform: scale(1.08) rotate(-4deg); }
.days { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.days span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.days span.on { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }

/* grid of small feature cards */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-grid .panel { padding: 22px; }
.mini-grid h3 { font-size: 20px; }
@media (max-width: 900px) { .mini-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mini-grid { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); font: 700 16px var(--display); color: var(--accent); }
.step h3 { font-size: 21px; margin-top: 16px; }
.step p { color: var(--ink-2); margin-top: 8px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 600 17px var(--body); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--body); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); max-width: 70ch; }

/* CTA band */
.cta { border-radius: 36px; padding: clamp(28px, 6vw, 64px); background: var(--navy); color: var(--on-navy); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, var(--g2), transparent); opacity: .45; }
.cta h2 { font-size: clamp(30px, 4.4vw, 52px); position: relative; z-index: 1; }
.cta p { opacity: .75; margin-top: 12px; position: relative; z-index: 1; }
.cta .play { background: var(--on-navy); color: var(--navy); position: relative; z-index: 1; }
.cta img { position: relative; z-index: 1; width: 120px; border-radius: 32px; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* footer */
footer { padding-block: 48px 40px; color: var(--ink-2); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 32px; border-top: 1px solid var(--line); }
.foot h5 { margin: 0 0 10px; font: 600 13px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .brand { margin-bottom: 12px; color: var(--ink); }
.legal-line { margin-top: 28px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: span 2; } }

/* legal pages */
.doc { padding-block: 40px 72px; }
.doc-head { display: grid; gap: 12px; margin-bottom: 28px; }
.doc-head h1 { font-size: clamp(36px, 5.5vw, 60px); }
.doc-head .meta { color: var(--ink-3); font-size: 14px; }
.doc-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); max-width: 860px; }
.doc-body h2 { font-size: 24px; margin: 30px 0 10px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--ink-2); max-width: 70ch; }
.doc-body p + p { margin-top: 10px; }
.doc-body ul, .doc-body ol { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0 0; }
.doc-body strong { color: var(--ink); }
.doc-body table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14.5px; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body th { color: var(--ink); font-weight: 600; }
.doc-body td { color: var(--ink-2); }
.tbl { overflow-x: auto; }
.note { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); font-size: 15px; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.copy-row code { font: 500 15px var(--mono); padding: 10px 14px; border-radius: 12px; background: var(--surface-2); user-select: all; }
.copy-row button { font: 600 14px var(--body); padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
