/* ============================================================
   Synopsule — Marketing site
   Design system ported from the macOS app (Theme.swift)
   ============================================================ */

/* ----- Tokens ----- */
:root {
  /* Surfaces (dark) */
  --bg: #1a1a1d;
  --bg-deep: #131316;
  --bg-lift: #202023;
  --chrome: #262629;
  --chrome-alt: #2c2c30;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-elevated: rgba(255, 255, 255, 0.065);
  --panel-warm: #1f1812;

  /* Text ramp */
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.55);
  --muted-soft: rgba(255, 255, 255, 0.38);
  --text-faint: rgba(255, 255, 255, 0.30);

  /* Semantic accents */
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --accent-border: rgba(59, 130, 246, 0.28);
  --record: #ff453a;
  --mic: #5ac8fa;
  --system: #bf5af2;
  --ok: #30d158;
  --warn: #ffd60a;

  /* Hairlines */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.055);

  /* Type scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, "Menlo", monospace;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;

  /* Shadows */
  --shadow-panel: 0 10px 30px rgba(0, 0, 0, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --shadow-elev: 0 28px 60px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-glow-accent: 0 12px 50px rgba(59, 130, 246, 0.35);

  /* Layout */
  --maxw: 1180px;
  --pad: 28px;
}

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

html {
  /* Site is dark-only — declare it so the browser renders form controls,
     scrollbars, and the default canvas in matching dark, not the user's
     system-mode default. <meta name="color-scheme"> alone is not enough. */
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* ----- Background mesh ----- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    radial-gradient(40% 40% at 85% 10%, rgba(191, 90, 242, 0.14) 0%, transparent 65%),
    radial-gradient(50% 60% at 50% 100%, rgba(90, 200, 250, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-lift) 0%, var(--bg) 40%, var(--bg-deep) 100%);
  filter: saturate(1.05);
}

.bg-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* ----- Layout ----- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  position: relative;
  padding: 120px 0;
}

@media (max-width: 720px) {
  section {
    padding: 80px 0;
  }
}

/* ----- Navigation ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  transition: backdrop-filter 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(19, 19, 22, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--hairline);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* App icon ships with its own squircle, gradient, and drop shadow baked in,
   so we display it as an <img> and let it speak for itself. The CSS shadow
   below is a subtle bloom underneath the icon — keep it quiet. */
.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(59, 130, 246, 0.28));
}

/* Larger variant for footer / hero badge */
.brand-mark.lg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 12px 28px rgba(59, 130, 246, 0.32));
}

.brand-name {
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--panel);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, border-color 0.16s ease;
  background: var(--panel-elevated);
  color: var(--text);
  border-color: var(--line);
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-glow-accent);
}

.btn-primary:hover {
  background: #4d8ef7;
  box-shadow: 0 16px 60px rgba(59, 130, 246, 0.5);
}

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 14px;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: white;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-appstore::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%);
}

.btn-appstore:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.btn-appstore .as-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-appstore .as-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn-appstore .as-pre {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
}

.btn-appstore .as-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ----- Glass / panel utility ----- */
.panel {
  background: linear-gradient(135deg, var(--panel-elevated), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.panel-soft {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}

/* ----- Hero ----- */
.hero {
  padding-top: 80px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

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

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  font-family: var(--font-rounded);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--system) 60%,
      var(--mic) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.hero .lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta .dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-soft);
}

.hero-meta .check {
  color: var(--ok);
}

/* ----- Hero stage (mock window) ----- */
.stage {
  position: relative;
  width: 100%;
  perspective: 2400px;
  pointer-events: none;
}

.mac-window {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, #1d1d20 0%, #161618 100%);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    0 -1px 0 rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  transform: rotateX(4deg) rotateY(-6deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mac-window:hover {
  transform: rotateX(2deg) rotateY(-3deg);
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.02);
}

.traffic {
  display: flex;
  gap: 8px;
}

.traffic span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.traffic span:nth-child(1) {
  background: #ff5f57;
}
.traffic span:nth-child(2) {
  background: #febc2e;
}
.traffic span:nth-child(3) {
  background: #28c840;
}

.titlebar-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 auto;
  font-weight: 500;
}

.titlebar-icon {
  width: 16px;
  height: 16px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.window-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
}

.live-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 69, 58, 0.10),
      rgba(255, 69, 58, 0.04));
  border: 1px solid rgba(255, 69, 58, 0.18);
}

.rec-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--record);
  flex-shrink: 0;
}

.rec-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(255, 69, 58, 0.3);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.rec-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--record);
}

