/* Replier — site styles
   Self-contained design system: no external fonts/CSS/JS.
   Dark-first with a light-mode adaptation, fully responsive, a11y-minded. */

:root {
  --brand-1: #6d4aff;
  --brand-2: #9c3bff;
  /* Accessible accent for small text/labels (AA on dark surfaces) */
  --kicker: #b388ff;
  --brand-grad: linear-gradient(120deg, #6d4aff 0%, #9c3bff 100%);

  --bg: #0c0a16;
  --bg-2: #120e22;
  --surface: #181230;
  --surface-2: #1f1840;
  --border: #2c2452;
  --border-soft: #241d44;

  --text: #f4f1ff;
  --text-muted: #b3a8d6;
  --text-faint: #8a7fb0;

  --ring: rgba(124, 83, 255, 0.55);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 8px 30px -12px rgba(109, 74, 255, 0.35);

  --maxw: 1120px;
  --radius: 16px;
  --radius-lg: 24px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f5ff;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f3f0ff;
    --border: #e4ddff;
    --border-soft: #efeaff;
    --text: #1a1330;
    --text-muted: #574d77;
    --text-faint: #6c6190;
    /* Accessible accent for small text/labels (AA on light surfaces) */
    --kicker: #7a32d6;
    --shadow: 0 18px 50px -24px rgba(76, 50, 140, 0.35);
    --shadow-soft: 0 8px 30px -14px rgba(109, 74, 255, 0.25);
  }
}

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; }
p { color: var(--text-muted); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  z-index: 200;
  border: 1px solid var(--border);
}
.skip-link:focus { left: 0; }

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

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  padding: 0.85em 1.45em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { box-shadow: 0 14px 40px -12px rgba(124, 83, 255, 0.6); }

.btn-ghost {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  border-color: var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--brand-1); }

.btn-lg { font-size: 1.08rem; padding: 1em 1.7em; }

/* ── Header / nav ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.03em; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-soft); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-weight: 550; font-size: 0.97rem; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: inline-flex; gap: 12px; align-items: center; }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(680px 360px at 78% 12%, rgba(156, 59, 255, 0.28), transparent 70%),
    radial-gradient(620px 380px at 18% 0%, rgba(109, 74, 255, 0.30), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text);
  background: color-mix(in srgb, var(--brand-1) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-1) 38%, transparent);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 28%, transparent); }

.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.05; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(1.08rem, 1.9vw, 1.3rem); color: var(--text-muted); margin-top: 22px; max-width: 36ch; }
@media (max-width: 920px) { .hero .lede { margin-inline: auto; } }

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
@media (max-width: 920px) { .hero-actions { justify-content: center; } }

.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--text-faint); }

/* App mockup card */
.mockup {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}
.mockup-bar { display: flex; gap: 7px; padding: 4px 4px 14px; }
.mockup-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.mockup-bar span:nth-child(1) { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }

.review-card { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px 18px; }
.stars { color: #ffc83d; letter-spacing: 2px; font-size: 0.95rem; }
.review-card h4 { font-size: 1rem; margin: 8px 0 4px; font-weight: 700; }
.review-card .meta { font-size: 0.8rem; color: var(--text-faint); }
.review-card p { font-size: 0.92rem; margin-top: 8px; color: var(--text-muted); }

.reply-card { margin-top: 12px; border: 1px solid color-mix(in srgb, var(--brand-1) 40%, transparent); background: color-mix(in srgb, var(--brand-1) 9%, var(--bg-2)); border-radius: 14px; padding: 14px 16px; }
.reply-card .reply-head { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 650; color: var(--brand-2); margin-bottom: 6px; }
.reply-card p { font-size: 0.9rem; color: var(--text); }
.typing { display: inline-block; width: 7px; height: 1.05em; background: var(--brand-2); margin-left: 1px; vertical-align: -2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .kicker { color: var(--kicker); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 12px; }
.section-head p { font-size: 1.1rem; margin-top: 16px; }

.alt { background: var(--bg-2); border-block: 1px solid var(--border-soft); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand-1) 45%, var(--border)); box-shadow: var(--shadow-soft); }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-1) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-1) 32%, transparent);
  margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--brand-2); }
