/* =========================================================
   InFlow landing — design system inspired by Raycast / Linear
   ========================================================= */

:root {
  /* Palette tuned to the InFlow icon: deep navy ground, blue → purple accent */
  --bg:           #0A0A0F;
  --bg-elev-1:    #131420;
  --bg-elev-2:    #1B1D2D;
  --text:         #F2F1F6;
  --text-muted:   #8E8FA3;
  --text-dim:     #5C5E73;
  --border:       rgba(255, 255, 255, 0.08);
  --border-strong:rgba(255, 255, 255, 0.14);

  --accent-1:     #1A6FD4;
  --accent-2:     #5340B8;
  --accent-3:     #8B5CF6;
  --accent-grad:  linear-gradient(135deg, #2563EB 0%, #7C3AED 60%, #8B5CF6 100%);

  --shadow-sm:    0 1px 2px rgba(0,0,0,.18);
  --shadow-md:    0 8px 24px rgba(0,0,0,.32);
  --shadow-lg:    0 24px 48px rgba(0,0,0,.45);
  --shadow-accent:0 18px 60px rgba(59, 78, 226, 0.45);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  --container: 1180px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 600px at 90% -10%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(37, 99, 235, 0.08), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--text); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(10, 10, 15, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.brand-icon { width: 28px; height: 28px; border-radius: 7px; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; }
.brand-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(124, 58, 237, 0.18);
  color: #B7A2FF;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-current {
  color: var(--text);
  border-bottom: 1px solid rgba(167, 139, 250, 0.6);
}
.nav-cta {
  background: var(--accent-grad);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 13px !important;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { filter: brightness(1.1); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 80px 0 100px;
  position: relative; overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 72px; }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--r-full);
  margin-bottom: 28px;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 6px #22C55E;
}

.hero-title {
  font-size: clamp(2.6rem, 5.8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.gradient-text {
  background: linear-gradient(110deg, #4F8BFF 0%, #8B5CF6 50%, #B084FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 540px;
}
.hero-sub kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  margin: 0 2px;
  color: var(--text);
  vertical-align: middle;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost {
  background: var(--bg-elev-1);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-elev-2); }
.btn-large {
  padding: 16px 28px;
  font-size: 15px;
}

.hero-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}
.hero-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-dim);
}

/* ----- Hero visual (mock stack) ----- */
.hero-visual { position: relative; height: 480px; }
.mock-stack { position: relative; height: 100%; perspective: 1500px; }
.mock {
  position: absolute;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

/* Recording pill (top-right, tilted) */
.mock-pill {
  top: 0; right: 0;
  width: 360px; padding: 12px 14px 8px;
  border-radius: 20px;
  transform: rotate(-2deg);
}
.mock-pill-text {
  font-size: 13px; line-height: 1.5;
  margin-bottom: 12px;
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--border);
}
.confirmed { color: var(--text); }
.hypothesis { color: var(--text-muted); }
.mock-pill-bar {
  display: flex; align-items: center; gap: 10px;
}
.mock-pill-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.mock-pill-viz {
  display: flex; gap: 2px; align-items: center;
  flex: 1; justify-content: center; max-width: 100px;
}
.mock-pill-viz span {
  display: inline-block;
  width: 3px;
  background: var(--text);
  border-radius: 1px;
  animation: viz 1.4s ease-in-out infinite;
}
.mock-pill-viz span:nth-child(1) { height: 6px;  animation-delay: 0.0s; }
.mock-pill-viz span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.mock-pill-viz span:nth-child(3) { height: 22px; animation-delay: 0.2s; }
.mock-pill-viz span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.mock-pill-viz span:nth-child(5) { height: 26px; animation-delay: 0.4s; }
.mock-pill-viz span:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.mock-pill-viz span:nth-child(7) { height: 22px; animation-delay: 0.6s; }
.mock-pill-viz span:nth-child(8) { height: 12px; animation-delay: 0.7s; }
.mock-pill-viz span:nth-child(9) { height: 6px;  animation-delay: 0.8s; }
.mock-pill-viz span:nth-child(10){ height: 4px;  animation-delay: 0.9s; }
@keyframes viz {
  0%, 100% { transform: scaleY(0.6); }
  50%      { transform: scaleY(1.2); }
}
.mock-pill-profile {
  font-size: 11px; color: var(--text-muted);
  background: var(--bg-elev-2);
  padding: 3px 8px; border-radius: var(--r-sm);
  white-space: nowrap;
}

