/* Yonder — marketing site. Vanilla CSS, light/dark aware. */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --panel: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --line: #e6eaf0;
  --brand1: #22d3a6;
  --brand2: #3b82f6;
  --brand3: #6366f1;
  --shadow: 0 20px 45px rgba(15, 23, 42, .12);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617; --bg-soft: #0b1220; --panel: #0f172a; --fg: #e2e8f0;
    --muted: #94a3b8; --line: #1e293b; --shadow: 0 20px 45px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
.grad {
  background: linear-gradient(120deg, var(--brand1), var(--brand2) 55%, var(--brand3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff; background: linear-gradient(120deg, var(--brand1), var(--brand2) 60%, var(--brand3));
  box-shadow: 0 10px 24px rgba(59, 130, 246, .35);
}
.btn-ghost { color: var(--fg); border-color: var(--line); background: var(--panel); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--fg); }

/* hero */
.hero { padding: 72px 0 48px; background:
  radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--brand2) 12%, transparent), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand2);
  background: color-mix(in srgb, var(--brand2) 12%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 850; }
.lede { font-size: 19px; color: var(--muted); margin: 18px 0 26px; max-width: 30ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* demo playground */
.demo {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; position: relative;
}
.demo-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.demo-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand1) 25%, transparent); }
.demo p { font-size: 17px; margin: 0 0 14px; }
.demo p:last-child { margin-bottom: 0; }
.demo .hl {
  background: color-mix(in srgb, var(--brand2) 16%, transparent);
  border-radius: 6px; padding: 1px 5px; font-weight: 700; cursor: pointer;
  border-bottom: 2px dashed color-mix(in srgb, var(--brand2) 50%, transparent);
  white-space: nowrap;
}
.demo .hl:hover { background: color-mix(in srgb, var(--brand2) 26%, transparent); }
.demo-hint { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* the live conversion card (rendered by demo.js) */
.cv-card {
  position: absolute; z-index: 60; min-width: 200px; max-width: 300px;
  background: var(--panel); color: var(--fg); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .28); border: 1px solid var(--line);
  overflow: hidden; animation: cvin .12s ease-out;
}
@keyframes cvin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.cv-hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand1) 14%, transparent), color-mix(in srgb, var(--brand2) 14%, transparent)); }
.cv-badge { width: 22px; height: 22px; border-radius: 7px; color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand1), var(--brand2)); }
.cv-kind { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cv-from { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.cv-rows { padding: 6px; }
.cv-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.cv-row:hover { background: var(--bg-soft); }
.cv-main { font-size: 16px; font-weight: 800; }
.cv-sub { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.cv-note { padding: 4px 12px 10px; font-size: 10px; color: var(--muted); }

/* sections */
section.block { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand2) 40%, var(--line)); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; background: color-mix(in srgb, var(--brand2) 12%, transparent);
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* examples strip */
.examples { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ex {
  display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px;
}
.ex .arrow { color: var(--brand2); }
.ex .to { color: var(--muted); font-weight: 600; }

/* privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.privacy-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.privacy-card .ic { font-size: 24px; margin-bottom: 10px; }
.privacy-card h3 { font-size: 16px; margin-bottom: 6px; }
.privacy-card p { color: var(--muted); font-size: 14px; }

/* install / cta */
.cta {
  text-align: center; background: linear-gradient(135deg, var(--brand1), var(--brand2) 55%, var(--brand3));
  border-radius: 26px; padding: 56px 24px; color: #fff; box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(28px, 4vw, 40px); color: #fff; }
.cta p { font-size: 18px; opacity: .92; margin: 14px 0 26px; }
.cta .btn-primary { background: #fff; color: var(--brand2); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 24px; }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.foot-brand img { width: 26px; height: 26px; border-radius: 7px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.foot-links a:hover { color: var(--fg); }
.foot-note { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* langs */
.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.lang-chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lede { max-width: none; }
  .features, .privacy-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
