/* Ashvale: War Council — site styles. One deliberate night look, matching the game's dark theme and the trailer. */
@font-face { font-family: 'Grenze Gotisch'; src: url('/fonts/grenze-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('/fonts/alegreya-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('/fonts/alegreya-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0d1424;
  --navy: #141d30;
  --panel: #1a2540;
  --panel-2: #212e4d;
  --line: #2c3a5c;
  --ink: #eef2f8;
  --muted: #a3afc6;
  --faint: #6f7c97;
  --gold: #e3aa3a;
  --gold-soft: rgba(227, 170, 58, 0.14);
  --good: #4fbf82;
  --bad: #ef6a55;
  --display: 'Grenze Gotisch', 'UnifrakturMaguntia', Georgia, serif;
  --body: 'Alegreya Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% -120px, #22314f 0%, var(--navy) 45%, var(--night) 100%) var(--night);
  background-attachment: fixed;
  color: var(--ink);
  font: 500 18px/1.6 var(--body);
  min-height: 100vh;
}
img, video, svg { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #f0c264; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
/* Hidden above the page (not off to a side) so it adds no sideways scroll in right-to-left pages. */
.skip { position: absolute; inset-inline-start: 12px; top: 8px; transform: translateY(-300%); background: var(--gold); color: #1a1405; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { transform: none; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(13, 20, 36, 0.72); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 32px; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-text small { font: 700 10.5px/1 var(--body); letter-spacing: 0.34em; color: var(--gold); padding-inline-start: 0.1em; }
.brand-text span { font: 800 23px/1.05 var(--display); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 16px; padding: 6px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.07); }

/* ---------- type ---------- */
.kicker { font: 700 15px/1 var(--body); letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; padding-inline-start: 0.1em; }
h1, h2, h3 { text-wrap: balance; }
h1.display { font: 800 clamp(58px, 11vw, 112px)/0.92 var(--display); margin: 0; letter-spacing: 0.005em; }
h2.section { font: 800 clamp(38px, 6vw, 56px)/1 var(--display); margin: 0 0 12px; }
.lede { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: 34em; margin: 18px 0 0; }
.muted { color: var(--muted); }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }

/* ---------- hero ---------- */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 20px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid rgba(227, 170, 58, 0.45); color: var(--ink); font-weight: 700; font-size: 18px; }
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(227, 170, 58, 0.18); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 16px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }

.phone { justify-self: center; width: min(100%, 300px); border-radius: 44px; padding: 10px; background: #0a0f1c;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1); }
.phone video, .phone img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 34px; background: #0a0f1c; height: auto; }
.phone.tall img { aspect-ratio: 1320 / 2868; }
.caption { text-align: center; color: var(--faint); font-size: 15px; margin: 12px 0 0; }

/* ---------- demo ---------- */
.band { padding-block: 72px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.demo { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .demo { grid-template-columns: 0.9fr 1.1fr; } }
.board { background: linear-gradient(180deg, #172238, #111a2c); border: 1px solid var(--line); border-radius: 28px;
  padding: 22px 18px 20px; max-width: 420px; width: 100%; justify-self: center; position: relative; overflow: hidden; }
.week { display: flex; justify-content: space-between; color: var(--faint); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.meter { text-align: center; position: relative; }
.meter .glyph { font-size: 26px; line-height: 34px; display: block; }
.meter .track { height: 8px; border-radius: 4px; background: #2a3654; overflow: hidden; margin-top: 4px; }
.meter .fill { height: 100%; width: 50%; background: var(--ink); border-radius: 4px; transition: width 0.6s cubic-bezier(.2, .8, .2, 1); }
.meter .delta { position: absolute; left: 0; right: 0; top: -6px; font: 800 17px/1 var(--display); opacity: 0; }
.meter .delta.show { animation: rise 1.3s ease-out forwards; }
@keyframes rise { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }
.prompt { min-height: 5.4em; display: flex; align-items: center; justify-content: center; text-align: center; margin: 18px 4px 14px; font-size: 18px; line-height: 1.45; }
.stage { position: relative; height: 330px; touch-action: pan-y; }
.card { position: absolute; left: 50%; top: 0; width: 280px; height: 300px; margin-left: -140px; border-radius: 22px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5); overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; will-change: transform; }
.card:active { cursor: grabbing; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 35%, rgba(255,255,255,0.22), transparent 70%), linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.25)); }
.card::after { content: ""; position: absolute; inset: 11px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 14px; }
.card svg { position: absolute; left: 50%; top: 44%; width: 190px; height: 190px; transform: translate(-50%, -50%); }
.card .who { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font: 800 25px/1 var(--display); color: var(--ink); }
.card .label { position: absolute; top: 0; left: 0; right: 0; padding: 16px 22px 18px; background: rgba(0, 0, 0, 0.62);
  font: 800 23px/1.1 var(--display); color: #fff; opacity: 0; z-index: 1; }
.role { text-align: center; color: var(--muted); font-size: 15px; margin: 6px 0 0; min-height: 1.5em; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.btn { font: 700 16px/1.2 var(--body); color: var(--ink); background: rgba(255, 255, 255, 0.06); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px 12px; cursor: pointer; }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--gold); color: #1a1405; border-color: var(--gold); }
.done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px;
  background: rgba(13, 20, 36, 0.94); }
.done[hidden] { display: none; }
.done strong { font: 800 34px/1.05 var(--display); }
.hint { color: var(--faint); font-size: 14px; text-align: center; margin: 12px 0 0; }

/* ---------- features ---------- */
.features { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 680px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 22px 22px 20px; border-radius: 20px; background: rgba(26, 37, 64, 0.55); border: 1px solid rgba(255, 255, 255, 0.06); }
.feature h3 { font: 800 27px/1.05 var(--display); margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 17px; }
.feature .num { font: 800 15px/1 var(--body); color: var(--gold); letter-spacing: 0.08em; display: block; margin-bottom: 10px; }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 230px); gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 8px 20px 18px; margin: 28px -20px 0; scrollbar-width: thin; }
.shots figure { margin: 0; scroll-snap-align: center; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 1320 / 2868; border-radius: 26px; border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4); background: var(--panel); }
.shots figcaption { color: var(--muted); font-size: 15px; text-align: center; margin-top: 10px; }