/* Selection bubble (middle, slight tilt) */
.mock-bubble {
  top: 178px; left: 20px;
  display: inline-flex; align-items: center;
  padding: 5px 6px;
  gap: 0;
  border-radius: 10px;
  transform: rotate(1.5deg);
}
.mock-bubble-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  cursor: default;
}
.mock-bubble-btn:nth-child(1) { background: var(--accent-grad); color: #fff; }
.mock-bubble-divider {
  width: 1px; height: 20px;
  background: var(--border-strong);
  margin: 0 2px;
}
.mock-bubble-x {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Translation popup (bottom-right) */
.mock-popup {
  bottom: 0; right: 30px;
  width: 360px; padding: 14px;
  border-radius: var(--r-lg);
  transform: rotate(-1deg);
}
.mock-popup-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.mock-popup-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: #22C55E;
  display: inline-flex; align-items: center; justify-content: center;
}
.mock-popup-title { font-size: 13px; font-weight: 600; }
.mock-popup-sub   { font-size: 11px; color: var(--text-muted); }
.mock-popup-body {
  font-size: 13px; line-height: 1.55;
  background: var(--bg-elev-2);
  padding: 12px;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mock-popup-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.mock-popup-action {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-elev-2);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.mock-popup-action .chord {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255,255,255,0.08);
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .hero-visual { height: 540px; }
  .mock-pill { width: 320px; right: 50%; transform: translateX(50%) rotate(-2deg); }
  .mock-bubble { left: 50%; transform: translateX(-50%) rotate(1.5deg); }
  .mock-popup { right: 50%; transform: translateX(50%) rotate(-1deg); }
  /* Five labelled actions make the bubble wide — compact it on small
     screens so the whole pill stays inside the (overflow-hidden) hero
     instead of clipping the last buttons. */
  .mock-bubble-btn { padding: 5px 7px; font-size: 11px; gap: 4px; }
  .mock-bubble-divider { margin: 0 1px; height: 16px; }
}

/* Phones: the five-action bubble is still wider than the viewport even
   compacted, so scale it down around its centre (it stays anchored via
   left:50% + translateX(-50%)) to keep every button visible. */
@media (max-width: 480px) {
  .mock-bubble { transform: translateX(-50%) rotate(1.5deg) scale(0.78); }
}

/* =========================================================
   Section common
   ========================================================= */
.section {
  padding: 100px 0;
  position: relative;
}
.section-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #B7A2FF;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 720px;
}
.section-sub {
  font-size: 17px; line-height: 1.55;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 56px;
}

/* =========================================================
   Trio (hotkey cards)
   ========================================================= */
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .trio { grid-template-columns: 1fr; }
}
.trio-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.trio-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.trio-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.trio-keys {
  display: inline-flex; gap: 4px;
  margin-bottom: 14px;
}
.trio-keys kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  color: var(--text);
  padding: 2px 7px;
  border-radius: 5px;
}
.trio-card h3 {
  font-size: 18px; font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.trio-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =========================================================
   Features grid
   ========================================================= */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color .2s ease;
}
.feature:hover { border-color: var(--border-strong); }
.feature-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature h3 {
  font-size: 16px; font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =========================================================
   Built for (use cases)
   ========================================================= */
.section-builtfor { padding: 100px 0; border-top: 1px solid var(--border); }
.builtfor-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .builtfor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .builtfor-grid { grid-template-columns: 1fr; } }

