/* ==========================================================================
   DineTrue — site styles
   Palette mirrors the iOS app (Theme.swift): teal #0F5C5E, orange #F47A45,
   cream #FFF8EF, charcoal #252525.
   ========================================================================== */

:root {
  --ink: #142321;
  --ink-soft: #3c4a47;
  --muted: #56635f;
  --teal-950: #062a2b;
  --teal-900: #0a3c3e;
  --teal: #0f5c5e;
  --teal-600: #157375;
  --teal-400: #4fa3a0;
  --mint: #dceeeb;
  --mint-soft: #ecf6f4;
  --orange: #f47a45;
  --orange-ink: #b9501f;       /* AA-contrast orange for text on light */
  --orange-soft: #fde8dc;
  --cream: #fff8ef;
  --paper: #fffdf9;
  --sand: #f6ecdf;
  --line: rgba(20, 35, 33, .1);
  --line-strong: rgba(20, 35, 33, .16);
  --white: #fff;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", "Charter", Georgia, serif;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 32px;
  --shadow-s: 0 1px 2px rgba(10, 40, 40, .06), 0 2px 8px rgba(10, 40, 40, .05);
  --shadow: 0 2px 6px rgba(10, 40, 40, .05), 0 18px 40px -12px rgba(10, 40, 40, .18);
  --shadow-l: 0 30px 80px -20px rgba(6, 42, 43, .35), 0 12px 30px -12px rgba(6, 42, 43, .2);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .22, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mint); color: var(--teal-950); }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { 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: 16px; top: -60px; z-index: 100; background: var(--teal-950); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn .i { font-size: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(15, 92, 94, .7); }
.btn-primary:hover { background: var(--teal-900); }
.btn-accent { background: var(--orange); color: #1d0d05; box-shadow: 0 10px 24px -10px rgba(244, 122, 69, .8); }
.btn-accent:hover { background: #f78a5a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .7); border-color: var(--ink-soft); }
.btn-light { background: #fff; color: var(--teal-950); }
.btn-light:hover { background: var(--cream); }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 18px; border-radius: 16px;
  background: #0b0f0f; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .25s var(--ease), opacity .25s;
}
.store-badge .i { font-size: 28px; }
.store-badge small { display: block; font-size: 12px; line-height: 1.2; opacity: .75; letter-spacing: .02em; }
.store-badge strong { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -.01em; font-weight: 600; }
.store-badge[aria-disabled="true"] { cursor: default; opacity: .92; }
a.store-badge:hover { transform: translateY(-1px); }

.text-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--teal); text-decoration: none; }
.text-link .i { transition: transform .25s var(--ease); }
.text-link:hover .i { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 253, 249, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 253, 249, .86); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.03em; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 4px 10px -4px rgba(15, 92, 94, .35); }
.brand b { color: var(--teal); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 13px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: rgba(15, 92, 94, .07); }
.nav a[aria-current="page"] { color: var(--teal); }
.header-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
.nav .nav-cta { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.6); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .i { font-size: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1020px) {
  .nav-link-extra { display: none; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(6, 42, 43, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 18px; border-radius: 12px; }
  .nav .nav-link-extra { display: block; }
  .nav .nav-cta { display: flex; margin-top: 10px; }
  .nav .nav-cta, .nav .nav-cta:hover { color: #fff; }
  .nav .nav-cta:hover { background: var(--teal-900); }
}

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--orange); }
.eyebrow.on-dark { color: #a6dcd6; }
.h-display { font-size: clamp(44px, 7.2vw, 92px); letter-spacing: -.045em; line-height: .98; }
.h-section { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.04em; line-height: 1.02; }
.h-section em, .h-display em { color: var(--teal); display: block; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 36em; }
.section-head { display: grid; gap: 22px; max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 620px at 78% 42%, rgba(79, 163, 160, .20), transparent 62%),
    radial-gradient(700px 420px at 6% 96%, rgba(244, 122, 69, .10), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #fdf4e8 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); min-height: min(820px, calc(100svh - var(--header-h) - 40px)); }
.hero-copy { display: grid; gap: 26px; justify-items: start; max-width: 610px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-s);
}
.pill-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
.pill-dot .i { font-size: 13px; }
.hero .h-display { font-size: clamp(44px, 5.3vw, 70px); }
.hero .lead { max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }

.hero-stage { position: relative; display: grid; place-items: center; padding-block: 12px; }
.hero-halo {
  position: absolute; z-index: 0; width: min(560px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0%, rgba(255, 255, 255, .55) 38%, rgba(220, 238, 235, .55) 60%, transparent 71%);
  box-shadow: inset 0 0 0 1px rgba(15, 92, 94, .08);
}
.hero-halo::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(15, 92, 94, .13); }
.hero-stage .phone-primary { --w: min(clamp(260px, 24vw, 340px), calc((100svh - var(--header-h) - 96px) * .43)); z-index: 2; }
.hero-stage .phone-secondary {
  --w: min(clamp(216px, 19vw, 280px), calc((100svh - var(--header-h) - 96px) * .36));
  position: absolute; z-index: 1; left: 50%; top: 50%;
  transform: translate(8%, -44%) rotate(4deg);
  opacity: .96;
}
.hero-stage:has(.phone-secondary:not(.is-missing)) .phone-primary { transform: translateX(-22%); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { justify-items: center; text-align: center; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stage { margin-top: 8px; }
  .hero-stage .phone-primary { --w: min(42vw, 330px); }
  .hero-stage .phone-secondary { --w: min(34vw, 270px); }
}
@media (max-width: 560px) {
  .hero-stage .phone-primary { --w: min(74vw, 300px); transform: none !important; }
  .hero-stage .phone-secondary { display: none; }
  .hero-halo { width: 118%; }
  .hero .pill { display: none; }
  .hero-copy { gap: 20px; }
}

/* ---------- iPhone frame around a real app screenshot ----------
   The screenshot keeps its own aspect ratio (height: auto), so it is never
   stretched; the frame simply wraps whatever was captured. */
.phone {
  --w: 300px;
  position: relative; margin: 0;
  width: var(--w);
  container-type: inline-size;
  transition: transform .6s var(--ease);
}
.phone-body {
  position: relative;
  padding: 3.4cqw;
  border-radius: 17cqw;
  background: linear-gradient(150deg, #3a4443 0%, #151b1b 22%, #0b0f0f 50%, #1a2121 78%, #3a4443 100%);
  box-shadow:
    0 0 0 1.2cqw #0a0d0d inset,
    0 0 0 .35cqw rgba(255, 255, 255, .14),
    0 60px 90px -36px rgba(6, 42, 43, .55),
    0 28px 44px -24px rgba(6, 42, 43, .35);
}
.phone-body::before, .phone-body::after { /* side buttons */
  content: ""; position: absolute; width: 1cqw; border-radius: 1cqw; background: linear-gradient(90deg, #262e2d, #3d4847);
}
.phone-body::before { left: -.8cqw; top: 22%; height: 9%; box-shadow: 0 140% 0 #2f3837; }
.phone-body::after { right: -.8cqw; top: 30%; height: 14%; }
.phone-shot {
  display: block; width: 100%; height: auto;
  border-radius: 13.8cqw;
  background: var(--cream);
}
/* A screenshot that fails to load hides its phone; no placeholder is ever shown. */
.phone.is-missing { display: none; }
.split-visual .phone { --w: clamp(260px, 24vw, 320px); }
@media (hover: hover) {
  .split-visual .phone:hover { transform: translateY(-6px); }
}

/* ---------- Feature index strip ---------- */
.index-strip { padding-block: 26px; border-block: 1px solid var(--line); background: var(--paper); }
.index-strip ul { list-style: none; display: flex; justify-content: space-between; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.index-strip ul::-webkit-scrollbar { display: none; }
.index-strip a { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-weight: 600; color: var(--ink-soft); padding: 8px 6px; transition: color .2s; }
.index-strip a:hover { color: var(--teal); }
.index-strip .ix { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--mint-soft); color: var(--teal); border: 1px solid rgba(15,92,94,.1); }
.index-strip .ix .i { font-size: 18px; }

/* ---------- Split feature layout ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 8vw, 120px); }
.split.reverse .split-visual { order: -1; }
.split-copy { display: grid; gap: 26px; align-content: center; }
.split-visual { position: relative; display: grid; place-items: center; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
}
.checks { list-style: none; display: grid; gap: 18px; margin-top: 6px; }
.checks li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.checks .ck { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-soft); color: var(--teal); border: 1px solid rgba(15,92,94,.1); }
.checks .ck .i { font-size: 21px; }
.checks strong { display: block; font-size: 17px; letter-spacing: -.01em; margin-bottom: 2px; }
.checks p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- Spotlight (dark) ---------- */
.dark {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(79, 163, 160, .25), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(244, 122, 69, .14), transparent 60%),
    linear-gradient(180deg, var(--teal-950), #072f30);
  color: #e8f3f1;
}
.dark h2, .dark h3 { color: #fff; }
.dark .h-section em { color: #ffb48f; }
.dark .lead { color: #b9d2ce; }
/* Spotlight: real app screenshot + the three distance tiers */
.spotlight { overflow: hidden; }
.spot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "head stage" "tiers stage";
  column-gap: clamp(48px, 7vw, 112px);
  row-gap: clamp(36px, 4vw, 48px);
  align-items: start;
}
.spot-layout .section-head { grid-area: head; }
.spot-stage { grid-area: stage; align-self: center; position: relative; display: grid; place-items: center; padding-block: 24px; }
.spot-glow {
  position: absolute; z-index: 0; width: min(600px, 140%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 163, 160, .34) 0%, rgba(79, 163, 160, .12) 42%, transparent 68%);
}
.spot-glow::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(166, 220, 214, .18); }
/* Desktop: two overlapping phones sharing one grid cell */
.spot-shots { position: relative; z-index: 1; display: grid; place-items: center; }
.spot-shots:focus-visible { outline-offset: 12px; border-radius: 24px; }
.spot-shots .phone { grid-area: 1 / 1; --w: clamp(240px, 20.5vw, 300px); }
.spot-shots .spot-front { z-index: 2; transform: translate(26%, 5%); }
.spot-shots .spot-back { z-index: 1; transform: translate(-30%, -5%) rotate(-5deg); opacity: .97; }
@media (hover: hover) {
  .spot-shots .spot-front:hover { transform: translate(26%, 3%); }
  .spot-shots .spot-back:hover { transform: translate(-30%, -7%) rotate(-5deg); }
}
.spot-dots { display: none; }
.dark .phone-body {
  box-shadow:
    0 0 0 1.2cqw #0a0d0d inset,
    0 0 0 .35cqw rgba(255, 255, 255, .2),
    0 50px 90px -30px rgba(0, 0, 0, .65),
    0 0 70px -10px rgba(79, 163, 160, .35);
}
.tiers { grid-area: tiers; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tier {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(166, 220, 214, .14);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
@media (hover: hover) {
  .tier:hover { background: rgba(255, 255, 255, .08); border-color: rgba(166, 220, 214, .3); transform: translateX(4px); }
}
.tier-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.tier-icon .i { font-size: 22px; }
.tier-near .tier-icon { background: rgba(244, 122, 69, .18); color: #ffb48f; }
.tier-drive .tier-icon { background: rgba(166, 220, 214, .14); color: #a6dcd6; }
.tier-destination .tier-icon { background: rgba(255, 248, 239, .12); color: #fff1d6; }
.tier small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.tier-near small { color: #ffb48f; }
.tier-drive small { color: #8fd1ca; }
.tier-destination small { color: #e9d9bf; }
.tier h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.tier p { color: #b9d2ce; font-size: 15.5px; line-height: 1.55; }
@media (max-width: 900px) {
  .spot-layout { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "tiers"; }
  .spot-glow { width: min(520px, 120%); }
  /* Tablet & mobile: swipeable, snap-to-center screenshots */
  .spot-stage { width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); }
  .spot-shots {
    --w: min(64vw, 290px);
    width: 100%; display: flex; gap: 22px; place-items: initial;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 12px calc(50% - var(--w) / 2) 28px;
    scrollbar-width: none;
  }
  .spot-shots::-webkit-scrollbar { display: none; }
  .spot-shots .phone { --w: inherit; flex: none; scroll-snap-align: center; transform: none !important; opacity: 1; }
  .spot-dots { display: flex; gap: 10px; justify-content: center; position: relative; z-index: 1; }
  .spot-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .spot-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(166, 220, 214, .35); transition: width .3s var(--ease), background-color .3s; }
  .spot-dots button[aria-current="true"]::before { width: 22px; background: var(--orange); }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .spot-shots { scroll-behavior: auto; }
}
@media (max-width: 480px) {
  .tier { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; }
  .tier-icon { width: 40px; height: 40px; border-radius: 12px; }
  .tier-icon .i { font-size: 19px; }
  .tier h3 { font-size: 20px; }
}

/* ---------- Memories ---------- */
.memories { background: linear-gradient(180deg, var(--paper), var(--cream)); overflow: hidden; }
.visibility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 4px; }
.vis { padding: 20px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.vis .i { font-size: 22px; color: var(--teal); margin-bottom: 12px; }
.vis strong { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.vis p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 4px; }
@media (max-width: 520px) { .visibility-grid { grid-template-columns: 1fr; } .vis { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; } .vis .i { margin: 2px 0 0; grid-row: span 2; } }

/* ---------- Circle ---------- */
.circle-section { background: var(--paper); overflow: hidden; }
.circle-visual { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; }
.orbit { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--line); }
.orbit-1 { width: 44%; height: 44%; background: var(--mint-soft); border-color: rgba(15,92,94,.14); }
.orbit-2 { width: 72%; height: 72%; }
.orbit-3 { width: 100%; height: 100%; border-style: dashed; }
.circle-core { position: absolute; inset: 0; margin: auto; width: 26%; height: 26%; border-radius: 30%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.circle-core img { width: 72%; height: 72%; border-radius: 24%; }
.person { position: absolute; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--teal); border: 1px solid rgba(15, 92, 94, .16); box-shadow: var(--shadow-s); }
.person .i { font-size: 24px; }
.p-1 { left: 50%; top: 14%; }
.p-2 { left: 86%; top: 50%; }
.p-3 { left: 50%; top: 86%; }
.p-4 { left: 14%; top: 50%; }
.node { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.node .i { font-size: 17px; color: var(--orange-ink); }
.n-1 { left: 22%; top: 12%; }
.n-2 { left: 84%; top: 18%; }
.n-3 { left: 82%; top: 84%; }
.n-4 { left: 18%; top: 86%; }
@media (max-width: 560px) {
  .person { width: 42px; height: 42px; }
  .person .i { font-size: 20px; }
  .node { font-size: 12.5px; padding: 7px 11px 7px 8px; gap: 6px; }
  .node .i { font-size: 15px; }
  .n-1 { left: 24%; top: 9%; }
  .n-2 { left: 78%; top: 15%; }
  .n-3 { left: 76%; top: 88%; }
  .n-4 { left: 22%; top: 91%; }
}

/* ---------- Saved ---------- */
.saved-section { background: linear-gradient(180deg, var(--cream), var(--sand)); overflow: hidden; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.platforms span { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-soft); }

/* ---------- How it works ---------- */
.how { background: var(--paper); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); counter-reset: step; }
.step { position: relative; padding: 30px 26px 28px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; transition: transform .35s var(--ease), box-shadow .35s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--teal); color: #fff; }
.step-icon .i { font-size: 24px; }
.step-num { font-family: var(--font-serif); font-style: italic; font-size: 34px; color: rgba(15, 92, 94, .25); line-height: 1; }
.step h3 { font-size: 21px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Trust / control ---------- */
.trust { background: var(--paper); padding-top: 0; }
.trust-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-l); background: var(--mint-soft); border: 1px solid rgba(15,92,94,.12); }
.trust-list { list-style: none; display: grid; gap: 14px; }
.trust-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.trust-list .i { font-size: 22px; color: var(--teal); margin-top: 3px; justify-self: center; }
.trust-list strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.trust-list p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 900px) { .trust-card { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */
.download { overflow: hidden; text-align: center; }
.download-inner { position: relative; display: grid; justify-items: center; gap: 26px; max-width: 760px; margin-inline: auto; }
.download-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); }
.download .h-section { font-size: clamp(40px, 6vw, 76px); }
.download-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #9fc2bd; }
.download-note .i { font-size: 16px; }
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.download .glow { position: absolute; width: 720px; height: 720px; left: 50%; top: 50%; transform: translate(-50%, -55%); border-radius: 50%; background: radial-gradient(circle, rgba(79,163,160,.3), transparent 60%); pointer-events: none; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
details.qa { border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); transition: background-color .25s; }
details.qa[open] { background: #fff; box-shadow: var(--shadow-s); }
details.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; border-radius: var(--radius); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary .i { font-size: 20px; color: var(--teal); transition: transform .3s var(--ease); flex: none; }
details.qa[open] summary .i { transform: rotate(180deg); }
details.qa .qa-body { padding: 0 22px 22px; color: var(--ink-soft); font-size: 16px; }
details.qa .qa-body p + p { margin-top: 10px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: #a9c4c0; padding-block: 72px 36px; font-size: 15px; }
.site-footer a { text-decoration: none; color: #d4e6e3; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand b { color: #8fd1ca; }
.footer-brand p { margin-top: 14px; max-width: 26em; }
.footer-col h2 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7fbfb8; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #84a5a0; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Inner pages (support / legal) ---------- */
.page-hero { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 5vw, 64px); background: radial-gradient(900px 400px at 85% 0%, rgba(79,163,160,.18), transparent 60%), linear-gradient(180deg, var(--cream), var(--paper)); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px)); }
.page-hero .wrap { display: grid; gap: 20px; max-width: 860px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.045em; }
.page-body { padding-block: 24px clamp(80px, 10vw, 130px); }
.page-body .wrap { max-width: 860px; }
.prose { display: grid; gap: 18px; color: var(--ink-soft); }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 28px; color: var(--ink); }
.prose h3 { font-size: 19px; margin-top: 8px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.link-card { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.link-card .i { font-size: 26px; color: var(--teal); }
.link-card strong { font-size: 18px; letter-spacing: -.015em; color: var(--ink); }
.link-card span { color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

/* Launch placeholders — every one must be resolved before going public */
.verify {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  padding: 18px 20px; border-radius: 16px;
  background: #fff6e8; border: 1.5px dashed #d99a3d; color: #6b4410; font-size: 15px; line-height: 1.5;
}
.verify .i { font-size: 22px; color: #b9731a; margin-top: 1px; }
.verify strong { color: #4f3008; }
.verify-inline { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #fff0d6; border: 1px dashed #d99a3d; color: #6b4410; font-size: .88em; font-weight: 600; }

/* 404 */
.notfound { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; text-align: center; padding-block: 80px; background: radial-gradient(800px 400px at 50% 0%, rgba(79,163,160,.18), transparent 60%), var(--cream); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 60px); }
.notfound .code { font-family: var(--font-serif); font-style: italic; font-size: clamp(90px, 16vw, 180px); line-height: 1; color: rgba(15,92,94,.18); }
.notfound h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.04em; margin: 8px 0 14px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: .001; transform: translateY(18px); } 40% { opacity: 1; } }
.floaty { animation: floaty 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero .reveal { animation: none; }
  .floaty { animation: none; }
  .btn, .tier, .step, .link-card { transition: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer { display: none !important; }
  .dark { background: #fff; color: #000; }
}

/* Inline code in legal/support copy */
.prose code, .verify code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; padding: 1px 6px; border-radius: 6px; background: rgba(15, 92, 94, .08); }
.trust-card .section-head { align-content: center; }

/* Support contact (shown once SUPPORT_EMAIL is set) */
.support-contact { display: grid; gap: 14px; }
.support-contact .btn { width: fit-content; }
.support-note { color: var(--muted); font-size: 15px; }
.prose .btn { text-decoration: none; }
.prose .btn-primary { color: #fff; }

/* ---------- Branded feature illustrations ----------
   Shown instead of screenshots whose restaurant photos have no marketing rights yet
   (see tools/build-index.py). They explain real features; they are not app screens. */
.art-card { width: 100%; max-width: 480px; display: grid; gap: 24px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-l); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.art-head { display: flex; align-items: center; gap: 14px; }
.art-badge { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal); color: #fff; }
.art-badge .i { font-size: 24px; }
.art-badge.orange { background: var(--orange-soft); color: var(--orange-ink); }
.art-head strong { display: block; font-size: 20px; letter-spacing: -.02em; }
.art-head small { display: block; color: var(--muted); font-size: 15px; }
.factor-list, .flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.factor-list li, .flow li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.fi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-soft); color: var(--teal); border: 1px solid rgba(15, 92, 94, .1); }
.fi .i { font-size: 21px; }
.factor-list strong, .flow strong { display: block; font-size: 16.5px; letter-spacing: -.01em; }
.factor-list small, .flow small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.flow { gap: 22px; }
.flow li { align-items: start; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 48px; height: calc(100% - 48px + 18px); border-left: 2px dashed rgba(15, 92, 94, .25); }
.flow .done .fi { background: var(--orange-soft); color: var(--orange-ink); border-color: rgba(185, 80, 31, .2); }
.cuisine-block { padding-top: 20px; border-top: 1px solid var(--line); }
.art-label { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.cuisine-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cuisine-row span { padding: 7px 13px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.cuisine-row .more { background: transparent; border-style: dashed; color: var(--muted); }

/* Spotlight: three distances around "you" */
.distance-art { position: relative; z-index: 1; width: min(90%, 460px); aspect-ratio: 1; }
.d-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(166, 220, 214, .24); }
.d-ring-1 { width: 34%; height: 34%; background: rgba(79, 163, 160, .18); border-color: rgba(166, 220, 214, .5); }
.d-ring-2 { width: 67%; height: 67%; background: rgba(79, 163, 160, .08); }
.d-ring-3 { width: 100%; height: 100%; border-style: dashed; }
.d-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(166, 220, 214, .2), transparent 16%); animation: d-sweep 9s linear infinite; }
@keyframes d-sweep { to { transform: rotate(360deg); } }
.d-you { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(244, 122, 69, .25), 0 0 0 14px rgba(244, 122, 69, .1); }
.d-you b { position: absolute; left: 50%; top: calc(100% + 22px); transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a6dcd6; }
.d-mk { position: absolute; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transform: translate(-50%, -50%); }
.d-mk > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--teal); }
.d-mk .i { font-size: 16px; }
.d-mk-1 { left: 64%; top: 40%; }
.d-mk-1 > span { background: var(--orange-soft); color: var(--orange-ink); }
.d-mk-2 { left: 27%; top: 71%; }
.d-mk-3 { left: 73%; top: 10%; }
@media (max-width: 480px) {
  .d-mk { font-size: 12px; gap: 6px; padding: 5px 11px 5px 5px; }
  .d-mk > span { width: 24px; height: 24px; }
  .d-mk .i { font-size: 14px; }
  .d-mk-3 { left: 70%; }
  .d-mk-2 { left: 30%; }
}
@media (prefers-reduced-motion: reduce) { .d-sweep { animation: none; } }

/* ---------- How DineTrue works: tutorial video ---------- */
.tour { max-width: 340px; margin: 0 auto 56px; text-align: center; }
.tour-frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-l); overflow: hidden; background: var(--teal-950); box-shadow: var(--shadow-l); }
.tour-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--teal-950); }
.tour-play { display: none; }
.js .tour-play { display: grid; place-items: center; position: absolute; left: 50%; top: 72%; transform: translate(-50%, -50%); width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--teal); color: #fff; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(15, 92, 94, .7); transition: transform .2s, background .2s; }
.js .tour-play:hover { background: var(--teal-900); transform: translate(-50%, -50%) scale(1.06); }
.tour-play svg { width: 34px; height: 34px; margin-left: 4px; fill: currentColor; }
.tour-frame.is-started .tour-play { display: none; }
.tour-caption { margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* About page */
.founder-card { display: grid; gap: 12px; margin-top: 18px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(20,35,33,.04); }
.founder-card h3 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.025em; color: var(--ink); }
.founder-card p { color: var(--ink-soft); }
.founder-card .founder-role { font-weight: 700; color: var(--teal); letter-spacing: .01em; }
.company-facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; margin-top: 18px; }
.company-facts > div { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 6px 20px; padding: 16px 22px; border-top: 1px solid var(--line); }
.company-facts > div:first-child { border-top: 0; }
.company-facts dt { font-weight: 700; color: var(--ink); }
.company-facts dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.company-facts a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 560px) { .company-facts > div { grid-template-columns: 1fr; } }
