/*!
 * ShipKit customer frontend — site styles.
 * License: MIT © 2026 Daniel Wilson Kemp / Lifted Holdings.
 * Built on the Lifted Design System (blue brand). Requires tokens.css, which
 * supplies the DS neutrals, the blue brand ramp, type, and theme flips. These
 * local aliases just map the page's names onto the DS semantic tokens — so
 * dark/light and rebrands stay token-driven.
 */

:root {
  --ground: var(--bg-page);
  --surface: var(--surface-card);
  --surface-2: var(--surface-sunken);
  --border: var(--border-default);
  --text: var(--text-body);
  --heading: var(--text-strong);
  --muted: var(--text-muted);
  --primary: var(--brand);
  --primary-hover: var(--brand-bright);
  --secure: var(--trust);            /* 3-D Secure accent — cyan */
  --warning: var(--warning);
  --danger: var(--error);
  --radius: var(--radius-lg);
  --radius-sm: var(--radius-md);
  --maxw: var(--container);
  --font: var(--font-sans);
  --mono: var(--font-mono);
  --shadow: var(--shadow-lg);
  --aurora-blob: 0.42; /* canvas blob opacity — softened in light theme below */
}
:root[data-theme="light"] { --aurora-blob: 0.22; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --aurora-blob: 0.22; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--ground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3 { color: var(--heading); font-family: var(--font-display); text-wrap: balance; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0; max-width: 66ch; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* Keyboard focus ring for the landing page (mirrors the demo). */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

code, kbd, pre { font-family: var(--mono); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

.section { padding-block: clamp(56px, 9vw, 104px); }

/* ---------- Top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--ground) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--heading); font-size: 1.05rem; }
.brand__mark { width: 26px; height: 26px; display: block; }
.nav__links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav__links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav__links a:hover { color: var(--heading); }
.nav__links a.active:not(.nav__cta):not(.nav__pm) { position: relative; color: var(--heading); }
.nav__links a.active:not(.nav__cta):not(.nav__pm)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--primary);
}
.nav__cta {
  padding: 8px 15px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff !important; font-weight: 600;
  box-shadow: 0 6px 18px -12px rgba(46, 107, 255, 0.7);
}
.nav__cta:hover { background: var(--primary-hover); }
.theme-toggle {
  appearance: none; cursor: pointer; width: 36px; height: 36px;
  display: grid; place-items: center; color: var(--muted);
  background: transparent; border: 1px solid var(--border); border-radius: 9px;
}
.theme-toggle:hover { color: var(--heading); border-color: var(--primary); }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .ic-moon { display: none; }
  :root:not([data-theme]) .theme-toggle .ic-sun { display: block; }
}
/* Collapse the extra nav links before they overflow the bar (parity with the demo's 1000px breakpoint); keep the primary CTA + theme toggle. */
@media (max-width: 1000px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 22% 18%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 60%),
    radial-gradient(45% 45% at 82% 12%, color-mix(in srgb, var(--secure) 18%, transparent), transparent 62%),
    radial-gradient(60% 50% at 60% 70%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 65%);
  filter: saturate(115%);
}
.hero__meshgrid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 72%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-top: clamp(40px, 6vw, 72px);
}
.hero h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--secure); background: color-mix(in srgb, var(--secure) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--secure) 34%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
.hero p.lead { margin-top: 18px; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__meta { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong { color: var(--heading); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.hero__meta span { color: var(--muted); font-size: 0.82rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px -10px rgba(46, 107, 255, 0.7); }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--secure { background: var(--secure); color: #04140d; }
.btn--secure:hover { background: color-mix(in srgb, var(--secure) 82%, #fff); color: #04140d; }

.hero__widget { min-width: 0; }

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

/* Browser chrome that frames the hero widget (mirrors the demo) */
.browser {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.browser__bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, var(--ground));
}
.browser__dots { display: flex; gap: 6px; flex: none; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser__dots i:nth-child(1) { background: #E5484D; }
.browser__dots i:nth-child(2) { background: #E0A83B; }
.browser__dots i:nth-child(3) { background: var(--success); }
.browser__url {
  flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--ground); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px;
  max-width: 300px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser__powered { flex: none; font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.browser__shield { width: 13px; height: 13px; color: var(--secure); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 40px; height: 40px; padding: 8px; color: var(--primary);
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 11px;
}
.card h3 { margin-top: 4px; }
.card p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

.section__head { max-width: 62ch; }
.section__head p { color: var(--muted); margin-top: 12px; }

/* ---------- Adoption tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
.tier {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tier:hover { transform: translateY(-4px); }
.tier--managed { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.tier--managed::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--primary), var(--secure)); }
.tier--managed:hover { box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--primary) 60%, transparent); }
.tier__eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tier__badge {
  position: absolute; top: 18px; right: 18px; font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  padding: 4px 10px; border-radius: 999px;
}
.tier__badge--turn { color: var(--secure); background: color-mix(in srgb, var(--secure) 16%, transparent);
  border-color: color-mix(in srgb, var(--secure) 40%, transparent); }
.tier h3 { font-size: 1.22rem; }
.tier__blurb { color: var(--muted); font-size: 0.85rem; line-height: 1.5; min-height: 34px; }
.tier__price { padding: 12px 0 14px; border-bottom: 1px dashed var(--border); }
.tier__price .amt { font-family: var(--display, var(--mono)); font-size: 1.7rem; font-weight: 800; color: var(--heading);
  letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1; }
.tier__price .amt.compact { font-size: 1.35rem; }
.tier__price .amt small { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.tier__price .note { display: block; margin-top: 7px; font-size: 0.8rem; color: var(--muted); }
.tier__surcharge { display: flex; gap: 8px; align-items: flex-start; font-size: 0.75rem; font-weight: 600; line-height: 1.45;
  color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); border-radius: 10px; padding: 8px 11px; }
.tier__surcharge svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; line-height: 1.45; }
.tier li svg { width: 17px; height: 17px; color: var(--secure); flex: none; margin-top: 1px; }
.tier li.dim { color: var(--muted); } .tier li.dim svg { color: var(--muted); }
.tier .btn { margin-top: auto; width: 100%; justify-content: center; }
.tier__subcta { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: -4px; }
.tier__subcta a { color: var(--primary); font-weight: 600; }
@media (max-width: 1000px) { .tiers { grid-template-columns: 1fr; } .tier { max-width: 560px; margin: 0 auto; width: 100%; } }

/* ---------- Custom-dev band ---------- */
.custom-band { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent 55%), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.custom-band__copy { display: flex; gap: 18px; align-items: center; min-width: 0; }
.custom-band__ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.custom-band__ic svg { width: 24px; height: 24px; }
.custom-band h3 { font-size: 1.15rem; }
.custom-band p { color: var(--muted); font-size: 0.88rem; margin-top: 4px; max-width: 56ch; }
@media (max-width: 640px) { .custom-band { flex-direction: column; align-items: flex-start; } .custom-band .btn { width: 100%; justify-content: center; } }

/* ---------- Developer resources ---------- */
.devres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.devres__card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: transform .18s ease, border-color .18s ease; }
.devres__card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.devres__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 14px;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent); }
.devres__ic svg { width: 22px; height: 22px; }
.devres__card h3 { font-size: 1.02rem; }
.devres__card p { color: var(--muted); font-size: 0.85rem; margin-top: 6px; line-height: 1.5; flex: 1; }
.devres__path { font-family: var(--mono); font-size: 0.76rem; color: var(--secure); margin-top: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.devres__link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 14px;
  font-size: 0.8rem; font-weight: 700; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); padding: 7px 12px; border-radius: 9px; transition: .15s; }
.devres__link:hover { background: var(--primary); color: #fff; }
.devres__link svg { width: 14px; height: 14px; }
@media (max-width: 820px) { .devres { grid-template-columns: 1fr; } }

/* ---------- Code / quickstart ---------- */
.quickstart { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: center; margin-top: 40px; }
.codewin {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.codewin__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.codewin__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.codewin__file { margin-left: 8px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.codewin pre {
  margin: 0; padding: 20px; overflow-x: auto; font-size: 0.85rem; line-height: 1.7;
  color: var(--text); tab-size: 2;
}
.codewin pre .tok-tag { color: var(--primary-hover); }
.codewin pre .tok-attr { color: var(--secure); }
.codewin pre .tok-str { color: var(--warning); }
.codewin pre .tok-com { color: var(--muted); font-style: italic; }
.codewin pre .tok-fn { color: var(--primary-hover); }
@media (max-width: 820px) { .quickstart { grid-template-columns: 1fr; } }

/* ---------- 3DS panel ---------- */
.secure-panel {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--secure) 8%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--secure) 30%, var(--border));
  border-radius: var(--radius); padding: clamp(28px, 5vw, 48px);
}
.secure-panel__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.pillars { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.pillar { display: flex; gap: 14px; align-items: flex-start; }
.pillar svg { width: 22px; height: 22px; color: var(--secure); flex: none; margin-top: 2px; }
.pillar strong { color: var(--heading); display: block; margin-bottom: 2px; }
.pillar span { color: var(--muted); font-size: 0.9rem; }
.secure-cta { display: flex; flex-direction: column; gap: 14px; }
.secure-cta__note { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 860px) { .secure-panel__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 40px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer__grid p { color: var(--muted); font-size: 0.85rem; }
.footer__links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 0.85rem; }
.footer__links a:hover { color: var(--heading); }
.footer__secure { display: inline-flex; align-items: center; gap: 8px; color: var(--secure); font-weight: 600; font-size: 0.85rem; }
.footer__secure svg { width: 18px; height: 18px; }

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* =========================================================================
   ELEVATION LAYER — aurora atmosphere + glass depth (parity with the demo).
   Appended so cascade order lets these refine the base rules above.
   All token-driven; self-contained (no external hosts/fonts).
   ========================================================================= */

/* page-wide atmospheric wash beneath everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 40% at 12% -6%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    radial-gradient(50% 40% at 92% 4%, color-mix(in srgb, var(--trust) 12%, transparent), transparent 62%),
    radial-gradient(70% 60% at 50% 118%, rgba(124, 92, 255, 0.10), transparent 60%);
}

/* Nav: frostier glass + Postman pill */
.nav { backdrop-filter: saturate(1.5) blur(16px); }
.nav__pm {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
  color: var(--heading) !important; background: var(--glass-surface);
  border: 1px solid var(--glass-border); backdrop-filter: blur(8px); transition: border-color .15s;
}
.nav__pm:hover { border-color: #FF6C37; color: var(--heading) !important; }
.pm-orb {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 30%, #FF8A5B, #FF6C37 62%, #E14E1E);
  box-shadow: 0 0 0 2px rgba(255, 108, 55, 0.18);
}
.btn--pm { background: var(--glass-surface); color: var(--heading); border-color: var(--glass-border); backdrop-filter: blur(8px); }
.btn--pm:hover { border-color: #FF6C37; color: var(--heading); }

/* Hero: animated aurora canvas + glow line */
.hero { isolation: isolate; }
#aurora {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: 0.95; pointer-events: none;
  -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 42%, transparent 92%);
  mask-image: radial-gradient(130% 100% at 50% 0%, #000 42%, transparent 92%);
}
:root[data-theme="light"] #aurora { opacity: 0.55; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) #aurora { opacity: 0.55; } }
.hero__mesh { opacity: 0.6; }
.hero__glowline {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--trust) 50%, transparent), color-mix(in srgb, var(--brand) 50%, transparent), transparent);
}

/* Hero widget: glass frame + glow halo */
.hero__widget { position: relative; z-index: 1; }
.hero__widget::before {
  content: ""; position: absolute; inset: -14% -8%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 62% 28%, color-mix(in srgb, var(--brand) 50%, transparent), transparent 66%),
    radial-gradient(55% 55% at 30% 82%, color-mix(in srgb, var(--trust) 40%, transparent), transparent 66%);
  filter: blur(36px); opacity: 0.55;
}
.browser {
  border-color: var(--glass-border);
  background: var(--glass-fill);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  box-shadow: var(--shadow), 0 40px 120px -40px rgba(46, 107, 255, 0.42);
  position: relative;
}
.browser::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--brand), var(--trust)); }
.browser__bar { background: linear-gradient(180deg, var(--glass-hi), transparent); }

