/* Top of Mind site. Brand: ember orange, paper cream, ink. Inter for text,
   Source Serif 4 for the one serif word in a headline, Caveat for "the thought in your head".
   Layout: one column of bands; each band answers one question a visitor has. */
:root {
  --ember: #C1452D;
  --ember-deep: #8F2F1E;
  --ember-soft: #F2A38F;
  --paper: #F2EDE4;
  --card: #FFFFFF;
  --sand: #ECE5DA;
  --ink: #1E1B18;
  --muted: #6B635B;
  --line: #E2DACE;
  --on-ember: #FFFFFF;
  --night: #1E1B18;
  --on-night: #F2EDE4;
  --night-muted: #B9B0A5;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Bradley Hand", "Comic Sans MS", cursive;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171412; --card: #24201D; --sand: #2E2925; --ink: #F2EDE4; --muted: #B9B0A5;
    --line: #3A3430; --ember: #E2603F; --ember-deep: #A63A24; --night: #0E0C0B; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171412; --card: #24201D; --sand: #2E2925; --ink: #F2EDE4; --muted: #B9B0A5;
  --line: #3A3430; --ember: #E2603F; --ember-deep: #A63A24; --night: #0E0C0B; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--ember); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.serif { font-family: var(--font-serif); font-weight: 900; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 9vw, 104px); }
.band--ember { background: var(--ember); color: var(--on-ember); }
.band--night { background: var(--night); color: var(--on-night); }
.band--card { background: var(--card); }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ember); color: var(--on-ember); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ember); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--on-ember); color: #C1452D; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 900; font-size: 18px; line-height: 1; }
.brand-mark sup { font-size: 10px; margin-left: 1px; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: rgba(255, 255, 255, 0.14); }
.nav a.cta { background: #FFFFFF; color: #C1452D; font-weight: 800; }

/* Buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 22px; font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn--light { background: #FFFFFF; color: #1E1B18; }
.btn--ghost { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: 0.7; line-height: 1.1; }
.btn .stack { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }

/* The thought bubble: what's already in their head */
.thought {
  position: relative; display: inline-block; background: #FFFFFF; color: #1E1B18;
  border-radius: 22px; padding: 10px 18px 12px; font-family: var(--font-hand); font-weight: 700;
  font-size: clamp(24px, 3.2vw, 30px); line-height: 1.05; transform: rotate(-2deg);
  box-shadow: 0 8px 22px rgba(30, 27, 24, 0.14); max-width: 100%;
}
.thought::after { content: ""; position: absolute; left: 30px; bottom: -13px; border: 14px solid transparent; border-top-color: #FFFFFF; border-left-width: 4px; border-bottom: 0; }

/* Hero */
.hero { background: var(--ember); color: var(--on-ember); padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); line-height: 0.98; font-weight: 900; margin-top: 28px; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); max-width: 34em; margin-top: 20px; color: rgba(255, 255, 255, 0.92); }
.hero .btns { margin-top: 28px; }
.hero .fine { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }

