/* Học Viện Cờ Tướng — website styles.
   Palette follows assets/branding in the app: cream, vermilion and gold. */

@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/be-vietnam-pro-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/be-vietnam-pro-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/be-vietnam-pro-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/be-vietnam-pro-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --bg-alt: #eee6d8;
  --surface: #fffdf8;
  --ink: #241c17;
  --ink-soft: #463b33;
  --muted: #675b51;
  --line: #e3d7c7;
  --line-strong: #cbbba7;
  --brand: #b3261e;
  --brand-hover: #921f18;
  --brand-text: #b3261e;
  --brand-soft: #f9e2dd;
  --on-brand: #fffdf8;
  --gold: #b88a44;
  --gold-text: #6b4d22;
  --gold-soft: #f3e5c6;
  --panel-from: #c63b30;
  --panel-to: #8e1d17;
  --panel-line: rgba(240, 205, 140, .5);
  --night: #1f1814;
  --night-ink: #f4efe6;
  --night-muted: #cbbfae;
  --header-bg: rgba(245, 241, 232, .84);
  --shadow-sm: 0 1px 2px rgba(36, 28, 23, .05), 0 2px 6px rgba(36, 28, 23, .05);
  --shadow-md: 0 18px 40px -22px rgba(58, 32, 30, .4);
  --shadow-lg: 0 40px 80px -32px rgba(58, 32, 30, .55);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
  --gutter: 24px;
  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121316;
    --bg-alt: #17191d;
    --surface: #1d2025;
    --ink: #f4efe6;
    --ink-soft: #dad2c6;
    --muted: #aba399;
    --line: #2c3037;
    --line-strong: #444952;
    --brand: #c2392e;
    --brand-hover: #d34c40;
    --brand-text: #f2a096;
    --brand-soft: #3b1714;
    --gold: #d6a85c;
    --gold-text: #e2bb78;
    --gold-soft: #33281a;
    --panel-from: #a83027;
    --panel-to: #5e1410;
    --panel-line: rgba(214, 168, 92, .42);
    --night: #1d2025;
    --header-bg: rgba(18, 19, 22, .82);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 18px 40px -22px rgba(0, 0, 0, .7);
    --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, .8);
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--bg-alt); }
.section-tight { padding-block: clamp(56px, 7vw, 88px); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-text); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.section-head { display: grid; gap: 16px; max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.is-center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2, .heading-lg { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.section-head p:not(.eyebrow), .text-muted { color: var(--muted); font-size: 1.0625rem; }

.diamond { width: 8px; height: 8px; flex: none; background: var(--gold); transform: rotate(45deg); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-text); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Buttons */

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center; background: none; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.button .icon { width: 18px; height: 18px; }
.button-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 12px 24px -14px rgba(179, 38, 30, .8); }
.button-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.button-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); }
.button-light { background: var(--night-ink); color: #1f1814; }
.button-light:hover { background: #fff; transform: translateY(-1px); }
.button-outline-light { border-color: rgba(244, 239, 230, .32); color: var(--night-ink); }
.button-outline-light:hover { border-color: rgba(244, 239, 230, .8); }
.button-sm { min-height: 44px; padding: 10px 18px; font-size: .9rem; }

/* Header */

.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(36, 28, 23, .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1.15; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand-text { display: grid; gap: 3px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .18em; line-height: 1.3; }
.brand-text strong { color: var(--ink); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-size: .92rem; font-weight: 500; text-decoration: none; transition: background-color .15s, color .15s; }
.main-nav a:hover { background: var(--surface); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brand-text); }
.main-nav .nav-cta { display: inline-flex; align-items: center; gap: 9px; margin-left: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.main-nav .nav-cta:hover { border-color: var(--ink); }
.status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.menu-toggle { display: none; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: .9rem; font-weight: 600; }
.menu-icon { position: relative; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: background-color .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

/* Hero */

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(40px, 6vw, 88px); padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 112px); }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: .85rem; font-weight: 500; }
.hero h1 { margin-top: 28px; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.14; letter-spacing: -.035em; }
.hero h1 em { display: block; color: var(--brand-text); font-style: normal; }
.hero-lead { max-width: 34rem; margin-top: 24px; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; }

.hero-stage { position: relative; display: grid; place-items: center; padding-block: 48px; isolation: isolate; }
.stage-panel { position: absolute; inset: 8% 4%; z-index: -1; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(120% 90% at 25% 10%, var(--panel-from), var(--panel-to)); box-shadow: var(--shadow-lg); }
.board-grid { position: absolute; color: var(--panel-line); fill: none; stroke: currentColor; stroke-width: .035; }
.stage-panel .board-grid { inset: -4% -12%; width: 124%; height: 108%; }

.phone { position: relative; width: min(290px, 100%); padding: 9px; border-radius: 44px; background: #16120f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow-lg); }
.phone img { width: 100%; aspect-ratio: 600 / 1218; border-radius: 35px; object-fit: cover; background: #f5f1e8; }
.hero-stage .phone { width: min(290px, 62%); transform: rotate(2.5deg); }

.float-piece { position: absolute; width: 88px; height: 88px; filter: drop-shadow(0 16px 18px rgba(40, 18, 14, .35)); animation: bob 7s ease-in-out infinite; }
.float-piece.is-red { top: 2%; left: 3%; }
.float-piece.is-black { right: 1%; bottom: 4%; width: 100px; height: 100px; animation-delay: -3s; }
.float-piece.is-cannon { top: 30%; right: -1%; width: 64px; height: 64px; animation-delay: -5s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-10px) rotate(4deg); } }

.stage-card { position: absolute; left: 0; bottom: 17%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-md); }
.stage-card .icon-badge { width: 42px; height: 42px; border-radius: 12px; }
.stage-card .icon-badge .icon { width: 22px; height: 22px; }
.stage-card small { display: block; color: var(--muted); font-size: .75rem; }
.stage-card strong { display: block; font-size: .95rem; font-weight: 600; }

