/* www.aiplanna.com — every style on the site. Colours come from the app theme (theme/colors.ts) and the App
   Store slides (docs/appstore/slides.html), so the listing and the site read as one product.
   No inline styles anywhere: the Content-Security-Policy in public/_headers forbids them. */

@font-face {
  font-family: Manrope;
  src: url(/assets/fonts/manrope-v1.woff2) format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B1340;
  --body: #3B4470;
  --muted: #5A6080;
  --page: #F6F7FA;
  --line: #E5E6EE;
  --iris: #1A45E6;
  --iris-hover: #1236B8;
  /* The app's own interface colours, for the screens drawn in HTML. */
  --acc: #3F56A8;
  --acc-ink: #2B3F8A;
  --acc-soft: #E9ECF6;
  --acc-wash: #F3F5FA;
  --app-bg: #F3F3F4;
  --app-t1: #111113;
  --app-t2: #35373B;
  --app-t3: #58595E;
  --app-t4: #6C6E73;
  --app-border: #D6D8DB;
  --app-line: #E5E6E9;
  --app-faint: #AFB1B6;
  --app-elev: #F7F7F8;
  --app-chip: #EAEBED;
  --teal-ink: #287B6B;
  --teal-soft: #E6F4F1;
  --amber-ink: #8D672C;
  --amber-soft: #FAF2E2;
  --danger-ink: #B84C2D;
  --danger-soft: #FBEDEA;
  --ev-terra: #C54027;
  --ev-terra-soft: #FAE9E6;
  --ev-lime: #5A7820;
  --ev-lime-soft: #F3FAE6;
  --ev-teal: #2E7A6D;
  --ev-teal-soft: #E6FAF6;
  --ev-violet: #9945D4;
  --ev-violet-soft: #F2E6FA;
  --ev-amber: #92661C;
  --ev-amber-soft: #FAF2E6;
  --deep:
    radial-gradient(760px 560px at 88% 0%, rgba(77, 25, 230, .55), rgba(77, 25, 230, 0) 70%),
    radial-gradient(640px 600px at 0% 55%, rgba(25, 179, 230, .26), rgba(25, 179, 230, 0) 70%),
    radial-gradient(1000px 640px at 50% 100%, rgba(26, 69, 230, .85), rgba(26, 69, 230, 0) 70%),
    linear-gradient(170deg, #0A1136 0%, #0F1D63 55%, #16339E 100%);
  --grad-text: linear-gradient(90deg, #8FDCF5, #C2D4FF 55%, #BBA4F7);
  --on-deep: rgba(226, 232, 255, .8);
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(96px, 11vw, 144px);
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 500 16px/1.6 Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: var(--iris); }
a:hover { color: var(--iris-hover); }
:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700;
}
.skip:focus { top: 12px; }

/* ───────── Shared pieces ───────── */
.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--section) var(--gutter) 0; }
.eyebrow { color: var(--iris); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.h2 { margin-top: 14px; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.h2--center { margin-top: 0; text-align: center; }
.lead { margin-top: 18px; color: var(--body); font-size: 18px; line-height: 1.6; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 22px;
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #18245E; color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #E6EBFF; color: var(--ink); }
.btn--outline { background: #fff; color: var(--ink); border: 1px solid var(--app-border); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.badges { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badge { display: inline-flex; }
.badge img { width: auto; height: 56px; }

/* Scroll reveal — main.js adds .is-pending only to blocks still below the fold. */
[data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].is-pending { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { transition: none; } }

/* ───────── Header ───────── */
.site-header { padding: 0 var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
.site-header--dark { position: absolute; top: 0; left: 0; right: 0; z-index: 10; background: none; border-bottom: 0; }
.nav { max-width: 1200px; height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -.3px; text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.site-header--dark .brand, .site-header--dark .brand:hover { color: #fff; }
.site-header--dark .brand img { box-shadow: 0 6px 18px rgba(26, 69, 230, .5); }
.site-header--dark .nav-links a { color: rgba(226, 232, 255, .82); }
.site-header--dark .nav-links a:hover { color: #fff; }
.site-header--dark :focus-visible { outline-color: #fff; }
@media (max-width: 899px) { .nav-links { display: none; } }

/* ───────── Footer ───────── */
.site-footer { margin-top: clamp(80px, 9vw, 120px); padding: 64px var(--gutter) 40px; background: #fff; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { flex: 1 1 260px; min-width: 0; max-width: 340px; }
.footer-brand .brand { font-size: 18px; }
.footer-brand p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-col { display: flex; flex-direction: column; font-size: 15px; }
.footer-h { margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-col a:hover { color: var(--iris); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  color: var(--muted); font-size: 13px; line-height: 1.5;
}

/* ───────── App UI primitives: Planna's own screens, drawn in HTML ───────── */
.me {
  align-self: flex-end; max-width: 84%; padding: 10px 15px; border-radius: 20px 20px 6px 20px;
  background: var(--acc); color: #fff; font-size: 14.5px; line-height: 20px; font-weight: 500;
}
.ai { color: var(--app-t1); font-size: 15px; line-height: 22px; font-weight: 500; }
.ai b { font-weight: 700; }
.act { display: flex; align-items: center; gap: 7px; color: var(--app-t3); font-size: 12.5px; font-weight: 500; }
.ico-check { flex: none; }
.ui-card {
  padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--app-border);
  box-shadow: 0 2px 12px rgba(17, 17, 19, .06); color: var(--app-t1);
}
.ui-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.ui-when { margin-top: 8px; color: var(--app-t2); font-size: 13.5px; font-weight: 500; }
.ui-sub { margin-top: 2px; }
.ui-actions { margin-top: 14px; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--terra { background: var(--ev-terra); }
.dot--lime { background: var(--ev-lime); }
.dot--teal { background: var(--ev-teal); }
.dot--violet { background: var(--ev-violet); }
.dot--amber { background: var(--ev-amber); }
.dot--iris { background: var(--iris); }
.pill {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px;
  background: #fff; border: 1px solid var(--app-border); color: var(--app-t2);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.pill--on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc-ink); }
.pill--sm { height: 26px; }
.pill--soft { background: var(--app-elev); }
.btn-acc {
  flex: 1; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 14px;
  background: var(--acc); color: #fff; font-size: 14.5px; font-weight: 600;
}
.btn-ghost {
  display: flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 14px;
  background: var(--app-elev); border: 1px solid var(--app-border); color: var(--app-t2); font-size: 14.5px; font-weight: 600;
}
.cap { color: var(--app-t3); font-size: 13px; line-height: 18px; }
.sec { color: var(--app-t4); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.tog { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--acc); flex: none; }
.tog::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }

/* ───────── Document pages: privacy, terms, support ───────── */
.doc { padding: clamp(48px, 7vw, 88px) var(--gutter) 0; }
.doc h1 { margin-top: 28px; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: #EAEBF0; font-size: 14.5px; font-weight: 700; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 11px; color: var(--muted); text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current='page'] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 19, 64, .08); }
.doc-date { margin-top: 14px; color: var(--muted); font-weight: 600; }
.doc-layout { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.toc { flex: 1 1 240px; min-width: 0; max-width: 280px; }
@media (min-width: 960px) and (min-height: 720px) { .toc { position: sticky; top: 24px; } }
.toc-h { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.toc ol { margin-top: 10px; padding: 0; list-style: none; font-size: 14.5px; font-weight: 600; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--body); text-decoration: none; }
.toc a:hover { background: var(--acc-soft); color: var(--acc-ink); }
.prose {
  flex: 999 1 560px; min-width: 0; max-width: 760px; padding: clamp(24px, 4vw, 48px);
  border-radius: 28px; background: #fff; border: 1px solid var(--line);
  color: #2A3158; font-size: 16.5px; line-height: 1.7;
}
.prose h2 { margin-top: 40px; color: var(--ink); font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 10px; }
.prose ul { margin-top: 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose .prose-note { margin-top: 32px; color: var(--muted); font-size: 15px; }

.support-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.support-intro { flex: 1 1 420px; min-width: 0; max-width: 640px; }
.support-intro h1 { margin-top: 0; }
.contact-card {
  flex: 0 1 380px; min-width: 0; padding: 24px 26px; border-radius: 24px; color: #fff;
  background: linear-gradient(160deg, #0A1136 0%, #0F1D63 60%, #16339E 100%);
}
.contact-card :focus-visible { outline-color: #fff; }
.contact-label { display: flex; align-items: center; gap: 10px; color: #8FDCF5; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.contact-email:hover { color: #C2D4FF; }
.contact-note { color: var(--on-deep); font-size: 14.5px; }
.support-h { margin-top: clamp(56px, 7vw, 80px); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.qa-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.qa { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.qa h3 { font-size: 18px; line-height: 1.35; font-weight: 800; }
.qa p { margin-top: 8px; color: var(--body); font-size: 15.5px; line-height: 1.6; }
.support-split { margin-top: clamp(56px, 7vw, 80px); display: flex; flex-wrap: wrap; gap: 16px; }
.support-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.box { padding: 28px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.box h2 { font-size: 19px; font-weight: 800; }
.box p { margin-top: 8px; color: var(--body); font-size: 15px; line-height: 1.6; }
.box--wide { flex: 2 1 480px; min-width: 0; padding: clamp(24px, 4vw, 40px); scroll-margin-top: 24px; }
.box--wide h2 { font-size: 24px; letter-spacing: -.02em; }
.box--wide p { margin-top: 16px; color: #2A3158; font-size: 16px; line-height: 1.65; }
.box--wide p + p { margin-top: 12px; }
.box-title { display: flex; align-items: center; gap: 12px; }
.icon-disc { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.icon-disc--danger { background: var(--danger-soft); }

.nf { display: flex; justify-content: center; padding: clamp(64px, 10vw, 120px) var(--gutter) 0; }
.nf-inner { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.nf .me { font-size: 17px; line-height: 1.45; font-weight: 600; padding: 12px 18px; }
.nf .act { font-size: 14px; font-weight: 600; }
.nf h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.nf .lead { margin-top: 0; font-size: 17px; }
.nf-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ───────── Home: hero ───────── */
.hero {
  position: relative;
  padding: 76px var(--gutter) 8px;
  color: #fff;
  /* The deep band stops 250px above the bottom, so the phone overlaps it and the light page below. */
  background:
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 250px), var(--page) calc(100% - 250px)),
    var(--deep);
}
.hero :focus-visible { outline-color: #fff; }
.hero-copy { max-width: 1200px; margin: 0 auto; padding-top: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.chip-dark {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #C2D4FF; font-size: 13px; font-weight: 700; letter-spacing: .2px;
}
.hero h1 { margin-top: 24px; font-size: clamp(44px, 7.4vw, 96px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.hero-sub { max-width: 600px; margin-top: 24px; color: var(--on-deep); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.hero-note { margin-top: 16px; color: rgba(226, 232, 255, .62); font-size: 14px; font-weight: 600; }
.stage { position: relative; margin-top: 64px; padding-bottom: 8px; display: flex; justify-content: center; }

.float { position: absolute; color: var(--app-t1); text-align: left; }
.float--notif {
  top: 150px; left: calc(50% - 480px); width: 280px; padding: 14px 16px; border-radius: 22px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 24px 60px rgba(4, 10, 40, .35);
}
.float--added {
  top: 360px; right: calc(50% - 470px); width: 260px; padding: 16px; border-radius: 22px;
  background: #fff; box-shadow: 0 24px 60px rgba(4, 10, 40, .22); display: flex; align-items: center; gap: 12px;
}
@media (max-width: 1079px) { .float { display: none; } }
.notif-head { display: flex; align-items: center; gap: 8px; }
.notif-head img { width: 22px; height: 22px; border-radius: 6px; }
.notif-app { color: var(--app-t3); font-size: 12px; font-weight: 700; letter-spacing: .6px; }
.notif-time { margin-left: auto; color: var(--app-t4); font-size: 12px; }
.notif-title { margin-top: 8px; font-size: 15px; font-weight: 700; }
.notif-body { margin-top: 2px; color: var(--app-t2); font-size: 14px; }
.ok-disc { width: 40px; height: 40px; border-radius: 20px; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.float-title { display: block; font-size: 15px; font-weight: 700; }
.float-sub { display: block; color: var(--app-t3); font-size: 13px; }

.phone {
  position: relative; width: 340px; max-width: 100%; height: 700px; padding: 10px; border-radius: 56px; background: #0C0D10;
  box-shadow: 0 0 0 2px #3A3D45, 0 0 0 3.5px #15161A, 0 50px 100px rgba(4, 10, 40, .42), 0 14px 34px rgba(4, 10, 40, .28);
}
.screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; display: flex; flex-direction: column; background: var(--app-bg); color: var(--app-t1); text-align: left; }
.island { position: absolute; top: 11px; left: 50%; width: 108px; height: 32px; margin-left: -54px; border-radius: 18px; background: #000; }
.app-head { padding: 52px 18px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--app-line); }
.app-avatar { width: 32px; height: 32px; border-radius: 16px; background: var(--acc-wash); border: 1px solid var(--acc-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.app-avatar img { width: 22px; height: 22px; }
.app-name { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.app-meta { display: block; color: var(--app-t4); font-size: 11.5px; line-height: 1.4; }
.app-thread { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.app-spacer { flex: 1; }
.app-chips { padding: 0 16px 10px; display: flex; gap: 8px; }
.composer { padding: 0 16px 26px; display: flex; align-items: center; gap: 8px; }
.composer-field {
  flex: 1; display: flex; align-items: center; height: 46px; padding: 0 16px; border-radius: 18px;
  background: #fff; border: 1px solid var(--app-border); color: var(--app-t4); font-size: 14.5px;
}
.composer-send { width: 46px; height: 46px; border-radius: 23px; background: var(--acc); display: flex; align-items: center; justify-content: center; gap: 2.5px; flex: none; }
.composer-send i { width: 2.6px; border-radius: 2px; background: #fff; }
.composer-send i:nth-child(1) { height: 8px; }
.composer-send i:nth-child(2) { height: 16px; }
.composer-send i:nth-child(3) { height: 11px; }
.composer-send i:nth-child(4) { height: 18px; }
.composer-send i:nth-child(5) { height: 7px; }

/* The hero conversation plays once on load: message, check, reply, card, then the floating cards. Pure CSS,
   so it needs no script and ends visible even if animations are cut short. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
  .enter-1 { animation-delay: .4s; }
  .enter-2 { animation-delay: 1s; }
  .enter-3 { animation-delay: 1.5s; }
  .enter-4 { animation-delay: 2.05s; }
  .enter-5 { animation-delay: 2.6s; }
}

/* ───────── Home: works with ───────── */
.works { padding: 40px var(--gutter) 0; }
.works-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 36px; }
.works-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.works-list { padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; color: var(--body); font-size: 15px; font-weight: 600; }
.works-list li { display: inline-flex; align-items: center; gap: 8px; }

/* ───────── Home: how it works ───────── */
.center-head { max-width: 840px; margin: 0 auto; text-align: center; }
.h2-muted { display: block; color: var(--muted); text-wrap: balance; }
.steps { margin-top: 56px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } }
.step-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.step-num { width: 40px; height: 40px; border-radius: 20px; background: var(--acc-soft); color: var(--acc-ink); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; }
.step-card h3 { margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.step-card > p { color: var(--body); font-size: 16px; line-height: 1.55; }
.step-demo { margin-top: auto; padding-top: 16px; }
.demo-well { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px; border-radius: 18px; background: var(--app-bg); }
.demo-well .me { max-width: 100%; }
.demo-well .ai { font-size: 14.5px; }
.ui-card--compact { padding: 12px; }
.ui-card--compact .ui-title { font-size: 14.5px; gap: 8px; }
.ui-card--compact .ui-actions { margin-top: 10px; }
.ui-title-end { margin-left: auto; }
.btn-acc--sm { height: 38px; font-size: 13.5px; }

/* ───────── Home: feature rows ───────── */
.features { display: flex; flex-direction: column; gap: clamp(88px, 10vw, 136px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.row--flip { flex-direction: row-reverse; }
.row-copy { flex: 1 1 360px; min-width: 0; max-width: 480px; margin-right: auto; }
.try { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.try-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.try-bubble { padding: 12px 18px; border-radius: 20px 20px 6px 20px; background: var(--acc); color: #fff; font-size: 16px; line-height: 1.4; font-weight: 600; }
.panel {
  flex: 1 1 520px; min-width: 0; min-height: 520px; padding: clamp(20px, 4vw, 56px); border-radius: 32px;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 640px) { .panel { min-height: 0; } }
.panel--blue { background: radial-gradient(460px 340px at 85% 8%, #D6E1FF, rgba(214, 225, 255, 0) 70%), #EDF1FC; }
.panel--violet { background: radial-gradient(460px 340px at 12% 92%, #E5D8FB, rgba(229, 216, 251, 0) 70%), #F4F0FC; }
.panel--amber { background: radial-gradient(460px 340px at 88% 90%, #F6E2BC, rgba(246, 226, 188, 0) 70%), #FBF5EA; }
.panel--teal { background: radial-gradient(460px 340px at 15% 10%, #CBEBE2, rgba(203, 235, 226, 0) 70%), #ECF6F3; }
.thread { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }

.warn { margin-top: 8px; display: flex; align-items: center; gap: 6px; color: var(--amber-ink); font-size: 13px; font-weight: 600; }
.free-label { margin-top: 12px; }
.slots { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }

.week { padding: 6px 16px 16px; }
.week-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--app-line); }
.week-row--last { border-bottom: 0; }
.week-text { flex: 1; display: flex; flex-direction: column; }
.week-name { font-size: 14.5px; font-weight: 700; }
.week-all { margin-top: 8px; display: flex; }

.today { width: 100%; max-width: 420px; padding: 20px; }
.today-date { color: var(--acc-ink); }
.today-hello { margin-top: 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.today-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.glance { position: relative; margin-top: 14px; height: 30px; border-radius: 8px; background: var(--app-bg); overflow: hidden; }
.glance span { position: absolute; top: 5px; bottom: 5px; border-radius: 4px; }
.glance .g1 { left: 4%; width: 7%; background: var(--ev-teal); }
.glance .g2 { left: 30%; width: 9%; background: var(--ev-violet); }
.glance .g3 { left: 41%; width: 8%; background: var(--ev-terra); }
.glance .g4 { left: 62%; width: 7%; background: var(--ev-lime); }
.glance .now { top: 2px; bottom: 2px; left: 22%; width: 2px; border-radius: 0; background: var(--ev-terra); }
.next { margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--acc-wash); display: flex; align-items: center; gap: 12px; }
.tblock { width: 52px; height: 44px; border-radius: 12px; background: var(--acc-soft); color: var(--acc-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1.2; }
.tblock b { font-size: 13px; }
.tblock small { font-size: 10px; font-weight: 700; opacity: .7; }
.next-text { display: flex; flex-direction: column; }
.next-label { color: var(--acc-ink); }
.next-title { font-size: 15px; font-weight: 700; }
.today-sec { margin-top: 16px; }
.todo { margin-top: 8px; display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; }
.todo + .todo { margin-top: 10px; }
.todo--done { color: var(--app-t4); text-decoration: line-through; }
.chk { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--app-faint); flex: none; }
.chk--done { border: 0; background: var(--acc); display: flex; align-items: center; justify-content: center; }
.chk--sm { width: 20px; height: 20px; border-radius: 10px; }
.someday-chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }

.routine-head { display: flex; align-items: center; gap: 12px; }
.r-icon { width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.r-icon--acc { background: var(--acc-soft); }
.r-icon--teal { background: var(--teal-soft); }
.r-text { flex: 1; display: flex; flex-direction: column; }
.r-name { font-size: 15.5px; font-weight: 700; }
.r-log { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--app-line); display: grid; grid-template-columns: 48px 1fr; row-gap: 6px; font-size: 13px; }
.r-log dt { line-height: 18px; }
.r-log dd { color: var(--app-t2); }
.ok { color: var(--teal-ink); font-weight: 700; }
.r-add {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px;
  border: 1.5px dashed var(--app-faint); background: rgba(255, 255, 255, .6); color: var(--app-t3); font-size: 14px; font-weight: 600;
}

/* ───────── Home: everything around it ───────── */
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.tile h3 { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.tile p { margin-top: 10px; color: var(--body); font-size: 16px; line-height: 1.55; }
.tile--wide { grid-column: span 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px; }
@media (max-width: 899px) { .tile--wide { grid-column: auto; } }
.tile-copy { flex: 1 1 240px; min-width: 0; }
.tile-visual { flex: 1 1 300px; min-width: 0; }

.cal { padding: 16px; border-radius: 20px; background: var(--app-bg); }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cal-month { font-size: 17px; font-weight: 800; white-space: nowrap; }
.seg { display: flex; padding: 3px; border-radius: 10px; background: var(--app-chip); color: var(--app-t3); font-size: 12px; font-weight: 700; }
.seg span { padding: 4px 10px; border-radius: 8px; }
.seg .on { background: #fff; color: var(--app-t1); }
.cal-grid { margin-top: 12px; display: grid; grid-template-columns: 44px 1fr; row-gap: 8px; color: var(--app-t4); font-size: 11px; font-weight: 600; }
.cal-time { padding-top: 8px; }
.ev { padding: 8px 10px; border-radius: 8px; border-left: 3px solid; color: var(--app-t1); font-size: 13px; font-weight: 700; }
.ev--teal { background: var(--ev-teal-soft); border-color: var(--ev-teal); }
.ev--violet { background: var(--ev-violet-soft); border-color: var(--ev-violet); }
.ev--terra { background: var(--ev-terra-soft); border-color: var(--ev-terra); }
.ev--amber { background: var(--ev-amber-soft); border-color: var(--ev-amber); }
.ev--lime { background: var(--ev-lime-soft); border-color: var(--ev-lime); }
.ev-pair { display: flex; gap: 6px; }
.ev-pair .ev { flex: 1; }

.notifs { margin-top: auto; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, #1B2A6B, #2A3F9A); display: flex; flex-direction: column; gap: 8px; }
.notif { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .92); }
.notif--dim { background: rgba(255, 255, 255, .82); }
.notif img { width: 30px; height: 30px; border-radius: 8px; }
.notif-text { display: flex; flex-direction: column; min-width: 0; }
.notif-text b { color: var(--app-t1); font-size: 13.5px; }
.notif-text span { color: var(--app-t2); font-size: 12.5px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list--foot { margin-top: auto; }
.list-row { margin: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--app-bg); color: var(--app-t1); font-size: 14.5px; font-weight: 700; }
.tile .list-row { margin-top: 0; color: var(--app-t1); font-size: 14.5px; }
.list-row--someday { background: var(--acc-wash); border: 1px dashed #C9CFE6; }
.status-on { margin-left: auto; color: var(--teal-ink); font-size: 12.5px; font-weight: 700; }
.due { padding: 3px 8px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12px; font-weight: 700; }
.someday-tag { color: var(--acc-ink); font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.grow { flex: 1; font-weight: 600; }

/* ───────── Home: you stay in control ───────── */
.control { margin-top: var(--section); padding: clamp(72px, 9vw, 112px) var(--gutter); background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1099px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .trust-grid { grid-template-columns: 1fr; } }
.trust { padding: 28px; border-radius: 24px; background: var(--page); }
.trust h3 { margin-top: 18px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.trust p { margin-top: 8px; color: var(--body); font-size: 15.5px; line-height: 1.55; }
.fineprint { max-width: 760px; margin-top: 32px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ───────── Home: FAQ (native <details>, no script) ───────── */
.faq { display: flex; flex-wrap: wrap; gap: 48px; }
.faq-intro { flex: 1 1 300px; min-width: 0; }
.faq-title { margin-top: 0; }
.faq-intro .lead { font-size: 16px; }
.faq-list { flex: 2 1 560px; min-width: 0; }
.faq-list details { border-bottom: 1px solid #DDE0EA; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 22px 0;
  cursor: pointer; list-style: none; font-size: 19px; font-weight: 700; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-ic { flex: none; transition: transform .2s ease; }
.faq-list details[open] .faq-ic { transform: rotate(45deg); }
.faq-list details p { margin-top: -8px; padding-bottom: 22px; color: var(--body); font-size: 16px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .faq-ic { transition: none; } }

/* ───────── Home: download band ───────── */
.cta {
  max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px); border-radius: 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff;
  background:
    radial-gradient(600px 420px at 90% 0%, rgba(77, 25, 230, .6), rgba(77, 25, 230, 0) 70%),
    radial-gradient(520px 480px at 0% 100%, rgba(25, 179, 230, .3), rgba(25, 179, 230, 0) 70%),
    linear-gradient(160deg, #0A1136 0%, #0F1D63 55%, #16339E 100%);
}
.cta :focus-visible { outline-color: #fff; }
.cta-icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 16px 40px rgba(26, 69, 230, .55); }
.cta-title { margin-top: 28px; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.cta-sub { margin-top: 18px; color: var(--on-deep); font-size: 18px; line-height: 1.55; }
.cta .badges { margin-top: 32px; }
