/* ==========================================================
   Unsunset — site styles
   ========================================================== */

:root {
  --bg:        #0b0d10;
  --bg-2:      #101318;
  --surface:   #14181e;
  --surface-2: #1a1f27;
  --line:      #232a33;
  --line-2:    #2e3743;
  --text:      #e8ebef;
  --muted:     #9aa4b1;
  --faint:     #6b7582;
  --accent:    #ffb547;   /* warm "solder" amber */
  --accent-2:  #ff8a3d;
  --ok:        #5fd38d;

  --radius:    14px;
  --radius-sm: 8px;
  --wrap:      1180px;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #111; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #15110a;
  font: 600 15px/1 var(--f-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 0 0 0 rgba(255,181,71,0);
}
.btn:hover { background: #ffc46b; box-shadow: 0 8px 30px -8px rgba(255,181,71,.55); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,16,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--f-display); letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }

.nav ul { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 56px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -240px;
  background: radial-gradient(circle, rgba(255,181,71,.14), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--f-mono); color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2);
  margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(95,211,141,.15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(95,211,141,0); } }

.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; letter-spacing: -0.035em; }
.accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Terminal */
.terminal {
  background: linear-gradient(180deg, #11151b, #0d1014);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
  min-width: 0;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.term-title { margin-left: auto; margin-right: auto; transform: translateX(-20px); font: 400 12px/1 var(--f-mono); color: var(--faint); }
.term-body {
  margin: 0; padding: 22px 22px 26px;
  font: 400 13.5px/1.75 var(--f-mono); color: #c9d1db;
  min-height: 300px; white-space: pre-wrap; word-break: break-word;
}
.term-body .p  { color: var(--accent); }
.term-body .d  { color: var(--faint); }
.term-body .ok { color: var(--ok); }
.term-body .w  { color: #ff7a7a; }
.term-body .hl { color: var(--text); font-weight: 500; }
.cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Platforms strip */
.platforms { position: relative; z-index: 1; margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; }
.platforms-label { font: 500 12px/1 var(--f-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; flex: none; }
.platforms ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.platforms li { font: 500 15px/1.4 var(--f-display); color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font: 500 13px/1 var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.kicker.center { text-align: center; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 560px; }

.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }

/* Problem */
.problem-list { display: grid; gap: 4px; }
.problem-list article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.problem-list article:first-child { padding-top: 0; }
.problem-list h3 { font-size: 20px; margin-bottom: 8px; }
.problem-list p { color: var(--muted); }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .3s ease, transform .3s ease;
}
.case:hover { border-color: var(--line-2); transform: translateY(-3px); }
.case-art {
  aspect-ratio: 3 / 2; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,181,71,.07), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.025) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.025) 23px 24px),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: #8792a0;
}
.case-art svg { width: 72%; height: auto; }
.case-body { padding: 26px 26px 30px; }
.case-tag { font: 500 12px/1 var(--f-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.case h3 { font-size: 22px; margin-bottom: 12px; }
.case p:not(.case-tag) { color: var(--muted); font-size: 15.5px; }
.case-points { margin-top: 18px; display: grid; gap: 8px; }
.case-points li { position: relative; padding-left: 20px; font-size: 14.5px; color: #b9c1cc; }
.case-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--accent); }

.case-feature { grid-column: 1 / -1; flex-direction: row; }
.case-feature .case-art { flex: 0 0 46%; aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--line); }
.case-feature .case-art svg { width: 62%; }
.case-feature .case-body { padding: 44px; align-self: center; }
.case-feature h3 { font-size: 30px; }
.case-feature p:not(.case-tag) { font-size: 16.5px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.service { background: var(--bg-2); padding: 36px 32px 40px; transition: background .3s ease; }
.service:hover { background: var(--surface); }
.svc-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,181,71,.09); border: 1px solid rgba(255,181,71,.22); margin-bottom: 22px; }
.svc-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 19px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; position: relative; }
.process::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line-2) 60%, transparent); }
.process li { padding-right: 24px; position: relative; }
.step {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2);
  font: 500 13px/1 var(--f-mono); color: var(--accent);
  position: relative; margin-bottom: 24px;
}
.process h3 { font-size: 20px; margin-bottom: 10px; }
.process p { color: var(--muted); font-size: 15px; }