.rec-time {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.waveform {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.waveform i {
  display: block;
  flex: 1;
  background: linear-gradient(180deg, var(--mic), var(--accent));
  border-radius: 2px;
  height: 30%;
  transition: height 0.12s ease;
  min-width: 2px;
}

.lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lane {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--hairline);
}

.lane-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.lane.mic .lane-icon {
  background: rgba(90, 200, 250, 0.16);
  border: 1px solid rgba(90, 200, 250, 0.28);
  color: var(--mic);
}

.lane.system .lane-icon {
  background: rgba(191, 90, 242, 0.16);
  border: 1px solid rgba(191, 90, 242, 0.28);
  color: var(--system);
}

.lane-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lane-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.lane-sub {
  font-size: 10px;
  color: var(--muted);
}

.lane-bars {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}

.lane-bars i {
  flex: 1;
  background: currentColor;
  border-radius: 1px;
  height: 30%;
  min-width: 2px;
  transition: height 0.12s ease;
  opacity: 0.85;
}

.lane.mic .lane-bars {
  color: var(--mic);
}

.lane.system .lane-bars {
  color: var(--system);
}

.transcript {
  padding: 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}

.t-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.t-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.t-speaker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.t-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.t-name.mic {
  color: var(--mic);
}

.t-name.system {
  color: var(--system);
}

.t-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-soft);
}

.t-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.t-text .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  to { opacity: 0; }
}

/* ----- Section headers ----- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-header .eyebrow {
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-rounded);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.1;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ----- Value strip ----- */
.value-strip {
  padding: 24px 0 60px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-cell {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}

.value-cell:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--panel-elevated);
}

.value-cell h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.value-cell p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.icon-badge.accent {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.icon-badge.mic {
  background: rgba(90, 200, 250, 0.16);
  border: 1px solid rgba(90, 200, 250, 0.28);
  color: var(--mic);
}

.icon-badge.system {
  background: rgba(191, 90, 242, 0.16);
  border: 1px solid rgba(191, 90, 242, 0.28);
  color: var(--system);
}

.icon-badge.ok {
  background: rgba(48, 209, 88, 0.16);
  border: 1px solid rgba(48, 209, 88, 0.28);
  color: var(--ok);
}

.icon-badge.warn {
  background: rgba(255, 214, 10, 0.16);
  border: 1px solid rgba(255, 214, 10, 0.28);
  color: var(--warn);
}

/* ----- Feature blocks (alternating) ----- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.feature-block.reverse > .feature-visual {
  order: 2;
}

@media (max-width: 920px) {
  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-block.reverse > .feature-visual {
    order: 0;
  }
}

.feature-copy h3 {
  font-family: var(--font-rounded);
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.feature-copy p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 480px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text);
}

.feature-list li .check {
  flex-shrink: 0;
  color: var(--ok);
  margin-top: 2px;
}

.feature-visual {
  position: relative;
  min-height: 320px;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(135deg, var(--panel-elevated), var(--panel));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-elev);
}

/* Feature visual #1: stacked waveforms */
.viz-waveforms {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  justify-content: center;
}

.viz-lane {
  display: flex;
  align-items: center;
  gap: 14px;
}

.viz-lane-label {
  display: flex;
  flex-direction: column;
  width: 110px;
}

.viz-lane-label .name {
  font-size: 13px;
  font-weight: 600;
}

.viz-lane-label .source {
  font-size: 11px;
  color: var(--muted);
}

.viz-wave {
  flex: 1;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.viz-wave i {
  flex: 1;
  border-radius: 2px;
  min-width: 3px;
  transition: height 0.16s ease;
}

.viz-lane.mic .viz-wave i {
  background: linear-gradient(180deg, var(--mic), var(--accent));
}

.viz-lane.system .viz-wave i {
  background: linear-gradient(180deg, var(--system), #6e3da6);
}

/* Feature visual #2: speaker chips & rename */
.viz-speakers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: center;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.speaker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.speaker-chip .swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.speaker-chip.mic {
  color: var(--mic);
}
.speaker-chip.system {
  color: var(--system);
}
.speaker-chip.ok {
  color: var(--ok);
}
.speaker-chip.warn {
  color: #ff9f0a;
}

.rename-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.rename-card .from {
  color: var(--muted);
  font-size: 13px;
}

.rename-card .arrow {
  color: var(--muted-soft);
}

.rename-card .to {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.rename-card .updated {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.14);
  border: 1px solid rgba(48, 209, 88, 0.28);
  color: var(--ok);
  font-size: 11px;
  font-weight: 600;
}

/* Feature visual #3: synced playback */
.viz-player {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: center;
}

.player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid var(--hairline);
}

.player-bar .play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
}

.player-progress {
  flex: 1;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.player-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 38%;
  background: linear-gradient(90deg, var(--accent), var(--mic));
  border-radius: 2px;
}

.player-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.player-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-line {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 0.25s ease, border 0.25s ease, color 0.25s ease;
}

.player-line.active {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text);
}

.player-line .who {
  font-weight: 600;
  margin-right: 8px;
  color: var(--mic);
}

.player-line.system-speaker .who {
  color: var(--system);
}

/* Feature visual #4: AI summary */
.viz-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.summary-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--hairline);
}

.summary-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.summary-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
}

.summary-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-card li {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.summary-card li .owner {
  color: var(--mic);
  font-weight: 600;
}

/* Feature visual #5: export */
.viz-exports {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 100%;
  align-content: center;
}

.export-tile {
  padding: 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: transform 0.18s ease, border 0.18s ease, background 0.18s ease;
}

.export-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  background: rgba(59, 130, 246, 0.06);
}