/* Live rate feed strip above the real widget (mirrors the demo console) */
.livefeed {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 16px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-card) 60%, transparent);
  font-size: 0.72rem; color: var(--muted);
}
.livefeed .live { display: inline-flex; align-items: center; gap: 7px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--success); font-size: 0.66rem; }
.livefeed .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(0, 225, 140, 0.55); animation: sk-pulse 1.9s ease-out infinite; }
.livefeed .lat { font-family: var(--mono); color: var(--heading); }
@keyframes sk-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,225,140,.5); } 70% { box-shadow: 0 0 0 7px rgba(0,225,140,0); } 100% { box-shadow: 0 0 0 0 rgba(0,225,140,0); } }
@media (prefers-reduced-motion: reduce) { .livefeed .pip { animation: none; } }

/* Cards + tiers + devres: glass depth */
.card, .tier, .devres__card {
  border-color: var(--glass-border);
  background: var(--glass-fill);
  /* Light blur only — these sit below the fold; a large backdrop-blur here is
     a costly paint over the animated aurora with no visible payoff. */
  backdrop-filter: blur(6px) saturate(1.3); -webkit-backdrop-filter: blur(6px) saturate(1.3);
}
.tier--managed { box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent); overflow: hidden; }
.tier--managed::after {
  content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 70%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 32%, transparent), transparent 62%);
  filter: blur(30px); pointer-events: none;
}
.tier__badge--pop { color: #fff; background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  border: 0; box-shadow: 0 6px 18px -8px rgba(46, 107, 255, 0.9); }

/* Managed / frictionless-aware note chip inside a tier */
.tier__note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.75rem; font-weight: 600; line-height: 1.45;
  color: var(--trust); background: var(--trust-tint);
  border: 1px solid color-mix(in srgb, var(--trust) 28%, transparent); border-radius: 10px; padding: 8px 11px; }
