/* Page-level structure from mockup C "Sun Dial": minimal top row (logo + chip),
 * a floating capsule docked at the bottom on desktop, a tab bar + "More" sheet on
 * mobile, and a footer whose data sits in a full-width band. */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--container-pad); }
.section { padding-block: 40px 96px; position: relative; }
.section--tight { padding-block: 24px 64px; }
@media (max-width: 760px) { .section { padding-block: 28px 64px; } }

/* ── logo: brand mark (inline SVG, brand_mark()) + Manrope 800 lettering ──────
 * Proportions of the approved logo (source/brand/): the sun is as tall as the
 * capitals (Manrope cap height = .72em → mark 56×22 units = 2.016em × .792em),
 * the sun's base sits on the text baseline, the horizon hangs just below it. */
.logo { display: inline-flex; align-items: baseline; gap: .18em; font: 800 19px/1 var(--font-display); letter-spacing: -.03em; color: var(--color-text); text-decoration: none; flex: none; }
.logo b { color: var(--color-brand); font-weight: 800; }
.logo-mark { display: block; flex: none; width: 2.016em; height: .792em; overflow: visible; transform: translateY(.072em); }
.logo-mark .logo-sun { fill: var(--color-brand); filter: drop-shadow(0 -1px 4px rgba(249,115,22,.55)); transform-box: fill-box; transition: transform var(--dur-base) var(--ease); }
.logo-mark .logo-line { fill: var(--color-accent); }
.logo:hover .logo-sun { transform: translateY(-8%); }
@media (prefers-reduced-motion: reduce) { .logo-mark .logo-sun { transition: none; } }

/* ── top row ───────────────────────────────────────────────────────────── */
.top { position: fixed; inset: 0 0 auto; z-index: var(--z-header); transition: background-color .3s, backdrop-filter .3s, box-shadow .3s; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; transition: height .3s var(--ease); }
.top.is-scrolled { background: rgba(18,24,39,.78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.top.is-scrolled .top-in { height: 54px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.chip-age { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--radius-pill); font: 600 12.5px/1 var(--font-body); color: var(--color-muted); background: rgba(255,255,255,.04); box-shadow: 0 0 0 1px var(--line-strong) inset; white-space: nowrap; }
.chip-age .dot, .sun-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 8px var(--color-brand); flex: none; }
.sun-dot { width: 8px; height: 8px; box-shadow: var(--sun-glow); }
.top-user { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: var(--radius-pill); background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px var(--line-strong) inset; color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 14px; }
.top-user i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: #04121c; font: 700 12px var(--font-body); font-style: normal; }
.top-user:hover { box-shadow: 0 0 0 1px var(--color-brand) inset; }
.top-search { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--color-muted); background: rgba(255,255,255,.04); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.top-search:hover { color: #fff; }
/* the fixed row must not hide the first heading of inner pages */
main { display: block; }
.page-pad { padding-top: 64px; }

/* ── capsule nav (desktop) ─────────────────────────────────────────────── */
.capsule { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: var(--z-tabbar); display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: var(--radius-pill); background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 6px rgba(0,0,0,.3), 0 18px 44px -10px rgba(0,0,0,.65); transition: transform .4s var(--ease); }
.capsule.is-hidden { transform: translate(-50%, 140%); }
.cap-link { position: relative; display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; height: 46px; padding: 0 15px; border-radius: var(--radius-pill); font: 500 14px/1 var(--font-body); color: var(--color-muted); text-decoration: none; transition: color .2s, background-color .2s; }
.cap-link .icon { width: 18px; height: 18px; }
.cap-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.cap-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.cap-link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 8px var(--color-brand); }
.cap-sep { width: 1px; height: 26px; margin: 0 6px; background: var(--line-strong); }
.capsule .btn { min-height: 46px; height: 46px; }

/* ── tab bar + "More" sheet (mobile / tablet) ──────────────────────────── */
.tabbar { display: none; }
@media (max-width: 1099px) {
  .capsule { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar); padding: 0 4px env(safe-area-inset-bottom); background: rgba(24,33,54,.86); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 -1px 0 var(--line-strong), 0 -12px 30px rgba(0,0,0,.35); }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 64px; border: 0; background: none; font: 500 11px/1 var(--font-body); color: var(--color-muted); text-decoration: none; cursor: pointer; }
  .tab .icon { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: #fff; }
  .tab[aria-current="page"] .icon { color: var(--color-brand); }
  .tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 22px; height: 11px; margin-left: -11px; border-radius: 0 0 22px 22px; background: radial-gradient(closest-side at 50% 0, rgba(249,115,22,.9), rgba(249,115,22,0)); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
.overlay--sheet { place-items: end center; padding: 0; }
.overlay--sheet .overlay__panel { width: 100%; max-width: 560px; max-height: 88dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .35s var(--ease); }
.overlay--sheet.is-open .overlay__panel { transform: none; }
.grab { width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 4px; background: rgba(188,199,215,.3); }
.sheet-list { display: grid; gap: 4px; margin: 14px 0 0; }
.sheet-list a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 12px; border-radius: var(--radius-md); font-weight: 500; color: var(--color-text); text-decoration: none; }
.sheet-list a:hover, .sheet-list a[aria-current] { background: rgba(255,255,255,.05); }
.sheet-list .icon { color: var(--color-muted); }
.sheet-list .go { margin-left: auto; width: 16px; height: 16px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sheet-note { margin-top: 14px; font-size: 12.5px; color: var(--color-faint); }

/* ── arc divider (signature: thin half-circle hairline with a sun dot) ─── */
.arc-div { position: relative; height: 64px; overflow: hidden; max-width: var(--container); margin: 0 auto 6px; }
.arc-div::before { content: ""; position: absolute; left: 50%; top: 7px; width: min(820px, 88%); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 1px solid var(--line-strong); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.arc-div::after { content: ""; position: absolute; left: 50%; top: 3px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--color-brand); box-shadow: var(--sun-glow); }

/* ── footer ────────────────────────────────────────────────────────────── */
.site-footer { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-1), var(--color-bg) 60%); padding-block: 56px 112px; color: var(--color-muted); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(1100px, 120%); height: 220px; transform: translateX(-50%); border-radius: 0 0 50% 50% / 0 0 100% 100%; background: radial-gradient(closest-side at 50% 0, rgba(249,115,22,.12), transparent); pointer-events: none; }
.ft-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.ft-brand p { margin-top: 14px; font-size: 14.5px; max-width: 340px; }
.ft-col h2 { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--color-faint); margin-bottom: 14px; }
.ft-col ul { display: grid; gap: 2px; }
.ft-col a { display: inline-block; padding: 6px 0; color: var(--color-muted); text-decoration: none; font-size: 14.5px; transition: color var(--dur-fast); }
.ft-col a:hover { color: var(--color-brand); }
.ft-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 40px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.ft-data div { padding: 14px 16px; background: var(--surface-1); }
.ft-data dt { font: 600 11px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--color-faint); }
.ft-data dd { margin: 4px 0 0; color: var(--color-text); font-size: 14px; }
.ft-pay { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }
.ft-pay span { display: inline-grid; place-items: center; height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: 0 0 0 1px var(--line) inset; }
.ft-pay img { height: 22px; width: auto; }
.ft-pay .psc { height: 13px; filter: invert(1) brightness(.85); }
.ft-rg { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 18px 20px; border-radius: var(--radius-md); background: rgba(255,255,255,.025); box-shadow: 0 0 0 1px var(--line) inset; font-size: 14px; }
.ft-rg .age { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--color-brand); color: var(--color-brand); font: 800 15px var(--font-display); }
.ft-rg p + p { margin-top: 6px; }
.ft-rg a { color: var(--color-brand); }
.ft-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--color-faint); }
.ft-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ft-bottom a { color: var(--color-muted); text-decoration: none; }
.ft-bottom a:hover { color: var(--color-brand); }
.ft-bottom .link-btn { color: var(--color-muted); font-weight: 400; text-decoration: none; font-size: 13.5px; }
@media (max-width: 900px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 1099px) { .site-footer { padding-bottom: 40px; } }
@media (max-width: 480px) { .ft-top { grid-template-columns: 1fr; } }

