:root {
  --bg: #08101b;
  --bg-deep: #050914;
  --panel: rgba(11, 17, 29, 0.78);
  --panel-strong: rgba(13, 19, 33, 0.95);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f0fb;
  --muted: #b8bfd1;
  --gold: #f3c54b;
  --gold-deep: #9d6b03;
  --teal: #2bc4a0;
  --violet: #98a4ff;
  --rose: #ff7f72;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --surface: #0d1829;
  --border: rgba(255, 255, 255, 0.09);
}

/* ── Visibility guards (must come before any display rules) ─────────────── */
[hidden]                  { display: none !important; }
.portal-hidden            { display: none !important; }
#portal-overlay[hidden]   { display: none !important; }
.site-shell[hidden]       { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   MAGINOTES MARKETING CSS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Global reset & base ──────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.1; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; }

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

::selection { background: rgba(243,197,75,0.3); color: var(--text); }

/* ── Layout ───────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.topbar.scrolled {
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(152,164,255,0.3), rgba(92,102,180,0.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  font-size: 1.2rem;
}

.brand-name { color: var(--text); }

.nav {
  display: inline-flex;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a { transition: color 0.15s; }
.nav a:hover, .footer-links a:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-small { min-height: 42px; padding: 0 16px; font-size: 0.85rem; }

.button-gold {
  color: #2d1e04;
  background: linear-gradient(135deg, #ffd86e, #f3c54b 56%, #d89e11);
  box-shadow: 0 8px 28px rgba(243,197,75,0.25);
}

.button-gold:hover { box-shadow: 0 12px 36px rgba(243,197,75,0.35); }

.button-ghost {
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}

.button-ghost:hover { background: rgba(255,255,255,0.07); }

/* ── Shared section styles ────────────────────────────────────────────────── */

.section-kicker {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-label { margin-bottom: 0.5rem; }

.section-h2 {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--text);
}

.section-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 3rem;
}

code {
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9em;
}

.site-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

/* ── Eyebrow ─────────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d7c990;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffe39d, #f3c54b 60%, #c0890e);
  box-shadow: 0 0 14px rgba(243,197,75,0.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 10px rgba(243,197,75,0.4); }
  50% { box-shadow: 0 0 22px rgba(243,197,75,0.7); }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-float {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  pointer-events: none;
  animation: float-in 1s ease both;
}

.hero-float-1 { top: 12%; left: 58%; animation-delay: 0.2s; }
.hero-float-2 { top: 48%; left: 92%; animation-delay: 0.4s; transform: translateX(-100%); }
.hero-float-3 { top: 78%; left: 54%; animation-delay: 0.6s; }

@keyframes float-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1.25rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--text);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #ffd86e 10%, #f3c54b 45%, #98a4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.hero-cta {
  font-size: 1rem;
  min-height: 54px;
  padding: 0 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}

.trust-chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.trust-chip-divider {
  border-color: rgba(43,196,160,0.25);
  color: #a8f0dc;
  background: rgba(43,196,160,0.06);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sp-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.sp-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

.sp-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
  position: relative;
  padding: 24px 0;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-gold {
  width: 320px; height: 320px;
  top: -40px; right: -60px;
  background: radial-gradient(circle, rgba(243,197,75,0.22), transparent 70%);
}

.hero-glow-violet {
  width: 280px; height: 280px;
  bottom: 0; left: -40px;
  background: radial-gradient(circle, rgba(152,164,255,0.2), transparent 70%);
}

.device-mockup {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 40px 90px rgba(0,0,0,0.55);
  padding: 16px;
}

.device-mockup-notch {
  width: 80px;
  height: 8px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}

.device-mockup-screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #0e1826, #080f1a);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-mockup-img {
  display: block;
  width: 100%;
  border-radius: 28px;
}

.device-placeholder-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
}

.device-pill {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(13,24,41,0.88);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(8px);
}

.device-pill-a { top: 14%; right: -18%; }
.device-pill-b { bottom: 18%; left: -16%; }

.pill-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.pill-dot-teal { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.pill-dot-gold { background: var(--gold); box-shadow: 0 0 8px rgba(243,197,75,0.6); }

/* ── Ticker ───────────────────────────────────────────────────────────────── */