.tier__note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }

/* ---------- Import into your checkout (framework tabs) ---------- */
.fw-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 22px; }
.fw-tab { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; color: var(--muted);
  background: var(--glass-surface); border: 1px solid var(--glass-border); backdrop-filter: blur(6px);
  padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: .15s; font-family: inherit; }
.fw-tab:hover { color: var(--heading); border-color: var(--border-strong); }
.fw-tab.on { color: var(--primary); background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.fw-tab .fd { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.import-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: center; margin-top: 40px; }
@media (max-width: 820px) { .import-grid { grid-template-columns: 1fr; } }
.import-steps { display: flex; flex-direction: column; gap: 18px; }
.import-step { display: flex; gap: 14px; }
.import-step .n { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 0.8rem; background: var(--brand-tint); color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.import-step h3 { font-size: 0.98rem; }
.import-step p { color: var(--muted); font-size: 0.88rem; margin-top: 3px; }
.import-step code, .import-note code { font-family: var(--mono); font-size: 0.8rem; color: var(--primary);
  background: var(--brand-tint); padding: 1px 6px; border-radius: 5px; }
.import-note { margin-top: 16px; font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 9px; line-height: 1.5; }
.import-note svg { width: 16px; height: 16px; color: var(--trust); flex: none; }
.fw-src[hidden] { display: none; }

/* ---------- Frictionless vs forced-3DS comparison ---------- */
.friction { position: relative; margin-top: 22px; border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 150% at 100% 0%, var(--trust-tint), transparent 52%), var(--glass-fill);
  backdrop-filter: blur(6px) saturate(1.3); -webkit-backdrop-filter: blur(6px) saturate(1.3); box-shadow: var(--shadow); }
.friction-head { padding: 26px 28px 6px; }
.friction-head .kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--trust); }
.friction-head h3 { font-size: 1.4rem; font-weight: 800; margin-top: 10px; letter-spacing: -0.02em; }
.friction-head p { margin-top: 10px; font-size: 0.88rem; color: var(--muted); max-width: 66ch; line-height: 1.55; }
.friction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); margin-top: 22px; }
@media (max-width: 680px) { .friction-grid { grid-template-columns: 1fr; } }
.fcol { background: var(--surface-card); padding: 22px 24px 24px; }
.fcol.rails { background: linear-gradient(180deg, var(--trust-tint), transparent), var(--surface-card); }
.fcol .fc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.fcol .fc-t { font-size: 0.9rem; font-weight: 800; color: var(--heading); letter-spacing: -0.01em; }
.fcol .fc-tag { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.fc-tag.def { color: var(--muted); border: 1px solid var(--border-strong); }
.fc-tag.opt { color: var(--trust); background: var(--trust-tint); border: 1px solid color-mix(in srgb, var(--trust) 30%, transparent); }
.fcol .fc-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; }
.fcol ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.fcol li { display: flex; gap: 9px; font-size: 0.82rem; color: var(--text); align-items: flex-start; line-height: 1.45; }
.fcol li svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.fcol.forced li svg { color: var(--muted); }
.fcol.rails li svg { color: var(--trust); }
.fcol li code { font-family: var(--mono); font-size: 0.78rem; color: var(--primary); background: var(--brand-tint); padding: 1px 5px; border-radius: 5px; }
.friction-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 28px 24px; }
.friction-foot p { font-size: 0.78rem; color: var(--muted); max-width: 60ch; line-height: 1.5; }
.friction-foot .btn { flex: none; }
.btn--trust { background: var(--trust); color: #04141c; }
.btn--trust:hover { filter: brightness(1.06); color: #04141c; }
