/* Convert Case Now. Plain CSS, no framework. Breakpoints: 640px, 768px, 1024px. */

:root {
  --primary: #075fa8;
  --primary-d: #064d87;
  --accent: #f39221;
  --surface: #ffffff;
  --soft: #f4f8fd;
  --line: #dfe6ef;
  --txt: #122033;
  --muted: #617087;
  --bg: #ffffff;
  --ok: #16a34a;
  --error: #dc2626;
  --shadow: 0 4px 24px rgba(16, 41, 71, 0.08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --primary: #50a9ed;
  --primary-d: #83c5f4;
  --accent: #ffad4d;
  --surface: #152335;
  --soft: #101d2d;
  --line: #2b3b50;
  --txt: #edf5ff;
  --muted: #a8b8ca;
  --bg: #0d1726;
  --error: #f87171;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 16px/1.5 var(--font);
  transition: background 0.2s, color 0.2s;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }

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

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 60;
  padding: 8px 14px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Layout helpers ---------- */

.wrap { width: min(calc(100% - 32px), 1180px); margin-inline: auto; }
.narrow { max-width: 100%; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wraps { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.row.tight { gap: 4px; }
.row.gap-lg { gap: 16px; }
.col { display: flex; flex-direction: column; min-width: 0; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 12px; }
.mb { margin-bottom: 12px; }
.mb-lg { margin-bottom: 20px; }
.mb-xl { margin-bottom: 48px; }
.mt { margin-top: 12px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.muted { color: var(--muted); flex-shrink: 0; }
.dim { opacity: 0.7; margin-left: 4px; }

.pair, .cols-lg { display: grid; gap: 16px; align-items: stretch; }
.cols-lg { gap: 24px; }
.cols-2, .cols-3 { display: grid; gap: 12px; }
@media (min-width: 640px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pair, .cols-lg { grid-template-columns: 1fr 1fr; } }

/* ---------- Type ---------- */

.eyebrow {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.kicker {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--primary); margin-bottom: 8px;
}
.h2 { font-size: 1.875rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; }
.h2.sm { font-size: 1.5rem; margin-bottom: 24px; }
.h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 20px; }
.prose { max-width: 100%; }
.lead { color: var(--muted); line-height: 1.75; font-size: 0.95rem; margin-top: 12px; }
.lead:first-of-type { margin-top: 0; }
.note { font-size: 0.875rem; font-style: italic; color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo { height: 48px; width: auto; }
.site-footer .logo { height: 44px; }
.logo-dark, [data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; padding: 6px 10px; border-radius: 6px; white-space: nowrap;
  font-size: 0.8rem; font-weight: 600; color: var(--muted); transition: color 0.15s, background 0.15s;
}
.main-nav a:hover { color: var(--txt); background: var(--soft); }
.main-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.header-actions { margin-left: auto; }
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-actions:not(.push) { margin-left: 0; }
  .menu-btn { display: none !important; }
}

.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line); background: transparent; color: var(--txt); transition: background 0.15s;
}
.icon-btn:hover { background: var(--soft); }
.i-sun, [data-theme="dark"] .i-moon { display: none; }
[data-theme="dark"] .i-sun { display: block; }

/* ---------- Mobile drawer ---------- */

.backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(10, 20, 32, 0.55); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 50; width: min(84vw, 340px);
  display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.3s ease-out, visibility 0s 0.3s;
}
.drawer-open { overflow: hidden; }
.drawer-open .backdrop { opacity: 1; pointer-events: auto; }
.drawer-open .drawer {
  transform: none; visibility: visible; box-shadow: -16px 0 40px rgba(10, 20, 32, 0.25);
  transition: transform 0.3s ease-out;
}
@media (min-width: 1024px) { .backdrop, .drawer { display: none; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--line);
}
.drawer-head .icon-btn { width: 36px; height: 36px; }
.drawer-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 4px 0; }
.drawer-list a {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-left: 3px solid transparent; transition: background 0.15s;
}
.drawer-list a:hover { background: color-mix(in srgb, var(--soft) 70%, transparent); }
.drawer-list a[aria-current="page"] { border-color: var(--primary); background: var(--soft); }
.drawer-title { font-size: 0.92rem; font-weight: 700; line-height: 1.25; }
[aria-current="page"] .drawer-title { color: var(--primary); }
.drawer-desc { font-size: 0.74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { flex-shrink: 0; color: var(--muted); }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 0.7rem; font-weight: 600; color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  text-align: center; padding: 20px 0 10px 0;;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 65%);
}
.hero h1 { font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
.tagline { color: var(--muted); font-size: 1rem; max-width: 100%; margin-inline: auto; }
.updated { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
@media (min-width: 768px) {
  .hero { padding: 30px 0 10px 0; }
  .hero h1 { font-size: 35px; }
  .tagline { font-size: 1.125rem; }
}

/* ---------- Tool switcher ---------- */

.tool-area { padding-bottom: 48px; scroll-margin-top: 72px; }
.toolnav { position: relative; margin: 24px 0 20px; }

.toolmenu { position: relative; }
.toolmenu-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px;
  padding: 0 12px 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  text-align: left; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.toolmenu-btn[aria-expanded="true"] { border-color: var(--primary); }
.toolmenu-btn .eyebrow { font-size: 0.62rem; }
.toolmenu-current { font-size: 0.875rem; font-weight: 700; }
.toolmenu-chev {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--soft); color: var(--muted); transition: transform 0.2s;
}
[aria-expanded="true"] .toolmenu-chev { transform: rotate(180deg); }
.toolmenu-list {
  position: absolute; z-index: 30; left: 0; right: 0; margin-top: 8px; padding: 6px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  max-height: 70vh; overflow-y: auto; box-shadow: 0 12px 32px rgba(16, 41, 71, 0.16);
}
.toolmenu-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; outline: none; }
.toolmenu-list a:hover, .toolmenu-list a:focus-visible { background: var(--soft); }
.toolmenu-list a[aria-current="page"] { background: var(--primary); color: #fff; }
.menu-title { font-size: 0.875rem; font-weight: 700; }
.menu-desc { font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[aria-current="page"] .menu-desc { color: rgba(255, 255, 255, 0.8); }

.tabs {
  display: none; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto;
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex-shrink: 0; white-space: nowrap; padding: 8px 16px; border-radius: 9px; border: 1px solid transparent;
  font-size: 0.875rem; font-weight: 700; color: var(--muted); transition: color 0.2s, background 0.2s;
}
.tabs a:hover { color: var(--txt); }
.tabs a[aria-current="page"] {
  background: var(--surface); color: var(--txt); border-color: var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) {
  .toolmenu { display: none; }
  .tabs { display: flex; }
}

/* ---------- Panels ---------- */

.panel {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.panel-out { border: 2px solid var(--primary); box-shadow: 0 4px 24px rgba(16, 41, 71, 0.1); }
.panel.pad { padding: 16px; height: auto; }
.panel-out.pad { height: 100%; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px 6px; }
.count { font-size: 0.68rem; font-weight: 600; color: var(--muted); }
.chip {
  padding: 2px 8px; border-radius: 4px; background: var(--primary); color: #fff;
  font-size: 0.68rem; font-weight: 700; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.input-text {
  display: block; width: 100%; flex: 1; min-height: 180px; padding: 12px 16px; resize: vertical;
  border: 0; outline: none; background: transparent; font-size: 1rem; line-height: 1.625;
}
.input-text::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }

.panel-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--line); background: var(--soft);
}
.stats { display: flex; flex-wrap: wrap; gap: 16px; }
.stat { display: flex; flex-direction: column; align-items: center; min-width: 38px; }
.stat-value { font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--primary); }
.stat-label { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); font-size: 0.78rem; font-weight: 600;
  transition: all 0.15s;
}
.btn:hover { background: var(--soft); border-color: var(--primary); color: var(--primary); }
.btn:active { transform: scale(0.95); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

.copy {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 6px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--soft); color: var(--muted);
  font-size: 0.72rem; font-weight: 600; user-select: none; transition: all 0.15s;
}
.copy > span { display: inline-flex; align-items: center; gap: 4px; }
.copy:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.copy-done, .copy.copied .copy-idle { display: none !important; }
.copy.copied .copy-done { display: inline-flex !important; }
.copy.copied { background: var(--ok); border-color: var(--ok); color: #fff; animation: pop 0.2s ease; }
@keyframes pop { 50% { transform: scale(1.12); } }

.out { flex: 1; min-height: 180px; padding: 12px 16px; overflow: auto; }
.out-text { font-size: 1.125rem; line-height: 1.625; white-space: pre-wrap; overflow-wrap: anywhere; }
.out-empty { font-style: italic; color: color-mix(in srgb, var(--muted) 70%, transparent); }

/* ---------- Pickers ---------- */

.opts, .box {
  padding: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px;
}
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.opt {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  font-size: 0.75rem; font-weight: 600; text-align: left; transition: all 0.15s;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.opt:hover { border-color: var(--primary); color: var(--primary); }
.opt[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.opt-font { display: flex; flex-direction: column; align-items: flex-start; font-weight: 400; }
.opt-font:hover { border-color: var(--accent); color: var(--accent); }
.opt-font[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.opt-label, .opt-preview { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.opt-label { font-weight: 600; font-size: 0.68rem; margin-bottom: 2px; }
.opt-preview { font-size: 0.875rem; opacity: 0.8; }

.seg {
  padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--soft);
  font-size: 0.75rem; font-weight: 600;
}
.seg[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.field {
  display: block; width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); font-size: 0.875rem; outline: none; resize: vertical;
}
.field:focus { border-color: var(--primary); }
.field-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.field-label .field { margin-top: 4px; color: var(--txt); }
.check { display: flex; align-items: center; gap: 8px; width: fit-content; font-size: 0.875rem; cursor: pointer; }
.check input { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; }
.error { font-size: 0.875rem; color: var(--error); }

/* ---------- Word counter ---------- */

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); }
.tile-value { font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--primary); }
.density { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.density li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 0.875rem; }
.density-main { min-width: 0; }
.bar { height: 6px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); }
.density-pct { width: 56px; text-align: right; font-size: 0.75rem; font-weight: 700; color: var(--primary); }

