/* getspottdrossel.com — Spottdrossel: Native USB Screen Mirroring für iPhone (macOS) */

:root {
  color-scheme: light dark;

  /* Daylight Studio: crisp warm alabaster, midnight ink, origami coral-crimson */
  --bg: #f8f6f6;
  --bg-alt: #f0ecec;
  --surface: #ffffff;
  --surface-subtle: #f5f1f1;
  --fg: #10141e;
  --muted: #4b5563;
  --faint: #6c7786;
  --line: rgba(16, 20, 30, 0.095);
  --line-strong: rgba(16, 20, 30, 0.18);
  --accent: #c8374b;
  --accent-hover: #ab293b;
  --accent-bright: #e54d61;
  --accent-soft: rgba(200, 55, 75, 0.10);
  --on-accent: #ffffff;
  --code-bg: rgba(200, 55, 75, 0.08);
  --code-fg: #9c2233;
  --shadow-soft:
    0 1px 2px rgba(16, 20, 30, 0.05),
    0 10px 26px -12px rgba(16, 20, 30, 0.11);
  --shadow-elevated:
    0 1px 2px rgba(16, 20, 30, 0.07),
    0 24px 52px -18px rgba(16, 20, 30, 0.22);

  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  --text-body: 1.0625rem;
  --text-sm: 0.875rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Midnight Origami: deep slate-navy matching AppIcon + luminous coral-crimson */
    --bg: #0b1018;
    --bg-alt: #101723;
    --surface: #131c2b;
    --surface-subtle: #182336;
    --fg: #f0f3f7;
    --muted: #a1b0c4;
    --faint: #73869e;
    --line: rgba(215, 228, 244, 0.095);
    --line-strong: rgba(215, 228, 244, 0.19);
    --accent: #f26072;
    --accent-hover: #ff7a8a;
    --accent-bright: #ff6b7d;
    --accent-soft: rgba(242, 96, 114, 0.14);
    --on-accent: #1c070a;
    --code-bg: rgba(242, 96, 114, 0.13);
    --code-fg: #ff9da9;
    --shadow-soft:
      0 1px 0 rgba(255, 255, 255, 0.04) inset,
      0 12px 32px -14px rgba(0, 0, 0, 0.56);
    --shadow-elevated:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 28px 60px -18px rgba(0, 0, 0, 0.78);
  }
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--text-body)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-hover); }

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

code, kbd {
  font-family: var(--mono);
  font-size: 0.85em;
}

main code, kbd {
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--code-bg);
  color: var(--code-fg);
}

h1, h2, h3 {
  color: var(--fg);
  text-wrap: balance;
  margin-top: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: var(--radius-sm); }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 650;
  letter-spacing: -0.015em;
  font-size: 1.02rem;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--fg); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-family: var(--mono);
}
.lang-switch [aria-current="true"] { color: var(--fg); font-weight: 650; }
.lang-switch a { color: var(--faint); }

.nav-cta {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent) !important;
  color: var(--on-accent) !important;
  font-weight: 600;
  font-size: 0.87rem;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* Hero */
.hero {
  position: relative;
  padding: 74px 0 56px;
  overflow: hidden;
}

.hero-facets {
  position: absolute;
  right: -60px;
  top: -10px;
  width: 680px;
  max-width: 72vw;
  pointer-events: none;
  opacity: 0.92;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: 48px;
  align-items: start;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.35rem, 4.4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--fg);
  margin: 0 0 14px;
  max-width: 58ch;
}

.hero-sub {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--fg); }

.text-link {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
}
.text-link:hover { color: var(--accent); }

/* Ledger Card */
.ledger-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}

.ledger-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.ledger-icon {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ledger-title strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.ledger-title span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
}

