/* Replyo marketing site — shared styles */

:root {
  --accent: #208AEF;
  --accent-hover: #1877d4;
  --accent-soft: rgba(32, 138, 239, 0.10);
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --surface: #ffffff;
  --text: #16202b;
  --text-muted: #55657a;
  --border: #e3eaf2;
  --badge-bg: #101418;
  --badge-text: #ffffff;
  --shadow: 0 6px 24px rgba(22, 32, 43, 0.07);
  --shadow-lg: 0 14px 44px rgba(22, 32, 43, 0.12);
  --star: #f5a623;
  --danger: #d94f4f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4da3f5;
    --accent-hover: #6fb5f7;
    --accent-soft: rgba(77, 163, 245, 0.14);
    --bg: #0d1420;
    --bg-alt: #111a29;
    --surface: #16202f;
    --text: #e8eef5;
    --text-muted: #9cabbe;
    --border: #263346;
    --badge-bg: #16202f;
    --badge-text: #f2f6fa;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 14px 44px rgba(0, 0, 0, 0.5);
    --star: #f6b93d;
    --danger: #ef7070;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }

.header-nav {
  display: none;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 500;
}
.header-nav a { color: var(--text-muted); }
.header-nav a:hover { color: var(--accent); text-decoration: none; }

.header-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 99px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-hover); text-decoration: none; }

@media (min-width: 760px) {
  .header-nav { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse 900px 480px at 85% -10%, var(--accent-soft), transparent 65%);
}

.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.hero .subhead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text-muted);
  margin: 0 0 30px;
  max-width: 34em;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  min-width: 176px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-store:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-store svg { flex: none; }
.btn-store .lines { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-store .small { font-size: 0.68rem; opacity: 0.8; }
.btn-store .big { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }

.hero-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Hero phone mock */

.phone-mock {
  justify-self: center;
  width: min(340px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-push {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.82rem;
}
.mock-push .push-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.mock-push strong { display: block; font-size: 0.84rem; }
.mock-push span { color: var(--text-muted); }

.mock-review {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 0.88rem;
}
.mock-review .stars { color: var(--star); letter-spacing: 2px; font-size: 0.85rem; }
.mock-review .who { font-weight: 600; margin-bottom: 2px; }
.mock-review p { margin: 6px 0 0; color: var(--text-muted); }

.mock-draft {
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 14px;
  font-size: 0.88rem;
  background: var(--accent-soft);
}
.mock-draft .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.mock-draft p { margin: 0 0 12px; }
.mock-approve {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  border-radius: 99px;
  padding: 8px 18px;
}

@media (min-width: 880px) {
  .hero { padding: 84px 0 92px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}

/* ---------- Stat strip ---------- */

.stat-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
}
.stat-grid {
  display: grid;
  gap: 26px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat span {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 22em;
  display: inline-block;
}
@media (min-width: 700px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }
@media (min-width: 880px) { section { padding: 88px 0; } }

.section-head { max-width: 620px; margin: 0 0 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 12px;
}
.section-head p { color: var(--text-muted); margin: 0; font-size: 1.05rem; }

/* Feature cards */

.feature-grid {
  display: grid;
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -0.01em; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* How it works */

.how { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.steps {
  display: grid;
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 22px;
  max-width: 780px;
  margin: 0 auto;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.plan.pro {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan .plan-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 99px;
}
.plan h3 { margin: 0 0 4px; font-size: 1.2rem; }
.plan .price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.plan .plan-sub { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 20px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li {
  padding: 7px 0 7px 30px;
  position: relative;
  font-size: 0.96rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23208AEF" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="5 12.5 10 17.5 19 7"/></svg>');
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.plan li.dim { color: var(--text-muted); }
.plan li.dim::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="%2355657a" stroke-width="3" stroke-linecap="round"><line x1="6" y1="12" x2="18" y2="12"/></svg>');
}
.plan-cta {
  display: block;
  text-align: center;
  font-weight: 600;
  border-radius: 12px;
  padding: 13px 20px;
}
.plan-cta.primary { background: var(--accent); color: #fff; }
.plan-cta.primary:hover { background: var(--accent-hover); text-decoration: none; }
.plan-cta.ghost { border: 1px solid var(--border); color: var(--text); }
.plan-cta.ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 22px; }
@media (min-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

/* FAQ */

.faq { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 17px 48px 17px 20px;
  list-style: none;
  position: relative;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Final CTA */

.final-cta { text-align: center; }
.final-cta .store-buttons { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */

.legal-main { padding: 48px 0 80px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 6px;
}
.prose .doc-meta { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 34px; }
.prose h2 {
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.prose h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text); font-size: 0.99rem; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .lead { color: var(--text-muted); font-size: 1.05rem; }
.prose .callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.prose .callout p { margin: 0; }
