/* srt.to — "Departures" design language.
   A short link is a departure: compressed, scanned, routed, arrived.
   Palette and type are drawn from split-flap transit boards, not SaaS-blue defaults. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;

  /* Board (near-black — now the base of the whole app, not just accents) */
  --ink: #0A0A0C;
  --ink-soft: #151519;
  --ink-soft-hover: #1E1E23;
  --ink-line: rgba(255, 255, 255, 0.08);

  /* Signal accent — amber is the one color in an otherwise monochrome app */
  --amber: #F0A93A;
  --amber-strong: #D9902A;
  --amber-glow: rgba(240, 169, 58, 0.24);
  /* Former teal slot is now pure light — a second "signal" without a second hue */
  --teal: #F5F5F7;
  --teal-strong: #FFFFFF;
  --teal-glow: rgba(255, 255, 255, 0.16);

  /* Surfaces (dark) */
  --bg-primary: #060607;
  --bg-secondary: #0D0D10;
  --bg-card: #101013;
  --bg-card-hover: #16161B;
  --bg-input: #0C0C0E;
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(240, 169, 58, 0.55);
  --text-primary: #F5F5F7;
  --text-secondary: rgba(245, 245, 247, 0.64);
  --text-muted: rgba(245, 245, 247, 0.42);

  --accent: var(--amber-strong);
  --accent-light: var(--amber);
  --accent-glow: var(--amber-glow);
  --danger: #E5484D;
  --gradient: linear-gradient(135deg, var(--amber) 0%, var(--amber-strong) 100%);
  --gradient-text: linear-gradient(100deg, #ffffff 0%, var(--amber) 100%);

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --nav-height: 76px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1240px;
  --font-display: 'Clarkson', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --bg: var(--bg-primary);
  --card: var(--bg-card);
  --text: var(--text-primary);
  --muted: var(--text-muted);
}

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

/* Components set `display` unconditionally for their visible state (flex/grid/etc.),
   which otherwise beats the UA [hidden] default when JS toggles el.hidden. */
[hidden] { display: none !important; }

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Keep hero gradients clean — grain reads as low-res banding over soft glows */
body.home-page::before {
  opacity: 0.012;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 760px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

.display-line { display: block; margin-bottom: 0.08em; }

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: var(--font-mono); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--teal);
  flex-shrink: 0;
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  text-decoration: none;
}

.btn-primary,
.btn:not(.secondary):not(.btn-outline):not(.btn-ghost):not(.danger) {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
  box-shadow: 0 2px 0 var(--amber-strong);
}

.btn-primary:hover,
.btn:not(.secondary):not(.btn-outline):not(.btn-ghost):not(.danger):hover {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--amber-strong);
  background: #f3b653;
}

.btn-primary:active,
.btn:not(.secondary):not(.btn-outline):not(.btn-ghost):not(.danger):active {
  transform: translateY(2px);
  box-shadow: none;
}

.btn-outline,
.btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover,
.btn.secondary:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}

.btn.danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn.danger:hover {
  background: #a8321f;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.65rem;
}