/* Phone mockups, drawn in CSS so they stay sharp and light */
.phone { width: min(100%, 320px); aspect-ratio: 330 / 640; background: #0E0D0C; border-radius: 50px; padding: 11px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); margin-inline: auto; }
.screen { height: 100%; border-radius: 40px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.screen--lock { background: linear-gradient(170deg, #4A5A63 0%, #2C373D 100%); color: #FFFFFF; align-items: center; padding-top: 14px; }
.island { width: 46%; height: 30px; border-radius: 16px; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 12px; font-weight: 800; color: #E0573C; }
.lock-date { margin-top: 18px; font-size: 14px; font-weight: 600; }
.lock-time { font-size: 70px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.board { position: absolute; left: 10px; right: 10px; top: 45%; background: rgba(166, 58, 36, 0.96); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); font-size: 14px; }
.pin { margin-right: 6px; vertical-align: -1px; }
.board-top { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; opacity: 0.9; }
.board-row { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.ring { width: 19px; height: 19px; border-radius: 50%; border: 2.5px solid #FFFFFF; flex-shrink: 0; }
.ring--done { background: #FFFFFF; display: grid; place-items: center; }
.board-row > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .when { margin-left: auto; font-size: 11px; font-weight: 800; white-space: nowrap; }
.timer-dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; flex-shrink: 0; }
.done-text { text-decoration: line-through; opacity: 0.6; font-weight: 600; }
.free { display: flex; justify-content: space-between; background: rgba(0, 0, 0, 0.18); border-radius: 11px; padding: 7px 10px; font-size: 12px; font-weight: 800; }
.free b { font-size: 15px; font-weight: 900; }
.ev { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.ev::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: #5AAEF7; }

/* Section heads */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.band--ember .eyebrow, .band--night .eyebrow { color: var(--ember-soft); }
.h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; font-weight: 900; margin-top: 10px; }
.sub { font-size: 19px; color: var(--muted); max-width: 36em; margin-top: 14px; }
.band--night .sub { color: var(--night-muted); }

/* Voice before/after */
.voice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.said { background: var(--card); border-radius: 22px 22px 22px 6px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(30, 27, 24, 0.08); }
.said-label { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--ember); }
.said p { margin-top: 10px; font-size: 19px; line-height: 1.5; color: var(--muted); font-style: italic; }
.said s { opacity: 0.55; }
.said .fix { font-style: normal; font-weight: 800; color: var(--ink); background: rgba(193, 69, 45, 0.16); border-radius: 5px; padding: 0 4px; }
.arrow { text-align: center; font-weight: 800; color: var(--ember); margin: 16px 0; font-size: 15px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 14px 16px; font-weight: 600; box-shadow: 0 2px 8px rgba(30, 27, 24, 0.05); }
.item .ring { border-color: var(--line); border-width: 2px; width: 18px; height: 18px; }
.item .tag { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--ember); letter-spacing: 0.05em; white-space: nowrap; }
.item .tag--plain { color: var(--muted); }
.soon { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--sand); border-radius: 999px; padding: 6px 12px; }

/* Sorted-for-you list: each item shows where it went */
.toggle { display: inline-flex; background: var(--card); border-radius: 999px; padding: 4px; margin: 0 auto 14px; box-shadow: 0 2px 8px rgba(30, 27, 24, 0.08); font-size: 14px; }
.voice > div:last-child { display: flex; flex-direction: column; }
.toggle { align-self: center; }
.toggle span { padding: 6px 16px; border-radius: 999px; color: var(--muted); }
.toggle .on { background: var(--ink); color: var(--paper); font-weight: 700; }
.item { align-items: flex-start; }
.item .ring { margin-top: 3px; }
.what { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dest { align-self: flex-start; font-size: 12px; font-weight: 800; background: var(--sand); color: var(--ink); border-radius: 999px; padding: 3px 10px; }
.dest--top { background: var(--ember); color: #FFFFFF; }
.tally { margin-top: 14px; text-align: center; font-weight: 800; }
.arrow { letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }

/* Destinations: where each thing lands */
.dests { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.dest-card { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 16px; padding: 12px 16px; box-shadow: 0 2px 8px rgba(30, 27, 24, 0.05); }
.dest-card b { display: block; font-size: 17px; }
.dest-card small { display: block; color: var(--muted); font-size: 14px; }
.dest-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(193, 69, 45, 0.14); display: grid; place-items: center; flex-shrink: 0; }
.dest-icon svg { width: 21px; height: 21px; stroke: var(--ember); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.voice-copy .sub + .sub { margin-top: 10px; }

/* The sorting moment: plays once when the section scrolls into view */
@keyframes land { from { transform: translateY(-16px) scale(0.98); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes pop { 0%, 100% { transform: none; } 45% { transform: scale(1.08); } }
@keyframes glow { 0%, 100% { box-shadow: 0 2px 8px rgba(30, 27, 24, 0.05); } 40% { box-shadow: 0 0 0 3px var(--ember), 0 8px 20px rgba(193, 69, 45, 0.25); } }
.voice.play .item { animation: land 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.voice.play .item:nth-child(1) { animation-delay: 0.2s; }
.voice.play .item:nth-child(2) { animation-delay: 0.75s; }
.voice.play .item:nth-child(3) { animation-delay: 1.3s; }
.voice.play .item:nth-child(4) { animation-delay: 1.85s; }
.voice.play .item .dest { animation: pop 0.5s ease both; }
.voice.play .item:nth-child(1) .dest { animation-delay: 0.6s; }
.voice.play .item:nth-child(2) .dest { animation-delay: 1.15s; }
.voice.play .item:nth-child(3) .dest { animation-delay: 1.7s; }
.voice.play .item:nth-child(4) .dest { animation-delay: 2.25s; }
.voice.play .dest-card[data-for="lock"] { animation: glow 0.9s ease 0.6s both; }
.voice.play .dest-card[data-for="cal"] { animation: glow 0.9s ease 1.15s both; }
.voice.play .dest-card[data-for="rem"] { animation: glow 1.4s ease 1.7s both; }

/* The daily loop: four real steps, in order */
.loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; counter-reset: step; }
.step { background: var(--card); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-serif); font-weight: 900; font-size: 40px; line-height: 1; color: var(--ember); }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin-top: 44px; }
.feature { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); font-size: 16px; }
.band--night .feature p { color: var(--night-muted); }
.ficon { width: 44px; height: 44px; border-radius: 12px; background: rgba(193, 69, 45, 0.14); display: grid; place-items: center; margin-bottom: 6px; }
.ficon svg { width: 22px; height: 22px; stroke: var(--ember); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Privacy band */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.promise { border-top: 2px solid var(--ember-soft); padding-top: 14px; min-width: 0; }
.promise b { display: block; font-size: 18px; }
.promise span { color: var(--night-muted); font-size: 15px; }

/* Why it exists: the founder's own words */
.story { max-width: 760px; }
.story .h2 { max-width: 15em; }
.story-body { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; font-size: 19px; line-height: 1.6; }
.story-body strong { color: var(--ember); }
.questions { margin: 0; padding-left: 0; list-style: none; counter-reset: q; display: flex; flex-direction: column; gap: 10px; }
.questions li { counter-increment: q; position: relative; padding-left: 44px; font-family: var(--font-serif); font-weight: 700; font-size: 22px; line-height: 1.3; }
.questions li::before { content: counter(q); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--ember); color: #FFFFFF; font-family: var(--font-text); font-size: 15px; font-weight: 800; display: grid; place-items: center; }
.signoff { margin-top: 30px; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.sig { font-family: var(--font-hand); font-size: 40px; line-height: 1; color: var(--ink); }
.more { margin-top: 28px; }
.more a { color: var(--ember-soft); font-weight: 700; }
.on-ember { color: rgba(255, 255, 255, 0.9); }
.on-ember-chip { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; margin-top: 0; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.founder blockquote { margin: 18px 0 0; font-family: var(--font-serif); font-weight: 700; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; }
.founder cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; color: var(--muted); }

/* FAQ */
.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ember); font-weight: 900; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* Closing call */
.closer { text-align: left; }
.closer .h2 { max-width: 14em; }
.closer .btns { margin-top: 28px; }

/* Legal and support pages */
.doc { max-width: 740px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1; font-weight: 900; }
.doc .meta { color: var(--muted); margin-top: 12px; font-size: 15px; }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.short { background: var(--card); border-radius: 20px; padding: 22px 24px; margin-top: 28px; }
.short h2 { margin-top: 0; font-size: 20px; }
.contact { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--card); border-radius: 14px; padding: 12px 16px; margin-top: 14px; font-weight: 700; }
.contact code { font-family: var(--font-text); user-select: all; }

/* Footer */
.site-foot { background: var(--night); color: var(--night-muted); padding-block: 40px; font-size: 15px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--on-night); text-decoration: none; margin-right: 18px; }
.site-foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero .wrap, .voice { grid-template-columns: minmax(0, 1fr); }
  .loop, .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .loop, .promises, .features { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.cta) { display: none; }
  .site-head .wrap { flex-wrap: nowrap; }
  .phone { width: min(100%, 290px); }
}
