/* ============================================================
   SquidBlink marketing site — shared stylesheet
   Design tokens: byte-exact per SquidBlink Style Guide (dark) + locked nautical-light set (light).
   --teal/--coral are accent roles: teal/coral in dark, orange family in light.
   ============================================================ */
/* Light-theme fonts (v2 nautical-light set) — loaded here so only this
   file changes when the theme fonts change. */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=IBM+Plex+Mono:wght@500;600&display=swap');
: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);
  --link: #2de1c2;
  --link-hover: #4beccf;
  --nav-bg: rgba(4, 22, 32, .82);
  --glow-1: rgba(45, 225, 194, .16);
  --glow-2: rgba(255, 122, 89, .10);
  --selection: rgba(45, 225, 194, .28);
  --focus-ring: rgba(45, 225, 194, .15);
  --btn-shadow: 0 8px 24px rgba(45, 225, 194, .22);
  --btn-shadow-hover: 0 10px 28px rgba(45, 225, 194, .30);
  --hl: rgba(45, 225, 194, .05);
  --hl-strong: rgba(45, 225, 194, .10);
  --mark-mid-bg: rgba(125, 211, 252, .10);
  --row-hover: rgba(125, 211, 252, .03);
  --swatch-ring: rgba(238, 248, 247, .18);
  --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;
}

/* ---------- nautical light theme (locked tokens) ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #eef5fa;
  --surface: #ffffff;
  --surface-2: #e8f1f8;
  --ink: #0b3c5d;
  --ink-2: #14507c;
  --ink-3: #71899c;
  --teal: #e85d1f;
  --teal-bright: #d1541a;
  --teal-soft: rgba(232, 93, 31, .10);
  --teal-border: rgba(232, 93, 31, .35);
  --coral: #c2410c;
  --coral-2: #e85d1f;
  --coral-soft: rgba(194, 65, 12, .10);
  --coral-border: rgba(194, 65, 12, .35);
  --line: #d3e0ea;
  --line-strong: #b9cbda;
  --link: #c2410c;
  --link-hover: #e85d1f;
  --nav-bg: rgba(255, 255, 255, .86);
  --glow-1: rgba(232, 93, 31, .14);
  --glow-2: rgba(232, 93, 31, .10);
  --selection: rgba(232, 93, 31, .22);
  --focus-ring: rgba(232, 93, 31, .18);
  --btn-shadow: 0 8px 24px rgba(232, 93, 31, .25);
  --btn-shadow-hover: 0 10px 28px rgba(232, 93, 31, .32);
  --hl: rgba(232, 93, 31, .05);
  --hl-strong: rgba(232, 93, 31, .08);
  --mark-mid-bg: rgba(11, 60, 93, .08);
  --row-hover: rgba(11, 60, 93, .04);
  --swatch-ring: rgba(11, 60, 93, .20);
  --card-shadow: 0 12px 32px rgba(11, 60, 93, .12);
  /* Light theme uses the v2 nautical-light font set, not the dark display set. */
  --font-display: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex 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(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
::selection { background: var(--selection); }
: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: var(--btn-shadow);
}
.btn-primary:hover { background: var(--teal-bright); color: #03251f; box-shadow: var(--btn-shadow-hover); }
.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(--link); }
.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(--link); }
.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: var(--nav-bg);
  -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(--link); 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; }

/* ---------- theme toggle ---------- */
.theme-toggle {
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink-2); padding: 9px 14px; cursor: pointer;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--teal); color: var(--teal); }

/* Accent-background elements carry dark text in the dark theme; in the light
   theme the accent is orange, so they switch to white text for contrast. */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .toggle-pair button.active,
[data-theme="light"] .template-check,
[data-theme="light"] .pop-tag,
[data-theme="light"] .skip-link:focus,
[data-theme="light"] .btn-coral,
[data-theme="light"] .btn-coral:hover { color: #fff; }
/* Error alert text: light coral on the light tint, for contrast. */
[data-theme="light"] .alert-error { color: var(--coral); }

/* ---------- 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, var(--glow-1), transparent); }
.hero::after { width: 600px; height: 360px; bottom: -160px; left: -160px; background: radial-gradient(closest-side, var(--glow-2), 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(--link); }
.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: var(--hl); }
.compare thead th.hl { background: var(--hl-strong); color: var(--link); }
.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: var(--mark-mid-bg); 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 var(--focus-ring); }
.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(--link); }
.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(--link-hover); }
.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, var(--glow-1), 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 / 5.1; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.3,1.1); cursor: pointer; }
@media (max-width: 520px) {
  /* On phones the fixed ratio makes the card shorter than its content
     (text wraps taller as the card narrows), so let it grow instead. */
  .flip-card { aspect-ratio: auto; min-height: 800px; }
}
.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;
}
/* Demo Ink Card faces are product content (Midnight-style card): they keep
   dark-theme values in both site themes so the card preview never changes. */
.flip-face {
  --ink: #eef8f7;
  --ink-2: #b7d3d1;
  --ink-3: #7fa8a6;
  --surface-2: #0a3148;
  --line: rgba(125, 211, 252, .14);
  --line-strong: rgba(125, 211, 252, .24);
  --teal: #2de1c2;
  --teal-bright: #4beccf;
  --teal-soft: rgba(45, 225, 194, .12);
  --teal-border: rgba(45, 225, 194, .35);
  --link: #2de1c2;
  --link-hover: #4beccf;
  --card-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  color: #eef8f7;
}
.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(--link); 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 var(--swatch-ring); }
.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(--link); }
.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(--link); 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: var(--row-hover); }
.link-id .link-url { font-family: var(--font-mono); font-size: .88rem; color: var(--link); }
.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(--link); }

/* ---------- 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; }
  .theme-toggle-label { display: none; }
  .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; }
}

/* ---------- v7: Cal mark + locked Ink Card layout (2026-11-13) ---------- */
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { width: 32px; height: 32px; color: var(--ink); flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.ink-desc { color: var(--ink-2); font-size: .92rem; margin-bottom: 6px; }
.ink-back-text { color: var(--ink-2); font-size: .92rem; margin-bottom: 18px; }
.ink-flip-helper { text-align: center; font-size: .78rem; color: var(--ink-3); margin-top: 6px; font-family: var(--font-mono); }
.ink-powered { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: .78rem; color: var(--ink-3); font-family: var(--font-mono); }
.ink-powered svg { width: 16px; height: 16px; color: var(--ink-2); flex: none; }
.flip-back .ink-flip-row { margin-top: auto; }
.ink-qr { display: flex; justify-content: center; margin-top: 16px; }
.ink-qr img { width: 112px; height: 112px; border-radius: 12px; background: #fff; padding: 6px; }
.ink-card-url { text-align: center; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); margin-top: 10px; }
.ink-actions { display: grid; gap: 10px; margin-top: 16px; }
.ink-action-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 999px; padding: 12px 18px; font-weight: 700; font-size: .95rem; font-family: var(--font-sans); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.ink-action-save { background: var(--teal); color: #03251f; border: 1px solid var(--teal); }
.ink-action-save:hover { background: var(--teal-bright); }
.ink-action-fav { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.ink-action-fav:hover { border-color: var(--teal); color: var(--teal); }
.ink-action-fav[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