.ticker-rail {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin: 48px 0;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.ticker-dot {
  color: var(--gold);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── How it works ────────────────────────────────────────────────────────── */

.how-section {
  padding: 80px 0;
  text-align: center;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}

.how-step {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(13,24,41,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.how-step:hover {
  border-color: rgba(243,197,75,0.3);
  transform: translateY(-4px);
}

.how-step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.how-step-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.how-step h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.how-step p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.how-connector {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  margin-top: 80px;
  background: linear-gradient(90deg, var(--gold), var(--violet));
  opacity: 0.4;
}

/* ── Features grid ───────────────────────────────────────────────────────── */

.features-section {
  padding: 80px 0;
}

.features-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 60px;
  align-items: start;
}

.features-copy {
  position: sticky;
  top: 90px;
}

.features-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.features-copy p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 2rem;
}

.features-cta { align-self: flex-start; }

.features-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feat-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16,23,36,0.95), rgba(10,15,27,0.9));
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.feat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.feat-card:hover {
  transform: translateY(-3px);
}

.feat-card:hover::before { opacity: 1; }

.feat-card-teal { border-color: rgba(43,196,160,0.18); }
.feat-card-teal::before { background: radial-gradient(circle at top left, rgba(43,196,160,0.07), transparent 60%); }

.feat-card-violet { border-color: rgba(152,164,255,0.18); }
.feat-card-violet::before { background: radial-gradient(circle at top left, rgba(152,164,255,0.07), transparent 60%); }

.feat-card-gold { border-color: rgba(243,197,75,0.18); }
.feat-card-gold::before { background: radial-gradient(circle at top left, rgba(243,197,75,0.06), transparent 60%); }

.feat-card-rose { border-color: rgba(255,127,114,0.18); }
.feat-card-rose::before { background: radial-gradient(circle at top left, rgba(255,127,114,0.07), transparent 60%); }

.feat-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feat-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.feat-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.feat-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.feat-placeholder {
  grid-column: 1 / -1;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 10px,
    transparent 10px,
    transparent 20px
  );
  border-style: dashed;
}

.feat-placeholder-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.feat-placeholder-hint {
  font-size: 0.78rem;
  color: rgba(184,191,209,0.5);
  margin: 0;
}

/* ── Magi AI spotlight ────────────────────────────────────────────────────── */

.ai-spotlight {
  padding: 80px 0;
}

.ai-spotlight-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 60px;
  align-items: center;
  padding: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(13,24,41,0.9), rgba(8,12,24,0.95));
  position: relative;
  overflow: hidden;
}

.ai-spotlight-inner::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(152,164,255,0.12), transparent 70%);
  pointer-events: none;
}

.ai-copy .section-kicker { color: var(--violet); }

.ai-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.ai-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.ai-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ai-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.ai-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(43,196,160,0.15);
  border: 1px solid rgba(43,196,160,0.3);
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ai-visual {
  position: relative;
}

.ai-chat-card {
  background: rgba(10,16,28,0.9);
  border: 1px solid rgba(152,164,255,0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(152,164,255,0.05);
}

.ai-chat-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.ai-dot-teal { background: var(--teal); }
.ai-dot-gold { background: var(--gold); }

.ai-chat-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: 4px;
}

.ai-chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 90%;
}

.ai-msg-user {
  background: rgba(152,164,255,0.12);
  border: 1px solid rgba(152,164,255,0.2);
  color: var(--text);
  align-self: flex-end;
  border-radius: 12px 12px 2px 12px;
}

.ai-msg-ai {
  background: rgba(43,196,160,0.07);
  border: 1px solid rgba(43,196,160,0.15);
  color: var(--muted);
  align-self: flex-start;
  border-radius: 12px 12px 12px 2px;
}

.ai-msg-ai strong { color: var(--text); }

.ai-chat-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}

.ai-typing-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--violet);
  opacity: 0.5;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.ai-typing-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 4px;
}

.ai-screenshot-placeholder {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(184,191,209,0.4);
  margin-top: 12px;
}

/* ── Stats band ───────────────────────────────────────────────────────────── */

.stats-band {
  padding: 48px 0;
}

.stats-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(16,23,36,0.9), rgba(10,15,27,0.95));
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 64px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 20px;
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */

.pricing-section {
  padding: 80px 0;
  text-align: center;
}

.pricing-section .section-sub { margin-left: auto; margin-right: auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
  margin-bottom: 40px;
  text-align: left;
}