/* Principles */
.principles { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.principles div { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.principles dt { font: 600 18px/1.25 var(--f-display); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.principles dt::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; }
.principles dd { margin: 0; color: var(--muted); font-size: 15px; }

/* Stack */
.stack-section { padding: 88px 0; }
.stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.stack li { font: 400 13.5px/1 var(--f-mono); color: var(--muted); padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); transition: color .2s, border-color .2s; }
.stack li:hover { color: var(--accent); border-color: rgba(255,181,71,.4); }

/* Contact */
.contact { border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 80% at 0% 100%, rgba(255,181,71,.07), transparent 60%), var(--bg); }
.contact-meta { margin-top: 36px; display: grid; gap: 14px; }
.contact-meta li { display: flex; gap: 18px; font-size: 15px; }
.contact-meta span { width: 80px; flex: none; font: 500 12px/1.9 var(--f-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.contact-meta a { color: var(--accent); }
.contact-meta a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; gap: 8px; }
.field.full, .form-foot.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: #c3cad3; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15px/1.5 var(--f-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,181,71,.15); }
.field .invalid { border-color: #ff7a7a; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #ff7a7a; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; background: var(--bg); }
.footer-inner { display: flex; gap: 40px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.brand-small { font-size: 16px; }
.brand-small .brand-mark { width: 22px; height: 22px; }
.fine { max-width: 720px; font-size: 13px; color: var(--faint); line-height: 1.6; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case-feature { flex-direction: column; }
  .case-feature .case-art { flex: none; min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-feature .case-body { padding: 30px 26px 34px; }
  .services { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { top: 0; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line-2) 60%, transparent); }
  .process li { padding: 0 0 36px 72px; }
  .step { position: absolute; left: 0; top: -6px; margin: 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 40px; }
  .platforms { margin-top: 56px; flex-direction: column; gap: 16px; }
  .cases, .services, .principles { grid-template-columns: 1fr; }
  .case-feature h3 { font-size: 24px; }
  .form { grid-template-columns: 1fr; padding: 24px 20px; }
  .term-body { font-size: 12px; min-height: 270px; padding: 18px; }

  .nav-toggle {
    display: grid; gap: 6px; place-content: center;
    width: 42px; height: 42px; border-radius: 10px;
    background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  }
  .nav-toggle .bar { width: 18px; height: 1.6px; background: var(--text); transition: transform .25s ease; }
  .nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(3.8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { transform: translateY(-3.8px) rotate(-45deg); }

  .nav ul {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px;
    background: rgba(11,13,16,.97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav ul.open { opacity: 1; transform: none; visibility: visible; }
  .nav li a:not(.btn) { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav li .btn { margin-top: 16px; justify-content: center; width: 100%; padding: 14px; }
}

/* ==========================================================
   Expanded sections
   ========================================================== */

:root { --bad: #ff7a7a; --bad-bg: rgba(255,122,122,.07); --ok-bg: rgba(95,211,141,.07); }

h2, h3 { text-wrap: balance; }
.text-link { color: var(--accent); }
.text-link:hover { text-decoration: underline; }

/* Hero proof row */
.proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; }
.proof li { display: inline-flex; align-items: center; gap: 8px; font: 500 13.5px/1.3 var(--f-mono); color: var(--muted); }
.proof svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Tick list */
.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li { position: relative; padding-left: 28px; color: #c3cad3; font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,181,71,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.8' fill='none' stroke='%23ffb547' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Security comparison */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 500 12px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding-top: 18px; padding-bottom: 18px; background: var(--surface); }
.compare .col-before { color: var(--bad); }
.compare .col-after { color: var(--ok); }
.compare tbody th { width: 17%; font: 500 13px/1.6 var(--f-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.compare td { width: 41.5%; position: relative; padding-left: 46px; }
.compare td::before { position: absolute; left: 22px; top: 16px; font: 600 14px/1.6 var(--f-mono); }
.compare td.bad { color: #d2b4b4; background: var(--bad-bg); }
.compare td.bad::before { content: "✕"; color: var(--bad); }
.compare td.good { color: var(--text); background: var(--ok-bg); }
.compare td.good::before { content: "✓"; color: var(--ok); }

.sec-grid { margin-top: 28px; }
.sec-grid .service { background: var(--bg-2); }

/* Browser demo */
.browsers { align-items: center; }
.browser-demo { display: grid; gap: 16px; min-width: 0; }
.seg { display: inline-flex; justify-self: start; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); }
.seg button {
  font: 500 13.5px/1 var(--f-body); color: var(--muted); background: transparent; border: 0;
  padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }

.browser { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #f4f5f7; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #1c2129; border-bottom: 1px solid var(--line); }
.b-dots { display: flex; gap: 6px; flex: none; }
.b-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #0f1216; border-radius: 999px; padding: 7px 14px; font: 400 13px/1 var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.url-text { overflow: hidden; text-overflow: ellipsis; }
.url svg { width: 14px; height: 14px; flex: none; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.url-warn { stroke: var(--bad); }
.url-lock { stroke: var(--ok); display: none; }
.browser[data-state="before"] .url-scheme { color: var(--bad); text-decoration: line-through; }
.browser[data-state="after"] .url-warn { display: none; }
.browser[data-state="after"] .url-lock { display: block; }

.b-view { min-height: 340px; padding: 34px 32px; }
.browser[data-state="before"] .b-after, .browser[data-state="after"] .b-before { display: none; }
.b-before { background: #f4f5f7; color: #3c4043; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.b-err-ico { width: 46px; height: 46px; fill: none; stroke: #6f7378; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.b-before h3 { font: 500 21px/1.3 var(--f-body); letter-spacing: 0; color: #202124; }
.b-before p { font-size: 14.5px; }
.b-before code { font: 400 12.5px/1 var(--f-mono); color: #5f6368; }

.b-after { background: var(--surface); color: var(--text); display: grid; gap: 18px; align-content: start; animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.ui-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ui-title { font: 600 17px/1.3 var(--f-display); }
.ui-sub { font: 400 12px/1.6 var(--f-mono); color: var(--faint); }
.pill-ok { font: 500 12px/1 var(--f-mono); color: var(--ok); background: var(--ok-bg); border: 1px solid rgba(95,211,141,.3); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-tiles div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 4px; min-width: 0; }
.ui-tiles span { font: 400 11px/1.3 var(--f-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.ui-tiles b { font: 500 14px/1.3 var(--f-body); }
.ui-points { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ui-points td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.ui-points td:last-child { text-align: right; color: var(--text); font-family: var(--f-mono); font-size: 13.5px; }
.ui-points td.on { color: var(--ok); }
.ui-tls { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--f-mono); color: var(--ok); }
.ui-tls svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Drop-in topology */
.topo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; position: relative; }
.topo li { position: relative; padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.topo li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -35px; width: 34px; height: 0;
  border-top: 2px dashed var(--line-2);
}
.topo h3 { font-size: 18px; margin: 14px 0 8px; }
.topo p { color: var(--muted); font-size: 14.5px; }
.topo-tag { display: inline-block; font: 500 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); border: 1px solid var(--line-2); padding: 6px 9px; border-radius: 999px; }
.topo-new { border-color: rgba(255,181,71,.55) !important; background: linear-gradient(180deg, rgba(255,181,71,.08), transparent 70%), var(--bg) !important; box-shadow: 0 20px 50px -25px rgba(255,181,71,.35); }
.topo-new .topo-tag { color: #15110a; background: var(--accent); border-color: var(--accent); }
.dropin-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; margin-top: 40px; max-width: 980px; }
.dropin-notes p { color: var(--muted); font-size: 15.5px; }
.dropin-notes b { color: var(--text); font-weight: 600; }

/* Case specs */
.specs { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.specs div { background: var(--surface-2); padding: 12px 14px; }
.specs dt { font: 500 11px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.specs dd { margin: 3px 0 0; font: 500 14.5px/1.4 var(--f-body); color: var(--text); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { padding: 32px 30px 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.plan-main { border-color: rgba(255,181,71,.45); background: linear-gradient(180deg, rgba(255,181,71,.06), transparent 60%), var(--bg); }
.plan-name { font: 600 22px/1.2 var(--f-display); letter-spacing: -0.02em; }
.plan-desc { margin-top: 8px; color: var(--muted); font-size: 15px; }
.plan .ticks { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan .ticks li { font-size: 15px; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 600 18px/1.35 var(--f-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat,
              linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }

/* Contact needs */
.checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.checks legend { font-size: 13.5px; font-weight: 500; color: #c3cad3; padding: 0; margin-bottom: 10px; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--bg); transition: all .2s; }
.checks label:hover span { border-color: var(--muted); color: var(--text); }
.checks input:checked + span { border-color: var(--accent); color: var(--accent); background: rgba(255,181,71,.08); }
.checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Footer columns */
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-tag { margin-top: 12px; color: var(--muted); font-size: 15px; }
.footer-h { font: 500 12px/1 var(--f-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-cols ul { display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.footer-cols a:hover { color: var(--accent); }

/* Responsive for expanded sections */
@media (max-width: 1020px) {
  .topo { grid-template-columns: 1fr 1fr; gap: 20px; }
  .topo li:not(:last-child)::after { display: none; }
  .plans { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { width: auto; padding: 16px 18px 8px; border: 0; }
  .compare td { border: 0; padding: 10px 18px 10px 42px; }
  .compare td::before { left: 18px; top: 10px; }
  .compare td.good { margin-bottom: 8px; }
  .topo { grid-template-columns: 1fr; gap: 14px; }
  .dropin-notes { grid-template-columns: 1fr; }
  .b-view { padding: 26px 20px; min-height: 0; }
  .ui-tiles { grid-template-columns: 1fr 1fr; }
  .faq details p { padding-right: 0; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* Spam trap: hidden from people, filled in by bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* 404 page */
.notfound { min-height: 100vh; display: flex; align-items: center; padding-block: 64px; }
.notfound .wrap { position: relative; z-index: 1; }
.notfound .brand { margin-bottom: 72px; }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -0.035em; }
