@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo.ttf') format('truetype');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('fonts/BigShouldersDisplay.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg-primary: #F5F1E8;
  --surface-primary: #FFFFFF;
  --surface-muted: #EDE7DA;
  --text-primary: #1C1C1E;
  --text-secondary: #4A4A4F;
  --text-tertiary: #6B6B70;
  --text-disabled: #6B6B70;
  --text-inverse: #FFFFFF;
  --text-link: #1F5FAD;
  --text-error: #C0392B;
  --accent: #FFC21A;
  --accent-strong: #E8590C;
  --accent-subtle: #FFF1C7;
  --accent-text: #1C1C1E;
  --brand: #16324F;
  --on-brand-muted: #DCE7F2;
  --decor-navy: #24507D;
  --action-primary: #FFC21A;
  --action-disabled: #E3DED3;
  --action-tertiary-hover: #16324F;
  --border-default: #D9D3C5;
  --border-subtle: #EDE7DA;
  --border-strong: #6B6B70;
  --border-focus: #1C1C1E;
  --border-error: #C0392B;
  --radius-xs: 4px;
  --radius-md: 12px;
  --radius-full: 999px;
  --shadow-hard: 4px 4px 0 #1C1C1E;
  --shadow-hard-sm: 3px 3px 0 #1C1C1E;
  --font-heading: 'Big Shoulders Display', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font: 400 16px/1.5 var(--font-body); }
a { color: var(--text-link); }

.cs-site { min-height: 100vh; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
.cs-ico { flex: none; display: block; }

.cs-bar { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; padding: env(safe-area-inset-top) 8px 0; background: var(--bg-primary); }
.cs-bar-back { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-full); color: var(--text-primary); transition: background-color .12s, transform .12s; }
.cs-bar-back:active { background: var(--surface-muted); transform: scale(.94); }
.cs-bar-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cs-doc { max-width: 600px; margin: 0 auto; padding: 4px 16px 24px; }
.cs-doc > .legal-meta { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: var(--text-tertiary); }
.cs-sheet { padding: 16px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-primary); font-size: 14px; line-height: 1.55; color: var(--text-secondary); overflow-wrap: anywhere; }
.cs-sheet h2 { margin: 20px 0 6px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
.cs-sheet h2:first-child { margin-top: 0; }
.cs-sheet p { margin: 0 0 10px; }
.cs-sheet p:last-child { margin-bottom: 0; }

.cs-home { max-width: 600px; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top)) 16px 24px; }
.cs-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cs-logo { flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: var(--radius-md); background: var(--brand); }
.cs-logo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.cs-brand h1 { margin: 0; font: 800 30px/1 var(--font-heading); }

.cs-label { margin: 20px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.cs-about { color: var(--text-primary); }
.cs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.cs-facts div { padding: 10px; border-radius: var(--radius-xs); background: var(--accent-subtle); }
.cs-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.cs-facts dd { margin: 2px 0 0; font: 800 18px/1.2 var(--font-heading); color: var(--text-primary); }
.cs-small { font-size: 13px; color: var(--text-secondary); }
.cs-small strong { color: var(--text-primary); }

.cs-group { overflow: hidden; border: 1.5px solid var(--border-focus); border-radius: var(--radius-md); background: var(--surface-primary); }
.cs-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; color: var(--text-primary); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .12s; }
.cs-row + .cs-row { border-top: 1px solid var(--border-subtle); }
.cs-row > span:nth-child(2) { flex: 1; min-width: 0; }
.cs-row > .cs-ico { color: var(--text-tertiary); }
.cs-row:active { background: var(--surface-muted); }
.cs-tile { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: var(--bg-primary); }
.cs-note { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }

.cs-faq { display: none; }
.cs-faq:target { position: fixed; inset: 0; z-index: 5; display: block; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-primary); }
html:has(.cs-faq:target) { overflow: hidden; }
.cs-faq-list { overflow: hidden; border: 1.5px solid var(--border-focus); border-radius: var(--radius-md); background: var(--surface-primary); }
.faq-item + .faq-item { border-top: 1px solid var(--border-subtle); }
.faq-item summary { display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px; font-size: 15px; font-weight: 700; line-height: 1.35; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 5px 4px 0 auto; border-right: 1.5px solid var(--text-tertiary); border-bottom: 1.5px solid var(--text-tertiary); transform: rotate(45deg); transition: transform .15s; }
.faq-item[open] summary::after { margin-top: 8px; transform: rotate(-135deg); }
.faq-item p { margin: -4px 0 0; padding: 0 12px 14px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }

.cs-foot { max-width: 600px; margin: 0 auto; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--text-tertiary); }
.cs-foot p { margin: 0; }

@media (min-width: 760px) {
  .cs-home { padding-top: 48px; }
  .cs-brand h1 { font-size: 40px; }
  .cs-sheet { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-bar-back, .cs-row, .faq-item summary::after { transition: none; }
}
