/* ============================================================
   SquidBlink marketing site — shared stylesheet
   Design tokens: byte-exact per SquidBlink Style Guide (dark only)
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #041620;
  --bg-2: #062233;
  --surface: #072636;
  --surface-2: #0a3148;
  --ink: #eef8f7;
  --ink-2: #b7d3d1;
  --ink-3: #7fa8a6;
  --teal: #2de1c2;
  --teal-bright: #4beccf;
  --teal-soft: rgba(45, 225, 194, .12);
  --teal-border: rgba(45, 225, 194, .35);
  --coral: #ff7a59;
  --coral-2: #ff9a7a;
  --coral-soft: rgba(255, 122, 89, .12);
  --coral-border: rgba(255, 122, 89, .35);
  --line: rgba(125, 211, 252, .14);
  --line-strong: rgba(125, 211, 252, .24);
  --radius: 18px;
  --radius-lg: 22px;
  --card-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-bright); }
::selection { background: rgba(45, 225, 194, .28); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.35rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout ---------- */
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); }
[id] { scroll-margin-top: 92px; }

.kicker {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--coral);
  margin-bottom: 14px;
}
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 720px; }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.accent-teal { color: var(--teal); }
.accent-coral { color: var(--coral); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--teal); color: #03251f;
  box-shadow: 0 8px 24px rgba(45, 225, 194, .22);
}
.btn-primary:hover { background: var(--teal-bright); color: #03251f; box-shadow: 0 10px 28px rgba(45, 225, 194, .30); }
.btn-coral { background: var(--coral); color: #2b0f08; }
.btn-coral:hover { background: var(--coral-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  padding: 7px 15px;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.pill-teal { background: var(--teal-soft); border: 1px solid var(--teal-border); color: var(--teal); }
.pill-coral { background: var(--coral-soft); border: 1px solid var(--coral-border); color: var(--coral); }
.pill-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- nav (injected) ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: 68px;
  background: rgba(4, 22, 32, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-inner {
  width: min(1180px, 100% - 40px); margin-inline: auto;
  height: 68px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; color: var(--ink); }
.brand-name .blink { color: var(--teal); }
.brand-cap { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: var(--ink-2); font-weight: 600; font-size: .95rem;
  padding: 9px 15px; border-radius: 999px;
}
.nav-links a:hover { color: var(--ink); background: var(--teal-soft); }
.nav-links a.active { color: var(--teal); background: var(--teal-soft); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); padding: 9px 14px; cursor: pointer; font-family: var(--font-mono); font-size: .8rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.hero::before { width: 700px; height: 380px; top: -120px; right: -140px; background: radial-gradient(closest-side, rgba(45,225,194,.16), transparent); }
.hero::after { width: 600px; height: 360px; bottom: -160px; left: -160px; background: radial-gradient(closest-side, rgba(255,122,89,.10), transparent); }
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero .kicker { margin-bottom: 18px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.18rem; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.card-lg { border-radius: var(--radius-lg); padding: 28px; }
.icon-tile {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-soft);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--teal);
}
.icon-tile.coral { background: var(--coral-soft); color: var(--coral); }
.icon-tile svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .98rem; }

/* steps */
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--teal);
  margin-bottom: 14px;
}
.step-num.coral { -webkit-text-stroke-color: var(--coral); }

/* ---------- pricing ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 12px; margin: 0 auto 34px; font-weight: 600; color: var(--ink-2); }
.switch { position: relative; width: 58px; height: 32px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); cursor: pointer; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); transition: left .18s; }
.switch[aria-checked="true"]::after { left: 28px; }
.save-note { font-family: var(--font-mono); font-size: .75rem; color: var(--teal); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); }
.price-card.popular { border: 1px solid var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--card-shadow); }
.pop-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #03251f;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price-tier-desc { color: var(--ink-3); font-size: .92rem; margin-bottom: 16px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 2.7rem; letter-spacing: -.03em; line-height: 1; }
.price small { font-family: var(--font-sans); font-weight: 500; font-size: 1rem; color: var(--ink-3); letter-spacing: 0; }
.price-note { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); margin: 6px 0 18px; min-height: 1.2em; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: .96rem; color: var(--ink-2); }
.feature-list li { padding-left: 28px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.price-card .btn { margin-top: auto; }

/* ---------- comparison tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; background: var(--surface-2); }
.compare thead th:first-child { border-radius: 0; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare th[scope="row"] { font-weight: 600; color: var(--ink-2); max-width: 260px; }
.compare td.hl { background: rgba(45, 225, 194, .05); }
.compare thead th.hl { background: rgba(45, 225, 194, .10); color: var(--teal); }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: .9rem; }
.mark-yes { background: var(--teal-soft); color: var(--teal); }
.mark-no { background: var(--coral-soft); color: var(--coral); }
.mark-mid { background: rgba(125,211,252,.10); color: var(--ink-3); }
.cell-note { display: block; font-size: .82rem; color: var(--ink-3); margin-top: 4px; font-weight: 400; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 1.1rem; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] .faq-chev { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 20px; color: var(--ink-2); }

/* ---------- forms ---------- */
.form-card { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .95rem; }
.field label .opt { color: var(--ink-3); font-weight: 400; font-size: .85rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  font-family: var(--font-sans); font-size: 1rem;
  padding: 12px 16px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,225,194,.15); }