/* Strip */

.strip { background: var(--night); color: var(--night-ink); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 22px; }
.strip-words { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 1.05rem; font-weight: 600; }
.strip p { color: var(--night-muted); font-size: .92rem; }

/* Areas */

.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.area { display: grid; align-content: start; gap: 14px; padding: clamp(26px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s; }
.area:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.area-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.area-index { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .12em; }
.area h3 { font-size: 1.5rem; }
.area-kicker { color: var(--brand-text); font-size: .95rem; font-weight: 600; }
.area > p:not(.area-kicker) { color: var(--muted); }
.icon-badge { display: grid; flex: none; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-text); }
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge.is-gold { background: var(--gold-soft); color: var(--gold-text); }

.check-list { display: grid; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); font-size: .96rem; }
.check-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .62em; background: var(--gold); transform: rotate(45deg); }

/* Gallery */

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); align-items: start; }
.shot { display: grid; justify-items: center; gap: 24px; text-align: center; }
.shot:nth-child(2) { margin-top: 56px; }
.shot .phone { padding-bottom: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); }
.shot .phone img { aspect-ratio: 600 / 980; object-position: top; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
.shot figcaption { margin-top: -36px; }
.shot figcaption strong { display: block; font-size: 1.1rem; font-weight: 600; }
.shot figcaption span { color: var(--muted); font-size: .94rem; }
.gallery-note { margin-top: 48px; color: var(--muted); font-size: .86rem; text-align: center; }

/* Steps */

.learn { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.learn-intro { position: sticky; top: calc(var(--header-h) + 40px); display: grid; justify-items: start; gap: 18px; }
.learn-intro .piece-accent { width: 76px; height: 76px; margin-bottom: 8px; filter: drop-shadow(0 12px 14px rgba(40, 18, 14, .25)); }
.steps { display: grid; }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; padding-bottom: 44px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 64px; bottom: 8px; left: 27px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 12px); }
.step-num, .numbered > li::before { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--brand); border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--gold); color: var(--brand-text); font-size: 1.05rem; font-weight: 700; }
.step h3 { margin: 12px 0 8px; font-size: 1.25rem; }
.step p { color: var(--muted); }