.ledger {
  margin: 0;
  display: grid;
  gap: 10px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ledger-row dt {
  color: var(--faint);
  font-weight: 500;
}

.ledger-row dd {
  margin: 0;
  color: var(--fg);
}

/* Interactive Preview Stage */
.stage {
  padding: 12px 0 76px;
}

.stage-wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.stage-hint {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.stage-pills {
  display: inline-flex;
  gap: 6px;
  background: var(--surface);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.stage-pill {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 0.82rem/1 var(--sans);
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.stage-pill[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.desktop-canvas {
  position: relative;
  min-height: 600px;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(640px 380px at 50% 35%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 72%),
    linear-gradient(180deg, #101622 0%, #090d14 100%);
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.desktop-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  padding: 0 14px;
  background: rgba(15, 20, 30, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.84);
  user-select: none;
}

.menubar-left, .menubar-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.menubar-app { font-weight: 650; color: #fff; }

.sd-window {
  position: relative;
  width: 286px;
  height: 556px;
  border-radius: 42px;
  background: linear-gradient(145deg, #272b34 0%, #111319 100%);
  padding: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 28px 64px -16px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(0, 0, 0, 0.6);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), padding 0.25s var(--ease), border-radius 0.25s var(--ease), box-shadow 0.25s ease;
  margin-top: 16px;
}

.sd-window.is-landscape {
  width: 556px;
  height: 286px;
}

.sd-window.is-frameless {
  padding: 0;
  border-radius: 14px;
  background: #000;
  border-color: rgba(255, 255, 255, 0.12);
}

.sd-window.is-floating {
  box-shadow:
    0 34px 80px -12px rgba(0, 0, 0, 0.92),
    0 0 0 1.5px rgba(242, 96, 114, 0.55);
}

.sd-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: #0d121c;
  color: #eef3f8;
  transition: border-radius 0.25s var(--ease);
}

.sd-window.is-frameless .sd-screen {
  border-radius: 13px;
}

.sd-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 4;
}

.sd-window.is-landscape .sd-island {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 22px;
  height: 82px;
}

.sd-screen-content {
  position: absolute;
  inset: 0;
  padding: 46px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(160deg, #162033 0%, #0d131f 100%);
}

.sd-window.is-landscape .sd-screen-content {
  padding: 20px 26px 20px 44px;
  flex-direction: row;
  align-items: center;
}

.mock-kicker {
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f26072;
}

.mock-title {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.15;
  margin: 2px 0 4px;
  color: #fff;
}

.mock-copy {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(235, 241, 248, 0.72);
  margin: 0;
}

.mock-cards {
  display: grid;
  gap: 8px;
  flex: 1;
}

.mock-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.mock-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.mock-card-sub {
  font-size: 0.68rem;
  color: rgba(235, 241, 248, 0.56);
  font-family: var(--mono);
}

.mock-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}

.sd-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 12;
  transition: opacity 0.22s ease;
}
.sd-flash.is-flashing { opacity: 0.85; transition: none; }

.sd-rec-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(239, 68, 68, 0.65);
  color: #fff;
  font: 600 0.72rem/1 var(--mono);
}

.sd-rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ef4444;
  animation: pulse-rec 1.1s ease-in-out infinite;
}

@keyframes pulse-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Auto-fading centered HUD matching the real Spottdrossel.app */
.sd-hud-top,
.sd-hud-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.sd-window.is-hud-visible .sd-hud-top,
.sd-window.is-hud-visible .sd-hud-bottom {
  opacity: 1;
  pointer-events: auto;
}

.sd-hud-top {
  top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(18, 22, 31, 0.74);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  color: #fff;
  white-space: nowrap;
}

.sd-window.is-landscape .sd-hud-top { top: 12px; }

.sd-green-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.sd-hud-res {
  font-family: var(--mono);
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.62);
}

.sd-hud-bottom {
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18, 22, 31, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.52);
}

.sd-hud-btn {
  appearance: none;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sd-hud-btn:hover { background: rgba(255, 255, 255, 0.12); }
.sd-hud-btn[aria-pressed="true"] {
  background: rgba(242, 96, 114, 0.24);
  color: #f26072;
}
.sd-hud-btn.is-rec[aria-pressed="true"] {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.sd-hud-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
}

.sd-toast {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 22, 31, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
}

.stage-caption {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--faint);
  text-align: center;
}

