:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --surface-subtle: #f1eee7;
  --ink: #14191f;
  --ink-muted: #4b5563;
  --ink-soft: #6b7280;
  --border: #e0dcd3;
  --border-strong: #c9c3b8;
  --primary: #1c3557;
  --primary-hover: #13253e;
  --accent: #b45309;
  --accent-bg: #fef4e6;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 25, 31, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 25, 31, 0.06);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--font-sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--primary); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--ink-muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--primary); font-size: 1.25rem; cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { padding: 44px 0 28px; }
.hero-kicker { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin: 0 0 10px; font-weight: 600; }
.hero h1 { font-family: var(--font-serif); margin: 0 0 14px; font-size: clamp(1.9rem, 3.6vw, 2.85rem); line-height: 1.13; letter-spacing: -0.02em; max-width: 24ch; color: var(--ink); }
.hero-sub { margin: 0; font-size: 1.06rem; color: var(--ink-muted); max-width: 66ch; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.metric-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; }
.metric-val { font-family: var(--font-mono); font-size: 1.38rem; font-weight: 700; color: var(--primary); }
.metric-lbl { font-size: 0.84rem; color: var(--ink-muted); margin-top: 2px; }

/* Search Bar */
.tool-finder { margin: 12px 0 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.tool-finder label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.tool-finder input[type="search"] { width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 0.98rem; color: var(--ink); background: var(--bg); }
.tool-finder input[type="search"]:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(28, 53, 87, 0.12); }
.quick-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.quick-link { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); transition: border-color 0.15s ease, background 0.15s ease; }
.quick-link:hover { border-color: var(--primary); background: var(--surface-subtle); text-decoration: none; }
.quick-link strong { font-size: 0.92rem; color: var(--primary); }
.quick-link span { font-size: 0.8rem; color: var(--ink-soft); }

/* Suites Grid */
.suite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 24px 0 36px; }
.suite-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.suite-tag { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.suite-card h2 { font-family: var(--font-serif); margin: 6px 0 10px; font-size: 1.48rem; letter-spacing: -0.015em; }
.suite-card p { margin: 0 0 14px; font-size: 0.93rem; color: var(--ink-muted); }
.suite-list { margin: 0; padding-left: 18px; font-size: 0.88rem; color: var(--ink-muted); }
.suite-list li { margin-bottom: 6px; }
.suite-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background 0.15s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface-subtle); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: #e8e4da; }

/* Prose & FAQ */
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.prose h2 { font-family: var(--font-serif); margin: 0 0 12px; font-size: 1.4rem; }
.prose h3 { margin: 20px 0 8px; font-size: 1.04rem; }
.prose p, .prose li { color: var(--ink-muted); font-size: 0.95rem; }
.faq-list details { border-top: 1px solid var(--border); padding: 14px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.15rem; color: var(--primary); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 10px 0 0; }

/* Footer */
.site-footer { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0 44px; font-size: 0.88rem; color: var(--ink-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer-col h4 { margin: 0 0 10px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--ink-muted); }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-soft); }

/* Consent Banner */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 780px; margin: 0 auto; background: var(--ink); color: #f8f6f1; border-radius: var(--radius-md); padding: 16px 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; z-index: 90; }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; font-size: 0.86rem; flex: 1 1 300px; }
.consent-banner a { color: #93c5fd; text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; }
.consent-btn-accept { background: #fff; color: var(--ink); border: 0; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; min-height: 44px; }
.consent-btn-essential { background: transparent; color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.3); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; min-height: 44px; }

.suite-grid > *, .hero-metrics > *, .footer-grid > * { min-width: 0; }

@media (max-width: 900px) {
  .suite-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 14px; }
  .header-inner { min-height: 56px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: -14px; right: -14px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); flex-direction: column; align-items: stretch; padding: 8px 14px 12px; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--surface-subtle); }
  .hero { padding: 26px 0 18px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .tool-finder input[type="search"] { font-size: 16px; min-height: 44px; }
  .btn { min-height: 44px; }
  .prose, .suite-card { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
