/* Replr landing page — styles. Tokens in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

/* ---- Layout ---- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--screen-margin); }
.section { padding: clamp(48px, 7vw, 86px) 0; }
.section--tight { padding: clamp(36px, 5vw, 60px) 0; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 52px); }

/* ---- Type ---- */
.serif { font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.5px; line-height: 1.04; }
.h-hero { font-size: clamp(40px, 6vw, 56px); }
.h-section { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -0.4px; }
.rose { color: var(--accent); }
.lead { color: var(--text-secondary); font-size: clamp(16px, 2vw, 18px); line-height: 1.55; }
.muted { color: var(--text-tertiary); font-size: 13px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border: 0;
  border-radius: var(--r-full); padding: 0 22px; height: 48px; transition: transform var(--motion-quick), filter var(--motion-quick); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 28px var(--accent-glow); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--glass-border); height: 40px; font-size: 13px; padding: 0 18px; }
.btn-ghost:hover { background: var(--accent-soft); }

/* App Store badge — official-style SVG asset (swap for Apple's exact file + live URL before launch) */
.badge-link { display: inline-block; line-height: 0; transition: transform var(--motion-quick); }
.badge-link:active { transform: scale(0.97); }
.badge-link img { display: block; }
.link-arrow { color: var(--text-secondary); font-size: 14px; }
.link-arrow:hover { color: var(--text-primary); }

/* App-style icon chip (mirrors the app's SF Symbols, rose on a soft tint) */
.ic, .feat-ic { display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.ic svg, .feat-ic svg { width: 24px; height: 24px; }
.feat-ic { margin-bottom: 18px; }

/* ---- Cards / chips ---- */
.card { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r-card); }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; color: var(--text-secondary);
  background: var(--surface); border: 1px solid var(--glass-border); padding: 6px 13px; border-radius: var(--r-full); }
.chip--active { background: var(--grad); color: #fff; font-weight: 600; border-color: transparent; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--glass-border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; }
.nav-links a:hover { color: var(--text-primary); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(56% 40% at 50% -6%, var(--accent-soft) 0%, transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 48px);
  align-items: center; padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 7vw, 80px); }
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--text-tertiary); font-size: 12px; flex-wrap: wrap; }
.hero-trust b { color: var(--text-tertiary); letter-spacing: 0.5px; font-weight: 600; }
.hero-trust span { color: var(--text-secondary); }

/* Demo panel */
.demo { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r-card);
  padding: 18px; box-shadow: 0 20px 44px rgba(0,0,0,0.18), 0 0 36px var(--accent-glow); }
@media (prefers-color-scheme: dark) {
  .demo { box-shadow: 0 20px 44px rgba(0,0,0,0.40), 0 0 36px rgba(255,111,145,0.07); }
  .mock-phone { box-shadow: 0 22px 56px rgba(0,0,0,0.45); }
}
.demo-label { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); }
.demo-incoming { display: inline-block; background: var(--surface-raised); color: var(--text-primary);
  border: 1px solid var(--glass-border); border-radius: 14px 14px 14px 4px; padding: 10px 13px; font-size: 14px; max-width: 82%; margin-top: 11px; }
.demo-tones { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0; }
.demo-tones .chip { cursor: pointer; }
.demo-replies { display: flex; flex-direction: column; gap: 9px; margin-top: 11px; }
.reply { display: flex; align-items: center; gap: 11px; background: var(--surface-raised); border: 1px solid var(--glass-border);
  border-radius: var(--r-md); padding: 11px 13px; font-size: 14px; color: var(--text-primary); cursor: pointer;
  transition: border-color var(--motion-quick), transform var(--motion-quick); opacity: 1; }