.nav-cta {
  border-radius: var(--radius) !important;
  padding: 0.6rem 1.2rem !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

/* Navigation */
.navbar,
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(6, 6, 7, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Site nav — Bitly-style mega menu */
.site-nav .nav-inner {
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 1.5rem;
  margin-right: auto;
  flex-shrink: 0;
}

.nav-direct {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-direct:hover {
  color: var(--accent);
  background: rgba(240, 169, 58, 0.06);
}

.nav-item { position: relative; }

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
}

.nav-trigger:hover,
.nav-item.is-open .nav-trigger {
  color: var(--accent);
  background: rgba(240, 169, 58, 0.06);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 720px;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(20, 23, 28, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1100;
}

.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 769px) {
  .nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-item:hover .nav-trigger {
    color: var(--accent);
    background: rgba(240, 169, 58, 0.06);
  }
}

.mega-menu-wide { min-width: 820px; }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.mega-grid-4 { grid-template-columns: repeat(4, 1fr); }

.mega-col h5 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.mega-col a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.mega-col a strong {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.mega-col a span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mega-col a:hover strong { color: var(--accent); }

.mega-col-accent {
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.mega-muted strong { color: var(--text-muted); }

.nav-mobile-auth {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-block {
  width: 100%;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

/* Legacy simple nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-right: auto;
  margin-left: 2rem;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

/* Home page — Bitly-style layout, srt.to colors */
.home-page .hero.home-hero {
  min-height: auto;
  padding-bottom: 4rem;
}

/* Fade hero atmosphere into the page — avoids a hard clip at section edge */
.home-page .hero-bg {
  background:
    radial-gradient(ellipse 100% 70% at 50% -8%, rgba(240, 169, 58, 0.16) 0%, rgba(240, 169, 58, 0.07) 32%, rgba(240, 169, 58, 0.02) 52%, transparent 72%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(240, 169, 58, 0.07) 0%, rgba(240, 169, 58, 0.02) 40%, transparent 68%),
    radial-gradient(ellipse 45% 40% at 4% 72%, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 45%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

.home-page .hero-bg::before,
.home-page .hero-bg::after {
  content: none;
  display: none;
}

.home-page .hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 95% 75% at 50% 32%, #000 0%, rgba(0, 0, 0, 0.55) 48%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 32%, #000 0%, rgba(0, 0, 0, 0.55) 48%, transparent 82%);
}

.home-page .products-section {
  background: var(--bg-primary);
  border-top: none;
}

.home-hero-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.home-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.home-platform-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.home-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.home-hero .hero-actions {
  justify-content: center;
  margin-top: 2rem;
}

/* ── Departures board (signature) ── */
.board {
  max-width: 640px;
  margin: 2.5rem auto 2rem;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 0.35rem 0;
  box-shadow: 0 24px 60px rgba(20, 23, 28, 0.35);
  text-align: left;
}

.board-head,
.board-row {
  display: grid;
  grid-template-columns: 108px 84px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 1.25rem;
}

.board-head {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 0.65rem;
}

.board-row {
  border-bottom: 1px solid var(--ink-line);
}

.board-row:last-child { border-bottom: none; }

.board-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.01em;
}

.board-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.board-status--live { color: var(--teal); }
.board-status--scan { color: var(--amber); }

.board-dest {
  display: flex;
  gap: 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.flap-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0.98ch;
  height: 1.7em;
  padding: 0 0.06em;
  background: var(--ink-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
  overflow: hidden;
}

.flap-char::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .board-head { display: none; }
  .board-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.75rem 1.1rem;
  }
  .board-status { order: -1; }
}

.hero-shorten {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}

.shorten-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.shorten-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}

.shorten-tab.active,
.shorten-tab:hover {
  color: var(--accent);
  background: rgba(240, 169, 58, 0.08);
}

.shorten-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.shorten-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shorten-input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-input);
}

.shorten-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 169, 58, 0.15);
}

.shorten-submit {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  white-space: nowrap;
}

.shorten-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.products-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.section-header-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header-center .section-desc {
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-pillar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-pillar-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 169, 58, 0.1);
  border-radius: var(--radius);
  color: var(--amber-strong);
  margin-bottom: 1.25rem;
}

.product-pillar-icon svg {
  width: 22px;
  height: 22px;
}

.product-pillar-lead {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-features li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.product-cta:hover { color: var(--amber-strong); }

.stats-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--ink) 0%, #23262E 100%);
  color: #fff;
  text-align: center;
}

.stats-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.dashboard-preview-section {
  padding: 5rem 0;
}

.dashboard-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.dashboard-mock {
  padding: 0;
  overflow: hidden;
}

.dashboard-mock-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.dashboard-mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.dashboard-mock-bar span:first-child { background: #ff5f57; }
.dashboard-mock-bar span:nth-child(2) { background: #febc2e; }
.dashboard-mock-bar span:nth-child(3) { background: #28c840; }

.dashboard-mock-nav {
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.dashboard-mock-stat {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-mock-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.dashboard-mock-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.dashboard-mock-rows { padding: 0.5rem 0; }

.dashboard-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.dashboard-mock-row:last-child { border-bottom: none; }

.mock-link {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
}

.mock-clicks {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cta-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.footer-rich {
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

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

.footer-grid-wide {
  grid-template-columns: 1.4fr repeat(5, 1fr);
}

/* Solutions, pricing, developers sections */
.solutions-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.solution-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.solution-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.pricing-section {
  padding: 5rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 1.25rem;
  align-items: stretch;
}

.pricing-card {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card-featured {
  border-color: rgba(240, 169, 58, 0.42);
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(240, 169, 58, 0.10) 0%, rgba(240, 169, 58, 0.03) 42%, transparent 68%),
    linear-gradient(180deg, rgba(240, 169, 58, 0.04) 0%, var(--bg-card) 38%);
  box-shadow: none;
  z-index: 1;
}

.pricing-card-featured::before {
  opacity: 1;
  height: 2px;
}

.pricing-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.28rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--ink);
  border-radius: 999px;
  z-index: 2;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.pricing-card-featured .pricing-price {
  color: var(--amber);
}

.pricing-period {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.1rem;
}

.pricing-price-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  flex: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.developers-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.developers-inner {
  max-width: 640px;
}

.dev-endpoints {
  list-style: none;
  margin: 1.5rem 0;
}

.dev-endpoints li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dev-endpoints code {
  font-size: 0.82rem;
  color: var(--accent);
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
  border-radius: 50%;
  filter: blur(100px);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -8%;
  width: 52%;
  height: 58%;
  background: radial-gradient(
    circle,
    rgba(240, 169, 58, 0.22) 0%,
    rgba(240, 169, 58, 0.10) 35%,
    rgba(240, 169, 58, 0.03) 55%,
    transparent 72%
  );
  opacity: 0.55;
  animation: driftGlow 14s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -12%;
  left: -14%;
  width: 38%;
  height: 44%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.01) 58%,
    transparent 72%
  );
  opacity: 0.22;
  animation: driftGlow 18s ease-in-out infinite reverse;
}

@keyframes driftGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 3%) scale(1.08); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 0%, rgba(0, 0, 0, 0.45) 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 0%, rgba(0, 0, 0, 0.45) 55%, transparent 85%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--teal);
  animation: pulse 2s infinite;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Statement */
.statement-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.statement-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 2rem;
}

.statement-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.statement-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 520px;
}

