/* Todoey — todoey.app. White page, ink type, Pip's tangerine as the one warm colour (same tokens as the app's theme.ts). */
:root {
  --ink: #191919; --ink70: rgba(25,25,25,.72); --ink55: rgba(25,25,25,.58);
  --hair: rgba(25,25,25,.10); --soft: #F7F6F3; --page: #FFFFFF;
  --tang: #FF6A2B; --tang-deep: #FF5B2E; --tang-tint: #FFF0E6; --tang-ink: #B23A0C;
  --sage: #E9F0E6; --sage-ink: #3F5E37; --plum: #F1E8F1; --plum-ink: #6A3F6A;
  --late: #E5484D; --bubble: #F1F0EC;
  --r: 18px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F2EFEA; --ink70: rgba(242,239,234,.75); --ink55: rgba(242,239,234,.6);
    --hair: rgba(242,239,234,.12); --soft: #1D1B19; --page: #121110;
    --tang-tint: #3A2116; --tang-ink: #FFB48C; --sage: #1F2A1C; --sage-ink: #B5D2A9; --plum: #2A1F2A; --plum-ink: #DDB9DD;
    --bubble: #262421;
  }
}
:root[data-theme="dark"] {
  --ink: #F2EFEA; --ink70: rgba(242,239,234,.75); --ink55: rgba(242,239,234,.6);
  --hair: rgba(242,239,234,.12); --soft: #1D1B19; --page: #121110;
  --tang-tint: #3A2116; --tang-ink: #FFB48C; --sage: #1F2A1C; --sage-ink: #B5D2A9; --plum: #2A1F2A; --plum-ink: #DDB9DD;
  --bubble: #262421;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 17px/1.6 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-inline: 20px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tang); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; letter-spacing: -0.03em; }
h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink70); max-width: 34em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tang-ink); }
.muted { color: var(--ink55); }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--ink70); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 24px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: #E2531B; color: #fff; }
.btn-primary:hover { background: #C9440F; }
span.btn-primary { cursor: default; }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.cta-note { font-size: 14px; color: var(--ink55); margin-top: 12px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 48px 72px; }
.hero h1 .pip-word { color: var(--tang); }
.hero .lede { margin-top: 22px; }
.hero-cta { margin-top: 32px; }
@media (max-width: 900px) { .phone { aspect-ratio: auto; } .chat { justify-content: flex-start; padding-top: 10px; } .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 24px 48px; } }

/* phone + chat */
.phone {
  width: min(360px, 100%); margin-inline: auto; aspect-ratio: 9 / 18.5; max-width: 100%;
  border-radius: 48px; padding: 12px; background: #111; box-shadow: 0 30px 80px -20px rgba(255,106,43,.35), 0 10px 30px rgba(0,0,0,.15);
}
.screen { height: 100%; border-radius: 37px; background: #fff; color: #191919; overflow: hidden; display: flex; flex-direction: column; font-size: 14px; line-height: 1.45; }
.screen-top { display: flex; align-items: center; gap: 8px; padding: 22px 18px 10px; font-weight: 700; }
.screen-top img { width: 26px; height: 26px; }
.chat { flex: 1; padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 18px; }
.msg.me { align-self: flex-end; background: #191919; color: #fff; border-bottom-right-radius: 6px; }
.msg.pip { align-self: flex-start; background: #F1F0EC; border-bottom-left-radius: 6px; }
.plan { display: flex; flex-direction: column; gap: 7px; align-self: stretch; }
.card { border: 1px solid rgba(25,25,25,.1); border-radius: 14px; padding: 9px 12px; display: flex; gap: 10px; align-items: center; background: #fff; }
.card .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(25,25,25,.55); }
.card b { display: block; font-size: 14px; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.card.focus { background: #191919; color: #fff; border-color: #191919; }
.card.focus .k { color: rgba(255,255,255,.6); }
.composer { margin: 0 12px 16px; border: 1px solid rgba(25,25,25,.12); border-radius: 999px; padding: 10px 16px; color: rgba(25,25,25,.45); font-size: 13px; }
/* the conversation plays once, from a visible resting frame (reduced motion: shown at rest) */
@media (prefers-reduced-motion: no-preference) {
  .play > * { animation: rise .5s cubic-bezier(.16,1,.3,1) both; }
  .play > :nth-child(1) { animation-delay: .3s; }
  .play > :nth-child(2) { animation-delay: 1.3s; }
  .play > :nth-child(3) { animation-delay: 2.1s; }
  .play > :nth-child(4) { animation-delay: 3.1s; }
  .play .card { animation: rise .45s cubic-bezier(.16,1,.3,1) both; }
  .play .card:nth-child(1) { animation-delay: 2.3s; } .play .card:nth-child(2) { animation-delay: 2.5s; } .play .card:nth-child(3) { animation-delay: 2.7s; }
}
@keyframes rise { from { opacity: .0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* sections */
section { padding-block: 80px; border-top: 1px solid var(--hair); }
.sec-head { max-width: 40em; margin-bottom: 40px; display: grid; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.pain { padding: 24px; border-radius: var(--r); background: var(--soft); display: grid; gap: 10px; }
.pain q { font-size: 19px; font-weight: 700; quotes: "“" "”"; letter-spacing: -0.01em; }
.step { display: grid; gap: 10px; align-content: start; }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--tang-tint); color: var(--tang-ink); font-weight: 800; display: grid; place-items: center; }
.pillar { padding: 28px; border-radius: var(--r); border: 1px solid var(--hair); display: grid; gap: 12px; align-content: start; }
.pillar .tag { justify-self: start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.t-tang { background: var(--tang-tint); color: var(--tang-ink); }
.t-sage { background: var(--sage); color: var(--sage-ink); }
.t-plum { background: var(--plum); color: var(--plum-ink); }
.t-ink { background: var(--ink); color: var(--page); }

/* a day with Pip */
.day { display: grid; gap: 0; }
.day-row { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding-block: 22px; border-top: 1px solid var(--hair); }
.day-row:first-child { border-top: 0; }
.day-row time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--tang-ink); }
@media (max-width: 600px) { .day-row { grid-template-columns: 1fr; gap: 6px; } }

/* ADHD band */
.band { background: var(--tang-tint); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.band img { width: 120px; }
@media (max-width: 700px) { .band { grid-template-columns: 1fr; } .band img { width: 84px; } }

/* comparison table */
.table-scroll { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { padding: 14px 16px; text-align: left; border-top: 1px solid var(--hair); }
thead th { border-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink55); }
th[scope="row"] { font-weight: 600; }
td.us { background: var(--tang-tint); font-weight: 700; }
.yes { color: var(--sage-ink); font-weight: 700; } .no { color: var(--ink55); }

/* pricing */
.price { max-width: 520px; margin-inline: auto; border: 2px solid var(--ink); border-radius: 28px; padding: 36px; display: grid; gap: 18px; text-align: center; }
.price .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; text-align: left; }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--tang) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 820px; }
details { border-top: 1px solid var(--hair); padding-block: 18px; }
details:last-child { border-bottom: 1px solid var(--hair); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--tang); font-weight: 800; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--ink70); max-width: 40em; }

/* final CTA + footer */
.final { text-align: center; display: grid; justify-items: center; gap: 20px; }
.final img { width: 96px; }
footer { border-top: 1px solid var(--hair); padding-block: 40px 56px; font-size: 14px; color: var(--ink55); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }

/* plain pages (privacy, support) */
.doc { max-width: 720px; padding-block: 40px 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.doc h2 { font-size: 24px; margin-top: 40px; margin-bottom: 10px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink70); }
.doc p + p { margin-top: 12px; }