.card h3 { font-size: 1.2rem; margin-bottom: 9px; }
.card p { font-size: 0.97rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  counter-increment: step;
  font-size: 0.85rem; font-weight: 800; color: #fff;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-grad);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.97rem; }

/* Privacy / security strip */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 1rem; }
.checklist svg { flex: 0 0 22px; width: 22px; height: 22px; stroke: var(--brand-2); margin-top: 2px; }
.checklist b { color: var(--text); font-weight: 650; }

.security-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.security-card .row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.security-card .row:last-child { border-bottom: 0; }
.security-card .row .label { font-weight: 600; color: var(--text); font-size: 0.98rem; }
.security-card .row .sub { font-size: 0.85rem; color: var(--text-faint); }
.badge-key { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-1) 15%, transparent); }
.badge-key svg { width: 21px; height: 21px; stroke: var(--brand-2); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 820px; margin-inline: auto; }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand-1); box-shadow: var(--shadow-soft); position: relative; }
.plan.featured::after {
  content: "7-day free trial";
  position: absolute; top: -13px; right: 24px;
  background: var(--brand-grad); color: #fff;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 5px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.3rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 14px 0 4px; letter-spacing: -0.03em; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-faint); }
.plan .price-note { font-size: 0.85rem; color: var(--text-faint); min-height: 1.2em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; color: var(--text-muted); }
.plan ul li svg { flex: 0 0 19px; width: 19px; height: 19px; stroke: var(--brand-2); margin-top: 3px; }
.plan .btn { margin-top: auto; justify-content: center; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 22px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand-1) 45%, var(--border)); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.05rem;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand-2); transition: transform 0.2s ease; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; font-size: 0.98rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-inner {
  background: var(--brand-grad);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}
.cta-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 80% 0%, rgba(255,255,255,0.25), transparent 70%); }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); position: relative; }
.cta-inner p { color: rgba(255,255,255,0.86); margin-top: 14px; font-size: 1.1rem; position: relative; }
.cta-inner .btn { margin-top: 28px; position: relative; background: #fff; color: #2a1a66; }
.cta-inner .btn:hover { box-shadow: 0 14px 40px -12px rgba(0,0,0,0.4); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-2); padding: 56px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.93rem; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.95rem; padding: 5px 0; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; color: var(--text-faint); }

/* ── Legal / document pages ───────────────────────────────── */
.doc { padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }
.doc-wrap { max-width: 760px; margin-inline: auto; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.doc .updated { color: var(--text-faint); font-size: 0.92rem; margin-top: 12px; }
.doc .toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin: 32px 0; }
.doc .toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 12px; }
.doc .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.doc .toc a { color: var(--text-muted); font-size: 0.93rem; line-height: 2; }
.doc .toc a:hover { color: var(--brand-2); }
.doc h2 { font-size: 1.5rem; margin-top: 48px; scroll-margin-top: 88px; }
.doc h3 { font-size: 1.15rem; margin-top: 28px; }
.doc p, .doc li { color: var(--text-muted); margin-top: 14px; }
.doc ul, .doc ol { margin-top: 14px; padding-left: 24px; }
.doc li { margin-top: 8px; }
.doc strong, .doc b { color: var(--text); font-weight: 650; }
.doc a:not(.btn) { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }
.doc .callout { background: color-mix(in srgb, var(--brand-1) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand-1) 30%, var(--border)); border-radius: 14px; padding: 18px 22px; margin-top: 22px; }
.doc .callout p { margin-top: 0; color: var(--text); }
.doc .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--brand-2); font-weight: 600; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