.bf-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.bf-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.bf-emoji { font-size: 32px; margin-bottom: 14px; line-height: 1; }
.bf-card h3 {
  font-size: 17px; font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.bf-card p {
  font-size: 14px; line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.bf-card p strong { color: var(--text); font-weight: 600; }
.bf-card blockquote {
  font-size: 14px; line-height: 1.5;
  color: var(--text);
  border-left: 3px solid var(--accent-3);
  padding-left: 12px;
  margin: 0;
  font-style: italic;
}

/* =========================================================
   Privacy
   ========================================================= */
.privacy-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
}
.privacy-list {
  list-style: none;
  padding: 0; margin: 0;
}
.privacy-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.privacy-list li:last-child { border-bottom: 1px solid var(--border); }
.privacy-list strong { color: var(--text); font-weight: 600; margin-right: 4px; }

.privacy-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: var(--shadow-md);
}
.privacy-card-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-sm);
}
.privacy-card-row:hover { background: var(--bg-elev-2); }
.privacy-card-row strong { font-weight: 500; color: var(--text); }
.privacy-card-row .muted { color: var(--text-muted); }
.privacy-card-row.muted-row strong { color: var(--text-dim); }
.privacy-card-row.muted-row .muted { color: var(--text-dim); text-decoration: line-through; opacity: 0.7; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim);
  display: inline-block;
}
.dot-green  { background: #22C55E; box-shadow: 0 0 5px #22C55E; }
.dot-blue   { background: #3B82F6; box-shadow: 0 0 5px #3B82F6; }
.dot-orange { background: #F59E0B; box-shadow: 0 0 5px #F59E0B; }
.dot-grey   { background: var(--text-dim); }

/* =========================================================
   Pricing
   ========================================================= */
.section-pricing {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 22px;
  margin-top: 56px;
}
.pricing-card {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}
.pricing-card-highlight {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.10), var(--bg-elev-1) 70%);
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.22);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent-grad);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.pricing-head { margin-bottom: 22px; }
.pricing-tier {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.pricing-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 6px;
}
.pricing-price-amount {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.pricing-card:not(.pricing-card-highlight) .pricing-price-amount {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text);
}
.pricing-price-unit {
  font-size: 14px;
  color: var(--text-dim);
}
.pricing-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.pricing-feats {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.pricing-feats li {
  position: relative;
  padding-left: 22px;
}
.pricing-feats li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='%237C3AED' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2 6.5l2.5 2.5L10 3.5'/></svg>");
  background-repeat: no-repeat;
}
.pricing-cta {
  margin-top: auto;
  text-align: center;
  justify-content: center;
}
.pricing-fineprint {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-dim);
}
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-highlight { order: -1; }
}

/* =========================================================
   Reveal-on-scroll — subtle fade-up animation triggered by
   IntersectionObserver. Honours prefers-reduced-motion.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero-only ambient float on the visual mockup. */
@keyframes inflowFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hero-visual { animation: inflowFloat 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-visual { animation: none; }
}

/* =========================================================
   How-it-works intro
   ========================================================= */
.section-how-intro {
  padding: 84px 0 32px;
  text-align: center;
}
.section-how-intro .section-title,
.section-how-intro .section-sub {
  margin-left: auto; margin-right: auto;
}

/* =========================================================
   Feature deep-dive sections (Select, Voice, Reply)

   Each section has a copy column and a mock stage. The mock stage
   shows the feature in action with realistic Mac window chrome,
   the recording pill, and chat bubbles — all visible at rest.
   Animations are subtle transform/opacity loops (chord pulse,
   waveform bars, selection sweep) so the stage reads instantly
   without depending on JS or scroll triggers.
   ========================================================= */
.section-feature {
  padding: 64px 0 100px;
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.feature-right .feature-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.feature-right .feature-copy { order: 2; }
.feature-right .feat-stage   { order: 1; }

/* ---------- Copy column ---------- */
.feature-copy { max-width: 540px; }
.feature-chord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.feature-chord kbd {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px 9px;
  font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace;
}
.feature-chord-sep {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 4px;
}
.feature-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 18px;
}
.feature-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.feature-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.feature-points li {
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.feature-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><circle cx='7' cy='7' r='6.5' fill='none' stroke='%237C3AED' stroke-width='1.4'/><path d='M3.6 7.3L6 9.6 10.4 4.6' fill='none' stroke='%237C3AED' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
}

/* ---------- Stage shell ---------- */
.feat-stage {
  position: relative;
  min-height: 360px;
  padding-bottom: 56px;   /* room for the pill hanging below the window */
}

