/* ReplyEnvoy public pages (landing, guides). Self-contained, system fonts, no JS. */
:root {
  --bg: #ffffff; --bg-2: #f5f6fa; --panel: #ffffff; --text: #151a2d; --muted: #5b6283; --border: #e2e5ee;
  --accent: #5b43e2; --accent-hover: #4c35d0; --accent-soft: #efecff; --accent-text: #ffffff;
  --good: #0c8a5c; --star: #f3a01b; --star-off: #d9dce6; --shadow: 0 1px 2px rgb(20 24 45 / .05), 0 8px 28px rgb(20 24 45 / .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1017; --bg-2: #131622; --panel: #171b28; --text: #e9ebf4; --muted: #a0a7c2; --border: #272c3c;
    --accent: #9184ff; --accent-hover: #a59bff; --accent-soft: #252347; --accent-text: #0e1017;
    --good: #49cb96; --star-off: #3a4052; --shadow: 0 10px 30px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 780; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 10; background: var(--panel); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-weight: 650; font-size: 15px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn.big { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { color: var(--text); border-color: var(--border); background: var(--panel); }
.btn.ghost:hover { border-color: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; color: var(--text); text-decoration: none; }
.logo b { color: var(--accent); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

.hero { padding: 72px 0 64px; background: radial-gradient(1100px 500px at 85% -10%, var(--accent-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.trust li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: 6px; }

.demo { margin: 0; display: grid; gap: 14px; }
.demo-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.demo-card.reply { margin-left: 36px; border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.demo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.demo-head b { display: block; }
.demo-head .chip { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--bg-2); color: var(--muted); padding: 2px 9px; border-radius: 999px; }
.demo-head .muted { margin-left: auto; font-size: 12.5px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: hsl(28 70% 92%); color: hsl(28 45% 35%); font-weight: 700; font-size: 13px; }
.stars { color: var(--star); font-size: 13px; letter-spacing: 1px; }
.stars i { color: var(--star-off); font-style: normal; }
.badge { font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 2px 9px; border-radius: 999px; }
.demo-review { margin: 0; font-size: 15px; }
.demo-translation { margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-size: 14px; }
.demo-translation span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.demo-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); }
.section > .wrap > h2 { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.steps p, .features p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features article { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.features h3 { font-size: 16.5px; }
.why { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.why p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 24px; margin: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; display: grid; gap: 14px; font-weight: 600; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style-position: outside; }
details p { color: var(--muted); padding-bottom: 6px; }
.final { background: linear-gradient(180deg, var(--bg), var(--accent-soft)); }
.final .lead { margin: 0 auto 24px; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Guide pages */
.article { padding: 56px 0 72px; }
.article .wrap { max-width: 760px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.article h1 { font-size: clamp(30px, 4.4vw, 44px); }
.article h2 { font-size: 26px; margin-top: 40px; }
.article h3 { margin-top: 24px; }
.article p, .article li { font-size: 17px; }
.article li { margin-bottom: 6px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article code { font-size: 14.5px; background: var(--bg-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.article pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 14px; }
.article pre code { border: 0; padding: 0; background: none; }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 16px 18px; margin: 24px 0; }
.callout p:last-child { margin: 0; }
.toc { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 28px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
table.facts { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 12px 0 20px; }
table.facts th, table.facts td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.facts th { width: 38%; color: var(--muted); font-weight: 600; }

@media (max-width: 960px) {
  .hero-grid, .why { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 44px 0 40px; }
  .lead { font-size: 17px; }
  .features { grid-template-columns: 1fr; }
  .demo-card.reply { margin-left: 16px; }
  .section { padding: 52px 0; }
  .btn.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
