/* RealReplies website styles */
:root {
  --ink: #0B1F1D;        /* deep green-black: dark sections */
  --ink-2: #12302D;      /* cards on dark */
  --ink-3: #1B403C;      /* borders on dark */
  --mint: #2DD4BF;       /* bright accent on dark */
  --mint-soft: rgba(45, 212, 191, 0.14);
  --coral: #FF7A59;      /* call-to-action */
  --coral-dark: #F0603D;
  --cream: #FBF8F3;      /* light background */
  --paper: #FFFFFF;
  --text: #13201F;
  --muted: #4A5755;
  --soft: #5E6B69;
  --line: #E7E1D8;
  --teal: #0F766E;       /* links and accents on light */
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--text); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
a:hover { color: #0B5A54; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2, .brand-name, .num, .display { font-family: 'Space Grotesk', Inter, sans-serif; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 31, 29, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-3); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--mint); display: flex; align-items: center; justify-content: center; }
.brand-mark svg { stroke: var(--ink); }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: -0.3px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 14px; }
.site-nav a { color: #CFE3DF; text-decoration: none; }
.site-nav a:hover { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 12px; background: var(--coral); color: #2A0E05; border: 0; font: 700 15px Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--coral-dark); color: #2A0E05; transform: translateY(-1px); }
.site-nav .btn { padding: 10px 16px; font-size: 14px; color: #2A0E05; }
.site-nav a.nav-login { color: #fff; font-weight: 600; padding: 9px 16px; border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; }
.site-nav a.nav-login:hover { border-color: var(--mint); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.dark { background: var(--ink); color: #fff; }
.white { background: var(--paper); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.dark .eyebrow { color: var(--mint); }
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.8px; max-width: 42rem; }
.lead { font-size: 18px; color: var(--muted); max-width: 40rem; margin-top: 14px; }
.dark .lead { color: #B9D3CE; }
.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 19px; }
.card p { font-size: 15px; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #E3F5F1; }
.icon svg { stroke: var(--teal); }
.icon.coral { background: #FFE9E1; }
.icon.coral svg { stroke: #C2441F; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 104px; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,0.18), rgba(45,212,191,0) 65%); pointer-events: none; }
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mint); background: var(--mint-soft); padding: 7px 13px; border-radius: 99px; }
.pill .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--mint); }
.hero h1 { font-size: clamp(42px, 6.4vw, 68px); font-weight: 700; letter-spacing: -2px; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-sub { font-size: 19px; color: #C3DAD5; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; color: #A4C2BC; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { stroke: var(--mint); }

/* Live demo */
.demo { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #A4C2BC; }
.store-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.store-tag .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--mint); }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--coral); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.mail { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px rgba(0,0,0,0.28); }
.mail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); }
.mail-meta strong { color: var(--text); font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 99px; background: #E3F5F1; color: var(--teal); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #E3F5F1; color: #0B5A54; }
.chip.warn { background: #FFE9E1; color: #9A3412; }
.mail-body { font-size: 15.5px; }
.mail.draft { margin-left: 36px; border: 2px solid var(--mint); }
.draft-label { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--soft); }
.draft-label b { color: var(--teal); letter-spacing: 0.5px; }
.draft-text { min-height: 72px; font-size: 15.5px; white-space: pre-line; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--teal); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.check { font-size: 13px; color: #9A3412; background: #FFF2EC; padding: 9px 12px; border-radius: 10px; }
.flagged { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #7C2D12; }
.fake-btns { display: flex; gap: 8px; }
.fake-btns span { padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.fake-btns span:first-child { background: var(--teal); color: #fff; border-color: var(--teal); }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dots button { width: 26px; height: 6px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,0.2); cursor: pointer; position: relative; overflow: hidden; }
.dots button[aria-current="true"] { background: rgba(255,255,255,0.35); }
.dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform-origin: left; animation: fill var(--slide, 10s) linear forwards; }
.demo.paused .dots button::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-3); background: var(--ink-2); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.arrows button:hover { border-color: var(--mint); }
.fade { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step-num { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--mint); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; }

/* ---------- Big stat band ---------- */
.band { padding: 72px 0; }
.band .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat .num { font-size: 44px; font-weight: 700; color: var(--mint); letter-spacing: -1px; }
.stat p { color: #B9D3CE; font-size: 15px; margin-top: 4px; }

/* ---------- Trust ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > div { flex: 1 1 360px; min-width: 0; }
.checks { flex: 1 1 460px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.checks svg { flex: 0 0 22px; margin-top: 2px; stroke: var(--teal); }
.checks span { color: var(--muted); }

/* ---------- Pricing ---------- */
.plan .num { font-size: 26px; font-weight: 700; }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: flex; flex-direction: column; gap: 6px; }
.plan.popular { border: 2px solid var(--teal); box-shadow: 0 16px 40px rgba(15,118,110,0.12); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan .num .per { font-family: Inter, sans-serif; font-size: 15px; font-weight: 500; color: var(--soft); }
.badge.deep { background: var(--ink); color: var(--mint); }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: #0B5A54; background: #E3F5F1; padding: 4px 10px; border-radius: 99px; }
.founder { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px 24px; }
.founder strong { color: var(--mint); }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--muted, #5E6B69); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ---------- CTA + footer ---------- */
.cta { padding: 96px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; bottom: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,89,0.18), rgba(255,122,89,0) 65%); }
.cta .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.8px; max-width: 38rem; }
.cta p { color: #B9D3CE; margin-top: 12px; font-size: 17px; }
.site-footer { background: var(--ink); border-top: 1px solid var(--ink-3); padding: 32px 0; font-size: 14px; color: #8FB0AA; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #CFE3DF; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding: 64px 24px 96px; margin: 0 auto; }
.legal h1 { font-size: 42px; letter-spacing: -0.8px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; margin-top: 12px; }

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .mail.draft { margin-left: 0; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn):not(.nav-login) { display: none; }
  .site-nav { gap: 8px; flex-wrap: nowrap; }
  .site-header .wrap { flex-wrap: nowrap; gap: 10px; }
  .brand-name { font-size: 17px; }
  .site-nav .btn, .site-nav a.nav-login { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
