/* Replix Captions standalone product landing */

:root {
  --canvas: #0c0b0a;
  --surface: #15130f;
  --cream: #f4ecdc;
  --body: #c8c2b6;
  --dim: #8a8478;
  --muted: #5c584f;
  --amber: #f6c453;
  --hairline: rgba(244, 236, 220, 0.08);
  --hairline-strong: rgba(244, 236, 220, 0.14);
  --page-max: 1280px;
  --page-gutter: clamp(20px, 4vw, 48px);
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  background: var(--canvas);
  color: var(--body);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* No browser-default purple links anywhere on dark UI */
a:link,
a:visited {
  color: var(--amber);
  text-decoration: none;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 78% 12%, rgba(246, 196, 83, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 12% 88%, rgba(244, 236, 220, 0.04), transparent 50%);
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

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

.site-header-inner {
  width: min(var(--page-max), 100%);
  max-width: none;
  margin: 0 auto;
  padding: 16px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-wrap: nowrap;
  color: inherit;
}

.logo-group:link,
.logo-group:visited {
  color: inherit;
}

.logo {
  font-family: "Coolvetica", "Poppins", system-ui, sans-serif;
  font-size: 20px;
  color: var(--cream);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.logo-light { color: var(--dim); }

.beta-pill {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(246, 196, 83, 0.35);
  background: rgba(246, 196, 83, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.header-signin {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.header-signin:hover {
  border-color: rgba(246, 196, 83, 0.4);
  background: rgba(246, 196, 83, 0.06);
}

.header-link {
  color: var(--dim, #8a8478);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 4px;
  transition: color 0.15s ease;
}

.header-link:hover {
  color: var(--cream, #f4ecdc);
}

.landing {
  width: min(var(--page-max), 100%);
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--page-gutter) 80px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  gap: clamp(16px, 2.5vw, 36px);
  align-items: center;
  padding: clamp(40px, 6vh, 80px) 0 clamp(56px, 8vh, 96px);
  animation: fadeUp 0.7s ease both;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-family: "Coolvetica", "Poppins", system-ui, sans-serif;
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -1.2px;
  color: var(--cream);
  margin-bottom: 20px;
  max-width: 18ch;
}

.hero-copy .lead {
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--body);
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 13px;
  color: var(--dim);
  margin-top: 14px;
}

.hero-trust {
  font-size: 0.85rem;
  color: var(--dim);
  margin-top: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--cream);
  color: #0c0b0a;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(244, 236, 220, 0.12);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-full { width: 100%; }

[hidden] {
  display: none !important;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  background: #fff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.modal-divider {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  margin: 14px 0;
}

/* Hero visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  min-width: 0;
  width: 100%;
}

.phone-mockup {
  width: min(300px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2620 0%, #15130f 50%, #0c0b0a 100%);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.phone-mockup { position: relative; }

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, #1f1c17 0%, #0c0b0a 100%);
  display: block;
  padding: 0;
  overflow: hidden;
}

.demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #0c0b0a;
}

.demo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.58);
  border: 1px solid rgba(246, 196, 83, 0.32);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.demo-badge[data-mode="native"] {
  border-color: rgba(244, 236, 220, 0.34);
}

.demo-mute {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-width: 52px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 220, 0.22);
  background: rgba(12, 11, 10, 0.56);
  color: var(--cream);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.demo-mute:hover {
  transform: translateY(-1px);
  background: rgba(244, 236, 220, 0.14);
}

.demo-mute.is-unmuted {
  background: var(--cream);
  border-color: transparent;
  color: #0c0b0a;
}

/* Sections */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.section-founder {
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  animation: fadeUp 0.7s ease 0.1s both;
}

.section-founder p {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--body);
  line-height: 1.65;
  max-width: 68ch;
}

.section-steps {
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  animation: fadeUp 0.7s ease 0.18s both;
}

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px 20px;
}

.step-num {
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 12px;
}

.step-card h3 {
  font-family: "Coolvetica", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.step-card p {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.5;
}

.price-int {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  color: var(--dim);
  margin-left: 4px;
}

.pricing-foot {
  margin-top: 16px;
  color: var(--dim);
  font-size: 13px;
}

.section-access {
  padding: 48px 0 24px;
  animation: fadeUp 0.7s ease 0.26s both;
}

.access-card {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 40px);
  text-align: center;
}

.access-card h2 {
  font-family: "Coolvetica", system-ui, sans-serif;
  font-size: clamp(24px, 5vw, 32px);
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.access-card p {
  font-size: 15px;
  color: var(--dim);
  max-width: 42ch;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.landing-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  animation: fadeUp 0.7s ease 0.32s both;
}

.footer-links a,
.footer-links a:link,
.footer-links a:visited {
  color: var(--dim);
  text-decoration: none;
  margin-right: 16px;
}

.footer-links a:hover { color: var(--cream); }

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.footer-tag { color: var(--muted); font-size: 11px; }

.footer-creator,
.footer-creator:link,
.footer-creator:visited {
  color: var(--dim);
  text-decoration: none;
}

.footer-creator:hover { color: var(--cream); }

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 18px;
  padding: 28px 24px;
}

.modal-card h2 {
  font-family: "Coolvetica", system-ui, sans-serif;
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.modal-sub {
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-sub a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.modal-card input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--canvas);
  color: var(--cream);
  font-family: inherit;
  margin-bottom: 14px;
  outline: none;
}

.modal-card input[type="email"]:focus {
  border-color: rgba(246, 196, 83, 0.45);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}

.tc-check input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
}

.tc-check a {
  color: var(--amber);
  text-decoration: none;
}

.tc-check a:hover {
  text-decoration: underline;
}

.turnstile-slot {
  margin: 4px 0 12px;
  min-height: 65px;
  display: flex;
  justify-content: center;
}

.turnstile-slot[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9000;
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(20, 18, 14, 0.96);
  border: 1px solid rgba(244, 236, 220, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  color: var(--dim);
}

.cookie-banner.visible { display: flex; }

.cookie-banner a {
  color: var(--amber);
  text-decoration: none;
}

.cookie-banner a:hover { text-decoration: underline; }

.cookie-banner button {
  flex: 0 0 auto;
  padding: 8px 16px;
  background: var(--amber);
  color: #0c0b0a;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.modal-msg {
  font-size: 13px;
  color: var(--dim);
  margin-top: 12px;
  min-height: 20px;
}

.modal-msg a,
.modal-msg a:link,
.modal-msg a:visited {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}

.modal-msg a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.modal-msg.ok { color: #9bc7ff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 12px;
  min-height: 44px;
}

.btn-ghost:hover { color: var(--cream); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Desktop: pull visual toward copy, larger phone */
@media (min-width: 900px) {
  .hero-visual {
    justify-content: flex-start;
    gap: 12px;
  }

  .phone-mockup {
    width: min(340px, 42vw);
  }
}

@media (min-width: 1200px) {
  :root {
    --page-max: 1360px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) auto;
    gap: 40px;
  }

  .hero-copy h1 {
    max-width: 20ch;
    font-size: clamp(48px, 4.2vw, 68px);
  }

  .phone-mockup {
    width: 360px;
  }
}

/* Mobile */
@media (max-width: 899px) {
  .site-header-inner {
    padding: 14px var(--page-gutter);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }

  .hero-copy h1 { max-width: none; }

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

  .phone-mockup {
    width: min(200px, 72vw);
    max-height: 60vh;
    aspect-ratio: 9 / 16;
  }

  .btn-primary {
    width: 100%;
    min-height: 56px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root { --page-gutter: 16px; }
  .landing { padding: 0 var(--page-gutter) 64px; }
  .logo { font-size: 18px; }
  .beta-pill { font-size: 8px; padding: 3px 8px; }
}
