/* ============================================================================
   Razur — Marketing page (razur.app apex), white + gold theme
   ============================================================================ */

:root {
  --bg: #ffffff;
  --bg-elev: #fafaf8;
  --surface: #f5f4f1;
  --surface-2: #efeeea;
  --border: #e7e5df;
  --border-strong: #d8d5cc;
  --text: #1a1a18;
  --text-muted: #55534c;
  --text-dim: #8a887f;

  --accent: #d4a574;
  --accent-light: #e6c39c;
  --accent-dim: #b8895a;
  --accent-glow: rgba(212, 165, 116, 0.22);
  --accent-soft: rgba(212, 165, 116, 0.08);
  /* Deeper gold for small text/icons directly on white — #d4a574/#b8895a
     read pale at body-text size against white (they're tuned to pop off
     near-black instead). Large decorative headline italics keep --accent-dim. */
  --accent-on-light: #a06a34;

  --hero-dark-bg: #0a0a0a;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 36px rgba(0,0,0,0.16);
  --shadow-glow: 0 8px 28px -8px var(--accent-glow);
  --shadow-glow-strong: 0 12px 40px -10px rgba(212, 165, 116, 0.4);

  --header-height: 76px;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overscroll-behavior-y: none;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

img { max-width: 100%; height: auto; display: block; }

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

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

/* ── Buttons (ported from styles.css — fully token-based, no dark-only colors) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  box-shadow: 0 4px 14px -4px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dim);
  background: var(--accent-soft);
}
.btn-lg { padding: 16px 34px; font-size: 15px; }

/* ── Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg);
}
.header-inner img.logo-mark { height: 22px; width: auto; }
.logo-mark { filter: brightness(0.72) saturate(1.1); }
.site-nav { display: flex; align-items: center; gap: var(--space-xl); }
.site-nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: var(--space-md); }
.mobile-menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.mobile-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-nav {
  display: none; flex-direction: column; gap: var(--space-md);
  padding: var(--space-lg); border-top: 1px solid var(--border); background: var(--bg);
}
.mobile-nav a { font-size: 14px; font-weight: 600; color: var(--text); padding: var(--space-sm) 0; }
.mobile-nav.open { display: flex; }

@media (max-width: 780px) {
  .site-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media-gradient {
  position: absolute; inset: 0;
  background: var(--hero-dark-bg);
  background-image:
    radial-gradient(60% 60% at 25% 25%, var(--accent-glow), transparent 70%),
    radial-gradient(50% 50% at 80% 75%, var(--accent-soft), transparent 70%);
  background-size: 160% 160%;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { background-position: 0% 0%, 100% 100%; }
  to   { background-position: 18% 12%, 82% 88%; }
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: transparent;
}
.hero-media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.35), rgba(10,10,10,0.78));
}
.hero-content { position: relative; z-index: 1; padding: var(--space-4xl) 0; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-lg);
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent-light); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  color: #f5f5f0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 880px;
  margin: 0 auto var(--space-lg);
}
.hero h1 em { color: var(--accent-light); font-style: italic; }
.hero-sub {
  color: rgba(245,245,240,0.78);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}
.hero-sub code {
  font-family: var(--sans);
  color: var(--accent-light);
  background: rgba(212,165,116,0.14);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: var(--space-md); flex-wrap: wrap; }
.hero-ctas .btn-secondary { color: #f5f5f0; border-color: rgba(245,245,240,0.3); }
.hero-ctas .btn-secondary:hover { border-color: var(--accent-light); color: var(--accent-light); background: rgba(212,165,116,0.1); }
.hero-fineprint {
  margin-top: var(--space-xl);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(245,245,240,0.55);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media-gradient { animation: none; }
}
@media (max-width: 640px) {
  .hero-video { display: none; }
}

/* ── Section shell ── */
section { padding: var(--space-4xl) 0; }
.section-tag {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: var(--space-md);
}
.section-tag .tag-line { width: 24px; height: 1px; background: var(--accent-on-light); }
.section-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
  max-width: 620px;
  margin-bottom: var(--space-lg);
}
.section-title em { font-style: italic; color: var(--accent-dim); }
.section-lead { color: var(--text-muted); font-size: 17px; max-width: 560px; margin-bottom: var(--space-3xl); }

