/* Liveloop — Variant A · Light editorial minimal */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #1a1714;
  --muted: #6f6a63;
  --line: #e6e3dc;
  --accent: #c4502d;
  --accent-soft: #f6e9e3;
  --radius: 16px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: "Inter", sans-serif; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; padding: .7rem 1.2rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-text { background: transparent; color: var(--ink); padding-left: .2rem; padding-right: .2rem; }
.btn-text:hover { color: var(--accent); }
.btn-block { display: flex; width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.25rem; }
.brand-mark { width: 18px; height: 18px; border-radius: 6px; background: var(--accent); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > a:not(.btn) { font-weight: 500; color: var(--muted); }
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: .25s var(--ease); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34ch; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-note { font-size: .9rem; color: var(--muted); margin-top: 18px; }

/* Product mock */
.hero-mock { perspective: 1200px; }
.mock-window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(26,23,20,.28); transform: rotateY(-6deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.hero-mock:hover .mock-window { transform: rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.mock-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.mock-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.mock-viewers { margin-left: auto; }
.mock-body { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 250px; }
.mock-stage { position: relative; background: radial-gradient(120% 120% at 30% 20%, #fff 0%, #f1ede6 60%, #e9e3d8 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.mock-play { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.mock-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.mock-caption { font-family: "Fraunces", serif; font-size: 1.05rem; color: var(--ink); }
.mock-chat { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fcfbf9; }
.chat-row { font-size: .82rem; line-height: 1.4; }
.chat-row b { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 1px; }
.chat-row.ai b { color: var(--accent); }
.chat-row.ai span { color: var(--ink); }

/* Trust */
.trust { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.trust-logos { display: flex; gap: 28px; flex-wrap: wrap; font-family: "Fraunces", serif; font-weight: 600; color: #b6b0a6; font-size: 1.05rem; }

/* Sections */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { margin-top: 4px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 32px 28px; }
.feature-num { font-family: "Fraunces", serif; font-size: .9rem; color: var(--accent); }
.feature h3 { margin: 14px 0 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--ink); }
.step-num { font-family: "Fraunces", serif; font-size: 1.1rem; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; }

/* Pricing */
.billing-toggle { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.bt-option { border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; color: var(--muted); padding: .5rem 1rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem; transition: .2s; }
.bt-option.is-active { background: var(--ink); color: #fff; }
.save { font-size: .72rem; color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 999px; }
.bt-option.is-active .save { color: #fff; background: rgba(255,255,255,.18); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan-featured { border-color: var(--ink); box-shadow: 0 24px 50px -34px rgba(26,23,20,.5); position: relative; }
.plan-badge { position: absolute; top: -12px; left: 30px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; }
.plan-tag { color: var(--muted); font-size: .9rem; margin: 6px 0 18px; }
.plan-price { font-family: "Fraunces", serif; display: flex; align-items: baseline; gap: 4px; margin: 0; }
.plan-price .amount { font-size: 2.8rem; font-weight: 500; }
.plan-price .per { color: var(--muted); font-family: "Inter", sans-serif; font-size: 1rem; }
.plan-billed { min-height: 20px; font-size: .82rem; color: var(--accent); margin: 4px 0 20px; }
.plan-list { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan-list li { position: relative; padding-left: 26px; color: var(--ink); font-size: .94rem; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; }
.cta-inner { text-align: center; padding: clamp(56px, 9vw, 100px) 0; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.7); max-width: 44ch; margin: 14px auto 28px; }
.cta-band .btn-solid { background: #fff; color: var(--ink); }
.cta-band .btn-solid:hover { background: var(--accent); color: #fff; }

/* Footer */
.site-footer { padding: 64px 0 36px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-note { color: var(--muted); max-width: 32ch; margin-top: 12px; font-size: .92rem; }
.site-footer h4 { font-family: "Inter", sans-serif; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.site-footer nav a { display: block; color: var(--ink); margin-bottom: 10px; font-size: .94rem; }
.site-footer nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Referral chip (shown when arriving via ?ref=) */
.ref-chip { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 6px 12px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-size: .82rem; font-weight: 600; }
.ref-chip b { font-weight: 700; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mock-window { transform: none; }
  .feature-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: 1px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    transform: translateY(-130%); transition: transform .3s var(--ease); box-shadow: 0 20px 40px -30px rgba(0,0,0,.3);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a { padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .trust { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .mock-live i { animation: none; }
}
