/* Valet — site styles. Colours follow the app's src/theme.ts. No web fonts:
   system serif for headings, system sans for text, so nothing shifts on load. */

:root {
  color-scheme: dark light;

  /* Dark is the brand default (the app is dark-only). */
  --bg: #050505;
  --surface: #0d0d0d;
  --surface-raised: #161616;
  --border: #1e1e1e;
  --border-strong: #2a2a2a;
  --gold: #c9a24e;          /* fills, rules, icons */
  --gold-text: #c9a24e;     /* gold used as text */
  --gold-soft: #c7a97a;
  --gold-fill: rgba(201, 162, 78, 0.12);
  --on-gold: #050505;
  --text: #f3f4f6;
  --muted: #9ca3af;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f4ec;
    --surface: #ffffff;
    --surface-raised: #efebe1;
    --border: #e4ded0;
    --border-strong: #cfc7b4;
    --gold: #c9a24e;
    --gold-text: #7a5c17;
    --gold-soft: #7a5c17;
    --gold-fill: rgba(201, 162, 78, 0.16);
    --on-gold: #17150f;
    --text: #17150f;
    --muted: #4a4740;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--gold-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-gold); padding: 0.6rem 1rem; z-index: 10; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

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

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; gap: clamp(0.75rem, 3vw, 1.5rem); font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 0.5rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 30rem) { .site-nav .nav-optional { display: none; } }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #d6b264; text-decoration: none; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.badge { display: inline-block; padding: 0.35rem 0.9rem; border: 1px solid var(--border-strong); border-radius: 1.2rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.badge .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 0.45rem; vertical-align: 0.08em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

/* ── Phone mock (drawn in CSS, always dark like the app) ────────────────── */
.phone {
  --p-bg: #050505; --p-card: #0d0d0d; --p-raised: #161616; --p-line: #1e1e1e;
  --p-text: #f3f4f6; --p-muted: #a1a1aa; --p-gold: #c9a24e;
  width: min(100%, 320px); aspect-ratio: 9 / 17.5; margin: 0 auto;
  background: var(--p-bg); color: var(--p-text);
  border: 10px solid #1a1a1a; border-radius: 44px;
  box-shadow: 0 0 0 1px #2e2e2e, 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  padding: 2.2rem 0.85rem 1rem; position: relative; overflow: hidden;
  font-size: 0.8rem; line-height: 1.35;
}
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; background: #000; border-radius: 999px; }
.phone .p-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0.4rem 0.2rem 0.7rem; }
.phone .p-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.phone .p-date { color: var(--p-muted); font-size: 0.72rem; }
.phone .p-weather { display: flex; gap: 0.35rem; margin-bottom: 0.7rem; }
.phone .p-hour { flex: 1; text-align: center; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 10px; padding: 0.35rem 0; font-size: 0.68rem; color: var(--p-muted); }
.phone .p-hour b { display: block; color: var(--p-text); font-size: 0.8rem; font-weight: 600; }
.phone .p-card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 14px; padding: 0.7rem 0.75rem; margin-bottom: 0.6rem; }
.phone .p-block { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.68rem; color: var(--p-gold); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 0.15rem; }
.phone .p-block span:last-child { color: var(--p-muted); letter-spacing: 0.02em; text-transform: none; font-weight: 500; }
.phone .p-why { color: var(--p-muted); font-size: 0.7rem; margin: 0 0 0.45rem; }
.phone ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.phone li { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.phone li span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone .sw { width: 18px; height: 18px; border-radius: 5px; flex: none; border: 1px solid rgba(255, 255, 255, 0.12); }
.phone .p-actions { display: flex; gap: 0.4rem; margin-top: 0.55rem; }
.phone .p-btn { flex: 1; text-align: center; border-radius: 999px; padding: 0.3rem 0; font-size: 0.7rem; font-weight: 600; border: 1px solid #2a2a2a; color: var(--p-text); }
.phone .p-btn.gold { background: var(--p-gold); color: #050505; border-color: var(--p-gold); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--border); }
.eyebrow { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.75rem; }
.section-intro { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-intro p { color: var(--muted); }

.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-fill); display: grid; place-items: center; margin-bottom: 1rem; }
.feature .icon svg { width: 24px; height: 24px; stroke: var(--gold-text); }
.feature p { color: var(--muted); margin: 0; }
.feature .fine { font-size: 0.875rem; margin-top: 0.75rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.steps li { counter-increment: step; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-text); font-family: var(--serif); font-size: 1.1rem; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

.split { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.checks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; color: var(--muted); }
.checks li strong { color: var(--text); font-weight: 600; }
.checks svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; stroke: var(--gold-text); }

.next { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 1.5rem; }
.next p { color: var(--muted); }
.next p:last-child { margin-bottom: 0; }

.cta { text-align: center; }
.cta .card { background: linear-gradient(180deg, var(--gold-fill), transparent 70%), var(--surface); border: 1px solid var(--border-strong); border-radius: 24px; padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem); max-width: 46rem; margin: 0 auto; }
.cta p { color: var(--muted); max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 0.75rem; }
.cta .small { font-size: 0.9rem; margin-top: 1.25rem; margin-bottom: 0; }

/* ── Long-form pages (legal, disclosure, contact) ───────────────────────── */
.doc { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem); }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
.doc h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin-top: 2.25em; }
.doc .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.25rem; margin: 0 0 1em; }
.doc li { margin-bottom: 0.6em; }
.doc li::marker { color: var(--gold-text); }
.doc .summary { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 10px; padding: 1.1rem 1.25rem; }
.doc .summary p:last-child { margin-bottom: 0; }
.doc .contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.doc .contact-card .label { margin-bottom: 0.35rem; color: var(--muted); }
.doc .contact-card a { font-size: clamp(1.05rem, 4vw, 1.25rem); font-weight: 600; overflow-wrap: anywhere; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 3rem; font-size: 0.925rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a, .site-footer a { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
}