/* Editorial Chapters */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 62ch;
  margin-bottom: 44px;
}

.section-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.chapter:first-of-type { border-top: 0; padding-top: 0; }

.chapter-text h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 12px;
}

.chapter-text p {
  margin: 0 0 12px;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}

.spec-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.spec-item:last-child { padding-bottom: 0; border-bottom: 0; }
.spec-item span:first-child { color: var(--muted); }
.spec-item strong { font-family: var(--mono); font-size: 0.84rem; color: var(--fg); }

.panel-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--faint);
}

/* Feature List */
.feature-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 34px;
}

.feature-list dt {
  font-weight: 650;
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--fg);
}

.feature-list dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.58;
}

/* Privacy Band */
.privacy {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  background: #0d131f;
  color: #eef3f8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 14px;
}

.privacy-facets {
  position: absolute;
  right: -40px;
  top: -20px;
  width: 520px;
  pointer-events: none;
  opacity: 0.85;
}

.privacy-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: start;
}

.privacy-lead {
  color: #a1b0c4;
  margin: 0;
  font-size: 1.02rem;
}

.privacy-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}

.privacy-list dt {
  font-weight: 650;
  color: #fff;
  margin-bottom: 5px;
  font-size: 0.96rem;
}

.privacy-list dd {
  margin: 0;
  color: #a1b0c4;
  font-size: 0.9rem;
  line-height: 1.56;
}

/* FAQ */
.faq {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 44px;
  align-items: start;
}

.faq-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  margin-bottom: 8px;
}

.faq-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 400;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

/* Closing CTA */
.closing {
  padding: 20px 0 80px;
}

.closing-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.closing-inner img {
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.closing-inner h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.closing-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.closing-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.closing-meta {
  font-size: 0.78rem;
  color: var(--faint);
  font-family: var(--mono);
}

/* Legal & Help Subpages */
.legal-main {
  width: min(740px, calc(100% - 48px));
  margin: 56px auto 84px;
}

.legal-main h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-bottom: 18px;
}

.legal-main h2 {
  font-family: var(--serif);
  font-size: 1.32rem;
  margin: 34px 0 10px;
}

.legal-main h3 {
  font-size: 1.02rem;
  margin: 22px 0 6px;
}

.legal-main p, .legal-main li {
  color: var(--muted);
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.92rem;
}

.shortcut-table th, .shortcut-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.shortcut-table th { color: var(--faint); font-weight: 600; font-size: 0.82rem; }

/* Pricing, Shop & Legal Boxes */
.pricing-card,
.withdrawal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 24px 0 32px;
  box-shadow: var(--shadow-soft);
}

.pricing-card h2,
.withdrawal-box h2 {
  margin-top: 0;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 10px 0 18px;
}

.price-amt {
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
  color: var(--fg);
}

.price-sub {
  font-size: 0.92rem;
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: baseline;
  color: var(--fg);
}

.check-list .chk {
  color: var(--accent);
  font-weight: 700;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.fine-print {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--faint);
  margin: 18px 0 0;
}

.form-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
}

.form-field input {
  width: 100%;
  max-width: 420px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--fg);
  font: 400 0.96rem/1.4 var(--sans);
}

.form-field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.status-box {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-subtle);
  font-size: 0.92rem;
  color: var(--fg);
}

.status-box.ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.09);
}