.pricing-card {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16,23,36,0.95), rgba(10,15,27,0.9));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card-top {
  padding: 1.75rem 1.75rem 0;
  flex: 1;
}

.pricing-card-featured {
  border-color: rgba(243,197,75,0.35);
  background: linear-gradient(180deg, rgba(40,30,8,0.25), rgba(10,15,27,0.92));
  position: relative;
}

.pricing-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(243,197,75,0.08), transparent 50%);
  pointer-events: none;
}

.plan-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  margin-bottom: 1rem;
}

.plan-chip-gold {
  color: #f8e5a1;
  border-color: rgba(243,197,75,0.35);
  background: rgba(243,197,75,0.12);
}

.pricing-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.plan-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.plan-price-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0;
  border-top: 1px solid var(--border);
  padding: 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.plan-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-list li::before {
  content: "✓";
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card-actions {
  padding: 1rem 1.75rem 1.75rem;
}

.pricing-buy-btn { width: 100%; cursor: pointer; }

/* Token guide */
.token-guide {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(13,24,41,0.6);
  margin-bottom: 32px;
  text-align: left;
}

.token-guide-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding-top: 4px;
  flex-shrink: 0;
}

.token-guide-rows {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  flex: 1;
}

.tg-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}

.tg-row span {
  font-size: 0.8rem;
  color: var(--muted);
}

.tg-row strong {
  font-size: 0.92rem;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
}

.tg-row-free {
  border-color: rgba(43,196,160,0.2);
  background: rgba(43,196,160,0.05);
}

.tg-row-free strong { color: var(--teal); }

/* Billing callout */
.billing-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  border: 1px solid rgba(243,197,75,0.2);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(40,30,8,0.18), rgba(10,15,27,0.9));
  text-align: left;
}

.billing-callout h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.billing-callout p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

.billing-callout-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Download ─────────────────────────────────────────────────────────────── */

.download-section {
  padding: 80px 0;
}

.download-inner {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 56px;
  align-items: center;
  padding: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(13,24,41,0.9), rgba(8,12,24,0.95));
}

.download-copy .section-kicker { color: var(--teal); }

.download-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.download-copy > p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 2rem;
}

.store-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  transition: background 0.2s, border-color 0.2s, transform 0.18s;
}

.store-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.store-btn-icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--text);
}

.store-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.store-btn-copy small {
  font-size: 0.7rem;
  color: var(--muted);
}

.store-btn-copy strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.download-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.download-visual {
  display: flex;
  justify-content: center;
}

.download-phone-frame {
  position: relative;
  width: min(260px, 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 44px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.download-phone-img {
  display: block;
  width: 100%;
  border-radius: 32px;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq-section {
  padding: 80px 0;
  text-align: center;
}

.faq-section .section-h2 { margin-bottom: 3rem; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  text-align: left;
}

.faq-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16,23,36,0.95), rgba(10,15,27,0.9));
  transition: border-color 0.2s, transform 0.2s;
}

.faq-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.faq-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.faq-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Final CTA ────────────────────────────────────────────────────────────── */

.final-cta {
  padding: 80px 0;
}

.final-cta-inner {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border: 1px solid rgba(243,197,75,0.2);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(40,30,8,0.18), rgba(10,15,27,0.95));
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(243,197,75,0.1), transparent 60%);
  pointer-events: none;
}

.final-cta-inner h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
  position: relative;
}

.final-cta-inner p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 2.5rem;
  position: relative;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

.final-cta-btn {
  min-height: 56px;
  padding: 0 36px;
  font-size: 1rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-brand .brand-mark { font-size: 1.1rem; }

.footer-brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
  width: 100%;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-legal {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(184,191,209,0.4);
  margin: 0;
}

/* ── Misc legacy tokens (used by some portal sections) ────────────────────── */
.mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: #e5e9f5;
  background: rgba(255,255,255,0.04);
}

.mini-chip-gold {
  color: #f8e5a1;
  border-color: rgba(243,197,75,0.22);
  background: rgba(243,197,75,0.09);
}

.mini-chip-violet {
  color: #d7dbff;
  border-color: rgba(152,164,255,0.22);
  background: rgba(152,164,255,0.1);
}