/* ── How it works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.step-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.step-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-on-light);
  margin-bottom: var(--space-md);
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: var(--space-sm); }
.step-card p { font-size: 14px; color: var(--text-muted); }

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

/* ── Pricing ── */
.pricing-section { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xl);
  text-align: center;
}
.pricing-card.is-upcoming {
  background: var(--surface);
  border-style: dashed;
  box-shadow: none;
  opacity: 0.82;
}
.pricing-amount {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 56px;
  color: var(--text);
  margin: var(--space-md) 0 var(--space-xs);
}
.pricing-amount span { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.pricing-amount.is-tba { font-size: 32px; color: var(--text-dim); }
.pricing-trial {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-on-light);
  background: var(--accent-soft);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin-bottom: var(--space-lg);
}
.pricing-trial.is-muted { color: var(--text-dim); background: var(--surface-2); }
.pricing-features { list-style: none; text-align: left; margin: var(--space-xl) 0; display: flex; flex-direction: column; gap: var(--space-md); }
.pricing-features li { display: flex; align-items: flex-start; gap: var(--space-sm); font-size: 14px; color: var(--text-muted); }
.pricing-features li::before { content: '✓'; color: var(--accent-on-light); font-weight: 700; }
.pricing-features.is-muted li::before { color: var(--text-dim); }
.pricing-note { font-size: 12px; color: var(--text-dim); margin-top: var(--space-lg); }
.btn-disabled {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  background: var(--surface-2);
  cursor: not-allowed;
}

/* ── Final CTA ── */
.cta-section { background: var(--accent-soft); text-align: center; }
.cta-section .section-title { margin-left: auto; margin-right: auto; }
.cta-section .section-lead { margin-left: auto; margin-right: auto; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
}
.site-footer img.logo-mark { height: 12px; width: auto; margin: 0 auto var(--space-md); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-sm) var(--space-md); font-size: 13px; color: var(--text-dim); margin-top: var(--space-sm); }
.footer-links a:hover { color: var(--text-muted); }

/* ── Forms (Get started) ── */
.form-hero { padding: var(--space-3xl) 0 var(--space-4xl); }
.form-hero .container { max-width: 560px; }
.lead-form { margin-top: var(--space-2xl); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-md); }
.field-label {
  font-size: 11px; color: var(--text-muted); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
input[type=text], input[type=email], input[type=tel] {
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 16px;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled { opacity: 0.5; }
.field-hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: 0;
}
.form-error {
  font-size: 13px; color: var(--accent-on-light); background: var(--accent-soft);
  border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: var(--space-md);
}
.form-success { margin-top: var(--space-2xl); padding: var(--space-xl); background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.form-success-title { font-family: var(--serif); font-weight: 800; font-size: 22px; margin-bottom: var(--space-sm); }
.form-success p:not(.form-success-title) { color: var(--text-muted); font-size: 15px; }
.form-success a { color: var(--accent-on-light); font-weight: 600; }

/* ── Features page ── */
.page-hero { padding: var(--space-3xl) 0 var(--space-2xl); text-align: center; }
.page-hero .section-tag { justify-content: center; }
.page-hero .section-title { margin: 0 auto var(--space-md); }
.page-hero .section-lead { margin: 0 auto; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-phone { order: 1; }
.feature-copy h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 3vw, 34px); margin-bottom: var(--space-md); }
.feature-copy p { color: var(--text-muted); font-size: 16px; }
.feature-phone { display: flex; justify-content: center; }

@media (max-width: 780px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--space-xl); text-align: center; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-phone { order: initial; }
  .feature-phone { order: -1; }
}

/* Modern all-screen iPhone silhouette: rounded frame + top notch/dynamic-island,
   NO home button — just the thin gesture-indicator line at the bottom, like every
   iPhone since the X. */
.phone-frame {
  width: 260px;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  border-radius: 46px;
  padding: 10px;
  position: relative;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; background: #000; border-radius: 14px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
}
.phone-home-indicator {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 4px; border-radius: 2px;
  background: rgba(245, 245, 240, 0.35);
  z-index: 3;
}

/* Real live pages shown inside the phone silhouette — decorative, not
   interactive, so scrolling the marketing page never gets hijacked. */
.phone-iframe {
  /* Cross-origin iframes don't reliably respect the box's CSS width for
     `width=device-width` viewport-meta purposes — the embedded page renders
     at a much wider virtual viewport and gets clipped instead of reflowing.
     Fix: render it at a real phone width (390px, where the site's own
     mobile breakpoints actually kick in) then scale the whole thing down
     to fit the frame — .phone-screen is 240x543.3px.
     Width is 390+17 (typical scrollbar width): the embedded page is much
     taller than the frame, so it always shows its own scrollbar — padding
     the width pushes that scrollbar past the visible edge, where
     .phone-screen's overflow:hidden clips it away. Scale = 240/407. */
  position: absolute; top: 0; left: 0;
  width: 407px; height: 921px;
  border: 0;
  transform: scale(0.58968);
  transform-origin: top left;
  pointer-events: none;
}
