/* styri.dev. Same tokens as the product; self-hosted fonts; no external
   requests. Dark hero, light body (data-theme via .light). */
@import "/tokens/fonts.css";
@import "/tokens/colors.css";
@import "/tokens/type.css";
@import "/tokens/space.css";

/* hidden must win over display rules like .sent { display: flex }. */
[hidden] { display: none !important; }

/* The light tokens, applied to a section instead of [data-theme]. */
.light {
  --bg: var(--g-50); --surface-1: var(--white); --surface-2: var(--g-100); --surface-3: var(--g-200);
  --line: var(--g-200); --line-strong: var(--g-400); --text-1: var(--g-950); --text-2: var(--g-700); --text-3: var(--g-600);
  --accent: var(--signal-600); --accent-hover: var(--signal-700); --accent-ink: var(--white);
  --link: var(--signal-600); --focus: var(--signal-500);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--g-950); font-family: var(--font-sans); font-size: var(--fs-md);
  line-height: var(--lh-body); -webkit-font-smoothing: antialiased;
}
.dark, .light { background: var(--bg); color: var(--text-1); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--signal-300); color: var(--g-950); }
input, select, textarea, button { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--font-mono); }
.spacer { flex: 1; }
.wrap { max-width: var(--content-max); margin: 0 auto; padding-left: var(--sp-6); padding-right: var(--sp-6); }
.eyebrow { font-size: var(--fs-sm); color: var(--text-3); }
.stack { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: var(--sp-2); }
.stack-lg { display: flex; flex-direction: column; gap: var(--sp-6); }
.note { font-size: var(--fs-sm); color: var(--text-3); }
.muted { color: var(--text-2); }
.narrow { max-width: 420px; }

/* ---- brand + nav ---- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-1); text-decoration: none; }
.brand:hover { color: var(--text-1); }
.brand svg { display: block; flex-shrink: 0; }
.logo-tile { fill: var(--text-1); }
.logo-s { fill: none; stroke: var(--bg); stroke-width: 4; stroke-linecap: square; }
.wordmark { font-weight: 700; font-stretch: 85%; font-size: 22px; letter-spacing: -0.01em; }
.brand--small .wordmark { font-size: var(--fs-md); }
.nav { padding-top: var(--sp-5); padding-bottom: var(--sp-5); display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }
.nav__links { display: flex; gap: var(--sp-6); font-size: var(--fs-base); flex-wrap: wrap; }
.nav__links a { color: var(--text-2); text-decoration: none; }
.nav__links a:hover { color: var(--text-1); }

/* ---- hero ---- */
.hero { padding-top: var(--sp-16); padding-bottom: var(--sp-12); display: flex; flex-direction: column; gap: var(--sp-6); }
.hero h1 { max-width: 880px; font-stretch: 78%; font-size: clamp(40px, 7vw, 76px); line-height: 1; letter-spacing: -0.02em; }
.lead { max-width: 600px; font-size: var(--fs-lg); line-height: 1.45; color: var(--text-2); }
.actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border-radius: var(--r-2);
  font-weight: 600; font-size: var(--fs-md); text-decoration: none; cursor: pointer; border: 0;
  transition: background var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text-1); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); color: var(--text-1); }
.btn--block { width: 100%; height: var(--touch-min); font-size: var(--fs-base); }
.btn--send { padding: 0 28px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.shot-wrap { padding-bottom: var(--sp-16); }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--g-950); }

/* ---- sections ---- */
.section { padding-top: var(--sp-12); padding-bottom: var(--sp-16); }
.section h2 { font-stretch: 80%; font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -0.015em; }
.quickstart {
  padding-top: var(--sp-24); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--sp-10); align-items: center;
}
.cmd { display: flex; align-items: stretch; border-radius: var(--r-3); background: var(--g-950); color: var(--g-100); overflow: hidden; }
.cmd code { flex: 1; min-width: 0; padding: 18px 20px; font-family: var(--font-mono); font-size: var(--fs-base); line-height: 1.6; overflow-x: auto; white-space: pre; }
.cmd__prompt { color: var(--g-500); user-select: none; }
.cmd__copy {
  flex-shrink: 0; width: 92px; border: 0; border-left: 1px solid var(--g-800); background: var(--g-900); color: var(--g-100);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.cmd__copy:hover { background: var(--g-800); }
.cmd__copy.is-done { color: var(--ok-500); }
.why {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--sp-10);
  border-top: 1px solid var(--line); padding-top: var(--sp-10);
}
.why h3 { font-stretch: 85%; font-size: var(--fs-xl); line-height: var(--lh-snug); }
.why p { color: var(--text-2); }
.why code { font-size: 0.9em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface-1); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-base); table-layout: fixed; }
.compare thead th { padding: 14px 18px; font-weight: 600; font-size: var(--fs-sm); text-align: left; border-bottom: 1px solid var(--line); }
.compare thead td { width: 13%; }
.compare tbody th { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--text-1); font-weight: 500; text-align: left; vertical-align: top; }
.compare td { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.compare .us { background: var(--surface-2); color: var(--text-1); font-weight: 600; }
.compare thead th.us { font-weight: 700; }
.compare code { font-size: 0.9em; }
/* Phones: one card per row, each cell labelled with its product. */
@media (max-width: 720px) {
  .compare, .compare tbody, .compare tr, .compare tbody th, .compare td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare tr + tr { border-top: 1px solid var(--line); }
  .compare tbody th { border-top: 0; padding: 16px 16px 8px; font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
  .compare td { border-top: 0; padding: 6px 16px; display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; }
  .compare td::before { content: attr(data-label); color: var(--text-3); font-weight: 600; }
  .compare td.us { margin: 6px 8px 12px; padding: 10px 8px; border-radius: var(--r-2); }
}

.positioning { max-width: 760px; font-size: var(--fs-lg); line-height: 1.45; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: var(--sp-4); }
.plan {
  display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); border: 1px solid var(--line);
  border-radius: var(--r-3); background: var(--surface-1);
}
.plan--featured { border-color: var(--line-strong); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.plan__name { font-weight: 700; font-stretch: 85%; font-size: var(--fs-xl); }
.plan__price { font-size: var(--fs-2xl); font-weight: 500; line-height: 1; }
.plan__per { font-family: var(--font-sans); font-size: var(--fs-sm); color: var(--text-3); }
.plan__per.mono { font-family: var(--font-mono); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: var(--fs-base); flex: 1; }
.status { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--text-1); }
.status--soon { color: var(--text-3); }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-500); }

.talk {
  padding-bottom: var(--sp-24); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--sp-10); align-items: start;
}
.sent { padding: var(--sp-8); border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--surface-1); display: flex; flex-direction: column; gap: var(--sp-2); }
.sent p { font-size: var(--fs-lg); line-height: 1.4; }
.form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp-4); padding: var(--sp-6);
  border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface-1);
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  height: var(--touch-min); padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-2);
  background: var(--surface-1); color: var(--text-1); font-size: var(--fs-base); font-weight: 400;
}
.form select { padding: 0 10px; }
.form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.form .is-invalid { border-color: var(--stop-500); }
.optional { font-weight: 400; color: var(--text-3); margin-top: -6px; }
.err { font-weight: 500; color: var(--stop-600); }
.err:empty { display: none; }
.form__foot { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.footer { border-top: 1px solid var(--line); }
.footer__row { padding-top: var(--sp-8); padding-bottom: var(--sp-8); display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-3); }
.footer__row a { color: inherit; }
.footer__links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer__links a { color: var(--link); }