/* ---------- Mac window chrome ---------- */
.feat-mock {
  position: relative;
  z-index: 1;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28),
              0 2px 6px rgba(0, 0, 0, 0.08);
}
.feat-mock-bar {
  display: flex; align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
}
.feat-traffic {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.feat-traffic-r { background: #FF5F57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.16); }
.feat-traffic-y { background: #FEBC2E; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.16); }
.feat-traffic-g { background: #28C840; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.16); }
.feat-mock-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.feat-mock-app-icon { color: var(--text-dim); flex-shrink: 0; }
.feat-mock-body {
  padding: 22px 24px 24px;
  min-height: 200px;
}

/* ---------- Feature 1: Select & Translate ---------- */
.feat-email-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.feat-email-original {
  position: relative;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  padding: 4px 0;
  margin-bottom: 14px;
  color: var(--text);
}
.feat-email-text { position: relative; z-index: 1; }
.feat-email-select {
  position: absolute;
  inset: -2px -4px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.32), rgba(37, 99, 235, 0.32));
  border-radius: 4px;
  transform-origin: left center;
  z-index: 0;
  animation: featSelectSweep 4.5s ease-in-out infinite;
}
@keyframes featSelectSweep {
  0%, 8%   { transform: scaleX(0); opacity: 0; }
  18%, 60% { transform: scaleX(1); opacity: 1; }
  68%      { transform: scaleX(1); opacity: 0; }
  100%     { transform: scaleX(0); opacity: 0; }
}
.feat-email-arrow {
  text-align: center;
  font-size: 22px;
  color: #7C3AED;
  margin: 4px 0 10px;
  animation: featArrowBob 2.2s ease-in-out infinite;
}
@keyframes featArrowBob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(4px); opacity: 1; }
}
.feat-email-translated {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.10), rgba(37, 99, 235, 0.06));
  border-left: 3px solid #7C3AED;
}

/* ---------- Feature 2: Voice → Translate ---------- */
.feat-body-input {
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.feat-input-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.feat-input-box {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  min-height: 52px;
}
.feat-input-typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
  animation: featInputTyped 4.5s ease-in-out infinite;
}
@keyframes featInputTyped {
  0%, 28%  { max-width: 0; }
  44%      { max-width: 30%; }
  60%      { max-width: 65%; }
  72%, 100%{ max-width: 100%; }
}
.feat-input-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--text);
  margin-left: 2px;
  vertical-align: -3px;
  animation: featCursorBlink 1s steps(1) infinite;
}
@keyframes featCursorBlink { 50% { opacity: 0; } }
.feat-input-hint {
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex; align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* ---------- Feature 3: Guided Reply ---------- */
.feat-body-chat {
  min-height: 200px;
  display: flex; flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.feat-bubble {
  position: relative;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
.feat-bubble-sender {
  font-size: 11px;
  font-weight: 600;
  color: #8B5CF6;
  margin-bottom: 2px;
}
.feat-bubble-in {
  align-self: flex-start;
  background: rgba(124, 58, 237, 0.16);
  border-bottom-left-radius: 4px;
}
.feat-bubble-out {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.32);
}
.feat-bubble-select {
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  background: transparent;
  outline: 2px solid rgba(124, 58, 237, 0.85);
  outline-offset: 2px;
  pointer-events: none;
  opacity: 0;
  animation: featBubbleSelect 5s ease-in-out infinite;
}
@keyframes featBubbleSelect {
  0%, 14%  { opacity: 0; transform: scale(0.96); }
  24%, 50% { opacity: 1; transform: scale(1); }
  62%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* ---------- The recording pill (shared across Voice + Reply) ---------- */
.feat-pill {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: #0A0A0F;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex; align-items: center;
  gap: 10px;
  width: min(420px, 92%);
  z-index: 2;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.40),
              0 2px 8px rgba(0, 0, 0, 0.20);
  animation: featPillFloat 5.5s ease-in-out infinite;
}
@keyframes featPillFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-3px); }
}
.feat-pill-dot {
  width: 9px; height: 9px;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.85);
  flex-shrink: 0;
}
.feat-pill-label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.feat-pill-partial {
  flex: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}
