/* okdayplanner.com in the app's Daylight look (the light tokens of
   apps/web/src/styles/tokens.css): the day sky, white glass, ink text, the sun
   for accents. Always light, like the app's default; no JS, no third-party
   requests. The page walks through one day: each method step sits on the sky
   of its own hour. */
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1d1d1f; --ink-muted: #5c5c66;
  --surface: #fbfbfd; --card: #ffffff;
  --glass: #ffffffc7; --glass-border: #ffffff;
  --line: rgba(29, 29, 31, .08); --line-strong: rgba(29, 29, 31, .12);
  --hover: rgba(29, 29, 31, .05);
  --sun: #f2711c; --sun-ink: #b4500d; /* --sun darkened for small text (AA) */
  --sun-soft: rgba(242, 113, 28, .1);
  --shadow-card: 0 3px 10px rgba(29, 29, 31, .05);
  --shadow-lift: 0 14px 28px rgba(29, 29, 31, .12);
  --shadow-pop: 0 24px 60px rgba(29, 29, 31, .16);
  --sky-0: #ffe6dd; --sky-1: #fff1dc; --sky-2: #fff4e4; --sky-3: #e4f0ff;
  --sky-4: #e8f1ff; --sky-5: #ffe7cf; --sky-6: #eae4ff; --sky-7: #dcd8f5;

  --r-chip: 10px; --r-row: 18px; --r-sheet: 28px; --r-panel: 36px; --r-pill: 999px;
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --d-fast: 150ms; --d-base: 250ms; --d-slow: 500ms;
  --ease: cubic-bezier(.33, 1, .68, 1);
  --page: 72rem; --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; min-height: 100%; }
/* Dawn at the top of the page, then the white of the app's surfaces. */
body {
  margin: 0; color: var(--ink); font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, var(--sky-0) 0, var(--sky-1) 40%, var(--surface) 100%) top / 100% 56rem no-repeat, var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--sun); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--card); padding: .5rem 1rem; border-radius: var(--r-chip); }

/* Header: one white glass capsule, like the app's bottom bar. */
.site-header {
  position: sticky; top: .75rem; z-index: 10;
  display: flex; align-items: center; gap: .5rem 1rem;
  width: min(var(--page), 100% - 2 * var(--gutter)); margin: .75rem auto 0; padding: .45rem .5rem .45rem .7rem;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-card); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 650; font-size: 1.1rem; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 1.85rem; height: 1.85rem; border-radius: .5rem; }
.site-nav { display: none; gap: .15rem; margin-left: auto; font-weight: 500; font-size: .95rem; color: var(--ink-muted); }
.site-nav a, .lang a { padding: .45rem .85rem; border-radius: var(--r-pill); text-decoration: none; transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
.site-nav a:hover { color: var(--ink); background: var(--hover); }
/* The language switch is the app's ink-filled segmented control. */
.lang { display: flex; gap: .1rem; margin-left: auto; padding: .2rem; border-radius: var(--r-pill); background: var(--hover); font-weight: 600; font-size: .85rem; }
.lang a { padding: .3rem .7rem; color: var(--ink-muted); }
.lang [aria-current] { background: var(--ink); color: #fff; }
@media (min-width: 52rem) { .site-nav { display: flex; } .site-nav + .lang { margin-left: .5rem; } }

.section { width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(4rem, 10vw, 7.5rem) 0 0; }
.section-head { max-width: 40rem; margin: 0 auto clamp(2rem, 5vw, 3.25rem); text-align: center; }
.section-head h2, .final h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem); }
.section-head p { margin-top: .9rem; color: var(--ink-muted); font-size: 1.125rem; }
.eyebrow { font: 600 .8rem/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--sun-ink); }

/* Buttons. The store pill is a status, not a link: OkDay is not out yet. */
.soon, .more {
  display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.4rem;
  border-radius: var(--r-pill); font-weight: 600; font-size: 1rem; line-height: 1.2;
}
.soon { background: var(--ink); color: #fff; box-shadow: var(--shadow-lift); }
.soon::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: var(--sun); flex: none; }
.more { background: var(--card); border: 1px solid var(--line-strong); text-decoration: none; white-space: nowrap; transition: border-color var(--d-fast) var(--ease); }
.more:hover { border-color: rgba(29, 29, 31, .3); }

/* Hero: the method, then the app on a sky panel. */
.hero { text-align: center; padding-top: clamp(3.5rem, 9vw, 6rem); }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.25rem); letter-spacing: -.035em; line-height: 1.04; }
.hero h1 span { display: block; }
.hero .lead { margin: 1.5rem auto 0; max-width: 36rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-muted); }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-top: 2.25rem; }
.hero .note { margin-top: 1.1rem; font-size: .95rem; color: var(--ink-muted); }
.showcase {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 7vw, 4.5rem); padding: clamp(2rem, 5vw, 3.5rem) 1rem 0; overflow: hidden;
  border-radius: var(--r-panel); background: linear-gradient(180deg, var(--sky-3) 0, var(--sky-4) 45%, var(--sky-6) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}
/* The phones stand on the panel's lower edge, cut off like a product shot. */
.showcase .phone { width: min(19rem, 74vw); margin: 0 0 -6rem; }
.showcase .side { display: none; width: 16rem; margin-bottom: -9rem; opacity: .92; }
@media (min-width: 52rem) { .showcase .side { display: block; } }

