/* Bernard Review, showcase site. Palette and type from the player's Sombre mode (branding/tokens.json). */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0A0B0D;
  --panel: #0E1013;
  --raised: #16191D;
  --line: #1C2025;
  --border: #2C3137;
  --text: #ECEEF0;
  --text-2: #C9CED4;
  --muted: #8B939C;
  --accent: #8FB0FF;
  --warm: #F2B37A;
  --ok: #7FD6A6;
  --live: #FF4D4D;
  --a: #F0AA3C;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.0; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0; max-width: 64ch; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); }
.muted { color: var(--muted); }

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.brand span { font-weight: 300; color: var(--muted); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav-links a { color: var(--text-2); }
@media (max-width: 860px) { .nav-links { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 6px; font-size: 15px; font-weight: 500; border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sections */
section { padding-block: clamp(64px, 9vw, 120px); }
.hero { padding-block: clamp(40px, 7vw, 90px) 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-side { display: flex; flex-direction: column; gap: 18px; padding-bottom: 6px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.shot { margin-top: clamp(32px, 5vw, 56px); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; }
.caption { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: #5A626B; }

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.grid { display: grid; gap: 28px 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.item { border-top: 1px solid var(--border); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.item p { font-size: 15px; color: var(--muted); }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; padding: 2px 7px; border-radius: 4px; background: #3A2A18; color: var(--warm); }

.steps { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: 8px; }
.step .eyebrow { color: var(--accent); }
.step p { font-size: 15px; color: var(--muted); }

.honest { margin-top: 36px; padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.honest .eyebrow { color: var(--accent); }

.chips { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .chips { grid-template-columns: 1fr; } }
.chip { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
.chip span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border-color: var(--accent); }
.price { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

.cta { margin-top: 12px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--accent); border-radius: 10px; background: var(--panel); display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.cta h2 { font-size: clamp(26px, 3.2vw, 36px); }

/* Footer and legal page */
footer { border-top: 1px solid var(--raised); padding-block: 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-end; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.foot-links a { color: var(--muted); }
.legal { padding-block: 40px 80px; display: flex; flex-direction: column; gap: 28px; }
.legal section { padding-block: 0; display: flex; flex-direction: column; gap: 10px; }
.legal h2 { font-size: 24px; }
.legal dl { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px 20px; font-size: 15px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }

.fig { margin: 0; }
.mt { margin-top: 44px; }
.pt0 { padding-top: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.h1-legal { font-size: clamp(32px, 5vw, 48px); }

/* Language switcher and scripts without Geist glyphs */
.lang { display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; }
.lang a { color: var(--muted); }
.lang a[aria-current="true"] { color: var(--text); }
@media (max-width: 560px) { .nav { flex-wrap: wrap; } .lang { order: 3; width: 100%; } }
:lang(zh) body, body:lang(zh) { font-family: "Geist", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:lang(ja) body, body:lang(ja) { font-family: "Geist", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(ja) h1, :lang(ja) h2 { letter-spacing: 0; line-height: 1.2; }
