/* ============================================================
   SEOryon — Schema & FAQ Generator (schema.seoryon.com).
   Reuses the LOCKED brand system v4. Primary: #4A35E8 indigo.
   Sibling of score / roi / inspect / cite.seoryon.com — same
   tokens, same fonts, same card idiom, same gradient (Oryon,
   AI/result output only).
   ============================================================ */
:root {
  --brand-primary: #4A35E8;
  --brand-hover:   #3B28CB;
  --brand-pressed: #3525BF;
  --brand-light:   #9A88FF;
  --brand-tint:    #F4F2FF;

  --ink-primary:   #121325;
  --ink-secondary: #52586E;
  --ink-muted:     #7B8096;
  --ink-on-brand:  #FFFFFF;

  --surface-page:      #FFFFFF;
  --surface-section:   #F8F8FC;
  --surface-card:      #FFFFFF;
  --surface-soft-card: #FAFAFE;
  --surface-border:    #E7E4F2;

  --success-bg: #F4FBF6;
  --success-text: #0F7A4A;
  --success-border: #BFE5CB;
  --warning-bg: #FFF4D6;
  --warning-text: #7C4A09;
  --warning-border: #FCD9A1;
  --fail-bg: #FEF3F3;
  --fail-text: #B4231F;
  --fail-border: #F6C9C6;

  /* Oryon gradient — Oryon/AI/result output ONLY */
  --oryon-gradient: linear-gradient(135deg, #9A88FF 0%, #6D5AF6 42%, #4A35E8 100%);

  /* Code block (dark, developer-native) */
  --code-bg: #14152A;
  --code-border: #262845;
  --code-text: #E7E6F5;
  --code-key: #9A88FF;
  --code-str: #7FD6B0;
  --code-punc: #8A8FB0;

  --shadow-card: 0 12px 30px rgba(18, 19, 37, 0.06);
  --shadow-brand-soft: 0 10px 24px rgba(74, 53, 232, 0.10);
  --shadow-brand: 0 8px 18px rgba(74, 53, 232, 0.16);
}

/* ============================================================
   Base — white-first
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden; /* belt-and-braces against any tiny mobile overflow */
}
a { color: var(--brand-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-hover); }
.brand-text { color: var(--brand-primary); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; max-width: 1240px; margin: 0 auto;
  border-bottom: 1px solid var(--surface-border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 30px; width: auto; display: block; }

.navlinks { display: flex; gap: 10px; align-items: center; }
.navlinks a {
  font-family: 'Geist', sans-serif; font-weight: 500; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.navlinks a.nav-secondary {
  padding: 8px 13px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface-card);
  color: var(--brand-hover);
  transition: border-color 0.15s, background-color 0.15s;
}
.navlinks a.nav-secondary:hover {
  border-color: var(--brand-primary);
  background: var(--brand-tint);
  color: var(--brand-hover);
}
.navlinks a.cta-link {
  background: var(--brand-primary);
  color: var(--ink-on-brand);
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  transition: background-color 0.15s;
}
.navlinks a.cta-link:hover { background: var(--brand-hover); color: var(--ink-on-brand); }
.navlinks a.cta-link:active { background: var(--brand-pressed); }

/* ============================================================
   Main + hero
   ============================================================ */
main { max-width: 1240px; margin: 0 auto; padding: 0 32px 96px; }

.hero { padding: 56px 0 8px; }

/* Two-column hero — headline/sub on the left, product preview on the right.
   Mirrors score / inspect / roi / cite. Stacks to a single column at ≤920px. */
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
}
.hero-content { min-width: 0; }
.hero-visual {
  margin: 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual img {
  width: 100%; height: auto; display: block;
  /* aspect-ratio reserves the box so the hero still lays out cleanly even if
     the image is briefly missing; matches schemahero.png (1536×1024) so the
     full illustration shows with no crop. object-fit guards a future swap. */
  aspect-ratio: 1536 / 1024;
  object-fit: cover;
  border-radius: 14px;
  background: var(--brand-tint);
  box-shadow: 0 18px 40px rgba(74, 53, 232, 0.10),
              0 6px 14px rgba(18, 19, 37, 0.05);
}

.hero-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace; font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success-text);
  box-shadow: 0 0 0 3px rgba(15, 122, 74, 0.15);
}
.status-text { letter-spacing: 0.04em; }