/* Features */
.features-section {
  padding: 6rem 0;
}

.section-header { margin-bottom: 3rem; }

.section-title { margin-bottom: 1rem; }

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.8;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.card.pricing-card {
  overflow: visible;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 40px rgba(240, 169, 58, 0.08);
}

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

.pricing-card.card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}

.pricing-card-featured.card:hover {
  border-color: rgba(240, 169, 58, 0.58);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.36);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 169, 58, 0.12);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: var(--accent-light);
  font-size: 1.25rem;
}

.card h3 { margin-bottom: 0.75rem; }

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card-title {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.card-spaced { margin-bottom: 1.5rem; }

/* Usage bar */
.usage-bar {
  margin-top: 1.5rem;
  max-width: 420px;
}

.usage-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.usage-plan {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.usage-bar-track {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.usage-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 99px;
  transition: width 0.4s var(--ease-out-expo);
}

.usage-bar-fill.usage-warning {
  background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

/* Toolbar */
.card-toolbar {
  margin-bottom: 1.25rem;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.toolbar-search {
  flex: 1;
  min-width: 180px;
}

.toolbar-select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
}

/* Themed dropdown — replaces the native <select> popup, which can't be
   styled with CSS and always renders with OS/browser chrome. See
   AppShell.enhanceThemedSelect() in app-shell.js. */
.themed-select {
  position: relative;
  display: inline-flex;
}

.themed-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.themed-select-btn:hover {
  border-color: var(--border-hover);
}

.themed-select-btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 169, 58, 0.15);
}

.themed-select-caret {
  display: inline-flex;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.themed-select-caret svg { width: 14px; height: 14px; }

.themed-select-btn[aria-expanded="true"] .themed-select-caret {
  transform: rotate(180deg);
}

.themed-select-menu {
  position: fixed;
  z-index: 2000;
  width: max-content;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.themed-select-menu[hidden] { display: none; }

.themed-select-menu li {
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.themed-select-menu li:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.themed-select-menu li.is-selected {
  color: var(--accent);
  background: rgba(240, 169, 58, 0.08);
  font-weight: 600;
}

.toolbar-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Link list */
.link-main { flex: 1; min-width: 0; }

.link-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.link-notes {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.link-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.tag-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--amber-strong);
  background: rgba(240, 169, 58, 0.08);
  border: 1px solid rgba(240, 169, 58, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.tag-chip:hover {
  background: rgba(240, 169, 58, 0.14);
  border-color: var(--border-hover);
}

.archived-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  vertical-align: middle;
}

.link-row-archived {
  opacity: 0.72;
}

.link-side {
  text-align: right;
  flex-shrink: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Page layout (login, dashboard, legal) */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center top, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 { margin-bottom: 0.75rem; }

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.85;
}

.page-main {
  padding: 3rem 0 5rem;
}

.page-main .container-narrow { max-width: 800px; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label,
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

input[type="text"],
input[type="url"],
input[type="search"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-bottom: 0;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 169, 58, 0.12);
}

.error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.25);
  border-radius: var(--radius);
}

/* Link list */
.link-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.link-row:last-child { border-bottom: none; }

.link-row .short {
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.95rem;
}

.link-row .long {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.25rem;
}

.link-row .clicks {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 1rem 0;
}

/* Auth pages — split layout */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-page::before { display: none; }

.auth-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(2rem, 5vw, 4rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(240, 169, 58, 0.22) 0%, transparent 70%);
  pointer-events: none;
  animation: driftGlow 16s ease-in-out infinite;
}

.auth-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.auth-brand .logo {
  color: #fff;
  margin-bottom: 2.5rem;
}

.auth-brand .logo-accent { color: var(--teal); }

.auth-brand h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.auth-brand > .auth-brand-inner > p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-features li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  background: rgba(240, 169, 58, 0.22);
  border-radius: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F0A93A'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.auth-preview {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(8px);
}