.status-box.err {
  border-color: rgba(200, 55, 75, 0.45);
  background: var(--accent-soft);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

#token-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--fg);
  overflow-x: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  font-size: 0.85rem;
  color: var(--faint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-suite a, .footer-nav a {
  color: var(--muted);
  text-decoration: none;
}
.footer-suite a:hover, .footer-nav a:hover { color: var(--accent); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .chapter,
  .privacy-grid,
  .faq-layout,
  .closing-inner {
    grid-template-columns: 1fr;
  }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing-action { align-items: flex-start; }
  .sd-window.is-landscape { width: min(100%, 440px); height: 235px; }
}

@media (max-width: 620px) {
  .nav-opt { display: none; }
  .feature-list, .privacy-list { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 36px; }
}

/* Dev Bundle, Early Access & B2B Volume Licensing */
.legal-main.pricing-wide {
  width: min(980px, calc(100% - 48px));
  max-width: 980px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin: 24px 0 28px;
}

.pricing-grid .pricing-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.pricing-grid .pricing-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.2;
}

@media (min-width: 781px) {
  .pricing-grid .pricing-card .price-row {
    min-height: 96px;
    align-content: flex-start;
  }
}

.pricing-card .card-footer-stack {
  margin-top: auto;
  padding-top: 8px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.coupon-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--fg);
  font: 700 0.85em/1.4 var(--mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  vertical-align: baseline;
  transition: background 0.15s ease, color 0.15s ease;
}

.coupon-copy:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.checkout-legal {
  margin: 0 0 36px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--faint);
}

.checkout-legal p {
  margin: 0;
  color: var(--faint);
}

.checkout-legal p + p {
  margin-top: 6px;
}

.pricing-card.pricing-bundle {
  border-color: var(--accent);
}

.ea-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  margin-bottom: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.ea-badge-muted {
  background: var(--surface-subtle);
  color: var(--muted);
  border-color: var(--line);
}

.price-compare {
  display: block;
  width: 100%;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2px;
}

.price-compare s {
  opacity: 0.72;
}

.coupon-note,
.legal-main .coupon-note {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background: var(--surface-subtle);
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.45;
}

.hero-bundle {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 16px;
  padding: 6px 14px 6px 8px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  font-size: 0.88rem;
  line-height: 1.4;
  text-decoration: none;
  max-width: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hero-bundle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero-bundle-tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-bundle strong {
  color: var(--fg);
  font-weight: 700;
}

.team-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: center;
  margin: 18px 0 8px;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.team-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.seg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg-pill {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--fg);
  font: 600 0.9rem/1.2 var(--sans);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.seg-pill[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.seat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.seat-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}

.seat-stepper button {
  width: 34px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: 700 1.05rem/1 var(--sans);
  cursor: pointer;
}

.seat-stepper button:hover {
  background: var(--surface-subtle);
}

.seat-stepper input {
  width: 52px;
  height: 36px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  text-align: center;
  font: 700 0.96rem/1 var(--sans);
  -moz-appearance: textfield;
}

.team-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.team-discount-pill {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}

.team-total {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--fg);
}

.team-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.b2b-toggle-row {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.b2b-toggle-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: 600 0.88rem/1.4 var(--sans);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.b2b-drawer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.b2b-drawer[hidden] {
  display: none;
}

.coupon-note code {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.studio-section {
  padding: 0 0 24px;
}

.studio-note {
  margin: 30px 0;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.studio-section .studio-note {
  margin: 0;
}

.studio-note h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.studio-note p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  line-height: 1.65;
}

.studio-note p strong {
  color: var(--fg);
}

.b2b-card {
  margin: 26px 0 34px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.b2b-card h2 {
  margin-top: 0;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

.tier-item {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.tier-seats {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.tier-discount {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.b2b-form {
  position: relative;
}

.b2b-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.b2b-form .form-field input:not([type="checkbox"]):not([type="radio"]),
.b2b-form .form-field select,
.b2b-form .form-field textarea {
  width: 100%;
  max-width: none;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--fg);
  font: 400 0.96rem/1.45 var(--sans);
}

.b2b-form .form-field textarea {
  min-height: 92px;
  resize: vertical;
}

.b2b-form .form-field input:focus,
.b2b-form .form-field select:focus,
.b2b-form .form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.b2b-form [aria-invalid="true"] {
  border-color: #e11d48;
}

.product-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

.product-fieldset legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  padding: 0;
  margin-bottom: 6px;
}

.product-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.product-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
}

.product-check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.product-check input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .pricing-grid,
  .team-calc,
  .b2b-row,
  .tier-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .b2b-card,
  .studio-note {
    padding: 20px;
  }
}