h1 {
  font-family: 'Geist', sans-serif; font-weight: 800;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.05; letter-spacing: -0.035em;
  color: var(--ink-primary);
  margin-bottom: 18px;
  max-width: 16ch;
}
.sub {
  font-size: 18px; line-height: 1.55; color: var(--ink-secondary);
  max-width: 60ch; margin-bottom: 0;
}
.microcopy { font-size: 13px; color: var(--ink-muted); margin-top: 12px; }

/* ============================================================
   Generator — type picker + form + live output
   ============================================================ */
.gen { margin-top: 72px; }

/* Type picker — horizontal scrolling chip row */
.typebar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.type-chip {
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 13.5px;
  color: var(--ink-secondary);
  background: var(--surface-card);
  border: 1.5px solid var(--surface-border);
  border-radius: 10px;
  padding: 9px 15px; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.type-chip:hover { border-color: var(--brand-light); background: var(--brand-tint); color: var(--brand-hover); }
.type-chip.active {
  border-color: var(--brand-primary); background: var(--brand-primary);
  color: var(--ink-on-brand);
}
.type-chip.hero-chip:not(.active) {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-brand-soft);
}
.type-chip .chip-star {
  font-size: 11px; line-height: 1;
}
.type-chip .chip-badge {
  font-family: 'Geist Mono', monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--oryon-gradient); color: var(--ink-on-brand);
  padding: 2px 6px; border-radius: 5px;
}
.type-chip.active .chip-badge { background: rgba(255,255,255,0.22); }

.gen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: start;
}
.gen-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.gen-card-head { margin-bottom: 18px; }
.card-kicker {
  font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-primary);
}
.type-desc {
  font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin-top: 8px;
  max-width: 52ch;
}

/* Inputs */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label,
.field-label-static {
  display: block;
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 13.5px;
  color: var(--ink-primary); margin-bottom: 7px; letter-spacing: -0.01em;
}
.field > label .req { color: var(--fail-text); font-weight: 700; margin-left: 2px; }
.field > label .opt { color: var(--ink-muted); font-weight: 500; }
.input-card input[type="text"],
.input-card input[type="url"],
.input-card input[type="number"],
.input-card input[type="date"],
.input-card input[type="datetime-local"],
.input-card input[type="time"],
.input-card select,
.input-card textarea {
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px;
  color: var(--ink-primary);
  padding: 11px 13px;
  border: 1.5px solid var(--surface-border);
  background: var(--surface-card);
  border-radius: 10px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input-card select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237B8096' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 34px;
}
.input-card textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.input-card input::placeholder,
.input-card textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.input-card input:focus,
.input-card select:focus,
.input-card textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(74, 53, 232, 0.10);
}
.input-card input.missing,
.input-card textarea.missing { border-color: var(--warning-border); }
.field-help { font-size: 12px; line-height: 1.5; color: var(--ink-muted); margin-top: 6px; }
.field-help code {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  background: var(--brand-tint); color: var(--brand-hover);
  padding: 1px 5px; border-radius: 4px;
}

/* two-up rows for compact paired fields (e.g. price + currency) */
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.field-row .field { margin-bottom: 0; }