/* ---------- Content sections ---------- */

.section { padding: 64px 0; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cards.related { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.card p, .card-desc { display: block; font-size: 0.83rem; line-height: 1.5rem; color: var(--muted); }
.card-code { font-family: var(--mono); font-weight: 700; font-size: 0.875rem; color: var(--primary); margin-bottom: 6px; }
.card-link { transition: border-color 0.15s; }
.card-link:hover { border-color: var(--primary); }
.card-title { display: block; font-weight: 700; font-size: 0.875rem; color: var(--primary); margin-bottom: 4px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 16px; }
.step-num {
  display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; margin-top: 2px;
  border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.875rem; font-weight: 700;
}
.step-title { font-weight: 600; font-size: 0.875rem; margin-bottom: 4px; }
.step-desc { font-size: 0.84rem; line-height: 1.5rem; color: var(--muted); }

.faqs { display: grid; gap: 8px; }
.faq { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; transition: border-color 0.15s; }
.faq[open] { border-color: var(--primary); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer; list-style: none; transition: background 0.15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--soft); }
.faq summary svg { flex-shrink: 0; transition: transform 0.2s; }
.faq[open] summary svg { transform: rotate(180deg); }
.faq p { padding: 0 20px 16px; font-size: 0.875rem; line-height: 1.75; color: var(--muted); }

/* ---------- Reference content ---------- */

.guide { max-width: 100%; }
.guide .lead, .guide .h3 { margin-top: 0; margin-bottom: 20px; }
.guide .h3 { margin-top: 40px; }
.link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: var(--primary-d); }
code, .pre { font-family: var(--mono); font-size: 0.85em; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.list { margin: 0 0 20px; padding-left: 20px; color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.table-wrap { overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table caption { caption-side: top; text-align: left; padding: 12px 16px; font-weight: 700; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 16px; border-top: 1px solid var(--line); }
.table thead th {
  background: var(--soft); color: var(--muted); font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.table tbody th { font-weight: 600; }
.table td { color: var(--txt); }
.defs { display: grid; gap: 14px; margin: 0 0 24px; }
.defs dt { font-weight: 700; font-size: 0.9rem; }
.defs dd { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ---------- Footer ---------- */

.site-footer { position: relative; background: #08192e; color: #c8daf0; padding: 56px 0 32px; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.footer-grid { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #1e3352; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 3fr; } }
.footer-blurb { margin-top: 16px; max-width: 280px; font-size: 0.875rem; line-height: 1.5rem; color: #8daec8; }
.footer-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #5b88ad; margin-bottom: 16px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
@media (min-width: 768px) { .footer-links { grid-template-columns: repeat(3, 1fr); } }
.footer-links.one { grid-template-columns: 1fr; }
.footer-links a {
  display: flex; padding: 6px 0 6px 12px; margin-left: -12px; border-left: 2px solid transparent;
  font-size: 0.875rem; color: #a8c4dc; transition: color 0.15s, border-color 0.15s;
}
.footer-links a:hover { color: #fff; border-color: var(--accent); }
.footer-bottom { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.footer-site { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-site a { font-size: 0.875rem; color: #a8c4dc; transition: color 0.15s; }
.footer-site a:hover { color: #fff; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid #1e3352; font-size: 0.72rem; font-weight: 600; color: #a8c4dc;
}
.footer-meta { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.75rem; color: #6a8faa; }
@media (min-width: 640px) { .footer-meta { flex-direction: row; } }
.to-top { font-weight: 600; color: #8daec8; transition: color 0.15s; }
.to-top:hover { color: #fff; }

/* ---------- 404 ---------- */

.not-found { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70vh; padding: 0 16px; text-align: center; }
.not-found .kicker { letter-spacing: 0.18em; margin-bottom: 16px; }
.big { font-size: 3.75rem; font-weight: 900; letter-spacing: -0.025em; margin-bottom: 16px; }
@media (min-width: 768px) { .big { font-size: 6rem; } }
.not-found .tagline { max-width: 420px; margin-bottom: 32px; }
.cta {
  display: inline-flex; align-items: center; height: 44px; padding: 0 24px; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 0.875rem; font-weight: 700; border: 1px solid var(--primary);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cta:hover { background: var(--primary-d); }
.cta-ghost { background: var(--surface); color: var(--txt); border-color: var(--line); }
.cta-ghost:hover { background: var(--surface); color: var(--primary); border-color: var(--primary); }