.feat-pill-bars {
  display: flex; align-items: center;
  gap: 2px;
  height: 24px;
  flex-shrink: 0;
}
.feat-pill-bars span {
  display: block;
  width: 3px;
  background: linear-gradient(180deg, #2563EB, #7C3AED);
  border-radius: 1.5px;
  height: 6px;
  animation: featBar 0.9s ease-in-out infinite;
}
.feat-pill-bars span:nth-child(1)  { animation-delay: 0.00s; }
.feat-pill-bars span:nth-child(2)  { animation-delay: 0.05s; }
.feat-pill-bars span:nth-child(3)  { animation-delay: 0.10s; }
.feat-pill-bars span:nth-child(4)  { animation-delay: 0.15s; }
.feat-pill-bars span:nth-child(5)  { animation-delay: 0.20s; }
.feat-pill-bars span:nth-child(6)  { animation-delay: 0.25s; }
.feat-pill-bars span:nth-child(7)  { animation-delay: 0.20s; }
.feat-pill-bars span:nth-child(8)  { animation-delay: 0.15s; }
.feat-pill-bars span:nth-child(9)  { animation-delay: 0.10s; }
.feat-pill-bars span:nth-child(10) { animation-delay: 0.05s; }
.feat-pill-bars span:nth-child(11) { animation-delay: 0.00s; }
.feat-pill-bars span:nth-child(12) { animation-delay: 0.05s; }
@keyframes featBar {
  0%, 100% { height: 6px; }
  50%      { height: 22px; }
}

/* Reply variant — pill grows taller because it shows the quoted message */
.feat-pill-reply {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: min(440px, 94%);
  padding: 0;
}
.feat-pill-quote {
  display: flex; align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 10px;
}
.feat-pill-quote-bar {
  width: 3px;
  flex-shrink: 0;
  align-self: stretch;
  background: linear-gradient(180deg, #2563EB, #7C3AED);
  border-radius: 1.5px;
}
.feat-pill-quote-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-pill-bottom {
  display: flex; align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Chord popup ---------- */
.feat-chord-popup {
  position: absolute;
  right: 18px; top: 70px;
  background: rgba(15, 16, 32, 0.96);
  border: 1px solid rgba(124, 58, 237, 0.60);
  padding: 7px 11px;
  border-radius: 999px;
  display: inline-flex; gap: 4px;
  z-index: 3;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  animation: featChordRing 2.8s ease-in-out infinite;
}
.feat-chord-popup kbd {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 2px 6px;
  font: 600 11px/1 ui-monospace, "SF Mono", Menlo, monospace;
}
@keyframes featChordRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.55), 0 8px 22px rgba(0, 0, 0, 0.35); }
  60%      { box-shadow: 0 0 0 14px rgba(124, 58, 237, 0.0), 0 8px 22px rgba(0, 0, 0, 0.35); }
}

/* ---------- Responsive: collapse to single column ---------- */
@media (max-width: 880px) {
  .feature-grid,
  .feature-right .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-right .feat-stage   { order: 2; }
  .feature-right .feature-copy { order: 1; }
  .feat-stage { min-height: 0; padding-bottom: 80px; }
  .feat-chord-popup { right: 12px; top: 60px; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .feat-email-select,
  .feat-email-arrow,
  .feat-input-typed,
  .feat-input-cursor,
  .feat-bubble-select,
  .feat-pill,
  .feat-pill-bars span,
  .feat-chord-popup {
    animation: none !important;
  }
  .feat-input-typed { max-width: 100%; }
  .feat-email-select { opacity: 0.4; transform: scaleX(1); }
}

/* =========================================================
   Refer welcome MODAL (full-screen, premium feel)
   Shown when an invited visitor lands with ?ref=<code>.
   Centred card, scale-in animation, brand-gradient backdrop.
   ========================================================= */
html.refer-modal-open { overflow: hidden; }

.refer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease-out;
}
.refer-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.refer-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(124, 58, 237, 0.30), transparent 60%),
    radial-gradient(70% 50% at 80% 90%, rgba(37, 99, 235, 0.22), transparent 60%),
    rgba(8, 9, 18, 0.78);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  cursor: pointer;
}

.refer-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.10), var(--bg-elev-1) 50%);
  border: 1px solid rgba(124, 58, 237, 0.40);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow:
    0 36px 96px rgba(0, 0, 0, 0.50),
    0 0 0 1px rgba(124, 58, 237, 0.12) inset,
    0 24px 60px rgba(124, 58, 237, 0.18);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1.04, 0.32, 1),
              opacity 0.32s ease-out;
  text-align: center;
}
.refer-modal.is-visible .refer-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.refer-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev-2);
  color: var(--text-muted);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.refer-modal-close:hover {
  color: var(--text);
  background: var(--bg-elev-1);
  transform: scale(1.06);
}

/* Icon with brand-gradient halo */
.refer-modal-icon {
  position: relative;
  width: 84px; height: 84px;
  margin: 0 auto 18px;
}
.refer-modal-icon-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED, #8B5CF6);
  filter: blur(2px);
  animation: referHaloPulse 3.2s ease-in-out infinite;
}
.refer-modal-icon-glyph {
  position: absolute;
  inset: 6px;
  background: var(--bg-elev-1);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 38px;
  line-height: 1;
}
@keyframes referHaloPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.45); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(124, 58, 237, 0); }
}