.export-tile .ext {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.export-tile .name {
  font-size: 11px;
  color: var(--muted);
}

/* ----- Privacy section ----- */
.privacy {
  position: relative;
}

.privacy-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.05),
      rgba(59, 130, 246, 0.04));
  border: 1px solid var(--line);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 880px) {
  .privacy-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.privacy-shield {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-shield .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--ok);
  opacity: 0.4;
  animation: ringExpand 3s ease-out infinite;
}

.privacy-shield .ring:nth-child(2) {
  animation-delay: 1s;
}

.privacy-shield .ring:nth-child(3) {
  animation-delay: 2s;
}

@keyframes ringExpand {
  0% { transform: scale(0.5); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.privacy-shield .core {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--ok), #16a042);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  box-shadow: 0 18px 60px rgba(48, 209, 88, 0.5);
}

.privacy-shield .core svg {
  width: 44px;
  height: 44px;
}

.privacy-hero h3 {
  font-family: var(--font-rounded);
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.privacy-hero p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.privacy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .privacy-pillars {
    grid-template-columns: 1fr;
  }
}

.privacy-card {
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}

.privacy-card .icon-badge {
  margin-bottom: 14px;
}

.privacy-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.privacy-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ----- Pricing ----- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.pricing-grid.pricing-single {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid.pricing-single {
    grid-template-columns: 1fr;
  }
}

.price-card {
  padding: 32px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--panel-elevated), var(--panel));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card.featured {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12),
      rgba(191, 90, 242, 0.08));
  box-shadow: var(--shadow-elev);
}

.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* When the pricing layout has a single card, the "Most popular"
   badge is meaningless — replace it with a "Pay once" tag. */
.pricing-single .price-card.featured::before {
  content: "Pay once";
}

.price-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price-card .tag {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price .amount {
  font-family: var(--font-rounded);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price .per {
  font-size: 14px;
  color: var(--muted);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.price-list li .check {
  flex-shrink: 0;
  color: var(--ok);
  margin-top: 1px;
}

.price-aside {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 24px auto 0;
  max-width: 640px;
}

/* ----- FAQ ----- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  gap: 16px;
  color: var(--text);
}

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

.faq-item summary .plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--panel-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
  color: var(--muted);
}

.faq-item[open] summary .plus {
  transform: rotate(45deg);
  background: var(--accent);
  color: white;
}

.faq-item .answer {
  padding: 0 22px 18px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ----- CTA banner ----- */
.cta-banner {
  margin-top: 40px;
  padding: 60px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14),
      rgba(191, 90, 242, 0.10));
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.25),
      transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  position: relative;
  font-family: var(--font-rounded);
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  position: relative;
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 16px;
}

.cta-banner .hero-ctas {
  position: relative;
  justify-content: center;
  margin-bottom: 0;
}

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
  margin: 12px 0 0;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 540px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  color: var(--muted-soft);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ----- Reveal-on-scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] {
  transition-delay: 0.06s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.12s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.18s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.24s;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Privacy policy page
   ============================================================ */

.legal {
  padding: 60px 0 120px;
}

.legal-shell {
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-family: var(--font-rounded);
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
  line-height: 1.1;
}

.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal h2 {
  font-family: var(--font-rounded);
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  font-weight: 700;
}

.legal h3 {
  font-size: 16px;
  margin: 28px 0 8px;
  font-weight: 600;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(59, 130, 246, 0.3);
  text-underline-offset: 3px;
}

.legal a:hover {
  text-decoration-color: var(--accent);
}

.legal-toc {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.legal-toc h4 {
  margin: 0 0 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-soft);
  font-weight: 700;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

@media (max-width: 600px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
}

.legal-toc li {
  font-size: 14px;
  margin: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.back-link:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.legal code {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--panel-elevated);
  border: 1px solid var(--hairline);
  color: var(--text);
}

.legal-table-wrap {
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin: 16px 0 24px;
  background: var(--panel);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  color: var(--text);
}

.legal-table thead th {
  background: var(--panel-elevated);
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--hairline);
}

.legal-table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  line-height: 1.55;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody td:first-child {
  color: var(--text);
  font-weight: 500;
  width: 38%;
}

.legal-table tbody td:nth-child(2) {
  width: 26%;
  color: var(--text);
}

@media (max-width: 640px) {
  .legal-table,
  .legal-table thead,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td,
  .legal-table th {
    display: block;
  }
  .legal-table thead {
    display: none;
  }
  .legal-table tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .legal-table tbody tr:last-child {
    border-bottom: none;
  }
  .legal-table tbody td {
    padding: 4px 0;
    border: none;
    width: auto !important;
  }
  .legal-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-soft);
    font-weight: 700;
    margin-bottom: 2px;
  }
  .legal-table tbody td:first-child {
    margin-top: 0;
    font-weight: 600;
  }
}
