/* Ready landing — brand tokens mirror mobile/lib/core/theme (app_colors.dart / app_tokens.dart)
   and .design-bundle/ready-v4-work/current/colors_and_type.css */

:root {
  /* colors */
  --bg: #FFFCF8;
  --surface: #FFFFFF;
  --surface-muted: #F3EFE7;
  --ink: #111111;
  --ink-2: #57534E;
  --ink-3: #8A8378;
  --accent: #D97706;
  --accent-ink: #FFFFFF;
  --warm: #A85A48;
  --border: #E6DED2;
  --border-strong: #D8D0C4;

  /* radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* elevation */
  --e1: 0 1px 2px rgba(17,17,17,.04), 0 4px 16px rgba(17,17,17,.04);
  --e2: 0 6px 24px rgba(17,17,17,.08), 0 1px 2px rgba(17,17,17,.04);

  /* type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", var(--font-body);

  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* a11y helpers */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm);
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* typography */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.section-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); margin-bottom: 28px; }

/* wordmark */
.wordmark { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.wordmark__dot { color: var(--accent); }
.wordmark--sm { font-size: 1.1rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--accent-ink); }
.btn--primary:hover { background: #000; }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { opacity: .55; cursor: default; }
.btn--sm { padding: 10px 16px; font-size: .92rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,252,248,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.site-nav { display: none; gap: 24px; margin-left: 12px; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .9rem; padding: 6px 8px; border-radius: var(--r-sm); }
.lang-switch:hover { color: var(--ink); background: var(--surface-muted); }

/* hero */
.hero { padding: 48px 0 56px; }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.4rem); }
.hero__sub { margin-top: 18px; font-size: 1.12rem; color: var(--ink-2); max-width: 36ch; }
.hero__trust { margin-top: 16px; color: var(--ink-3); font-size: .9rem; }

/* device mockup showing real "Today" app screens */
.hero__device { display: flex; justify-content: center; }
.device { width: 258px; aspect-ratio: 9 / 19; background: #111; border-radius: 38px; padding: 10px; box-shadow: var(--e2); }
.device__screen { position: relative; width: 100%; height: 100%; background: var(--bg); border-radius: 28px; overflow: hidden; }
/* Real screens stacked; the first shows by default (no-JS / reduced-motion), motion.js crossfades them. */
.ph-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-shot + .ph-shot { opacity: 0; }

/* waitlist form */
/* Stacked on narrow screens (input + full-width button); side-by-side from 560px up. */
.waitlist-form { margin-top: 26px; display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 460px; }
.waitlist-form__input {
  font-family: var(--font-body); font-size: 1rem; padding: 14px 16px;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink);
}
.waitlist-form__input::placeholder { color: var(--ink-3); }
.waitlist-form__status { grid-column: 1 / -1; margin: 0; min-height: 0; font-size: .92rem; font-weight: 600; }
.waitlist-form__status.is-success { color: var(--warm); }
.waitlist-form__status.is-error { color: #DC2626; }
.waitlist-form__status:empty { display: none; }
.waitlist-form__consent { grid-column: 1 / -1; margin: 2px 0 0; font-size: .8rem; color: var(--ink-3); }
.waitlist-form__consent a { color: var(--ink-2); }

/* pain -> turn */
.pain { background: var(--surface-muted); border-block: 1px solid var(--border); padding: 56px 0; }
.pain__inner { text-align: center; max-width: 60ch; margin-inline: auto; }
.pain__question { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.8vw, 2rem); color: var(--ink-2); }
.pain__answer { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem); margin-top: 6px; }
.pain__support { margin-top: 18px; color: var(--ink-2); font-size: 1.05rem; }

/* steps */
.how { padding: 64px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--e1); padding: 24px; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; margin-bottom: 14px; }
.step__title { font-size: 1.15rem; }
.step__text { margin-top: 8px; color: var(--ink-2); }

/* differentiators */
.diff { padding: 8px 0 64px; }
.diff__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.diff__item { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg); }
.diff__title { font-size: 1.1rem; }
.diff__text { margin-top: 8px; color: var(--ink-2); }

/* features */
.features { padding: 64px 0; background: var(--surface-muted); border-block: 1px solid var(--border); }
.features__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e1); padding: 22px; }
.feature__title { font-size: 1.08rem; }
.feature__text { margin-top: 8px; color: var(--ink-2); }

/* proof */
.proof { padding: 64px 0; }
.proof__inner { text-align: center; max-width: 70ch; margin-inline: auto; }
.proof__badge { display: inline-block; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 10px 18px; font-weight: 600; font-size: .95rem; }
.proof__quotes { margin-top: 36px; display: grid; grid-template-columns: 1fr; gap: 20px; text-align: left; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e1); padding: 22px; }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote figcaption { margin-top: 12px; color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.proof__founder { margin-top: 32px; color: var(--ink-2); font-style: italic; }

/* faq — native <details> accordion, works without JS, keyboard-accessible */
.faq { padding: 64px 0; background: var(--surface-muted); border-block: 1px solid var(--border); }
.faq__list { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e1); overflow: hidden; }
.faq__q { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); font-weight: 400; transition: transform .2s ease; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--ink-2); }

/* final cta */
.cta { padding: 72px 0; background: var(--ink); color: #fff; text-align: center; }
.cta__title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
.cta__sub { margin-top: 12px; color: rgba(255,255,255,.75); }
.cta .waitlist-form { margin-inline: auto; margin-top: 28px; }
.cta .waitlist-form__input { border-color: transparent; }
.cta .btn--primary { background: var(--accent); }
.cta .btn--primary:hover { background: #c26a05; }
.cta .waitlist-form__consent { color: rgba(255,255,255,.6); }
.cta .waitlist-form__consent a { color: rgba(255,255,255,.85); }

/* footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer-nav a:hover { color: var(--ink); }
.site-footer__meta { margin-left: auto; color: var(--ink-3); font-size: .85rem; }

/* legal pages */
.legal { padding: 56px 0 72px; }
.legal__inner { max-width: 70ch; margin-inline: auto; }
.legal h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-2); margin-top: 12px; }
.legal__updated { color: var(--ink-3); font-size: .9rem; }

/* ---- responsive ---- */
@media (min-width: 560px) {
  .waitlist-form { grid-template-columns: 1fr auto; }
}
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .diff__grid { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .proof__quotes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .device { width: 290px; }
}

/* ---- motion layer (progressive enhancement) ----
   Initial hidden states apply ONLY under .js-anim, which an inline head script adds
   when motion is allowed AND JS runs. If GSAP/CDN fails, motion.js removes .js-anim and
   everything falls back to fully visible. Reduced-motion never gets .js-anim at all. */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; }
.hero__fx {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0; transition: opacity .9s ease;
}
.hero__fx.is-ready { opacity: 1; }

.site-header { transition: box-shadow .2s ease, background .2s ease; }
.site-header.is-scrolled { box-shadow: var(--e1); }

/* hero entrance */
.js-anim [data-hero] { opacity: 0; transform: translateY(20px); }
.js-anim .hero__device[data-hero] { transform: translateY(26px) scale(.985); }

/* scroll reveals — enumerated so there is no flash and zero HTML churn */
.js-anim .section-title,
.js-anim .step,
.js-anim .diff__item,
.js-anim .feature,
.js-anim .quote,
.js-anim .faq__item,
.js-anim .proof__badge,
.js-anim .proof__founder,
.js-anim .pain__inner > *,
.js-anim .cta__inner > * { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero__fx { display: none; }
}
