/* PR Explainer — Design System v3 (IDS Amber) */

/* ── Fonts ────────────────────────────────────────────────── */

/* Satoshi — display / hero font (Fontshare CDN) */
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@700,900&display=swap");

@font-face {
  font-family: "Geist Sans";
  src: url("/fonts/GeistSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/fonts/GeistSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/fonts/GeistSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/fonts/GeistSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Base ────────────────────────────────────────── */

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

:root {
  --bg: #0A0A0B;
  --bg-surface: #111113;
  --bg-card: #1A1A1D;
  --bg-elevated: #232326;
  --border: #2A2A2E;
  --border-hover: #3A3A3E;
  --text: #EDEDEF;
  --text-secondary: #A0A0A8;
  --text-muted: #6B6B73;
  --accent: #D97706;
  --accent-hover: #B45309;
  --accent-subtle: rgba(217, 119, 6, 0.12);
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --font-display: "Satoshi", "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius: 8px;
  --radius-sm: 6px;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

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

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

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

.section {
  padding: 80px 0;
}

/* ── Typography ──────────────────────────────────────────── */

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.subhead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0A0A0B;
}

.btn-primary:hover {
  color: #0A0A0B;
  background: var(--accent-hover);
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

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

/* ── Header / Nav ────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.by-indieprise {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-3);
  text-decoration: none;
}

.by-indieprise:hover {
  color: var(--text-2);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

/* Mobile auth links hidden on desktop */
.nav-auth-mobile {
  display: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s;
}

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

.hero {
  text-align: center;
  padding: 100px 0 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 0%, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: var(--text);
  position: relative;
}

.hero h1 .dim {
  color: var(--text-muted);
}

.hero .subhead {
  margin: 16px auto 0;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin: 12px auto 0;
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Hero video preview (autoplay, muted, looping) */
.hero-video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-video {
  width: 100%;
  display: block;
}

/* ── VS Code Mockup (Section 2) ──────────────────────────── */

.mockup-wrapper {
  max-width: 780px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mockup-titlebar {
  background: #1f1f1f;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

.mockup-filename {
  color: #808080;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  margin-left: 8px;
}

/* Body: activity bar + sidebar + editor */
.mockup-body {
  display: flex;
  height: 280px;
}

/* Activity Bar */
.mockup-activity-bar {
  width: 40px;
  background: #181818;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  gap: 14px;
  flex-shrink: 0;
}

.activity-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #6e6e6e;
  stroke-width: 1.5;
  cursor: default;
}

.activity-icon.active {
  stroke: #e5e5e5;
}

/* Sidebar */
.mockup-sidebar {
  width: 160px;
  background: #1e1e1e;
  border-right: 1px solid #333;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-header {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.08em;
  padding: 8px 12px 6px;
  text-transform: uppercase;
}

.sidebar-tree {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #ccc;
}

.tree-item {
  padding: 3px 12px;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-item.indent {
  padding-left: 26px;
}

.tree-item.folder::before {
  content: "\25B6 ";
  font-size: 0.5rem;
  color: #888;
  margin-right: 4px;
}

.tree-item.folder.open::before {
  content: "\25BC ";
}

.tree-item.file::before {
  content: "";
  display: inline-block;
  width: 14px;
}

.tree-item.active {
  background: rgba(217, 119, 6, 0.15);
  color: #fff;
}

.tree-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
}

/* Editor Area */
.mockup-editor-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mockup-tabs {
  display: flex;
  background: #1e1e1e;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}

.mockup-tab {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #888;
  padding: 6px 16px;
  border-right: 1px solid #333;
  cursor: default;
  white-space: nowrap;
}

.mockup-tab.active {
  color: #e5e5e5;
  background: #1e1e1e;
  border-bottom: 1px solid var(--accent);
  margin-bottom: -1px;
}

.mockup-editor {
  background: #1e1e1e;
  padding: 12px 8px 12px 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  flex: 1;
  overflow: hidden;
}

.line-num {
  display: inline-block;
  width: 32px;
  text-align: right;
  color: #555;
  margin-right: 16px;
  font-size: 0.75rem;
  user-select: none;
}

.mockup-line {
  padding: 0 4px;
  white-space: pre;
  transition: background 0.4s, border-color 0.4s;
  border-left: 3px solid transparent;
  padding-left: 4px;
}

.mockup-line.active {
  background: rgba(217, 119, 6, 0.1);
  border-left-color: var(--accent);
}

.mockup-line.active .line-num {
  color: var(--accent);
}

/* Syntax colors */
.tok-keyword { color: #569cd6; }
.tok-variable { color: #9cdcfe; }
.tok-function { color: #dcdcaa; }
.tok-type { color: #4ec9b0; }
.tok-string { color: #ce9178; }
.tok-comment { color: #6a9955; }
.tok-plain { color: #d4d4d4; }
.tok-property { color: #9cdcfe; }

/* Narration Panel */
.mockup-narration {
  background: #181818;
  border-top: 1px solid #333;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mockup-narration-badge {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0a0a0a;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.mockup-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup-play-btn svg {
  width: 10px;
  height: 10px;
  fill: var(--accent);
}

.mockup-narration-text {
  flex: 1;
  color: #ccc;
  font-size: 0.75rem;
  font-style: italic;
  overflow: hidden;
  height: 2.8em;
  line-height: 1.4;
}

.mockup-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  height: 20px;
}

.mockup-waveform span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  animation: waveform 1.2s ease-in-out infinite;
}

.mockup-waveform span:nth-child(1) { height: 6px; animation-delay: 0s; }
.mockup-waveform span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.mockup-waveform span:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.mockup-waveform span:nth-child(4) { height: 18px; animation-delay: 0.45s; }
.mockup-waveform span:nth-child(5) { height: 8px; animation-delay: 0.6s; }

@keyframes waveform {
  0%, 100% { opacity: 0.4; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

.mockup-counter {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  flex-shrink: 0;
}

/* Typing cursor */
.typing-cursor::after {
  content: "|";
  animation: blink 0.8s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── How It Works Steps (Section 3) ──────────────────────── */

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 40px auto 0;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Glass-over sweep effect */
.step-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(217, 119, 6, 0.04) 40%,
    rgba(217, 119, 6, 0.06) 60%,
    transparent 100%
  );
  transition: transform 0.5s ease;
  transform: translateX(-100%);
  pointer-events: none;
}

.step-item:hover::after {
  transform: translateX(100%);
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item h3 {
  margin-bottom: 4px;
}

.step-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ── Feature Rows (Section 4) ────────────────────────────── */

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 48px;
}

.feature-row {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Glass-over sweep effect on feature rows */
.feature-row::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(217, 119, 6, 0.04) 40%,
    rgba(217, 119, 6, 0.06) 60%,
    transparent 100%
  );
  transition: transform 0.5s ease;
  transform: translateX(-100%);
  pointer-events: none;
}

.feature-row:hover::after {
  transform: translateX(100%);
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text .section-label {
  margin-bottom: 4px;
}

.feature-text h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.feature-visual {
  width: 200px;
  height: 140px;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-visual svg {
  width: 64px;
  height: 64px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}



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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.pricing-card:hover {
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.15);
  border-color: rgba(217, 119, 6, 0.3);
}

.pricing-card.featured {
  background: rgba(217, 119, 6, 0.04);
  backdrop-filter: blur(8px);
  border-color: rgba(217, 119, 6, 0.12);
  position: relative;
}

.pricing-card.featured::before {
  content: "Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 100px;
}

.pricing-card h3 {
  font-size: 1.25rem;
}

.price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 16px 0 4px;
  letter-spacing: -0.03em;
}

.price-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.pricing-card li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card > .btn {
  width: 100%;
}

.pricing-card-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* ── Final CTA (Section 7) ───────────────────────────────── */

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

.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin: 12px auto 32px;
  max-width: 480px;
}

/* ── Waitlist Form ───────────────────────────────────────── */

.waitlist-form {
  width: 100%;
}

.waitlist-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waitlist-input-group input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.waitlist-input-group input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-input-group input[type="email"]::placeholder {
  color: var(--text-muted);
}

.waitlist-input-group .btn {
  white-space: nowrap;
  width: 100%;
}

.waitlist-msg {
  font-size: 0.875rem;
  margin-top: 8px;
  text-align: center;
}

.waitlist-msg.success {
  color: #4ade80;
}

.waitlist-msg.error {
  color: #f87171;
}

/* ── Legal Pages ─────────────────────────────────────────── */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal .last-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

/* ── Auth Callback ───────────────────────────────────────── */

.auth-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ── Auth Pages (Login / Signup / Forgot Password) ──────── */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 100px);
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-align: center;
  margin-bottom: 24px;
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-social-btn {
  width: 100%;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.875rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

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

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}

.auth-field input:focus {
  border-color: var(--accent);
}

.auth-field input::placeholder {
  color: var(--text-muted);
}

.auth-code-input {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  padding: 12px 14px;
}

.auth-forgot {
  text-align: right;
  margin-bottom: 16px;
}

.auth-forgot a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.auth-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius-sm);
  color: #f87171;
  font-size: 0.8125rem;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.auth-submit {
  width: 100%;
}

.auth-footer-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 24px;
}

/* ── Header Auth Nav ────────────────────────────────────── */

.nav-user {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-right: 12px;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8125rem;
}

#auth-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links-item {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links-item:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Video Demo ─────────────────────────────────────────── */

.video-wrapper {
  margin-top: 32px;
}

.video-wrapper video {
  display: block;
  margin: 0 auto;
}

.video-placeholder {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 12px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ── Scroll Animations ───────────────────────────────────── */

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced Motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .fade-in-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .typing-cursor::after {
    animation: none;
  }
  .step-item::after,
  .feature-row::after {
    transition: none;
  }
  .mockup-waveform span {
    animation: none;
  }
}

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

@media (max-width: 1024px) {
  :root {
    --max-width: 720px;
  }

  .feature-row {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }

  h1 {
    font-size: 1.375rem;
  }

  .hero-description {
    font-size: 0.875rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 16px 0;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  nav {
    flex-wrap: wrap;
  }

  /* Hide desktop auth nav on mobile, show inside hamburger menu */
  #auth-nav {
    display: none !important;
  }

  .nav-auth-mobile {
    list-style: none;
    display: flex;
    gap: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Staggered rows stack */
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
  }

  .feature-visual {
    width: 100%;
    height: 120px;
    order: -1;
  }


  /* Mockup: hide sidebar on mobile */
  .mockup-activity-bar,
  .mockup-sidebar {
    display: none;
  }

  .mockup-body {
    height: 220px;
  }

  .mockup-editor {
    font-size: 0.6875rem;
    padding: 8px 4px 8px 0;
  }

  .mockup-narration-text {
    font-size: 0.6875rem;
    height: 3.6em;
  }

  .mockup-narration-badge {
    display: none;
  }

  .mockup-line {
    white-space: pre-wrap;
    word-break: break-all;
  }

  .line-num {
    width: 24px;
    margin-right: 8px;
    font-size: 0.625rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .waitlist-input-group {
    flex-direction: column;
  }

  /* Auth pages */
  .auth-card {
    padding: 32px 20px;
  }

  .auth-page {
    padding: 32px 16px;
  }
}