/* ── back to top ───────────────────────────────────────────────────────── */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-header); width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--color-text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1px var(--line-strong) inset, var(--shadow-card); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast); }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--color-brand) inset, var(--shadow-card); }
@media (max-width: 1099px) { .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; } }

/* ── cookie banner ─────────────────────────────────────────────────────── */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 88px; z-index: var(--z-overlay); max-width: 980px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 20px 22px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); box-shadow: 0 0 0 1px var(--line-strong) inset, var(--shadow-pop); }
.cookie h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 800 17px var(--font-display); }
.cookie p { font-size: 14px; color: var(--color-muted); }
.cookie p a { color: var(--color-brand); }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__prefs { grid-column: 1 / -1; display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.cookie__row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 10px 0; }
.cookie__row b { display: block; color: var(--color-text); font-size: 15px; }
.cookie__row span { font-size: 13.5px; color: var(--color-faint); }
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-0); box-shadow: 0 0 0 1px var(--line-strong) inset; transition: background var(--dur-fast); }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--dur-base) var(--ease); }
.switch input:checked + i { background: var(--color-brand); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled + i { opacity: .6; }
.switch input:focus-visible + i { box-shadow: var(--focus-ring); }
@media (max-width: 1099px) { .cookie { bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (max-width: 760px) {
  .cookie { grid-template-columns: 1fr; left: 8px; right: 8px; max-height: calc(100dvh - 120px); overflow: auto; padding: 18px; }
  .cookie__btns { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie__btns .btn:first-child { grid-column: 1 / -1; }
  .cookie__btns .btn { padding-inline: .8em; }
}

/* ── age gate ──────────────────────────────────────────────────────────── */
.overlay--gate { z-index: calc(var(--z-modal) + 10); background: rgba(8,12,22,.9); }
.overlay--gate .overlay__panel { width: min(100%, 460px); text-align: center; }
.gate__age { position: relative; isolation: isolate; width: 84px; height: 46px; margin: 4px auto 6px; display: grid; place-items: end center; color: var(--color-brand-ink); font: 800 17px/1 var(--font-display); padding-bottom: 6px; }
.gate__age::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 84px 84px 0 0; background: var(--color-brand); box-shadow: 0 -6px 26px rgba(249,115,22,.45); }
.gate__age::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--color-accent); }
.gate__note { font-size: 13px; color: var(--color-faint); margin-top: 14px; }
.gate-closed { max-width: 640px; margin: 0 auto; padding: 140px 16px 80px; text-align: center; }
.gate-closed .gate__age { isolation: isolate; }
@media (max-width: 900px) { .ft-data { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ft-data { grid-template-columns: 1fr; } }
.ft-pay { display: grid; grid-template-columns: repeat(4, max-content); }
@media (max-width: 420px) { .ft-pay { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 374px) { .top-search { display: none; } .logo { font-size: 17px; } .chip-age { padding: 0 10px; } }
