/* ==========================================================
   HighSpeedProxy — "Sunset Editorial" (demo 5)
   Fraunces + DM Sans · warm paper · bento grids
   ========================================================== */
:root {
  --paper: #fdf6ee;
  --paper-2: #f9ede0;
  --sand: #f5e6d3;
  --ink: #2a1a1f;
  --ink-2: #5b4249;
  --muted: #8f7a74;
  --rule: #e6d3c0;
  --coral: #f2643d;
  --amber: #f59e0b;
  --rose: #e8577a;
  --plum: #7c3a5c;
  --apricot: #fdba74;
  --sunset: linear-gradient(120deg, #f59e0b 0%, #f2643d 45%, #e8577a 75%, #7c3a5c 100%);
  --sunset-soft: linear-gradient(135deg, #fff1dc 0%, #ffe0d1 50%, #fbd5df 100%);
  --radius: 22px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(124, 58, 92, .04), 0 12px 30px -18px rgba(124, 58, 92, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(124,58,92,.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- Masthead / nav ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 246, 238, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 7px 0; border-bottom: 1px solid var(--rule);
}
.masthead-top .live { display: inline-flex; align-items: center; gap: 8px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #3fae6b; box-shadow: 0 0 0 4px rgba(63,174,107,.18); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand em { font-style: italic; font-weight: 400; color: var(--coral); }
.brand-mark { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--sand); color: var(--ink); }
.nav-links a.active { background: var(--ink); color: var(--paper); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--rule); align-items: center; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sunset { background: var(--sunset); color: #fff; box-shadow: 0 10px 24px -10px rgba(242,100,61,.7); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--coral);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; line-height: .98;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.display em { font-style: italic; font-weight: 300; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
h1.display { font-size: clamp(48px, 8vw, 112px); }
h2.display { font-size: clamp(36px, 5vw, 64px); }
h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Section header: "01 — Networks" */
.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 180px 1fr auto; gap: 28px; align-items: end; margin-bottom: 44px; }
.sec-num { font-family: var(--serif); font-size: 15px; color: var(--muted); font-style: italic; border-top: 2px solid var(--ink); padding-top: 10px; }
.sec-num b { font-style: normal; color: var(--coral); font-weight: 700; font-size: 26px; display: block; letter-spacing: -.02em; }
.sec-head p { max-width: 42ch; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero .lede { margin: 28px 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 32px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.hero-meta div b { font-family: var(--serif); font-size: 34px; letter-spacing: -.03em; display: block; line-height: 1; }
.hero-meta div span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(124,58,92,.18)); }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--rule); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow); font-size: 13px;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { font-family: var(--serif); font-size: 18px; display: block; }
.float-card.fc1 { left: -14px; bottom: 16%; }
.float-card.fc2 { right: -6px; top: 10%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Ticker */
.ticker { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden; background: var(--paper-2); }
.ticker-track { display: flex; gap: 48px; padding: 14px 0; white-space: nowrap; animation: scroll 40s linear infinite; width: max-content; font-family: var(--serif); font-size: 20px; font-style: italic; }
.ticker-track span::after { content: "✺"; color: var(--coral); margin-left: 48px; font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; grid-auto-flow: dense; }
.tile {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-2px); }
.tile.sand { background: var(--sand); border-color: transparent; }
.tile.soft { background: var(--sunset-soft); border-color: transparent; }
.tile.ink { background: var(--ink); color: var(--paper); border-color: transparent; }
.tile.ink .muted { color: #c7aeb0; }
.tile.sunset { background: var(--sunset); color: #fff; border-color: transparent; }
.tile.sunset .muted { color: rgba(255,255,255,.8); }
.tile.plum { background: var(--plum); color: #fff; border-color: transparent; }
.tile.plum .muted { color: #e8c9d6; }
.c-2 { grid-column: span 2; } .c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; }
.c-12 { grid-column: span 12; }
.r-2 { grid-row: span 2; }
.tile-label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile.ink .tile-label, .tile.sunset .tile-label, .tile.plum .tile-label { color: inherit; opacity: .78; }
.tile h3 { font-size: 30px; margin: 14px 0 8px; }
.price-big { font-family: var(--serif); font-size: 52px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.price-big small { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; opacity: .7; }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 8px; font-size: 14.5px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--apricot) 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-5' fill='none' stroke='%237c3a5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.tile-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--rule); }
.tile.ink .tile-icon, .tile.sunset .tile-icon, .tile.plum .tile-icon { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.tile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.tile.ink .tile-foot, .tile.sunset .tile-foot, .tile.plum .tile-foot { border-color: rgba(255,255,255,.25); }
.deco-sun { position: absolute; right: -40px; bottom: -40px; width: 200px; opacity: .9; pointer-events: none; }

.pullquote {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2; letter-spacing: -.02em;
}
.pullquote::before { content: "“"; display: block; font-size: 80px; line-height: .6; color: var(--coral); font-style: normal; }

/* Pricing toggle */
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 4px; gap: 2px; background: #fff; flex-wrap: wrap; }
.seg button { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--paper); }
.price-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.ptile { display: flex; flex-direction: column; }
.ptile .ticks { flex: 1; }
.ptile .tag { position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--amber); color: var(--ink); letter-spacing: .06em; text-transform: uppercase; }
.price-num { transition: opacity .2s; }

.compare { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--rule); }
.compare thead th { font-family: var(--serif); font-size: 18px; font-weight: 600; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 500; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* Locations */
.map-tile svg { width: 100%; height: auto; }
.country-list { list-style: none; display: grid; gap: 0; }
.country-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.country-list li:last-child { border-bottom: 0; }
.cc { font-size: 11px; font-weight: 700; letter-spacing: .06em; background: var(--sand); border-radius: 6px; padding: 3px 0; text-align: center; color: var(--plum); }
.bar-mini { height: 4px; border-radius: 4px; background: var(--sand); margin-top: 6px; overflow: hidden; }
.bar-mini i { display: block; height: 100%; background: var(--sunset); border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; font-size: 13px; font-weight: 500; }
.tile.ink .chip { background: transparent; border-color: rgba(255,255,255,.2); }

/* Use cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.case { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--rule); }
.case:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
.case:not(:nth-child(3n+1)) { padding-left: 28px; }
.case .n { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: 15px; }
.case h3 { font-size: 26px; margin: 10px 0 8px; }
.case p { color: var(--ink-2); font-size: 15px; }

/* Code */
.code {
  background: #2a1a1f; color: #fbe9dc; border-radius: 18px; padding: 22px; font-size: 13.5px; line-height: 1.75;
  overflow-x: auto; white-space: pre;
}
.code .k { color: #fdba74; } .code .s { color: #f9a8b8; } .code .c { color: #a68d90; font-style: italic; }
.code-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.code-tabs button { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #c7aeb0; }
.code-tabs button.on { background: rgba(255,255,255,.1); color: #fff; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.faq-item { border-top: 1px solid var(--ink); }
.faq-item:last-child { border-bottom: 1px solid var(--ink); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; text-align: left; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.faq-q .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; transition: transform .3s, background .3s; }
.faq-item.open .pm { transform: rotate(45deg); background: var(--coral); color: #fff; border-color: var(--coral); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--ink-2); }
.faq-a p { padding: 0 60px 24px 0; }

/* CTA */
.cta {
  background: var(--sunset); color: #fff; border-radius: 32px; padding: 70px 56px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta .display em { background: none; color: #fff3e0; -webkit-background-clip: initial; background-clip: initial; }
.cta .btn-ink { background: #fff; color: var(--ink); }
.cta-sun { position: absolute; right: -80px; top: -80px; width: 380px; opacity: .25; }

/* Footer */
.footer { padding: 80px 0 32px; margin-top: 96px; border-top: 2px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.footer ul a:hover { color: var(--coral); }
.footer-big { font-family: var(--serif); font-size: clamp(56px, 11vw, 168px); font-weight: 700; letter-spacing: -.05em; line-height: .85; margin-top: 60px; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* ==========================================================
   App shell (user/admin)
   ========================================================== */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: calc(100vh - 106px); }
.side {
  border-right: 1px solid var(--rule); padding: 28px 18px; position: sticky; top: 106px; height: calc(100vh - 106px); overflow-y: auto;
  background: rgba(249, 237, 224, .55);
}
.side h5 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 22px 12px 8px; font-weight: 600; }
.side h5:first-child { margin-top: 0; }
.side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.side a:hover { background: var(--sand); color: var(--ink); }
.side a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.side a.on svg { color: var(--coral); }
.side-card { margin-top: 26px; padding: 18px; border-radius: 18px; background: var(--sunset); color: #fff; font-size: 13.5px; }
.side-card b { font-family: var(--serif); font-size: 19px; display: block; margin-bottom: 4px; }
.main { padding: 36px 36px 80px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-size: clamp(36px, 4.5vw, 56px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.page-head h1 em { font-style: italic; font-weight: 300; color: var(--coral); }
.page-head .date { font-family: var(--serif); font-style: italic; color: var(--muted); margin-bottom: 8px; }
.app-section { scroll-margin-top: 130px; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-family: var(--serif); font-size: 40px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; margin-top: 10px; }
.delta { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #e7f6ec; color: #23824a; display: inline-block; }
.delta.down { background: #fde6e6; color: #b42828; }
.tile.ink .delta, .tile.sunset .delta, .tile.plum .delta { background: rgba(255,255,255,.18); color: #fff; }
.spark { width: 100%; height: 44px; margin-top: 10px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 14px -26px -26px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 26px; border-bottom: 1px solid var(--rule); background: var(--paper); white-space: nowrap; }
table.t td { padding: 13px 26px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: #fffaf4; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: #e7f6ec; color: #23824a; }
.pill.warn { background: #fff2d6; color: #a86500; }
.pill.bad { background: #fde6e6; color: #b42828; }
.pill.info { background: #f6e3ec; color: var(--plum); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; vertical-align: middle; margin-right: 10px; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--rule); background: #fff; }
.copy-btn:hover { border-color: var(--coral); color: var(--coral); }
.copy-btn.done { background: #e7f6ec; border-color: #bfe6cc; color: #23824a; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; padding: 11px 14px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; font-size: 14.5px; }
.input:focus { outline: 2px solid var(--apricot); border-color: var(--coral); }
.input-row { display: flex; gap: 8px; align-items: center; }
.cred { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--rule); border-radius: 12px; background: var(--paper); margin-top: 10px; font-size: 13.5px; }
.cred code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.ink .cred { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.tile.ink .copy-btn { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }

.hbar { display: grid; grid-template-columns: 110px 1fr 64px; gap: 12px; align-items: center; font-size: 13.5px; margin-top: 12px; }
.hbar .track { height: 12px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 6px; background: var(--sunset); width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.hbar span:last-child { text-align: right; font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); font-size: 11px; fill: var(--muted); }

.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.amounts button { padding: 10px; border: 1px solid var(--rule); border-radius: 12px; font-weight: 600; background: #fff; }
.amounts button.on { border-color: var(--coral); background: #fff4ee; color: var(--coral); }
.gateway { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.gateway label { flex: 1; min-width: 110px; display: flex; gap: 8px; align-items: center; padding: 11px 12px; border: 1px solid var(--rule); border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; background: #fff; }
.gateway input { accent-color: var(--coral); }

.toggle { position: relative; width: 44px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--rule); border-radius: 999px; transition: .2s; cursor: pointer; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + span { background: var(--coral); }
.toggle input:checked + span::after { transform: translateX(20px); }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.setting:last-child { border-bottom: 0; }
.setting b { display: block; font-weight: 600; font-size: 14.5px; }
.setting span { font-size: 13px; color: var(--muted); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: 14px; }
.search input { border: 0; outline: 0; background: none; width: 170px; }

.ticket { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ticket:last-child { border-bottom: 0; }
.ticket b { font-weight: 600; font-size: 14.5px; display: block; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .3s; z-index: 100; box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .price-row { grid-template-columns: repeat(2, 1fr); }
  .c-2 { grid-column: span 3; } .c-3 { grid-column: span 6; } .c-4, .c-5 { grid-column: span 6; } .c-7, .c-8 { grid-column: span 12; }
  .c-6 { grid-column: span 6; }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; gap: 6px; overflow-x: auto; padding: 12px 18px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .side h5, .side-card { display: none; }
  .side a { white-space: nowrap; flex: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 12px 20px 18px; }
  .nav-links.open { display: flex; }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .hero-grid, .faq-grid, .cta { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case, .case:not(:nth-child(3n+1)) { padding: 24px 18px 26px 0; border-right: 0 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masthead-top .hide-sm { display: none; }
  .cta { padding: 48px 28px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .bento { gap: 14px; }
  .c-3, .c-4, .c-5, .c-6, .c-7, .c-8 { grid-column: span 12; } .c-2 { grid-column: span 6; }
  .price-row, .cases { grid-template-columns: 1fr; }
  .main { padding: 24px 18px 60px; }
  .section { padding: 64px 0; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .hbar { grid-template-columns: 84px 1fr 52px; }
  .float-card { display: none; }
  .faq-a p { padding-right: 0; }
  .nav-cta .btn-sunset { padding: 9px 14px; font-size: 13.5px; }
}

/* Small-screen nav fit */
html, body { overflow-x: hidden; }
@media (max-width: 860px) { .hide-sm { display: none !important; } }
@media (max-width: 620px) {
  .brand { font-size: 19px; } .brand-mark { width: 28px; height: 28px; }
  .nav-cta .avatar { display: none; }
  .nav-cta { gap: 6px; }
  .c-2 { grid-column: span 12; }
  .masthead-top { font-size: 10.5px; letter-spacing: .08em; }
}
.stat > .delta { align-self: flex-start; }