/* ---------- closing ---------- */
.closing { text-align: center; padding-block: 80px 64px; }
.closing .crest { width: 120px; height: 100px; }
.closing p { color: var(--muted); max-width: 32em; margin: 12px auto 0; }

/* ---------- prose pages ---------- */
.page { padding-block: 48px 72px; }
.prose { max-width: 700px; }
.prose h1 { font: 800 clamp(48px, 8vw, 72px)/1 var(--display); margin: 0 0 8px; }
.prose h2 { font: 800 30px/1.1 var(--display); margin: 40px 0 8px; }
.prose p, .prose li { color: #d6dcea; }
.prose ul { padding-inline-start: 22px; }
.prose li + li { margin-top: 6px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-top: 24px; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mail { font: 700 clamp(20px, 3.4vw, 26px)/1.2 var(--body); color: var(--gold); text-decoration: none; overflow-wrap: anywhere; }
.copy-note { color: var(--good); font-size: 15px; min-height: 1.2em; margin: 8px 0 0; }
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; padding-block: 14px; padding-inline: 0 32px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 10px; font: 700 24px/1 var(--body); color: var(--gold); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; }
.effective { color: var(--faint); font-size: 16px; margin: 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-block: 36px 48px; color: var(--muted); font-size: 16px; }
.foot .wrap { display: grid; gap: 18px; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.foot nav a:hover { color: var(--ink); }
.credit { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; font-weight: 700; }
.credit:hover { color: var(--ink); }
.credit svg { width: 22px; height: 22px; }
.fine { color: var(--faint); font-size: 14px; margin: 0; }

/* ---------- small phones: keep the header on one row ---------- */
.brand-text span { white-space: nowrap; }
@media (max-width: 520px) {
  .bar .wrap { padding-block: 10px; gap: 10px; }
  .brand svg { width: 32px; height: 27px; }
  .brand-text span { font-size: 21px; }
  .nav a { padding: 6px 9px; font-size: 15px; }
  .nav a[href$="#game"], .nav a[href$="/privacy"]:not([aria-current]) { display: none; }
}

/* ---------- language switch ---------- */
.nav a.lang { border: 1px solid var(--line); }

/* ---------- Hebrew: the game's own Hebrew faces, and no letter-spacing (it breaks Hebrew letterforms) ---------- */
@font-face { font-family: 'Amatic SC'; src: url('/fonts/amatic-700.woff2') format('woff2'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
html[lang="he"] { --display: 'Amatic SC', 'Rubik', system-ui, sans-serif; --body: 'Rubik', 'Segoe UI', system-ui, -apple-system, sans-serif; }
html[lang="he"] body { font-weight: 400; font-size: 17px; }
html[lang="he"] .kicker, html[lang="he"] .brand-text small, html[lang="he"] .eyebrow, html[lang="he"] .feature .num { letter-spacing: 0; }
html[lang="he"] .brand-text small { font-size: 12px; }
html[lang="he"] .kicker { font-size: 18px; }
html[lang="he"] .brand-text span { font-size: 28px; line-height: 1; }
html[lang="he"] h1.display { font-size: clamp(76px, 15vw, 140px); line-height: 0.95; }
html[lang="he"] h2.section { font-size: clamp(48px, 8vw, 70px); }
html[lang="he"] .prose h1 { font-size: clamp(60px, 10vw, 88px); }
html[lang="he"] .prose h2 { font-size: 38px; }
html[lang="he"] .feature h3 { font-size: 36px; }
html[lang="he"] .card .who, html[lang="he"] .card .label { font-size: 30px; }
html[lang="he"] .done strong { font-size: 44px; }
html[lang="he"] .meter .delta { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 15px; }
@media (max-width: 520px) { html[lang="he"] .brand-text span { font-size: 26px; } }