/* Trust */

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trust-item { display: grid; align-content: start; gap: 12px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust-item .icon-badge { width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; }
.trust-item h3 { font-size: 1.12rem; }
.trust-item p { color: var(--muted); font-size: .96rem; }
.trust-more { margin-top: 32px; text-align: center; }

/* Release */

.release { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; gap: 40px; padding: clamp(36px, 6vw, 72px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-lg); background: var(--night); color: var(--night-ink); isolation: isolate; }
.release .board-grid { top: 50%; right: -3%; z-index: -1; width: min(420px, 44%); height: auto; aspect-ratio: 9 / 10; color: rgba(214, 168, 92, .2); stroke-width: .03; transform: translateY(-50%) rotate(-10deg); }
.release .eyebrow { color: #f2a096; }
.release h2 { margin-top: 16px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.release p { max-width: 36rem; margin-top: 16px; color: var(--night-muted); }
.release-actions { display: grid; gap: 12px; }

/* FAQ */

.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-intro { display: grid; justify-items: start; gap: 16px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: var(--radius); font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--brand-text); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat, var(--bg-alt); transition: transform .2s; }
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, var(--brand-soft); transform: rotate(180deg); }
.faq details > div { display: grid; gap: 10px; padding: 0 22px 22px; color: var(--muted); }
.faq details a { color: var(--brand-text); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 44px; }
.footer-brand p { max-width: 19rem; margin-top: 16px; color: var(--muted); font-size: .94rem; }
.footer-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--ink-soft); font-size: .86rem; font-weight: 500; }
.footer-title { margin-bottom: 14px; color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: .95rem; text-decoration: none; }
.footer-col a:hover { color: var(--brand-text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Inner pages */

.page-hero { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-hero-inner { display: grid; justify-items: start; gap: 16px; padding-block: clamp(36px, 6vw, 72px); }
.page-hero-inner > * { max-width: 780px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .88rem; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-text); text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -.03em; }
.page-hero .lead { color: var(--muted); font-size: 1.12rem; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--muted); font-size: .88rem; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: .8rem; font-weight: 600; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 120px); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; font-size: .92rem; }
.toc-title { margin-bottom: 10px; color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { display: grid; list-style: none; }
.toc ol a { display: block; padding: 7px 0 7px 16px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; transition: border-color .15s, color .15s; }
.toc ol a:hover { color: var(--ink); }
.toc ol a.is-active { border-left-color: var(--brand); color: var(--brand-text); font-weight: 500; }
.toc-related { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.toc-related a { color: var(--ink-soft); text-decoration: none; }
.toc-related a:hover { color: var(--brand-text); text-decoration: underline; }

.doc-body { display: grid; gap: 52px; max-width: 740px; }
.doc-section { display: grid; gap: 16px; }
.doc-section h2 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); letter-spacing: -.02em; }
.doc-section h3 { margin-top: 6px; font-size: 1.1rem; }
.doc-section p, .doc-section li { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }
.doc-section a:not(.button) { color: var(--brand-text); }
.doc-section strong { color: var(--ink); font-weight: 600; }
.doc-section ul { display: grid; gap: 10px; list-style: none; }
.doc-section ul > li { position: relative; padding-left: 22px; }
.doc-section ul > li::before { content: ""; position: absolute; top: .72em; left: 2px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.callout .icon { margin-top: 2px; color: var(--gold-text); }
.callout strong { display: block; color: var(--ink); font-weight: 600; }
.callout p { margin-top: 2px; color: var(--ink-soft); font-size: .96rem; line-height: 1.65; }
.callout.is-warning { border-color: color-mix(in srgb, var(--brand) 30%, transparent); background: var(--brand-soft); }
.callout.is-warning .icon { color: var(--brand-text); }
.callout.is-info { border-color: color-mix(in srgb, var(--gold) 40%, transparent); background: var(--gold-soft); }

.numbered { display: grid; gap: 14px; list-style: none; counter-reset: step; }
.numbered > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.numbered > li::before { content: counter(step); width: 44px; height: 44px; font-size: .95rem; box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--gold); }
.numbered strong { display: block; margin-top: 8px; }
.numbered p { margin-top: 4px; font-size: .98rem; }
.keyword { padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg-alt); color: var(--ink); font-weight: 700; letter-spacing: .06em; white-space: nowrap; }

