/* ───────────────────── SUAXEZ — shared design tokens + components ───────────────────── */

:root {
  --bg:        oklch(99% 0.002 240);
  --surface:   oklch(100% 0 0);
  --surface-2: oklch(97% 0.004 250);
  --fg:        oklch(18% 0.012 250);
  --muted:     oklch(54% 0.012 250);
  --muted-2:   oklch(72% 0.008 250);
  --border:    oklch(92% 0.005 250);
  --border-2:  oklch(86% 0.008 250);
  --accent:    oklch(58% 0.18 255);
  --accent-ink: oklch(34% 0.16 255);
  --emergency: oklch(58% 0.20 25);
  --emergency-ink: oklch(40% 0.18 25);
  --ok:        oklch(64% 0.16 145);

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --maxw: 1200px;
  --pad-x: clamp(20px, 4vw, 56px);
  --gap-section: clamp(72px, 9vw, 128px);

  --shadow-sm: 0 1px 2px oklch(20% 0.02 250 / 0.04);
  --shadow-md: 0 4px 14px oklch(20% 0.02 250 / 0.06);
  --shadow-lg: 0 24px 60px oklch(20% 0.02 250 / 0.12);
}

[data-theme="dark"] {
  --bg:        oklch(15% 0.012 250);
  --surface:   oklch(19% 0.014 250);
  --surface-2: oklch(22% 0.014 250);
  --fg:        oklch(96% 0.005 250);
  --muted:     oklch(70% 0.012 250);
  --muted-2:   oklch(48% 0.012 250);
  --border:    oklch(26% 0.014 250);
  --border-2:  oklch(34% 0.016 250);
  --accent:    oklch(72% 0.18 255);
  --accent-ink: oklch(86% 0.14 255);
  --emergency: oklch(66% 0.22 25);
  --emergency-ink: oklch(80% 0.18 25);
  --ok:        oklch(74% 0.16 145);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.4);
  --shadow-md: 0 4px 14px oklch(0% 0 0 / 0.5);
  --shadow-lg: 0 24px 60px oklch(0% 0 0 / 0.6);
}

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: color-mix(in oklch, var(--accent) 30%, transparent); }

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
  }
  [data-reveal].in { opacity: 1; transform: none; }
}

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.tab-num { font-variant-numeric: tabular-nums; }

/* ─────── BUTTONS ─────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: color-mix(in oklch, var(--fg) 88%, var(--accent)); }
.btn-outline {
  border-color: var(--border-2);
  color: var(--fg);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--fg); }
.btn-emergency { background: var(--emergency); color: white; font-weight: 550; }
.btn-emergency:hover { background: var(--emergency-ink); }
.btn-large { padding: 14px 22px; font-size: 15px; border-radius: 10px; }

/* ─────── NAV ─────── */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color .25s ease, border-color .25s ease;
}
.nav-row { display: flex; align-items: center; gap: 40px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--fg);
  display: grid; place-items: center;
  color: var(--bg);
}
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 450;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .signin { color: var(--muted); font-size: 14px; padding: 8px 12px; }
.nav-cta .signin:hover { color: var(--fg); }
.menu-toggle { display: none; }
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
  display: inline-grid; place-items: center;
  transition: color .15s, border-color .15s, background-color .15s;
  position: relative;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg); }
.theme-toggle svg { width: 16px; height: 16px; transition: transform .35s cubic-bezier(.5,1.6,.4,1), opacity .25s; }
.theme-toggle .sun  { position: absolute; }
[data-theme="dark"] .theme-toggle .sun  { transform: rotate(-90deg) scale(0); opacity: 0; }
[data-theme="dark"] .theme-toggle .moon { transform: rotate(0) scale(1); opacity: 1; }
.theme-toggle .moon { transform: rotate(90deg) scale(0); opacity: 0; position: absolute; }
.theme-toggle .sun  { transform: rotate(0) scale(1); opacity: 1; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .signin { display: none; }
  .nav-cta .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; padding: 8px; }
}

