/* Landing site for the app. Tokens = the app's "date" light palette (src/constants/theme.ts).
   The product name is injected at build time from app.json (expo.web.name) — see
   scripts/build-web.mjs (HasApp tokens). */

@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('/fonts/Nunito_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/Nunito_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('/fonts/Nunito_900Black.ttf') format('truetype'); }

:root {
  --bg: #EFE9DC; --bg2: #E8E1D2; --card: #FCF9F2; --card2: #F5F0E5;
  --text: #2B2A24; --muted: #6B675A; --faint: #98937F;
  --border: rgba(43,42,36,0.10); --border2: rgba(43,42,36,0.16);
  --accent: #5B6E3A; --accent-on: #FCF9F2; --accent-deep: #435228; --accent-soft: #E7EBDC;
  --amber: #D98324; --amber-lite: #EFB369; --amber-deep: #A85E12; --amber-soft: #F7E9D5; --amber-text: #8A4F10;
  --indigo: #6E6482; --indigo-soft: #EAE5EF; --coral: #A2704A; --coral-soft: #F1E5DA;
  --pink: #A85E6E; --pink-soft: #F3E3E6; --shelf: rgba(43,42,36,0.10);
  --font: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.6;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 12px; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Header ------------------------------------------------------------------ */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-cta { font-weight: 900; font-size: 15px; text-decoration: none; }

/* Buttons — the app's "shelf" press ------------------------------------------ */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--accent-on); --btn-shelf: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 24px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 900; font-size: 17px; line-height: 1.2;
  text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--btn-shelf);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { color: var(--btn-fg); filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--btn-shelf); }
.btn-quiet { --btn-bg: var(--card); --btn-fg: var(--text); --btn-shelf: var(--shelf); border: 1px solid var(--border2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(34px, 8vw, 54px); }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 34ch; margin-bottom: 26px; }
.hero .small { font-size: 14px; color: var(--muted); margin-top: 16px; }
@media (min-width: 860px) {
  .hero { padding: 48px 0 88px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
}

/* Phone mock (pure CSS) — a still of the Today screen ----------------------- */
.phone {
  width: min(320px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5;
  background: #2B2A24; border-radius: 46px; padding: 11px; box-shadow: 0 10px 0 var(--shelf);
}
.screen {
  height: 100%; background: var(--bg); border-radius: 36px; overflow: hidden;
  padding: 34px 16px 0; display: flex; flex-direction: column; gap: 12px; position: relative;
}
.screen::before { content: ''; position: absolute; top: 10px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: #2B2A24; border-radius: 999px; }
.m-head { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 8px; }
.m-date { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.m-greet { font-size: 19px; font-weight: 900; line-height: 1.15; }
.streak { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-text); font-weight: 900; font-size: 13px; }
.flame { position: relative; width: 16px; height: 18px; }
.flame::before, .flame::after { content: ''; position: absolute; border-radius: 12% 50% 50% 50%; transform: rotate(45deg); }
.flame::before { inset: 2px 1px 0 1px; background: var(--amber); animation: breathe 3.2s ease-in-out infinite; }
.flame::after { inset: 8px 5px 2px 5px; background: var(--amber-lite); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: rotate(45deg) scale(1.06) translate(-1px, -1px); } }
.m-ring { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 12px 14px; box-shadow: 0 3px 0 var(--shelf); }
.m-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.m-ring b { display: block; font-size: 15px; font-weight: 900; }
.m-ring span { font-size: 11.5px; color: var(--muted); }
.m-list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 8px 10px; box-shadow: 0 3px 0 var(--shelf); }
.row .tile { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.row .tile i { width: 11px; height: 11px; display: block; }
.row .t { flex: 1; min-width: 0; font-size: 12px; font-weight: 800; line-height: 1.25; }
.row .t small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); }
.check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border2); flex: none; }
.check.on { background: var(--accent); border-color: var(--accent); display: grid; place-items: center; }
.check.on::after { content: ''; width: 8px; height: 4px; border: solid var(--accent-on); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.cat-prayer .tile { background: var(--indigo-soft); } .cat-prayer i { background: var(--indigo); border-radius: 50% 50% 50% 3px; }
.cat-food .tile { background: var(--coral-soft); } .cat-food i { background: var(--coral); border-radius: 50%; }
.cat-people .tile { background: var(--pink-soft); } .cat-people i { background: var(--pink); border-radius: 3px; }
.m-tabs { margin-top: auto; display: flex; justify-content: space-around; background: var(--card); border-top: 1px solid var(--border); margin-left: -16px; margin-right: -16px; padding: 10px 0 18px; font-size: 10px; font-weight: 800; color: var(--faint); }
.m-tabs .on { color: var(--accent); }

/* Sections --------------------------------------------------------------- */
section { padding: 56px 0; }
.section-title { font-size: clamp(26px, 5vw, 36px); }
.features { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: 0 3px 0 var(--shelf); }
.card h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.badge svg { width: 24px; height: 24px; }
.b-accent { background: var(--accent-soft); color: var(--accent); }
.b-amber { background: var(--amber-soft); color: var(--amber-deep); }
.b-indigo { background: var(--indigo-soft); color: var(--indigo); }
.b-coral { background: var(--coral-soft); color: var(--coral); }
.b-pink { background: var(--pink-soft); color: var(--pink); }

/* Install ------------------------------------------------------------------ */
.install { background: var(--card2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.install-panel { background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 26px 22px; box-shadow: 0 3px 0 var(--shelf); margin-top: 24px; }
.install-panel h3 { font-size: 21px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 18px; padding: 12px 14px; font-weight: 800; }
.steps li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-on); display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.steps svg { width: 24px; height: 24px; flex: none; color: #0A7AFF; margin-left: auto; }
.note { margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: var(--amber-soft); color: var(--amber-text); font-size: 14.5px; }
.note strong { font-weight: 900; }
.other-devices { margin-top: 24px; }
.other-devices summary { cursor: pointer; font-weight: 900; color: var(--accent); }
.other-devices .install-panel { box-shadow: none; }
.js .install-panel.auto { display: none; }
.js .install-panel.auto.active { display: block; }
.open-browser { margin-top: 20px; font-size: 15px; }

/* Prose (privacy / terms) ------------------------------------------------- */
.prose { padding: 24px 0 64px; }
.prose h1 { font-size: clamp(30px, 6vw, 42px); }
.prose h2 { font-size: 22px; margin-top: 1.8em; }
.prose h3 { font-size: 17px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border2); vertical-align: top; }
.draft { border: 2px dashed var(--amber-deep); background: var(--amber-soft); color: var(--amber-text); border-radius: 18px; padding: 14px 16px; margin: 0 0 28px; font-size: 15px; }
.draft strong { font-weight: 900; }

/* Footer ------------------------------------------------------------------ */
.site-footer { padding: 36px 0 44px; color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); font-weight: 800; }
.hint { margin-top: 14px; font-size: 14.5px; }
.ring-track { stroke: var(--border2); } .ring-fill { stroke: var(--accent); }