.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.data-card { display: grid; align-content: start; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-card h3 { margin: 0; font-size: 1.02rem; }
.data-card p { font-size: .96rem; }

.contact-card { display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.contact-card .icon-badge { width: 48px; height: 48px; border-radius: 14px; }
.contact-card h2, .contact-card h3 { font-size: 1.2rem; }
.contact-card p { color: var(--muted); font-size: .95rem; }
.contact-address { color: var(--brand-text); font-size: 1.08rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-status { min-height: 1.5em; color: var(--muted); font-size: .88rem; }

.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.quick-link { display: grid; align-content: start; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.quick-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quick-link .icon-badge { width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; }
.quick-link strong { font-size: 1.08rem; font-weight: 600; }
.quick-link > span:not(.icon-badge) { color: var(--muted); font-size: .94rem; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding-block: clamp(48px, 7vw, 80px) clamp(72px, 10vw, 120px); }
.support-layout aside { position: sticky; top: calc(var(--header-h) + 32px); }
.support-layout .faq-title { margin-bottom: 24px; font-size: clamp(1.5rem, 2.6vw, 2rem); }

.not-found { display: grid; justify-items: center; gap: 18px; max-width: 560px; padding-block: clamp(72px, 12vw, 140px); text-align: center; }
.not-found img { width: 96px; height: 96px; filter: drop-shadow(0 14px 16px rgba(40, 18, 14, .3)); }
.not-found h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.not-found p { color: var(--muted); }
.not-found .hero-actions { justify-content: center; margin-top: 12px; }

/* Responsive */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 24px 40px -28px rgba(36, 28, 23, .5); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
  .main-nav .nav-cta { justify-content: center; margin: 10px 0 0; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { width: 100%; max-width: 520px; margin-inline: auto; }
  .learn, .faq-layout, .release, .support-layout { grid-template-columns: 1fr; }
  .learn-intro, .support-layout aside { position: static; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .release-actions { grid-auto-flow: column; justify-content: start; }

  .gallery { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(72vw, 270px); gap: 20px; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; }
  .shot:nth-child(2) { margin-top: 0; }
  .gallery-note { margin-top: 16px; }
}

@media (max-width: 760px) {
  .areas, .trust, .quick-links, .data-grid { grid-template-columns: 1fr; }
  .release-actions { grid-auto-flow: row; justify-content: stretch; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .brand img { width: 36px; height: 36px; }
  .brand-text strong { font-size: .98rem; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-points { flex-direction: column; }
  .float-piece { width: 62px; height: 62px; }
  .float-piece.is-black { width: 72px; height: 72px; }
  .float-piece.is-cannon { display: none; }
  .stage-card { bottom: 10%; padding: 10px 14px 10px 10px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .area, .trust-item { padding: 24px; }
  .callout, .numbered > li { padding: 16px; }
}

@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 1px #3b4049, var(--shadow-lg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .toc, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .page-hero { background: none; border: 0; }
  .doc { display: block; padding: 0; }
  .callout, .numbered > li, .data-card { break-inside: avoid; }
}