/* ─────── DRAWER ─────── */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: oklch(15% 0.012 250 / 0.5);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 60;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  height: 100vh; height: 100dvh;
  width: min(360px, 88vw);
  background: var(--bg);
  border-inline-start: 1px solid var(--border);
  z-index: 70;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.3,.8,.3,1);
  display: flex; flex-direction: column;
  padding: 20px 24px 24px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
  display: grid; place-items: center;
}
.drawer-close:hover { color: var(--fg); border-color: var(--fg); }
.drawer-links { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; }
.drawer-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.drawer-links a:hover { color: var(--accent); }
.drawer-links a svg { width: 14px; height: 14px; color: var(--muted); }
.drawer-cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 24px; }
.drawer-cta .btn { justify-content: center; padding-block: 13px; font-size: 15px; }

/* ─────── STICKY MOBILE CTA ─────── */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 16px;
  display: none;
  gap: 10px;
  transform: translateY(120%);
  transition: transform .35s cubic-bezier(.3,.8,.3,1);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta .btn { flex: 1; justify-content: center; padding-block: 13px; font-size: 14px; }
.mobile-cta .btn-emergency { flex: 1.4; }

@media (max-width: 880px) {
  .mobile-cta { display: flex; }
  body.has-mobile-cta { padding-bottom: 80px; }
}

/* ─────── PAGE HEADER (sub-page) ─────── */
.page-header {
  padding-block: clamp(64px, 9vw, 120px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow { display: block; margin-bottom: 16px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 880px;
}
.page-header h1 em { font-style: normal; color: var(--muted-2); }
.page-header .deck {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--muted);
  max-width: 620px;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* ─────── SECTION ─────── */
section.block { padding-block: var(--gap-section); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-head p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.55;
}

/* ─────── SHARED GRIDS ─────── */
.cards-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .cards-grid.cols-3, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cols-2 { grid-template-columns: 1fr; }
}

/* ─────── HOTLINE STRIP ─────── */
.hotline-strip { background: var(--fg); color: oklch(96% 0.005 250); border-block: 1px solid var(--fg); }
.hotline-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-block: 28px; }
.hotline-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: oklch(70% 0.01 250);
}
.hotline-label b {
  display: block; margin-top: 4px;
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: -0.005em; font-size: 14px;
  text-transform: none; color: white;
}
.hotline-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.2vw, 56px);
  letter-spacing: -0.025em; font-variant-numeric: tabular-nums;
  color: white; text-align: center;
  display: inline-flex; align-items: center; gap: 14px;
}
.hotline-num .ico {
  width: 34px; height: 34px; background: var(--emergency);
  border-radius: 8px; display: grid; place-items: center;
}
.hotline-meta { font-size: 13px; color: oklch(75% 0.01 250); text-align: end; max-width: 240px; line-height: 1.4; }
@media (max-width: 880px) {
  .hotline-row { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .hotline-num { justify-content: center; }
  .hotline-meta { text-align: center; max-width: none; }
}

/* ─────── FOOTER ─────── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: clamp(56px, 6vw, 80px) 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 16px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col ul a { font-size: 14px; color: var(--fg); transition: color .15s; }
.foot-col ul a:hover { color: var(--accent); }
.foot-brand .desc { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 16px 0 22px; max-width: 320px; }
.foot-hotline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--bg);
  font-size: 13px; color: var(--fg); font-weight: 500;
}
.foot-hotline .ico { width: 22px; height: 22px; background: var(--emergency); border-radius: 50%; display: grid; place-items: center; }
.foot-hotline .num { font-family: var(--font-mono); font-weight: 550; letter-spacing: 0.01em; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); flex-wrap: wrap; gap: 16px;
}
.foot-bottom .legal { display: flex; gap: 24px; }
.foot-bottom .legal a:hover { color: var(--fg); }
@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ─────── DARK MODE POLISH ─────── */
[data-theme="dark"] .hotline-strip {
  background: oklch(10% 0.012 250);
  border-color: oklch(22% 0.014 250);
}
[data-theme="dark"] nav.top {
  background: color-mix(in oklch, var(--bg) 75%, transparent);
}
[data-theme="dark"] .mobile-cta {
  background: color-mix(in oklch, var(--bg) 90%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