.reply:hover { border-color: var(--accent); }
.reply .num { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.demo-hint { text-align: center; color: var(--text-tertiary); font-size: 11px; margin-top: 14px; }
.fade-swap { animation: fadeSwap 200ms ease-out; }
@keyframes fadeSwap { from { opacity: 0.4; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---- Logo strip ---- */
.logos { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 40px); flex-wrap: wrap; }
.logos span { color: var(--text-tertiary); font-size: 15px; font-weight: 600; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
.step { padding: 24px; }
.step .ic { margin-bottom: 16px; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 15px; }

/* ---- Features ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.feature + .feature { margin-top: clamp(36px, 6vw, 64px); }
.feature:nth-child(even) .feature-visual { order: -1; }
.feature h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.3px; margin-bottom: 12px; }
.feature p { color: var(--text-secondary); font-size: 16px; max-width: 420px; }
.feature-visual { min-height: 220px; border-radius: var(--r-card); background: var(--surface);
  border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; padding: 24px; }
/* Placeholder "mock phone" visuals — designed dummies; swap for real screenshots later. */
.feature-visual.mock { background: none; border: 0; padding: 0; min-height: 0; }
.mock-phone { width: 100%; max-width: 244px; aspect-ratio: 244 / 430; background: var(--surface);
  border: 1px solid var(--glass-border); border-radius: 34px; box-shadow: 0 22px 56px rgba(0,0,0,0.16);
  padding: 24px 18px; display: flex; flex-direction: column; gap: 11px; }
.mock-phone .m-input { height: 32px; border-radius: 999px; background: var(--mock-fill); border: 1px solid var(--mock-line); margin-top: auto; }
.mock-phone .m-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.mock-phone .m-ava { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.mock-phone .m-line { height: 9px; border-radius: 5px; background: var(--mock-fill); }
.mock-phone .m-bubble { height: 30px; border-radius: 13px; background: var(--mock-fill); border: 1px solid var(--mock-line); width: 78%; }
.mock-phone .m-bubble.r { align-self: flex-end; width: 62%; background: var(--grad); border: 0; }
.mock-phone .m-chips { display: flex; gap: 6px; margin: 6px 0 2px; }
.mock-phone .m-chip { height: 18px; width: 40px; border-radius: 999px; background: var(--mock-fill); border: 1px solid var(--mock-line); flex: none; }
.mock-phone .m-chip.on { background: var(--grad); border: 0; width: 50px; }
.mock-phone .m-reply { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 11px; border-radius: 12px; background: var(--mock-fill); border: 1px solid var(--mock-line); }
.mock-phone .m-num { width: 15px; height: 15px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.mock-phone .m-reply .m-line { flex: 1; }
.mock-phone .m-spacer { flex: 1; }
/* Back Tap ripple motif */
.mock-phone.tap { align-items: center; justify-content: center; gap: 0; }
.mock-phone .m-tap { width: 40px; height: 40px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 0 16px var(--accent-soft), 0 0 0 34px color-mix(in srgb, var(--accent) 8%, transparent); }
.mock-phone .m-cap { margin-top: 50px; height: 9px; width: 96px; border-radius: 5px; background: var(--mock-fill); }
/* Email motif */
.mock-phone .m-env { color: var(--accent); align-self: center; margin: 8px 0 12px; }
.mock-phone .m-env svg { width: 42px; height: 42px; }
.mock-phone .m-btn { height: 36px; border-radius: 999px; background: var(--grad); margin-top: 4px; }
.feature-quote .serif { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; color: var(--text-primary); text-align: center; letter-spacing: -0.2px; }

/* ---- Dating band ---- */
.band { background: var(--accent-soft); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); margin-top: 28px; }
.beat h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.beat p { color: var(--text-secondary); font-size: 15px; }
.band-cta { text-align: center; margin-top: 36px; }

/* ---- Pricing ---- */
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-md); }
.pack { padding: 22px 18px; text-align: center; position: relative; }
.pack--popular { border-color: var(--accent); }
.pack .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--grad);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-full); }
.pack .credits { font-size: 20px; font-weight: 700; }
.pack .approx { color: var(--text-tertiary); font-size: 12px; margin: 4px 0 14px; }
.pack .price { font-size: 22px; font-weight: 700; color: var(--accent); }
.pricing-note { text-align: center; color: var(--text-tertiary); font-size: 13px; margin-top: 22px; }

/* ---- FAQ ---- */
.faq { max-width: 680px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--glass-border); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  background: none; border: 0; font-family: inherit; text-align: left; cursor: pointer;
  color: var(--text-primary); font-size: 16px; font-weight: 600; padding: 16px 18px; }
.faq-q .caret { color: var(--text-tertiary); transition: transform var(--motion-quick), color var(--motion-quick); flex: none; }
.faq-item[open] .faq-q .caret, .faq-q[aria-expanded="true"] .caret { transform: rotate(180deg); color: var(--accent); }
.faq-a { color: var(--text-secondary); font-size: 15px; line-height: 1.55; padding: 0 18px 16px; }
.faq-foot { text-align: center; color: var(--text-tertiary); font-size: 14px; margin-top: 24px; }
.faq-foot a { color: var(--accent); }

/* ---- Final CTA ---- */
.final { text-align: center; }
.final .h-section { margin-bottom: 24px; }
.final-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--glass-border); padding: clamp(40px, 6vw, 64px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-xl); }
.footer .brand { margin-bottom: 12px; }
.footer p { color: var(--text-secondary); font-size: 14px; max-width: 280px; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { color: var(--text-secondary); font-size: 14px; }
.footer ul a:hover { color: var(--text-primary); }
.footer-base { margin-top: 36px; color: var(--text-tertiary); font-size: 13px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .demo { order: 2; }
  .steps, .band-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 460px) {
  .packs { grid-template-columns: 1fr; }
}

/* ---- Legal / prose pages ---- */
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.4px; line-height: 1.05; margin-bottom: 8px; }
.legal .updated { color: var(--text-tertiary); font-size: 13px; margin-bottom: 28px; }
.legal h2 { font-size: 19px; font-weight: 600; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--text-secondary); font-size: 15px; line-height: 1.62; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal code { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r-sm); padding: 1px 6px; font-size: 13px; }

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