/* A plain device frame around real screenshots of the app. */
.phone {
  width: min(17rem, 76vw); margin: 0 auto; padding: .5rem; border-radius: 3rem;
  background: #1d1d1f; box-shadow: var(--shadow-pop), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.phone img { width: 100%; border-radius: 2.55rem; }
.shot { margin: 0 auto; width: min(24rem, 100%); border-radius: var(--r-sheet); overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow-pop); }

/* The answers to the app's first question. */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: .7rem 1.15rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-card); font-weight: 500; }

/* Steps: one panel each, on the sky of its hour (dawn, morning, noon, dusk). */
.steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.step {
  display: grid; gap: 2.25rem; align-items: center; overflow: hidden;
  padding: clamp(1.75rem, 5vw, 3.75rem); border-radius: var(--r-panel);
  background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.step:nth-child(1) { --a: var(--sky-0); --b: var(--sky-1); }
.step:nth-child(2) { --a: var(--sky-2); --b: var(--sky-5); }
.step:nth-child(3) { --a: var(--sky-4); --b: var(--sky-3); }
.step:nth-child(4) { --a: var(--sky-6); --b: var(--sky-7); }
.step h3 { margin-top: .7rem; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.step .how { margin-top: 1rem; font-size: 1.125rem; max-width: 30rem; }
.why { margin-top: 1.5rem; max-width: 30rem; padding: 1rem 1.2rem; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-row); box-shadow: var(--shadow-card); }
.why p { margin-top: .35rem; color: var(--ink-muted); font-size: 1rem; }
.step figure { margin: 0; }
@media (min-width: 52rem) {
  .step { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .step:nth-child(even) .step-text { order: 2; }
  .step.solo { grid-template-columns: minmax(0, 40rem); justify-content: center; text-align: center; }
  .step.solo .how, .step.solo .why { margin-left: auto; margin-right: auto; }
}
.fine { margin-top: 2rem; text-align: center; font-size: .9rem; color: var(--ink-muted); }

/* Features: plain white cards, a sun dot for each. */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.card { padding: 1.5rem 1.5rem 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sheet); box-shadow: var(--shadow-card); }
.card h3 { font-size: 1.1rem; letter-spacing: -.015em; }
.card h3::before { content: ''; display: block; width: .5rem; height: .5rem; margin-bottom: 1rem; border-radius: 50%; background: var(--sun); }
.card p { margin-top: .45rem; color: var(--ink-muted); font-size: 1rem; }

/* FAQ: native details, no script. */
.faq { max-width: 46rem; margin: 0 auto; display: grid; gap: .6rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-row); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--r-row); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: .5rem; height: .5rem; border: solid var(--ink-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--d-base) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--ink-muted); }

/* The close: the evening sky. */
.final { margin-top: clamp(4rem, 10vw, 7.5rem); margin-bottom: clamp(3rem, 8vw, 5rem); padding: clamp(3rem, 8vw, 5rem) var(--gutter); text-align: center; border-radius: var(--r-panel); background: linear-gradient(180deg, var(--sky-5), var(--sky-6) 60%, var(--sky-7)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.final p { margin: 1rem auto 2rem; max-width: 36rem; font-size: 1.125rem; color: var(--ink-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); }
.site-footer .inner { width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 2.75rem 0 3rem; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); font-size: .95rem; }
.site-footer .about { grid-column: 1 / -1; max-width: 22rem; }
@media (min-width: 52rem) { .site-footer .about { grid-column: auto; } .site-footer .inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .about p { margin-top: .7rem; color: var(--ink-muted); }
.site-footer h2 { font: 600 .75rem/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.site-footer ul { margin: .75rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.site-footer nav { min-width: 0; }
.site-footer li a { text-decoration: none; overflow-wrap: anywhere; color: var(--ink-muted); transition: color var(--d-fast) var(--ease); }
.site-footer li a:hover { color: var(--ink); }
.site-footer .legal { grid-column: 1 / -1; color: var(--ink-muted); font-size: .875rem; }

/* Legal and support pages: one readable column on a white sheet. */
.prose { width: min(46rem, 100% - 2 * var(--gutter)); margin: clamp(1.5rem, 5vw, 3rem) auto clamp(3rem, 8vw, 5rem); }
.prose article { padding: clamp(1.25rem, 5vw, 2.75rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sheet); box-shadow: var(--shadow-card); line-height: 1.65; overflow-wrap: break-word; }
.prose article + article { margin-top: 1.5rem; }
.prose h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); letter-spacing: -.03em; margin-bottom: .5rem; }
.prose h2 { font-size: 1.2rem; letter-spacing: -.015em; margin: 2rem 0 .4rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.05rem; letter-spacing: -.01em; margin: 1.5rem 0 .3rem; }
.prose .eyebrow { margin: 0 0 .5rem; }
.prose .updated { color: var(--ink-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.prose .signoff { margin-top: 2.5rem; color: var(--ink-muted); font-size: .9rem; }
.prose p { margin: .6rem 0; }
.prose ul { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose .note { background: var(--sun-soft); border-radius: var(--r-row); padding: 1rem 1.25rem; margin: 1.25rem 0; }

/* Motion: things ease in as they arrive, nothing pops. Only where the browser
   can tie it to scroll; reduced motion gets a still page. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } }
  .showcase .phone { animation: rise var(--d-slow) var(--ease) both; }
  .showcase .phone:nth-child(2) { animation-delay: 60ms; }
  .showcase .phone:nth-child(3) { animation-delay: 120ms; }
  @supports (animation-timeline: view()) {
    .step figure, .step-text { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
  .soon, .more, .site-nav a, .lang a { transition: transform var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease); }
  .more:active, .site-nav a:active, .lang a:active { transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