/* Repeatable groups (FAQ pairs, HowTo steps, breadcrumbs, sameAs…) */
.repeat-group { margin-bottom: 16px; }
.repeat-legend {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 13.5px;
  color: var(--ink-primary); margin-bottom: 10px; letter-spacing: -0.01em;
}
.repeat-legend .req { color: var(--fail-text); font-weight: 700; margin-left: 2px; }
.repeat-item {
  position: relative;
  background: var(--surface-soft-card);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 16px 16px 14px;
  margin-bottom: 10px;
}
.repeat-item-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.repeat-idx {
  font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
}
.repeat-remove {
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 12px;
  color: var(--ink-muted); background: none; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.repeat-remove:hover { color: var(--fail-text); background: var(--fail-bg); }
.repeat-remove:disabled { opacity: 0.35; cursor: not-allowed; }
.repeat-add {
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 13px;
  color: var(--brand-primary);
  background: var(--brand-tint); border: 1px dashed var(--brand-light);
  border-radius: 10px; padding: 10px 14px; cursor: pointer; width: 100%;
  transition: background 0.15s, border-color 0.15s;
}
.repeat-add:hover { background: #ECE8FF; border-color: var(--brand-primary); }
.repeat-item .field:last-child { margin-bottom: 0; }

.form-sep { height: 1px; background: var(--surface-border); margin: 20px 0; }
.form-subhead {
  font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 12px;
}

/* ============================================================
   Output card — code block + actions
   ============================================================ */
.output-card { position: sticky; top: 20px; }
.out-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.seg {
  display: inline-flex; border: 1px solid var(--surface-border);
  border-radius: 9px; overflow: hidden; background: var(--surface-card);
}
.seg-btn {
  font-family: 'Geist Mono', monospace; font-size: 11.5px; font-weight: 500;
  color: var(--ink-muted); background: transparent; border: none; cursor: pointer;
  padding: 7px 11px; transition: background-color 0.15s, color 0.15s;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--surface-border); }
.seg-btn:hover { color: var(--brand-hover); background: var(--brand-tint); }
.seg-btn.active { color: var(--ink-on-brand); background: var(--brand-primary); }

/* Validation strip */
.validation { margin-bottom: 12px; }
.valid-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; line-height: 1.45; border-radius: 10px;
  padding: 10px 13px; border: 1px solid transparent;
}
.valid-line .vl-icon { flex: none; font-weight: 700; margin-top: 1px; }
.valid-line.ok { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.valid-line.warn { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
.valid-line.info { background: var(--brand-tint); border-color: var(--surface-border); color: var(--brand-hover); }
.valid-line strong { font-weight: 700; }

/* Code block */
.code-wrap {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--code-border);
  background: var(--code-bg);
}
.code {
  margin: 0; padding: 18px 18px;
  overflow-x: auto; max-height: 460px; overflow-y: auto;
  font-family: 'Geist Mono', monospace; font-size: 12.5px; line-height: 1.6;
  color: var(--code-text);
  -webkit-overflow-scrolling: touch;
}
.code code { white-space: pre; display: block; }
.code .tok-key { color: var(--code-key); }
.code .tok-str { color: var(--code-str); }
.code .tok-punc { color: var(--code-punc); }
.code .tok-tag { color: var(--brand-light); font-style: italic; }
.code .code-empty { color: var(--code-punc); font-style: italic; }

.out-buttons { display: flex; gap: 10px; margin-top: 14px; }
.btn {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: background-color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-primary); color: var(--ink-on-brand); flex: 1; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary.copied { background: var(--success-text); }
.btn-ghost {
  background: var(--surface-card); color: var(--brand-hover);
  border-color: var(--surface-border);
}
.btn-ghost:hover { border-color: var(--brand-primary); background: var(--brand-tint); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.out-note {
  font-size: 12px; line-height: 1.5; color: var(--ink-muted); margin-top: 14px;
}
.out-note code {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  background: var(--surface-section); color: var(--ink-secondary);
  padding: 1px 5px; border-radius: 4px;
}

/* Privacy line under the generator */
.gen-privacy {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 13px; color: var(--ink-muted); margin-top: 22px; text-align: center;
}

/* ============================================================
   How it works
   ============================================================ */
.how { margin-top: 88px; }
.how h2 {
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 36px;
  letter-spacing: -0.03em; color: var(--ink-primary); margin-bottom: 24px;
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 24px;
}
.card .num {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand-tint); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
}
.card h3 {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 18px;
  margin-bottom: 8px; letter-spacing: -0.02em; color: var(--ink-primary);
}
.card p { font-size: 14px; color: var(--ink-secondary); line-height: 1.55; }

/* ============================================================
   Why structured data (reuses .learn idiom from score/roi/cite)
   ============================================================ */
.learn { margin-top: 88px; max-width: 100%; }
.learn-kicker {
  display: inline-block;
  font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; color: var(--brand-primary);
  margin-bottom: 14px;
}
.learn h2 {
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 36px;
  letter-spacing: -0.03em; color: var(--ink-primary); margin-bottom: 16px;
  max-width: 22ch;
}
.learn-lead {
  font-size: 17px; line-height: 1.6; color: var(--ink-secondary);
  max-width: 68ch; margin-bottom: 32px;
}
.learn-lead em { color: var(--ink-primary); font-style: normal; font-weight: 600; }
.learn-lead strong { color: var(--ink-primary); font-weight: 700; }
.learn-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.learn-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 22px 24px;
}
.learn-card h3 {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em; color: var(--ink-primary); margin-bottom: 8px;
}
.learn-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-secondary); }
.method-note {
  font-size: 13px; line-height: 1.6; color: var(--ink-muted);
  max-width: 78ch; margin-top: 24px;
}
.method-note code {
  font-family: 'Geist Mono', monospace; font-size: 11.5px;
  background: var(--surface-section); color: var(--ink-secondary);
  padding: 1px 5px; border-radius: 4px;
}

/* ============================================================
   Upsell card — white-first, small gradient tag only
   ============================================================ */