.refer-modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  color: #C4B5FD;
  margin-bottom: 8px;
}
.refer-modal-title {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.refer-modal-gradient {
  background: linear-gradient(135deg, #2563EB, #7C3AED, #8B5CF6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.refer-modal-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 auto 22px;
  max-width: 380px;
}

.refer-modal-perks {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}
.refer-modal-perk {
  display: flex; align-items: flex-start;
  gap: 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}
.refer-modal-perk-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.refer-modal-perk-icon-purple { background: rgba(124, 58, 237, 0.20); color: #C4B5FD; }
.refer-modal-perk-icon-blue   { background: rgba(37, 99, 235, 0.20);  color: #93C5FD; }
.refer-modal-perk-icon-green  { background: rgba(34, 197, 94, 0.16);  color: #86EFAC; }
.refer-modal-perk-text {
  display: flex; flex-direction: column;
  gap: 2px;
}
.refer-modal-perk-text strong {
  font-size: 14px; font-weight: 600;
  color: var(--text);
}
.refer-modal-perk-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.refer-modal-actions {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.refer-modal-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.40);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.refer-modal-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.50);
  filter: brightness(1.06);
  color: #fff;
}
.refer-modal-dismiss {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease;
}
.refer-modal-dismiss:hover { color: var(--text); }

.refer-modal-footer {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  .refer-modal-card { padding: 28px 22px 22px; }
  .refer-modal-icon { width: 72px; height: 72px; }
  .refer-modal-icon-glyph { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .refer-modal,
  .refer-modal-card { transition: none; }
  .refer-modal-icon-ring { animation: none; }
}

/* =========================================================
   Refer / Affiliate
   ========================================================= */
.section-refer {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(700px 350px at 80% 0%, rgba(124, 58, 237, 0.10), transparent 65%),
    radial-gradient(600px 300px at 10% 100%, rgba(37, 99, 235, 0.08), transparent 65%);
}
.refer-shell { text-align: center; }
/* Title + subtitle have a max-width — auto-margin so they actually
   centre under the section's text-align rather than left-anchoring. */
.refer-shell .section-title,
.refer-shell .section-sub {
  margin-left: auto;
  margin-right: auto;
}
.refer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
  text-align: left;
}
.refer-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.refer-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}
.refer-card-highlight {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.10), var(--bg-elev-1) 70%);
  border-color: rgba(124, 58, 237, 0.55);
}
.refer-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.refer-icon svg { width: 22px; height: 22px; }
.refer-icon-blue   { background: rgba(37, 99, 235, 0.16);  color: #60A5FA; }
.refer-icon-purple { background: rgba(124, 58, 237, 0.20); color: #C4B5FD; }
.refer-icon-orange { background: rgba(249, 115, 22, 0.16); color: #FDBA74; }
.refer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.refer-feats {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.refer-feats li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.refer-feats li:first-child { border-top: none; }
.refer-feats span {
  color: var(--text-muted);
  font-weight: 500;
}
.refer-feats strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}
.refer-fineprint {
  margin-top: 36px;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
@media (max-width: 880px) {
  .refer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Page hero (standalone /privacy, /faq pages)
   ========================================================= */
.page-hero {
  padding: 110px 0 60px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(124, 58, 237, 0.10), transparent 70%);
}
.page-hero .section-eyebrow {
  margin-bottom: 14px;
}
.page-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 18px;
  max-width: 820px;
}
.page-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 14px;
}
.page-hero-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* =========================================================
   Prose sections (multi-page article body)
   ========================================================= */
.section-prose {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.section-prose .prose {
  max-width: 760px;
  margin: 0 auto 48px;
}
.section-prose .prose h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 16px;
}
.section-prose .prose p,
.section-prose .prose li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}
.section-prose .prose p { margin: 0 0 14px; }
.section-prose .prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.section-prose .prose li { margin-bottom: 8px; }
.section-prose .prose strong { color: var(--text); }
.section-prose .prose a {
  color: rgb(167, 139, 250);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.35);
}
.section-prose .prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* =========================================================
   FAQ
   ========================================================= */
.section-faq {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.section-faq .section-title,
.section-faq .section-sub {
  text-align: center;
  margin-left: auto; margin-right: auto;
}
.faq-grid {
  margin-top: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.faq-item:hover {
  border-color: rgba(124, 58, 237, 0.35);
}
.faq-item[open] {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.45);
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--text-dim);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}
.faq-item p {
  padding: 0 24px 22px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
}
.faq-item p a {
  color: rgb(167, 139, 250);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.35);
}
.faq-item p a:hover {
  border-bottom-color: rgb(167, 139, 250);
}
.faq-item p em {
  font-style: italic;
  color: var(--text);
}

