/* Ambiglot — site styles. One scale, one palette, every page. */

:root {
  color-scheme: light dark;
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f3f4f7;
  --ink: #111318;
  --ink-2: #3c414b;
  --muted: #6b7280;
  --rule: #e5e7eb;
  --rule-strong: #d1d5db;
  --brand: #1a6cf0;
  --brand-ink: #ffffff;
  --brand-soft: #e8f0fe;
  --accent: #f9ab00;
  --shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 8px 24px -12px rgba(17, 19, 24, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1040px;
  --prose: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #161920;
    --surface-2: #1c2029;
    --ink: #e8eaee;
    --ink-2: #c3c8d1;
    --muted: #9aa1ad;
    --rule: #262a33;
    --rule-strong: #343945;
    --brand: #7fb0ff;
    --brand-ink: #0b1320;
    --brand-soft: #172033;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(36px, 5.2vw, 56px); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
p + p { margin-top: 1em; }
strong { font-weight: 600; color: var(--ink); }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 640px; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--rule); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 6px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav .nav-cta { background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
.site-nav .nav-cta:hover { opacity: .9; }

/* --------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- blocks */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--rule); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 18px; }

.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 96px 0 80px; }
.hero h1 { max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { margin-top: 22px; }
.hero .btn-row { margin-top: 34px; }
.hero .fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* a dark "message" mock used on the landing page */
.demo { margin-top: 64px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #1f2229; color: #e8eaee; font-size: 14px; }
.demo-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.demo-bar .right { margin-left: auto; color: #8ab4f8; }
.demo-body { padding: 22px 24px 26px; font-size: 16px; color: var(--ink-2); }
.demo-body .orig { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--rule); color: var(--muted); font-size: 15px; }
.demo-body .orig i { display: block; font-size: 13px; margin-bottom: 4px; }
.demo-compose { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--rule); background: var(--surface-2); font-size: 15px; }
.demo-compose .send { background: var(--brand); color: var(--brand-ink); padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.demo-compose .chip { background: #1f2229; color: #e8eaee; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.demo-compose .chip b { color: #fff; font-weight: 600; }
.demo-compose .chip span { color: #9aa1ad; }

/* ----------------------------------------------------------------- sites */
.site-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
@media (max-width: 860px) { .site-groups { grid-template-columns: 1fr; } }
.site-group h3 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 500; }
.chips-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------- promises */
.promise { display: flex; gap: 14px; align-items: flex-start; }
.promise .mark { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 2px; }
.promise p { color: var(--ink-2); font-size: 16px; }

/* ------------------------------------------------------------------- cta */
.cta { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: inherit; }
.cta p { color: color-mix(in srgb, var(--bg) 70%, transparent); margin-top: 8px; font-size: 17px; }
.cta .btn-primary { background: var(--bg); color: var(--ink); }
@media (max-width: 760px) { .cta { flex-direction: column; align-items: flex-start; padding: 32px; } }

/* --------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan .price { font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .equiv { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 700; flex: none; }
.plan .btn { width: 100%; margin-top: 24px; }
.fineprint { color: var(--muted); font-size: 14px; }

/* ----------------------------------------------------------------- prose */
.prose { max-width: var(--prose); margin: 0 auto; padding: 72px 24px 96px; }
.prose h1 { margin-bottom: 10px; font-size: clamp(32px, 4vw, 44px); }
.prose .sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.prose .lede { margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 52px 0 12px; padding-top: 28px; border-top: 1px solid var(--rule); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.prose th { font-weight: 600; color: var(--ink); }
.prose .note { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; margin: 24px 0; color: var(--ink-2); }
.prose .placeholder { background: rgba(249, 171, 0, .18); padding: 1px 6px; border-radius: 4px; }
.prose footer { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.prose footer p { margin-bottom: 12px; }
.prose footer a { margin-right: 18px; }
.prose .steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0; }
.prose .steps li { counter-increment: s; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--rule); margin: 0; }
.prose .steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; display: grid; place-items: center; }

/* contact card at the top of support */
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 8px; }
.contact-card .btn { flex: none; }
@media (max-width: 600px) { .contact-card { flex-direction: column; align-items: flex-start; } }

/* -------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 260px; }
.site-footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer div > a { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }
.site-footer div > a:hover { color: var(--ink); text-decoration: none; }
.footer-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------- utilities */
.center { text-align: center; }
.narrow { max-width: 560px; margin: 0 auto; }
@media (max-width: 600px) {
  .site-nav { gap: 18px; }
  .site-nav a:not(.nav-cta) { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .cta { padding: 28px; }
}