.mini-chip-teal {
  color: #b9f8e7;
  border-color: rgba(43,196,160,0.22);
  background: rgba(43,196,160,0.08);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .features-split {
    grid-template-columns: 1fr;
  }

  .features-copy {
    position: static;
  }

  .ai-spotlight-inner {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .stats-band-inner {
    flex-wrap: wrap;
    gap: 32px;
  }

  .stat-divider { display: none; }

  .token-guide {
    flex-direction: column;
    gap: 16px;
  }

  .token-guide-rows {
    grid-template-columns: 1fr 1fr;
  }

  .download-inner {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .download-visual { display: none; }

  .billing-callout {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 32px;
  }

  .billing-callout p { max-width: 100%; }
}

@media (max-width: 820px) {
  .nav { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy h1 { font-size: clamp(2.8rem, 10vw, 4rem); }

  .hero-lead { max-width: 100%; }

  .hero-actions { justify-content: center; }

  .hero-trust { justify-content: center; }

  .hero-social-proof { justify-content: center; }

  .hero-visual { display: none; }

  .hero-float { display: none; }

  .how-steps {
    flex-direction: column;
    align-items: center;
  }

  .how-connector {
    width: 2px;
    height: 30px;
    margin: 0;
    background: linear-gradient(180deg, var(--gold), var(--violet));
  }

  .features-cards { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }

  .faq-grid { grid-template-columns: 1fr; }

  .ai-spotlight-inner { padding: 28px; }

  .stats-band-inner { padding: 28px 20px; }

  .final-cta-inner { padding: 48px 24px; }

  .footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-brand { justify-content: center; text-align: center; }

  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .pricing-section,
  .how-section,
  .features-section,
  .ai-spotlight,
  .download-section,
  .faq-section,
  .final-cta { padding: 48px 0; }

  .stats-band { padding: 24px 0; }

  .store-grid { flex-direction: column; }

  .token-guide-rows { grid-template-columns: 1fr; }
}

/* ── Billing Portal ──────────────────────────────────────────────────────── */
.portal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.portal-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  flex: 1;
}

.portal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.portal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.portal-card-success {
  border-color: #168468;
  background: rgba(22, 132, 104, 0.12);
}

.portal-card-success h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #53dfbe;
}

.portal-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.portal-error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.portal-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.portal-google-btn-wrapper {
  margin: 1rem 0;
}

.portal-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.portal-user-bar .portal-hint {
  margin-bottom: 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.portal-plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-plan-card-featured {
  border-color: var(--gold);
  background: rgba(255, 193, 31, 0.05);
}

.portal-plan-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.portal-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.portal-price-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.portal-plan-card .plan-list {
  flex: 1;
}

.portal-plan-card .portal-buy-btn {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

.portal-plan-card .portal-buy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.portal-footer-note {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  margin-top: 1rem;
}

.portal-footer-note a {
  color: var(--gold);
  text-decoration: underline;
}

/* ── Portal dashboard additions ─────────────────────────────────────────────── */

/* Form inputs */
.portal-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.portal-input:focus {
  border-color: var(--gold);
}
.portal-input-readonly {
  color: var(--muted);
  cursor: default;
}
.portal-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.portal-form-field {
  margin-bottom: 0.9rem;
}
.portal-form-row {
  display: flex;
  gap: 0.8rem;
}
.portal-form-row .portal-form-field {
  flex: 1;
}
.portal-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.portal-profile-status {
  font-size: 0.85rem;
  color: var(--teal);
}
.portal-auth-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

/* "or" divider */
.portal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 1rem 0;
}
.portal-divider::before,
.portal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Auth mode switch link */
.portal-auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.portal-auth-switch a {
  color: var(--gold);
  text-decoration: underline;
  cursor: pointer;
}

/* Inline banners */
.portal-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}
.portal-banner-success {
  background: rgba(43, 196, 160, 0.12);
  border: 1px solid rgba(43, 196, 160, 0.35);
  color: var(--teal);
}
.portal-banner-warning {
  background: rgba(243, 197, 75, 0.1);
  border: 1px solid rgba(243, 197, 75, 0.3);
  color: var(--gold);
}
.portal-banner-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.7;
}
.portal-banner-close:hover { opacity: 1; }

/* Account summary card extras */
.portal-user-info {
  flex: 1;
  min-width: 0;
}
.portal-user-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.portal-stat-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 100px;
}
.portal-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.portal-stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

/* Section header with right-aligned refresh button */
.portal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