/* =========================================================
   Download
   ========================================================= */
.section-download {
  text-align: center;
  padding: 120px 0;
  background:
    radial-gradient(800px 400px at 50% 100%, rgba(124, 58, 237, 0.14), transparent 70%);
  border-top: 1px solid var(--border);
}
.section-download .section-title { margin-left: auto; margin-right: auto; }
.section-download .section-sub   { margin-left: auto; margin-right: auto; }
.download-actions {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.download-sub {
  font-size: 13px;
  color: var(--text-dim);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex; gap: 24px;
  font-size: 13px;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-meta {
  font-size: 12px;
  color: var(--text-dim);
}

/* =========================================================
   Light mode (auto)
   ========================================================= */
@media (prefers-color-scheme: light) {
  :root {
    --bg:           #F7F8FB;
    --bg-elev-1:    #FFFFFF;
    --bg-elev-2:    #F0F1F6;
    --text:         #0F1020;
    --text-muted:   #5B5C70;
    --text-dim:     #8E8FA3;
    --border:       rgba(15, 16, 32, 0.07);
    --border-strong:rgba(15, 16, 32, 0.13);
  }
  body {
    background-image:
      radial-gradient(1200px 600px at 90% -10%, rgba(124, 58, 237, 0.08), transparent 60%),
      radial-gradient(900px 500px at -10% 30%, rgba(37, 99, 235, 0.06), transparent 60%);
  }
  .nav { background: rgba(247, 248, 251, 0.7); }
  .hero-sub kbd, .trio-keys kbd {
    background: #FFFFFF;
    border-color: rgba(15, 16, 32, 0.14);
  }
}

/* =========================================================
   Europe / GDPR section
   ========================================================= */
.section-europe {
  padding: 96px 0;
  background:
    radial-gradient(720px 360px at 12% 0%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(560px 280px at 92% 100%, rgba(124, 58, 237, 0.14), transparent 60%);
}
.eu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: start;
}
@media (max-width: 920px) { .eu-grid { grid-template-columns: 1fr; } }

.eu-copy .section-title { margin-top: 8px; }
.eu-copy .section-sub { margin-top: 10px; margin-bottom: 28px; }
.eu-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.eu-points li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.eu-icon {
  font-size: 22px;
  line-height: 1;
  margin-top: 3px;
}
.eu-points strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.eu-points span {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Mistral spec card */
.eu-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}
.eu-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.eu-flag { font-size: 28px; line-height: 1; }
.eu-card-header strong { font-size: 16px; color: var(--text); }
.eu-card-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.eu-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  font-size: 13.5px;
}
.eu-card-key { color: var(--text-muted); }
.eu-card-val { color: var(--text); font-weight: 500; }
.eu-card-good { color: #34D399; }
.eu-card-row-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0 6px;
  padding: 0;
}
.eu-card-footer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  padding-top: 8px;
}
.eu-card-link { color: #8B5CF6; font-weight: 600; }

/* =========================================================
   Comparison table
   ========================================================= */
.section-compare {
  padding: 96px 0;
  background:
    radial-gradient(720px 360px at 50% 100%, rgba(124, 58, 237, 0.12), transparent 60%);
}
.compare-header {
  text-align: center;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.compare-header .section-title { margin-top: 8px; }
.compare-header .section-sub { margin-top: 12px; }

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-elev-1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 760px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text);
}
.compare-table th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  width: 26%;
  background: var(--bg-elev-2);
}
.compare-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elev-2);
  vertical-align: top;
  padding-top: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-strong);
}
.compare-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.compare-tag {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.compare-self {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.05));
  position: relative;
}
.compare-table thead th.compare-self {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0.10));
}
.c-yes { color: #34D399; font-weight: 600; }
.c-no { color: var(--text-muted); }
.c-partial { color: #FBBF24; }

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th { border-bottom: 0; }

.compare-footnote {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.compare-footnote a { color: #8B5CF6; }

@media (max-width: 720px) {
  .compare-table th,
  .compare-table td { padding: 10px 8px; font-size: 12.5px; }
  .compare-table thead th { font-size: 11.5px; }
}