.upsell { margin-top: 88px; }
.upsell-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 40px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
  box-shadow: var(--shadow-card);
}
.upsell-left { display: flex; flex-direction: column; min-width: 0; }
.upsell-right {
  border-left: 1px solid var(--surface-border);
  padding-left: 32px;
  display: flex; flex-direction: column; gap: 20px; justify-content: center;
}
.oryon-tag {
  display: inline-block; align-self: flex-start;
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-on-brand);
  background: var(--oryon-gradient);
  padding: 5px 10px; border-radius: 6px;
  margin-bottom: 18px;
}
.upsell h2 {
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 32px;
  letter-spacing: -0.03em; color: var(--ink-primary);
  line-height: 1.15; margin-bottom: 14px;
}
.upsell p {
  font-size: 16px; line-height: 1.55; color: var(--ink-secondary);
  margin-bottom: 22px;
}
.upsell .microcopy { color: var(--ink-muted); margin-top: 12px; }
.bigcta {
  display: inline-flex; align-items: center; align-self: flex-start;
  background: var(--brand-primary);
  color: var(--ink-on-brand);
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 10px;
  transition: background-color 0.15s;
}
.bigcta:hover { background: var(--brand-hover); color: var(--ink-on-brand); }
.bigcta:active { background: var(--brand-pressed); }
.upsell-benefit { display: flex; flex-direction: column; gap: 4px; }
.upsell-benefit h4 {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; color: var(--brand-primary);
}
.upsell-benefit p {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px;
  color: var(--ink-secondary); line-height: 1.5; margin: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 96px; }
.faq h2 {
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 36px;
  letter-spacing: -0.03em; color: var(--ink-primary); margin-bottom: 28px;
}
.faq-group { max-width: 820px; }
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 16px;
  color: var(--ink-primary);
  padding: 16px 0; position: relative; padding-right: 28px;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-hover); }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: 'Geist Mono', monospace; font-size: 20px; font-weight: 500;
  color: var(--brand-primary); transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  font-size: 15px; line-height: 1.6; color: var(--ink-secondary);
  padding: 0 0 18px; max-width: 70ch;
}
.faq-item p strong { color: var(--ink-primary); font-weight: 700; }
.faq-item p em { color: var(--ink-primary); font-style: italic; }
.faq-item p code {
  font-family: 'Geist Mono', monospace; font-size: 13px;
  background: var(--surface-section); color: var(--ink-secondary);
  padding: 1px 5px; border-radius: 4px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  margin-top: 72px; padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  color: var(--ink-muted); font-size: 12.5px; text-align: center;
}
footer a { color: var(--ink-secondary); }
footer a:hover { color: var(--brand-hover); }
footer .wordmark.sm {
  display: inline-block; vertical-align: middle;
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--ink-primary);
}
footer .microcopy { max-width: 70ch; margin: 10px auto 0; }

/* ============================================================
   Language switcher
   ============================================================ */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--surface-border);
  border-radius: 10px; overflow: hidden; background: var(--surface-card);
}
.lang-btn {
  font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-muted);
  background: transparent; border: none; cursor: pointer;
  padding: 7px 10px; transition: background-color 0.15s, color 0.15s;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--surface-border); }
.lang-btn:hover { color: var(--brand-hover); background: var(--brand-tint); }
.lang-btn.active { color: var(--ink-on-brand); background: var(--brand-primary); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: 2; }
  .hero-visual img { max-width: 640px; margin: 0 auto; }
  .gen-grid { grid-template-columns: 1fr; }
  .output-card { position: static; }
  .upsell-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .upsell-right {
    border-left: none; border-top: 1px solid var(--surface-border);
    padding-left: 0; padding-top: 24px;
  }
  .learn-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar { padding: 14px 18px; }
  main { padding: 0 18px 72px; }
  .hero { padding: 40px 0 4px; }
  .gen { margin-top: 48px; }
  .grid3 { grid-template-columns: 1fr; }
  .how h2, .faq h2, .learn h2 { font-size: 28px; }
  .upsell h2 { font-size: 26px; }
  .gen-card { padding: 20px; }
  .navlinks { gap: 6px; }
  .navlinks a.cta-link { padding: 8px 12px; font-size: 13px; }
  .lang-btn { padding: 6px 8px; font-size: 11px; }
  /* keep the two utility nav links out of the way on the smallest screens */
  .navlinks a[data-i18n="nav_how"], .navlinks a[data-i18n="nav_faq"] { display: none; }
}
@media (max-width: 400px) {
  .field-row { grid-template-columns: 1fr; gap: 12px; }
  .out-buttons { flex-direction: column; }
}
