/* Tare's marketing page. The app's own palette: enamel paper, ink, jade; saffron only for the needle. */
:root {
  --paper: #F1F4F0;
  --raised: #FFFFFF;
  --ink: #1C2621;
  --ink-soft: #5D6B63;
  --mist: #DCE4DE;
  --jade: #2A7A5E;
  --jade-ink: #FFFFFF;
  --needle: #E0962A;
  --serif: ui-serif, "New York", "Newsreader", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --wide: "Archivo", -apple-system, system-ui, sans-serif;
  --measure: 38rem;
  --gutter: clamp(1rem, 5vw, 3rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111714;
    --raised: #1A221E;
    --ink: #E4EBE6;
    --ink-soft: #9AA9A1;
    --mist: #2A3530;
    --jade: #5CC49A;
    --jade-ink: #0E1512;
    --needle: #F0B04A;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
/* The carousel bleeds to the window's edges; 100vw counts the scrollbar, so clip the few pixels over. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--jade); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bar ------------------------------------------------------------------- */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 76rem; margin: 0 auto; padding: 1.25rem var(--gutter);
}
.mark { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 500 1.35rem var(--serif); }
.mark img { border-radius: 22%; }
.bar-link { font-weight: 600; text-decoration: none; }

main { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Hero ------------------------------------------------------------------ */
.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.promise { font: 400 clamp(1.5rem, 3.2vw, 2.4rem)/1.2 var(--serif); max-width: 24ch; margin-top: 1rem; text-wrap: balance; }
.lede { max-width: var(--measure); font-size: 1.15rem; color: var(--ink-soft); margin: 1.5rem 0 2rem; }

/* Invite form ----------------------------------------------------------- */
.invite { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 34rem; }
.invite input[type="email"] {
  flex: 1 1 15rem; min-width: 0;
  font: inherit; color: var(--ink);
  padding: 0.85rem 1.1rem;
  background: var(--raised);
  border: 1px solid var(--mist); border-radius: 999px;
}
.invite input[type="email"]::placeholder { color: var(--ink-soft); opacity: 0.7; }
.invite button {
  font: 600 1rem var(--sans);
  padding: 0.85rem 1.4rem;
  color: var(--jade-ink); background: var(--jade);
  border: 0; border-radius: 999px; cursor: pointer;
}
.invite button:disabled { opacity: 0.6; cursor: default; }
.invite .trap { position: absolute; left: -9999px; }
.invite-status { flex-basis: 100%; margin: 0.25rem 0 0; min-height: 1.5em; font-size: 0.95rem; color: var(--ink-soft); }
.invite.done input[type="email"], .invite.done button { display: none; }
.invite.done .invite-status { color: var(--ink); font-size: 1.05rem; }

/* Film ------------------------------------------------------------------ */
/* The film sits in the same column as everything else, in a fixed 16:9 box that doesn't change
   when it starts playing. */
.film { position: relative; }
.film video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain;
  border-radius: clamp(14px, 2.4vw, 28px);
  background: var(--mist);
}

/* Screens: a carousel of the real app. The track scrolls and snaps; buttons, dots and keys move it. */
.screens { --slide: clamp(14rem, 24vw, 19rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
/* Full-bleed to the window's edges, with room either side so the first and last screens can center. */
.screens-track {
  display: flex; gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none;
  margin-inline: calc(50% - 50vw);
  padding: 1rem calc(50vw - var(--slide) / 2) 1.5rem;
}
.screens-track::-webkit-scrollbar { display: none; }
.screens-track:focus-visible { outline: 2px solid var(--jade); outline-offset: -2px; }
.screens-track figure { flex: 0 0 var(--slide); margin: 0; scroll-snap-align: center; transition: opacity 0.3s; }
.screens-track figure:not(.current) { opacity: 0.55; }
.screens-track img {
  display: block; width: 100%; height: auto;
  border-radius: clamp(22px, 2.6vw, 34px);
  box-shadow: 0 1px 2px rgba(28, 38, 33, 0.08), 0 14px 36px rgba(28, 38, 33, 0.12);
  background: var(--raised);
}
.screens-track figcaption { margin-top: 0.9rem; font-size: 0.98rem; color: var(--ink-soft); text-align: center; }
.screens-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 0.5rem; }
.screens-dots { display: flex; gap: 0.25rem; }
.screens-dots button {
  width: 2rem; height: 2rem; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.screens-dots button::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--mist); transition: background 0.2s, transform 0.2s; }
.screens-dots button[aria-current="true"]::before { background: var(--jade); transform: scale(1.25); }
.screens-arrows { display: flex; gap: 0.6rem; }
.screens-arrows button {
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 1px solid var(--mist); background: var(--raised); color: var(--ink);
  font: 400 1.6rem/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding-bottom: 0.15rem;
}
.screens-arrows button:disabled { opacity: 0.35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .screens-track { scroll-behavior: auto; } .screens-track figure { transition: none; } }

/* Ask anything: the questions, set as the app sets your side of a chat. */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ask-text p { color: var(--ink-soft); font-size: 1.15rem; max-width: var(--measure); margin-top: 1rem; }
.asks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.asks li {
  max-width: 22rem; padding: 0.7rem 1.05rem;
  background: var(--ink); color: var(--paper);
  border-radius: 1.2rem 1.2rem 0.35rem 1.2rem;
  font-size: 1.02rem; line-height: 1.35;
}

/* Sections -------------------------------------------------------------- */
section + section { margin-top: clamp(4rem, 10vw, 8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0.5rem 0 0; }

/* A day with it: a real timeline, so the times carry the structure. */
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 9rem minmax(0, var(--measure)); gap: 1.5rem;
  padding: 1.6rem 0; border-top: 1px solid var(--mist);
}
.timeline li:last-child { border-bottom: 1px solid var(--mist); }
.timeline time { font: 600 1rem/1.9 var(--wide); font-stretch: 125%; color: var(--jade); }
.timeline p { color: var(--ink-soft); }

.why h2 { max-width: 14ch; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; margin-top: 2.5rem; max-width: 60rem; }
.reasons p { color: var(--ink-soft); max-width: 30rem; }

/* The dial: the one number the app leans on. */
.dial-note { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, var(--measure)); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.dial { width: 100%; height: auto; }
.dial .track, .dial .fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.dial .track { stroke: var(--mist); }
.dial .fill { stroke: var(--jade); }
.dial .needle line { stroke: var(--needle); stroke-width: 5; stroke-linecap: round; }
.dial .needle circle { fill: var(--needle); }
.dial .needle { transform-origin: 120px 120px; }
.dial-note p { font-size: 1.2rem; color: var(--ink-soft); }
.readout { display: block; font: 600 clamp(3rem, 7vw, 4.5rem)/1 var(--wide); font-stretch: 125%; color: var(--ink); margin-bottom: 0.4rem; font-variant-numeric: tabular-nums; }

/* The mission: the page's one long statement, in the serif. */
.mission-statement {
  font: 400 clamp(1.75rem, 3.6vw, 2.9rem)/1.18 var(--serif);
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin: 0;
  text-wrap: pretty;
}
.mission-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 4rem; max-width: 60rem; margin-top: 2.5rem; }
.mission-body p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }
.graduate { margin-top: clamp(3.5rem, 8vw, 6rem); max-width: 20ch; }
.mission-after { max-width: var(--measure); color: var(--ink-soft); font-size: 1.15rem; margin-top: 1.25rem; }
.human-coach { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--mist); max-width: var(--measure); }
.human-coach p { color: var(--ink-soft); }
.soon {
  display: inline-block; vertical-align: 0.2em; margin-left: 0.5rem;
  font: 600 0.78rem/1 var(--sans); color: var(--jade);
  padding: 0.35rem 0.6rem; border: 1px solid currentColor; border-radius: 999px;
}

.private p, .close p { max-width: var(--measure); color: var(--ink-soft); font-size: 1.15rem; margin-top: 1rem; }
.close { padding-bottom: 2rem; }
.close .invite { margin-top: 2rem; }

.foot {
  display: flex; gap: 1.5rem; align-items: baseline;
  max-width: 76rem; margin: clamp(4rem, 10vw, 7rem) auto 0; padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--mist); color: var(--ink-soft); font-size: 0.95rem;
}
.foot span { font: 500 1.1rem var(--serif); color: var(--ink); margin-right: auto; }

/* One orchestrated moment: the needle swings to its reading when the dial scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  .dial.pending .needle { transform: rotate(-82deg); }
  .dial .needle { transition: transform 1.4s cubic-bezier(0.34, 1.45, 0.5, 1); }
}

@media (max-width: 40rem) {
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; }
  .reasons { grid-template-columns: 1fr; gap: 2rem; }
  .dial-note { grid-template-columns: 1fr; }
  .mission-body { grid-template-columns: 1fr; }
  .ask { grid-template-columns: 1fr; }
  .screens { --slide: 68vw; }
  .dial { max-width: 13rem; }
}
