/* TalentFesto website. One file, no framework, no shadows, one accent (the app's
   --accent #6624F1). Dark values follow the app's own canvas (#0A0320). Tokens come
   from apps/ios_app/Sources/Theme/Theme.swift (see web/site/FACTS.md, "Design"). */

:root {
  --bg: #ffffff;
  --surface: #f6f4fb;
  --ink: #150f2e;
  --muted: #595370;
  --line: #e3dfee;
  --accent: #6624f1;       /* fills: buttons, rules */
  --accent-ink: #6624f1;   /* the accent used as text/links */
  --on-accent: #ffffff;
  --radius: 6px;
  --gutter: 20px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0320;
    --surface: #140a2e;
    --ink: #f5f3fa;
    --muted: #b4afc7;
    --line: #2b2246;
    --accent-ink: #a58bff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

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

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: var(--radius); z-index: 10;
}
.skip:focus { top: 8px; }

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

/* ── header / footer ─────────────────────────────── */
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 50%; display: block; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.site-header nav a:hover { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 40px; color: var(--muted); font-size: 0.875rem; }
.site-footer .cols { display: grid; gap: 24px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer h2 { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
.site-footer p { margin: 0 0 6px; }

/* ── type ────────────────────────────────────────── */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }
.eyebrow { margin: 0 0 14px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.lead { font-size: clamp(1.0625rem, 2.4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 40rem; }
.fine { font-size: 0.875rem; color: var(--muted); }

/* ── landing ─────────────────────────────────────── */
.hero { padding: clamp(40px, 9vw, 96px) 0 clamp(32px, 6vw, 56px); }
.hero h1 { max-width: 14ch; margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 20px 8px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; line-height: 1.2; font-weight: 600; font-size: 1.0625rem;
}
.store small { display: block; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.store.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.store.primary:hover { filter: brightness(1.08); }
.store.off { color: var(--muted); border-style: dashed; }

.talents { border-block: 1px solid var(--line); background: var(--surface); }
.talents ul { list-style: none; margin: 0; padding: 14px var(--gutter); display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; font-weight: 500; font-size: 0.9375rem; color: var(--muted); }

.features { padding: clamp(40px, 7vw, 72px) 0 0; display: grid; gap: 0 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.feature { border-top: 1px solid var(--line); padding: 22px 0 28px; }
.feature .icon { color: var(--accent-ink); margin-bottom: 14px; }
.feature h2 { font-size: 1.125rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

.trust { margin-top: clamp(32px, 6vw, 56px); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.trust h2 { font-size: 1.125rem; margin-bottom: 6px; }
.trust p { margin: 0 0 8px; color: var(--muted); }
.trust ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.trust li a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.trust li .icon { width: 18px; height: 18px; }

/* ── legal / document pages ──────────────────────── */
.doc { max-width: 46rem; padding: clamp(32px, 6vw, 64px) 0 0; }
.doc h1 { font-size: clamp(1.875rem, 4.6vw, 2.5rem); margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 0.9375rem; margin-bottom: 28px; }
.doc h2 { margin: 2.4em 0 0.6em; padding-top: 1.4em; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.doc h2:first-of-type { margin-top: 1.6em; }
.doc h3 { margin: 1.6em 0 0.4em; }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--muted); }
.doc strong { font-weight: 600; }

.toc { margin: 0 0 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9375rem; }
.toc p { margin: 0 0 6px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.25em; columns: 2 14rem; column-gap: 24px; }
.toc li { margin: 0 0 2px; break-inside: avoid; }

.note { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; margin: 0 0 1.4em; }
.note > :last-child { margin-bottom: 0; }
.note ul { margin-top: 0.5em; }

dl.rows { margin: 0 0 1.2em; border-top: 1px solid var(--line); }
dl.rows > div { display: grid; gap: 4px 28px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.rows dt { font-weight: 600; }
dl.rows dd { margin: 0; color: var(--muted); }
dl.rows dd a { font-weight: 500; }
@media (min-width: 40rem) {
  dl.rows > div { grid-template-columns: 12.5rem 1fr; }
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.2em; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0 2.4em; margin-bottom: 0.9em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05em;
  width: 1.7em; height: 1.7em; display: grid; place-items: center;
  border: 1px solid var(--accent-ink); border-radius: 50%;
  color: var(--accent-ink); font-size: 0.8125rem; font-weight: 600; line-height: 1;
}

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-ink); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
details[open] summary::after { content: "\2212"; }
details > :not(summary) { margin-top: 10px; color: var(--muted); }
details > p:last-child { margin-bottom: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 10px 20px; border-radius: var(--radius);
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent-ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent-ink); filter: none; }
.btn .icon { width: 20px; height: 20px; }

/* ── share page ──────────────────────────────────── */
.share { display: grid; place-items: center; padding: clamp(32px, 8vw, 80px) 0 0; }
.share-card { width: 100%; max-width: 27rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px 24px; text-align: center; }
.share-mark { border-radius: 50%; display: block; margin: 0 auto 16px; }
.share-card h1 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.share-card .sub { color: var(--muted); margin-bottom: 20px; }
.share-card .actions { justify-content: center; margin: 0 0 16px; }
.share-card .stores { justify-content: center; margin: 18px 0 0; }
.share-card .store { min-height: 48px; font-size: 1rem; }
.hint { font-size: 0.875rem; color: var(--muted); margin: 14px 0 0; }
.preview { display: grid; justify-items: center; gap: 6px; margin-bottom: 18px; }
.preview[hidden], .hint[hidden], [hidden] { display: none !important; }
.avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--surface); }
.preview .name { font-weight: 600; font-size: 1.125rem; line-height: 1.25; overflow-wrap: anywhere; }
.preview .handle { color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
.preview .badge { display: inline-block; border: 1px solid var(--accent-ink); color: var(--accent-ink); border-radius: 3px; padding: 0 6px; font-size: 0.75rem; font-weight: 600; }
.preview .text { color: var(--ink); max-width: 100%; overflow-wrap: anywhere; margin: 6px 0 0; }
.preview .cover { width: 100%; max-height: 14rem; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }

/* ── 404 ─────────────────────────────────────────── */
.lost { padding: clamp(48px, 12vw, 120px) 0 0; }
.lost h1 { margin-bottom: 14px; }

@media (max-width: 30rem) {
  .site-header nav a:first-child { display: none; }  /* Guidelines stay one tap away in the footer */
  .store { width: 100%; }
}

@media print {
  .site-header nav, .stores, .site-footer { display: none; }
}