.field .hint { font-size: .85rem; color: var(--ink-3); margin-top: 6px; }
.field-error { color: var(--coral); font-size: .88rem; margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: var(--teal-soft); border: 1px solid var(--teal-border); color: var(--teal); }
.alert-error { background: var(--coral-soft); border: 1px solid var(--coral-border); color: var(--coral-2); }

/* ---------- footer (injected) ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid ul a { color: var(--ink-2); font-size: .95rem; }
.footer-grid ul a:hover { color: var(--teal); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .88rem; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- final CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 28px; padding: clamp(36px, 6vw, 64px);
  text-align: center; box-shadow: var(--card-shadow);
}
.cta-panel::before { content: ""; position: absolute; width: 560px; height: 300px; top: -140px; left: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(45,225,194,.14), transparent); pointer-events: none; }
.cta-panel h2 { margin-bottom: 14px; position: relative; }
.cta-panel .lede { margin: 0 auto 26px; position: relative; }
.cta-panel .hero-ctas { justify-content: center; margin-bottom: 0; position: relative; }

/* ---------- quote / founder ---------- */
.quote-card { border-left: 3px solid var(--teal); }
.quote-card blockquote { font-size: 1.15rem; line-height: 1.65; color: var(--ink); margin-bottom: 16px; }
.quote-card cite { font-style: normal; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- answer cards (straight answers) ---------- */
.answer-verdict { margin-bottom: 12px; }

/* ---------- demo: flip card ---------- */
.flip-scene { perspective: 1400px; max-width: 420px; margin: 0 auto; }
.flip-card { position: relative; width: 100%; aspect-ratio: 3 / 4.4; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.3,1.1); cursor: pointer; }
.flip-scene.flipped .flip-card { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 24px; border: 1px solid var(--line-strong);
  padding: 28px; display: flex; flex-direction: column;
  box-shadow: var(--card-shadow); overflow: hidden;
}
.flip-front { background: linear-gradient(160deg, #072636 0%, #041620 100%); }
.flip-back { background: linear-gradient(200deg, #0a3148 0%, #062233 100%); transform: rotateY(180deg); }
.ink-logo-tile { width: 64px; height: 64px; border-radius: 16px; background: var(--teal-soft); border: 1px solid var(--teal-border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--teal); margin-bottom: 14px; }
.ink-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 4px; }
.ink-sub { color: var(--ink-3); font-size: .9rem; margin-bottom: 20px; }
.ink-links { display: grid; gap: 10px; margin-bottom: auto; }
.ink-link-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 18px;
  color: var(--ink); font-weight: 600; font-size: .95rem;
  transition: border-color .15s, transform .15s;
}
a.ink-link-btn:hover, button.ink-link-btn:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.ink-link-btn .lnk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-dot, var(--teal)); flex: none; }
.ink-flip-row { display: flex; justify-content: center; margin-top: 18px; }
.ink-flip-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s, color .15s, transform .15s;
}
.ink-flip-btn:hover { border-color: var(--teal); color: var(--teal); transform: rotate(180deg); }
.ink-flip-btn svg { width: 20px; height: 20px; }
.ink-contact-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.ink-contact-row:last-of-type { border-bottom: none; }
.ink-contact-row svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.social-row { display: flex; gap: 10px; margin-top: 18px; justify-content: center; }
.social-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: border-color .15s, color .15s; }
.social-btn:hover { border-color: var(--teal); color: var(--teal); }
.social-btn svg { width: 18px; height: 18px; }
.flip-hint { text-align: center; color: var(--ink-3); font-size: .85rem; margin-top: 14px; font-family: var(--font-mono); }