/* Purchase history table */
.portal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.portal-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  color: var(--text);
}
.portal-history-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.portal-history-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  white-space: nowrap;
}
.portal-history-row:last-child td {
  border-bottom: none;
}
.portal-history-ref {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status badges */
.portal-status-badge {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(255,255,255,0.07);
  color: var(--muted);
}
.portal-status-paid,
.portal-status-complete,
.portal-status-settled {
  background: rgba(43, 196, 160, 0.15);
  color: var(--teal);
}
.portal-status-pending {
  background: rgba(243, 197, 75, 0.12);
  color: var(--gold);
}
.portal-status-failed,
.portal-status-cancelled,
.portal-status-refunded {
  background: rgba(220, 53, 69, 0.12);
  color: #f07080;
}

/* Responsive adjustments */
@media (max-width: 540px) {
  .portal-form-row {
    flex-direction: column;
    gap: 0;
  }
  .portal-stats-row {
    flex-direction: column;
  }
  .portal-stat-chip {
    min-width: unset;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Success banner redirect hint */
.portal-banner-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.portal-banner-redirect-hint {
  font-size: 0.8rem;
  opacity: 0.75;
}

.portal-banner-redirect-hint::after {
  content: '...';
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  width: 0;
  animation: portal-dot-grow 1.2s steps(4, end) infinite;
}

@keyframes portal-dot-grow {
  0%   { width: 0; }
  25%  { width: 0.4ch; }
  50%  { width: 0.8ch; }
  75%  { width: 1.2ch; }
  100% { width: 0; }
}

/* ── Portal login screen ──────────────────────────────────────────────────── */

.portal-login-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top header bar */
.portal-login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.portal-login-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.portal-login-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.portal-login-brand-accent {
  color: var(--gold);
}

.portal-login-secure-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* Two-column body */
.portal-login-body {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0;
}

/* Left welcome panel */
.portal-login-left {
  flex: 1;
  padding: 3rem 3rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 520px;
}

.portal-welcome-heading {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.15;
}

.portal-welcome-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.portal-feature-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.portal-feature-item > div strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.portal-feature-item > div p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.portal-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.portal-feature-icon--violet {
  background: rgba(152, 164, 255, 0.15);
}

.portal-feature-icon--teal {
  background: rgba(43, 196, 160, 0.15);
}

.portal-feature-icon--blue {
  background: rgba(96, 165, 250, 0.15);
}

.portal-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  width: fit-content;
}

.portal-trust-badge svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Right auth column */
.portal-login-right {
  flex: 0 0 480px;
  padding: 2.5rem 3rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Auth card */
.portal-auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
}

.portal-auth-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.portal-auth-card-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1.25rem;
}

/* Auth tabs */
.portal-auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.portal-auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.portal-auth-tab:hover {
  color: var(--text);
}

.portal-auth-tab--active {
  color: var(--text);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

/* Password field with eye toggle */
.portal-pw-field {
  position: relative;
}

.portal-input--pw {
  padding-right: 2.8rem;
}

.portal-pw-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.portal-pw-toggle:hover {
  color: var(--text);
}

/* Forgot password */
.portal-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

.portal-forgot-link {
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
}

.portal-forgot-link:hover {
  text-decoration: underline;
}

/* Terms line */
.portal-terms-line {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

.portal-terms-line a {
  color: var(--gold);
  text-decoration: underline;
}

/* Back button */
.portal-back-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  display: block;
  transition: color 0.15s;
}

.portal-back-btn:hover {
  color: var(--text);
}

/* Success message (reset confirmation) */
.portal-success-msg {
  color: var(--teal);
  background: rgba(43, 196, 160, 0.1);
  border: 1px solid rgba(43, 196, 160, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Gold link */
.portal-link-gold {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Login footer */
.portal-login-footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Mobile: single column */
@media (max-width: 820px) {
  .portal-login-topbar {
    padding: 0.75rem 1rem;
  }

  .portal-login-body {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-login-left {
    padding: 2rem 1.25rem 1.5rem;
    max-width: 100%;
  }

  .portal-welcome-heading {
    font-size: 1.65rem;
  }

  .portal-login-right {
    flex: unset;
    padding: 0.5rem 1.25rem 2rem;
  }
}

@media (max-width: 480px) {
  .portal-login-left {
    display: none;
  }

  .portal-login-right {
    padding: 1.25rem 1rem 2rem;
  }
}
