/* Huurre Studio — shared styles
   Palette: frost paper, night ink, one cold-blue accent. Deep Signal
   sections switch to the game's own night/cyan palette. */

:root {
  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --ink: #0C1624;
  --ink-2: #46546A;       /* ≥ 7:1 on --bg */
  --line: #DCE3EA;
  --accent: #1B6A9E;      /* links & focus, ≥ 5.5:1 on --bg */
  --frost: #BFE3F5;
  --frost-ink: #0C1624;

  --ds-bg: #060D1A;       /* Deep Signal palette */
  --ds-ink: #EAF4F1;
  --ds-dim: rgba(234, 244, 241, 0.74);
  --ds-cyan: #2EC8FF;

  --radius: 14px;
  --wrap: 1120px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A111B;
    --surface: #111A26;
    --ink: #EEF4F8;
    --ink-2: #A2B0BF;
    --line: #1F2B3A;
    --accent: #8FD0F2;
    --frost: #BFE3F5;
    --frost-ink: #0A111B;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.brand svg { width: 30px; height: 30px; }
.brand span { font-weight: 500; color: var(--ink-2); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: var(--line); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav { flex-wrap: nowrap; }
@media (max-width: 560px) { .brand span { display: none; } .nav { gap: 0; } .nav a { padding: 10px 7px; font-size: 14px; white-space: nowrap; } }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero-art { order: -1; max-width: 300px; } }

.definition {
  border-left: 2px solid var(--frost);
  padding: 2px 0 2px 16px; margin-bottom: 32px; max-width: 30em;
}
.definition .term { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.definition .term em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.definition p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 4px 0 0; }

.hero-art { color: var(--ink); }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art .twig { stroke: currentColor; }
.hero-art .needle { stroke: var(--accent); stroke-dasharray: 120; stroke-dashoffset: 120; animation: grow 1.4s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-art .needle:nth-of-type(2) { animation-delay: .15s; }
.hero-art .needle:nth-of-type(3) { animation-delay: .3s; }
.hero-art .needle:nth-of-type(4) { animation-delay: .45s; }
.hero-art .needle:nth-of-type(5) { animation-delay: .6s; }
.hero-art .needle:nth-of-type(6) { animation-delay: .75s; }
.hero-art .crystal { fill: var(--accent); opacity: 0; animation: appear .8s ease-out 1.4s forwards; }
@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art .needle { animation: none; stroke-dashoffset: 0; }
  .hero-art .crystal { animation: none; opacity: .55; }
}

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
section.flush-top { padding-top: 0; }
.ds .ds-title { margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Deep Signal feature (always the game's dark palette) ---------- */
.ds {
  background: var(--ds-bg); color: var(--ds-ink);
  border-radius: 24px; overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center;
  padding: clamp(28px, 5vw, 64px);
  isolation: isolate;
}
.ds::before { /* faint grid like the game's arena */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(46,200,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(46,200,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 75%);
}
@media (max-width: 860px) { .ds { grid-template-columns: 1fr; } }
.ds .eyebrow { color: var(--ds-cyan); }
.ds h2, .ds h1, .ds .ds-title { font-family: "Space Grotesk", var(--font); text-transform: uppercase; letter-spacing: -0.02em; line-height: .95; font-size: clamp(44px, 6vw, 80px); }
.ds p { color: var(--ds-dim); max-width: 32em; }
.ds a { color: var(--ds-cyan); }
.trace { width: 180px; height: 22px; margin: 4px 0 22px; color: var(--ds-cyan); }
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid rgba(234,244,241,.18); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ds-ink); }
.ds .btn-primary { background: var(--ds-cyan); color: #03131F; }
.ds .btn-primary:hover { background: #7fdcff; color: #03131F; }
.ds .btn-ghost { border-color: rgba(234,244,241,.25); color: var(--ds-ink); }
.ds .btn-ghost:hover { border-color: var(--ds-ink); }
.ds :focus-visible { outline-color: var(--ds-cyan); }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px;
  border-radius: 12px; border: 1.5px solid rgba(234,244,241,.25); color: var(--ds-ink); font-weight: 700; font-size: 15px;
}
.badge-soon svg { width: 20px; height: 20px; }
.badge-soon small { display: block; font-weight: 500; font-size: 12px; color: var(--ds-dim); line-height: 1.2; }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 2vw, 20px); padding: 8px 0; }
.phone {
  width: 31%; max-width: 230px; border-radius: 28px; padding: 6px;
  background: #1a2233; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone img { border-radius: 23px; aspect-ratio: 1170 / 2532; object-fit: cover; }
.phone:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 480px) { .phone { border-radius: 18px; padding: 4px; } .phone img { border-radius: 15px; } }

/* ---------- principles ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .num { font-weight: 800; font-size: 14px; color: var(--accent); letter-spacing: .08em; margin-bottom: 18px; display: block; }
.card p { color: var(--ink-2); margin: 0; }

/* ---------- long-form documents (privacy, support) ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0 96px; }
.doc .wrap { max-width: 720px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.side { position: sticky; top: 24px; align-self: start; }
.side > p { font-weight: 700; margin-bottom: 8px; }
@media (max-width: 860px) { .toc, .side { position: static; } }
.prose { max-width: 42em; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); }
.prose h2 { font-size: 26px; margin-top: 2.2em; scroll-margin-top: 24px; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0 1.5em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; }
.prose .meta { color: var(--ink-2); font-size: 15px; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 1.2em 0; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 18px 36px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 15px; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* Placeholders the owner must fill in before publishing */
mark.todo { background: #FFE58A; color: #3A2E00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

.page-top { padding-top: clamp(24px, 4vw, 48px); }
.small-print { margin-top: 28px; color: var(--ink-2); font-size: 15px; }
.card h3 { margin-bottom: .3em; }

.email-btn { margin: 0 0 40px; }