/* ---------- demo: template picker ---------- */
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.template-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
  position: relative;
}
.template-card:hover { transform: translateY(-2px); }
.template-card.selected { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--card-shadow); }
.template-check {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: #03251f;
  display: none; align-items: center; justify-content: center; font-weight: 800;
}
.template-card.selected .template-check { display: inline-flex; }
.template-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px;
}
.template-badge.free { background: var(--teal-soft); color: var(--teal); border: 1px solid var(--teal-border); }
.template-badge.pro { background: var(--coral-soft); color: var(--coral); border: 1px solid var(--coral-border); }
.mini-card { border-radius: 14px; padding: 18px 16px; min-height: 250px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.mini-logo { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; margin-bottom: 10px; }
.mini-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; margin-bottom: 2px; }
.mini-sub { font-size: .78rem; margin-bottom: 12px; }
.mini-links { display: grid; gap: 7px; margin-bottom: auto; }
.mini-link { border-radius: 999px; padding: 8px 12px; font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mini-link .lnk-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mini-flip { align-self: center; margin-top: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid currentColor; opacity: .7; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.template-meta { margin-top: 12px; }
.template-meta h3 { font-size: 1.05rem; margin-bottom: 2px; }
.template-meta p { color: var(--ink-3); font-size: .88rem; margin: 0; }
.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0 4px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .15s, border-color .15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(238,248,247,.18); }
.detail-line { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 18px; min-height: 48px; }

/* per-theme mini card skins (defaults; accent overridden by --ac) */
.t-midnight { background: linear-gradient(160deg, #072636, #041620); color: #eef8f7; --ac: #2de1c2; }
.t-daylight { background: #faf9f7; color: #1a2b33; --ac: #0e8f7d; border-color: rgba(26,43,51,.12); }
.t-mono { background: #0a0a0a; color: #f5f5f5; --ac: #f5f5f5; }
.t-ember { background: linear-gradient(160deg, #2b1408, #170a04); color: #ffe9dd; --ac: #ff7a59; }
.t-heritage { background: linear-gradient(160deg, #14264a, #0b1526); color: #f3ead2; --ac: #d4a94e; }
.t-meadow { background: #eef5ea; color: #1d3a24; --ac: #3d9a50; border-color: rgba(29,58,36,.12); }
.t-midnight .mini-logo, .t-ember .mini-logo, .t-heritage .mini-logo { background: color-mix(in srgb, var(--ac) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 40%, transparent); color: var(--ac); }
.t-daylight .mini-logo, .t-meadow .mini-logo { background: color-mix(in srgb, var(--ac) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent); color: var(--ac); }
.t-mono .mini-logo { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.mini-sub { opacity: .65; }
.mini-link { background: color-mix(in srgb, var(--ac) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); }
.mini-link .lnk-dot { background: var(--ac); }
.mini-flip { color: var(--ac); border-color: var(--ac); }

/* ---------- demo: dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card .stat-label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 8px; }
.stat-card .stat-value { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.02em; }
.stat-card .stat-delta { font-size: .85rem; margin-top: 4px; font-weight: 600; }
.delta-up { color: var(--teal); }
.delta-down { color: var(--coral); }
.dash-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.search-input, .sort-select {
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink); padding: 10px 18px; font-family: var(--font-sans); font-size: .95rem;
}
.search-input { min-width: 240px; }
.search-input:focus, .sort-select:focus { outline: none; border-color: var(--teal); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); padding: 8px 16px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.chip.active, .chip:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.link-row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.link-row-head { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 18px; align-items: center; padding: 18px 20px; cursor: pointer; }
.link-row-head:hover { background: rgba(125,211,252,.03); }
.link-id .link-url { font-family: var(--font-mono); font-size: .88rem; color: var(--teal); }
.link-id .link-dest { font-size: .85rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.link-ns { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.link-metric { text-align: right; }
.link-metric .m-val { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.link-metric .m-lbl { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); }
.link-row-body { display: none; border-top: 1px solid var(--line); padding: 18px 20px; background: var(--bg-2); }
.link-row.open .link-row-body { display: block; }
.link-row.open .faq-chev { transform: rotate(45deg); }
.retarget-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.retarget-list li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.retarget-list .r-date { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); flex: none; width: 92px; }
.chart-card { margin-bottom: 20px; }
.chart-card svg { width: 100%; height: auto; }
.copy-btn { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-family: var(--font-mono); cursor: pointer; }
.copy-btn:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- demo: qr studio ---------- */
.studio-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.studio-controls .field { margin-bottom: 16px; }
.studio-preview { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.qr-canvas-wrap {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--card-shadow); border: 1px solid var(--line-strong);
  min-width: 300px; min-height: 300px; display: flex; align-items: center; justify-content: center;
}
.qr-canvas-wrap svg, .qr-canvas-wrap canvas { max-width: 100%; height: auto; }
.toggle-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.toggle-pair button { border: none; background: transparent; color: var(--ink-2); border-radius: 999px; padding: 9px; font-weight: 700; cursor: pointer; font-size: .92rem; }
.toggle-pair button.active { background: var(--teal); color: #03251f; }
input[type="range"] { width: 100%; accent-color: var(--teal); }
input[type="color"] { width: 52px; height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); padding: 3px; cursor: pointer; }
.color-row { display: flex; gap: 12px; align-items: center; }
.color-row label { font-size: .88rem; color: var(--ink-2); }
.cdn-banner { display: none; }
.cdn-banner.show { display: block; }

/* ---------- misc ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; }
.fine-print { font-size: .85rem; color: var(--ink-3); }
.demo-note {
  border: 1px dashed var(--line-strong); border-radius: 14px;
  padding: 14px 18px; color: var(--ink-3); font-size: .88rem; margin-top: 32px;
}
.demo-note strong { color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.check-list li { padding-left: 32px; position: relative; color: var(--ink-2); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 200; background: var(--teal); color: #03251f; padding: 10px 18px; border-radius: 999px; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .template-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .studio-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .link-row-head { grid-template-columns: 1fr auto auto; }
  .link-row-head .hide-m { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav .nav-inner { gap: 12px; }
  .site-nav.mobile-open { height: auto; }
  .site-nav.mobile-open .nav-inner { flex-wrap: wrap; padding: 14px 0; height: auto; }
  .site-nav.mobile-open .nav-links { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; }
  .site-nav.mobile-open .nav-links a { padding: 12px 16px; }
  .site-nav.mobile-open .nav-cta { display: inline-flex; order: 4; width: 100%; margin: 6px 0 0; }
  .grid-2, .grid-3, .grid-4, .template-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .link-id .link-dest { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