.auth-preview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.65rem;
}

.auth-preview-link {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

.auth-preview-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
  background: var(--bg-secondary);
}

.auth-panel-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-panel-header {
  margin-bottom: 1.75rem;
}

.auth-panel-header .logo {
  display: none;
}

.auth-panel-header h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-panel-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-panel-header a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-panel-header a:hover {
  color: var(--amber-strong);
  text-decoration: underline;
}

.auth-panel-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-panel-footer a {
  color: var(--text-secondary);
  margin: 0 0.5rem;
}

.auth-panel-footer a:hover { color: var(--accent); }

/* Auth card (legacy) */
.auth-card {
  max-width: 440px;
  margin: 0 auto;
}

.auth-card .card {
  padding: 2rem;
  border-radius: var(--radius-lg);
}

/* Firebase auth form */
.auth-form-wrap {
  width: 100%;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-field span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.auth-field input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg-input);
  color: var(--text-primary);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 169, 58, 0.15);
}

.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-submit-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.auth-forgot-wrap {
  margin: -0.25rem 0 0;
  text-align: right;
  font-size: 0.875rem;
}

.auth-forgot-wrap a {
  color: var(--accent);
  text-decoration: none;
}

.auth-error {
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid rgba(229, 72, 77, 0.3);
  color: #ff8086;
  font-size: 0.875rem;
}

.auth-error.auth-message--info {
  background: rgba(245, 245, 247, 0.08);
  border-color: var(--border);
  color: var(--text-secondary);
}

.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  height: 38px;
  gap: 0.5rem;
  padding: 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.user-menu-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 100;
  overflow: hidden;
}

.user-menu-dropdown[hidden] {
  display: none;
}

.user-menu-email {
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  word-break: break-all;
}

.user-menu-dropdown button {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text-primary);
}

.user-menu-dropdown button:hover {
  background: rgba(255, 255, 255, 0.06);
}

#user-button {
  position: relative;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .auth-brand {
    padding: 2rem 1.5rem 2.5rem;
  }

  .auth-brand h2 { font-size: 1.5rem; }

  .auth-preview { display: none; }

  .auth-panel-header .logo {
    display: inline-flex;
    margin-bottom: 1.5rem;
  }

  .auth-brand .logo { display: none; }
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-legal a:hover { color: var(--accent-light); }

/* Legal pages */
.legal-content h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.legal-content a { color: var(--accent-light); }

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Cookie banner */
#cookie-banner,
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1rem 1.25rem;
  background: rgba(10, 10, 12, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  flex: 1;
  min-width: 240px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner p a { color: var(--accent-light); }

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner .btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.68rem;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes flap {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(-90deg); }
  100% { transform: rotateX(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge::before,
  .flap-char,
  .hero-bg::before,
  .hero-bg::after,
  .auth-brand::before { animation: none !important; }
}

/* Responsive */
@media (max-width: 1100px) {
  .mega-grid,
  .mega-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-dropdown { min-width: 520px; }
  .mega-menu-wide { min-width: 560px; }
  .footer-grid-wide { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-preview-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .nav-main {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 1rem 1.5rem 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out-expo);
    z-index: 999;
  }

  .nav-main.is-open { transform: translateX(0); }

  .nav-item { width: 100%; }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-direct {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    padding: 0 0 1rem 0.5rem;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.3s, visibility 0.3s;
  }

  .nav-item.is-open .nav-dropdown {
    visibility: visible;
    max-height: 800px;
  }

  .mega-grid,
  .mega-grid-4 { grid-template-columns: 1fr; }

  .mega-col-accent {
    padding-left: 0;
    border-left: none;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }

  .nav-mobile-auth { display: flex; }

  .nav-links .nav-login { display: none; }
}

@media (max-width: 768px) {
  .nav-links .btn-outline { display: none; }

  .link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .link-side { text-align: left; }

  .link-actions { justify-content: flex-start; }

  .toolbar-controls { flex-direction: column; align-items: stretch; }

  .toolbar-check { justify-content: flex-start; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  #cookie-banner .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner .btn { flex: 1; }
}

/* Analytics charts */
.chart-area { min-height: 120px; }

.bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.bar-label { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bar-track {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 99px;
}

.bar-value { text-align: right; color: var(--text-muted); font-size: 0.8rem; }

.timeline-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
  padding-top: 1rem;
}

.timeline-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.timeline-bar {
  width: 100%;
  max-width: 24px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.qr-preview svg { max-width: 200px; height: auto; }

.settings-row, .plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.form-row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-row-inline input { flex: 1; min-width: 140px; }

.utm-details summary {
  cursor: pointer;
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .card-grid[style] { grid-template-columns: 1fr !important; }
}
