/* TourIts website. Tokens mirror scripts/graphics/lib/tokens.js and src/constants/theme.ts. */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/BricolageGrotesque-800.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Inter-400.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/Inter-600.ttf') format('truetype'); }

:root {
  --ink: #14213D;
  --sand: #F4EFE6;
  --sand-deep: #EBE4D6;
  --line: #E2D9C9;
  --paper: #FFFFFF;
  --night: #0E1320;
  --coral: #FF5A36;
  --coral-deep: #CC3A14;
  --teal: #1F7A6D;
  --sun: #FFC53D;
  --muted: #625E57;

  --bg: var(--sand);
  --surface: var(--paper);
  --surface-alt: var(--sand-deep);
  --text: var(--ink);
  --text-muted: var(--muted);
  --link: var(--coral-deep);
  --border: var(--line);
  --button-bg: var(--coral-deep);
  --button-fg: #FFFFFF;
  --note-bg: #FFF1CC;
  --note-fg: #5A3D06;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --surface: #182033;
    --surface-alt: #1D2740;
    --text: var(--sand);
    --text-muted: #B9B3A8;
    --link: #FF7A5C;
    --border: #2B3550;
    --button-bg: var(--coral-deep);
    --button-fg: #FFFFFF;
    --note-bg: #2E2715;
    --note-fg: #F5DFA6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.overline { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin-bottom: 0.75em; }
.overline a { text-decoration: none; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 40em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { width: 120px; height: auto; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: 10px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: var(--surface-alt); }

/* Buttons and badge */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--button-bg); color: var(--button-fg); font-weight: 600; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: var(--sand); font-weight: 600; line-height: 1.1; }
.badge svg { width: 22px; height: 22px; fill: currentColor; }
.badge small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.85; }
@media (prefers-color-scheme: dark) { .badge { background: var(--sand); color: var(--ink); } }

/* Hero */
.hero { padding: 48px 0 32px; background: linear-gradient(100deg, #F7E4D6 0%, var(--sand) 45%, #E4EFEA 80%, #FBEFD2 100%); }
@media (prefers-color-scheme: dark) { .hero { background: linear-gradient(100deg, #1A1A26 0%, var(--night) 50%, #122024 100%); } }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero-shot { justify-self: center; max-width: 300px; }
.hero-shot img { border-radius: 28px; box-shadow: 0 24px 60px rgba(20, 33, 61, 0.22); }
@media (min-width: 860px) {
  .hero { padding: 80px 0 64px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
}

/* Sections */
.section { padding: 64px 0; }
.section-title { margin-bottom: 28px; }
.section-ink { background: var(--ink); color: var(--sand); }
@media (prefers-color-scheme: dark) { .section-ink { background: #0A0F1A; } }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin-bottom: 4px; }
.feature-title { font-weight: 600; margin-bottom: 6px; }
.feature p:last-child { color: var(--text-muted); margin: 0; font-size: 0.97rem; }
.feature-icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #FFE3DA; fill: var(--coral-deep); margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .feature-icon { background: #3A1E17; fill: #FF7A5C; } }

.shots { list-style: none; margin: 0; padding: 4px 0 16px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.shots li { flex: 0 0 auto; width: min(70vw, 260px); scroll-snap-align: start; }
.shots img { border-radius: 20px; display: block; }

/* Documents (legal, support) */
.doc { padding-top: 40px; padding-bottom: 64px; max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.doc section { margin-top: 36px; scroll-margin-top: 84px; }
.doc section h2 { font-size: 1.35rem; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.35em; }
.updated { color: var(--text-muted); font-size: 0.95rem; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.summary p:last-child, .note p:last-child { margin: 0; }
.note { background: var(--note-bg); color: var(--note-fg); border-radius: 12px; padding: 14px 18px; font-size: 0.9rem; margin: 16px 0; }
.toc { background: var(--surface-alt); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.toc h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.toc ol, .toc ul { margin: 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-list { list-style: none; padding: 0 !important; }
.topic-list { columns: 2 220px; list-style: none; padding: 0 !important; }
.back { margin-top: 40px; color: var(--text-muted); }
.steps li { margin-bottom: 0.6em; }

.link-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.link-list a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; text-decoration: none; color: var(--text); }
.link-list a:hover { border-color: var(--link); }
.link-list strong { display: block; color: var(--link); }
.link-list span { color: var(--text-muted); font-size: 0.95rem; }

.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 24px 0; }
.contact-card h2 { font-size: 1.25rem; }
.faq-group > h2 { margin-bottom: 4px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 10px 0; scroll-margin-top: 84px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
summary:hover { color: var(--link); }
.answer { padding: 0 18px 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--sand); padding: 48px 0 24px; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0A0F1A; border-top: 1px solid var(--border); } }
.site-footer a { color: #FFB19E; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-mark { width: 48px; height: 48px; }
.footer-tag { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin: 10px 0; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.legal-line { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(244, 239, 230, 0.15); font-size: 0.9rem; opacity: 0.8; }
.legal-line p { margin: 0; }

@media (max-width: 420px) {
  .brand img { width: 100px; }
  .site-header nav a { padding: 8px 6px; font-size: 0.9rem; }
}
