/* ─────────────────────────────────────────────────────────────────────────────
   TENZION store pages (/tenzion/, /tenzion/thanks/, /tenzion/terms/)
   Loaded AFTER /styles.css, which supplies the Carston tokens (:root), fonts,
   .btn, .eyebrow, .title, .serif-line, .footer, .skip and the film grain.
   Everything here is prefixed tz- so it can never collide with the homepage.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --tz-sun-hi: #fff4e8;
  --tz-sun-mid: #f8d6b8;
  --tz-terra: #b8643f;      /* accent on light, large text / graphics only */
  --tz-terra-ink: #96502f;  /* accent on light, small text (AA on stone) */
  --tz-line-d-soft: rgba(240, 235, 227, 0.08);
  --tz-section: clamp(88px, 11vw, 168px);
  --tz-radius: clamp(18px, 2vw, 28px);
  --tz-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* The store pages have nothing that moves on its own for long: keep the grain texture, still. */
body::after { animation: none; }
html { scroll-padding-top: 84px; }

.tz-wrap { max-width: var(--max); margin: 0 auto; }
.tz-section { padding: var(--tz-section) var(--gutter); position: relative; }
.tz-head { max-width: 860px; margin-bottom: clamp(44px, 6vw, 88px); }
.tz-head-center { margin-inline: auto; text-align: center; }
.tz-title { font-size: clamp(40px, 5.8vw, 88px); text-wrap: balance; }
.tz-lead { font-size: clamp(17px, 1.45vw, 19px); line-height: 1.75; color: rgba(240, 235, 227, 0.86); margin-top: 22px; max-width: 640px; }
.tz-head-center .tz-lead { margin-inline: auto; }
.light .tz-lead { color: #3a3d42; }
.tz-muted { color: var(--mist); }
.tz-nowrap { white-space: nowrap; }
.light .tz-muted { color: var(--mist-ink); }
a.tz-link { color: inherit; text-decoration-color: rgba(233, 164, 124, 0.6); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color 0.3s, text-decoration-color 0.3s; }
a.tz-link:hover { color: var(--glow); text-decoration-color: var(--glow); }
.light a.tz-link { text-decoration-color: rgba(184, 100, 63, 0.7); }
.light a.tz-link:hover { color: var(--tz-terra-ink); }

/* Buttons (extend .btn from styles.css) */
.btn-sun { background: var(--glow); border-color: var(--glow); color: var(--night); }
.btn-sun:hover { background: #f4c3a2; border-color: #f4c3a2; }
.btn-cream { background: var(--cloud); border-color: var(--cloud); color: var(--night); }
.btn-cream:hover { background: transparent; color: var(--cloud); }
.btn-ghost { border-color: rgba(240, 235, 227, 0.32); color: var(--cloud); }
.btn-ghost:hover { background: var(--cloud); border-color: var(--cloud); color: var(--night); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.btn-arrow::after { content: "→"; font-size: 14px; letter-spacing: 0; transition: transform 0.4s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }
.light .btn-ghost { border-color: var(--line-l); color: var(--ink); }
.light .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--stone); }

/* ───────── Nav ───────── */
.tz-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 18px;
  border-bottom: 1px solid transparent;
  transition: padding 0.5s var(--ease), border-color 0.5s;
}
.tz-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 14, 19, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.tz-nav.is-scrolled, .tz-nav-solid { border-color: var(--line-d); padding-block: calc(13px + env(safe-area-inset-top)) 13px; }
.tz-nav.is-scrolled::before, .tz-nav-solid::before, html:not(.js) .tz-nav::before { opacity: 1; }
.tz-nav-solid { position: sticky; top: 0; }
.tz-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--cloud); }
.tz-brand img { height: 17px; width: auto; }
.tz-brand span {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  line-height: 1;
  padding: 3px 0 3px 14px;
  border-left: 1px solid rgba(240, 235, 227, 0.24);
  color: rgba(240, 235, 227, 0.86);
}
.tz-nav-links { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.tz-nav-links a {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(240, 235, 227, 0.74);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.tz-nav-links a:hover { color: var(--cloud); }
.tz-nav-links .tz-nav-cta { color: var(--cloud); padding: 11px 20px; border: 1px solid rgba(240, 235, 227, 0.28); border-radius: 999px; }
.tz-nav-links .tz-nav-cta:hover { background: var(--cloud); color: var(--night); border-color: var(--cloud); }
@media (max-width: 820px) { .tz-nav-links a:not(.tz-nav-cta) { display: none; } }
@media (max-width: 360px) { .tz-brand span { display: none; } }

/* ───────── Sun motif (shared) ─────────
   A disc of warm light, a hairline horizon, the sea with a streaked reflection.
   --d is the sun diameter; everything else is derived from it. */
.tz-sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--d);
  height: var(--d);
  margin-left: calc(var(--d) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, var(--tz-sun-hi) 0%, var(--tz-sun-mid) 32%, #f1b68f 64%, #e3936a 100%);
  box-shadow:
    0 0 calc(var(--d) * 0.12) calc(var(--d) * 0.02) rgba(248, 200, 160, 0.45),
    0 0 calc(var(--d) * 0.5) calc(var(--d) * 0.1) rgba(233, 164, 124, 0.22);
}
.tz-horizon {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 226, 202, 0.38) 22%, rgba(255, 238, 222, 0.95) 50%, rgba(255, 226, 202, 0.38) 78%, transparent);
}

/* ───────── Hero ───────── */
.tz-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  max-height: 1060px;
  padding-top: calc(76px + env(safe-area-inset-top));
  background:
    linear-gradient(to bottom, #0b0e13 0%, #0d1117 34%, #151820 62%, #1d1c22 78%, #0b0e13 100%);
}
.tz-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; z-index: 2; background: linear-gradient(to bottom, rgba(11, 14, 19, 0), var(--night)); pointer-events: none; }
.tz-hero-text { position: relative; z-index: 2; text-align: center; padding: clamp(28px, 6.5vh, 84px) var(--gutter) 0; }
.tz-hero .eyebrow { color: rgba(240, 235, 227, 0.72); }
.tz-wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 12.4vw, 184px);
  line-height: 0.92;
  letter-spacing: 0.11em;
  margin: 22px -0.11em 0 0; /* cancel the trailing letter-space so the word is optically centred */
  text-transform: uppercase;
  color: var(--cloud);
  text-shadow: 0 2px 40px rgba(11, 14, 19, 0.5);
}
.tz-tagline { font-family: var(--italic); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.7vw, 38px); line-height: 1.2; color: rgba(240, 235, 227, 0.94); margin-top: clamp(12px, 1.6vw, 20px); }
.tz-by { margin-top: 14px; color: var(--glow) !important; }
.tz-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(26px, 3.6vh, 40px); }

.tz-stage {
  --hz: 62%;
  --d: min(56vw, 40vh, 500px);
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  z-index: 1;
}
@supports (width: 1cqh) {
  .tz-stage { container-type: size; }
  .tz-stage > * { --d: min(64cqw, 84cqh, 520px); }
}
/* the warm haze around the sun (bleeds up behind the text, very softly) */
.tz-glow {
  position: absolute;
  left: 50%;
  top: var(--hz);
  width: calc(var(--d) * 4.2);
  height: calc(var(--d) * 2.3);
  transform: translate(-50%, -54%);
  background:
    radial-gradient(closest-side, rgba(233, 164, 124, 0.30), rgba(233, 164, 124, 0.12) 46%, rgba(167, 184, 200, 0.05) 72%, transparent);
  pointer-events: none;
}
/* the sky: clips the sun at the horizon (only the bottom edge is clipped) */
.tz-sky { position: absolute; inset: 0 0 calc(100% - var(--hz)) 0; clip-path: inset(-300% -50% 0 -50%); }
.tz-sky .tz-sun { transform: translateY(40%); }
.tz-dial {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(var(--d) * 1.36);
  height: calc(var(--d) * 1.36);
  margin-left: calc(var(--d) * -0.68);
  border-radius: 50%;
  transform: translateY(42.65%); /* (0.68d - 0.1d) / 1.36d: concentric with the risen sun */
  background: repeating-conic-gradient(from 0deg, rgba(255, 232, 214, 0.5) 0 0.5deg, transparent 0.5deg 7.5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 13px), #000 calc(100% - 12px) calc(100% - 1px), transparent 100%),
                linear-gradient(to top, #000 30%, rgba(0, 0, 0, 0.45) 56%, transparent 80%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(closest-side, transparent calc(100% - 13px), #000 calc(100% - 12px) calc(100% - 1px), transparent 100%),
        linear-gradient(to top, #000 30%, rgba(0, 0, 0, 0.45) 56%, transparent 80%);
  mask-composite: intersect;
  opacity: 0.6;
}
/* soft cloud bands crossing the low sun — cloudy Ibiza, not synthwave */
.tz-cloud { position: absolute; left: 50%; height: max(3px, calc(var(--d) * 0.011)); border-radius: 99px; background: linear-gradient(to right, rgba(24, 22, 30, 0), rgba(24, 22, 30, 0.5) 30%, rgba(24, 22, 30, 0.55) 70%, rgba(24, 22, 30, 0)); filter: blur(1.6px); }
.tz-cloud-1 { bottom: 7%; width: calc(var(--d) * 1.7); margin-left: calc(var(--d) * -0.95); height: max(4px, calc(var(--d) * 0.016)); }
.tz-cloud-2 { bottom: 13.5%; width: calc(var(--d) * 0.9); margin-left: calc(var(--d) * -0.1); opacity: 0.75; }
.tz-cloud-3 { display: none; }
.tz-stage .tz-horizon { top: var(--hz); }
.tz-sea {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: var(--hz);
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(52, 41, 42, 0.75), rgba(20, 21, 27, 0.6) 30%, rgba(11, 14, 19, 0) 100%);
}
.tz-reflect {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(var(--d) * 1.1);
  height: 100%;
  margin-left: calc(var(--d) * -0.55);
  background: url("/tz-reflect.svg") center top / 100% 100% no-repeat;
  -webkit-mask: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 92%);
  mask: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 92%);
  opacity: 0.9;
}
.tz-sea::before { /* the soft column of light under the sun */
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(var(--d) * 1.2);
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(50% 80% at 50% 0%, rgba(248, 200, 160, 0.26), rgba(233, 164, 124, 0.08) 55%, transparent);
}

/* sunrise: once, on load (finite, ~3s), skipped with reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .tz-sky .tz-sun { animation: tz-rise 3.4s var(--ease) 0.15s both; }
  .tz-dial { animation: tz-fade 2.6s var(--ease) 1.2s both; }
  .tz-glow { animation: tz-glow 3.6s var(--ease) both; }
  .tz-reflect { animation: tz-fade 3s var(--ease) 0.8s both; }
  .tz-hero-text > * { animation: tz-up 1.3s var(--ease) both; }
  .tz-hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .tz-hero-text > :nth-child(3) { animation-delay: 0.2s; }
  .tz-hero-text > :nth-child(4) { animation-delay: 0.3s; }
  .tz-hero-text > :nth-child(5) { animation-delay: 0.42s; }
}
@keyframes tz-rise { from { transform: translateY(92%); filter: saturate(1.25) brightness(0.82); } to { transform: translateY(40%); filter: none; } }
@keyframes tz-glow { from { opacity: 0.2; } to { opacity: 1; } }
@keyframes tz-fade { from { opacity: 0; } }
@keyframes tz-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .tz-hero { min-height: 680px; }
  .tz-hero-cta { flex-direction: column; align-items: center; }
  .tz-hero-cta .btn { min-width: 236px; justify-content: center; }
  .tz-stage { --hz: 56%; }
}

/* ───────── Pitch + buy ───────── */
.tz-pitch { background: var(--night); padding-top: clamp(64px, 8vw, 120px); }
.tz-pitch-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.tz-pitch .tz-lead { max-width: 600px; }
.tz-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.tz-chips li { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-d); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(240, 235, 227, 0.82); }

.tz-buy {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--tz-radius);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(233, 164, 124, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(240, 235, 227, 0.075), rgba(240, 235, 227, 0.03) 60%, rgba(240, 235, 227, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 50px 90px -50px rgba(0, 0, 0, 0.9);
  scroll-margin-top: 100px;
}
.tz-buy::after { /* specular rim, like the release frames on the homepage */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 26%, rgba(255, 255, 255, 0.03) 55%, rgba(233, 164, 124, 0.4) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.tz-buy-name { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 14px; line-height: 1.1; }
.tz-buy-name em { display: block; font-family: var(--italic); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 0.66em; color: rgba(240, 235, 227, 0.8); margin-top: 6px; }
.tz-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line-d); }
.tz-price { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 5.4vw, 76px); line-height: 0.95; letter-spacing: -0.01em; color: var(--cloud); font-variant-numeric: lining-nums; }
.tz-price-note { font-size: 13px; line-height: 1.5; color: var(--mist); }
.tz-price-note b { display: block; font-weight: 600; color: rgba(240, 235, 227, 0.86); }
.tz-form { margin-top: 28px; display: grid; gap: 20px; }
.tz-store-note { margin-top: 24px; padding: 12px 16px; border-radius: 10px; border: 1px dashed rgba(233, 164, 124, 0.6); background: rgba(233, 164, 124, 0.1); font-size: 14px; line-height: 1.55; color: rgba(240, 235, 227, 0.9); }
.tz-store-note b { display: block; font-weight: 600; color: var(--glow); }
.tz-buy-terms { font-size: 13px; line-height: 1.55; color: var(--mist); }
.tz-buy-terms a { color: rgba(240, 235, 227, 0.9); }
.tz-buy-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.tz-cancelled { margin-top: 24px; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(233, 164, 124, 0.4); background: rgba(233, 164, 124, 0.08); font-size: 14px; line-height: 1.5; color: rgba(240, 235, 227, 0.9); }
.tz-agree { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 14px; line-height: 1.6; color: rgba(240, 235, 227, 0.86); cursor: pointer; }
.tz-agree input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid rgba(240, 235, 227, 0.5);
  border-radius: 6px;
  background: rgba(11, 14, 19, 0.4);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.tz-agree input::after { content: ""; width: 10px; height: 6px; border: solid var(--night); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 0.25s var(--ease); }
.tz-agree input:checked { background: var(--glow); border-color: var(--glow); }
.tz-agree input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.tz-agree input:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.tz-agree a { color: var(--cloud); text-underline-offset: 3px; text-decoration-color: rgba(233, 164, 124, 0.8); }
.tz-agree a:hover { color: var(--glow); }
.tz-form.is-invalid .tz-agree input { border-color: var(--glow); box-shadow: 0 0 0 3px rgba(233, 164, 124, 0.25); }
.tz-form-hint { font-size: 13px; color: var(--glow); margin-top: -8px; }
.tz-buy-btn { width: 100%; justify-content: center; padding-block: 19px; font-size: 13px; }
.tz-buy-facts { display: grid; gap: 10px; margin-top: 26px; font-size: 14px; color: rgba(240, 235, 227, 0.8); }
.tz-buy-facts li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.tz-buy-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px rgba(233, 164, 124, 0.6); transform: translateY(-1px); justify-self: center; }
.tz-secure { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-d); font-size: 12px; letter-spacing: 0.06em; color: var(--mist); }
.tz-secure svg { width: 13px; height: 13px; flex: none; }
@media (max-width: 900px) { .tz-pitch-grid { grid-template-columns: 1fr; } }

/* ───────── Screenshot slot ───────── */
.tz-shot { margin: clamp(72px, 9vw, 140px) auto 0; max-width: 1180px; position: relative; isolation: isolate; padding: clamp(10px, 1.4vw, 20px); border-radius: var(--tz-radius); background: linear-gradient(160deg, rgba(240, 235, 227, 0.09), rgba(240, 235, 227, 0.03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 60px 120px -60px rgba(0, 0, 0, 0.95); }
.tz-shot::before { content: ""; position: absolute; inset: 10% 8% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(233, 164, 124, 0.22), transparent); filter: blur(30px); }
.tz-shot img { width: 100%; height: auto; border-radius: calc(var(--tz-radius) - 10px); background: var(--night-2); }
.tz-shot figcaption { text-align: center; margin-top: 18px; font-family: var(--italic); font-style: italic; font-size: 19px; color: var(--mist); }

/* ───────── What it does: BUILD + effect buttons ───────── */
.tz-what { background: var(--night-2); }
.tz-engine { --build: 0.7; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.tz-knob-col { display: grid; justify-items: center; gap: 22px; text-align: center; }
.tz-knob { --k: min(78vw, 380px); position: relative; width: var(--k); height: var(--k); }
.tz-knob-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 225deg, var(--glow) calc(var(--build) * 270deg), rgba(240, 235, 227, 0.12) 0 270deg, transparent 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  transition: filter 0.4s;
}
.tz-knob-ticks {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: conic-gradient(from 225deg, transparent 0 270deg, var(--night-2) 0),
              repeating-conic-gradient(from 225deg, rgba(240, 235, 227, 0.38) 0 0.7deg, transparent 0.7deg 13.5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
}
.tz-knob-face {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(to bottom, #0b0e13 0%, #141820 40%, #2c2529 62%, #3a2c2b 64%, #16171d 64.2%, #0d1015 100%);
  box-shadow: inset 0 0 0 1px rgba(240, 235, 227, 0.1), inset 0 20px 40px rgba(0, 0, 0, 0.5);
}
.tz-knob-face::before { /* haze that warms with the build */
  content: "";
  position: absolute;
  left: -20%; right: -20%;
  top: 30%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(233, 164, 124, 0.5), transparent);
  opacity: calc(0.25 + var(--build) * 0.75);
}
.tz-knob-face .tz-sun {
  --d: 46%;
  width: 46%;
  height: 46%;
  margin-left: -23%;
  bottom: 36%;
  z-index: 1;
  box-shadow: 0 0 30px 6px rgba(248, 200, 160, 0.4), 0 0 90px 30px rgba(233, 164, 124, 0.2);
  transform: translateY(calc((1 - var(--build)) * 112%));
  transition: transform 0.18s linear;
}
.tz-knob-sea { position: absolute; left: 0; right: 0; top: 64%; bottom: 0; z-index: 2; background: linear-gradient(to bottom, #241e22, #0d1015 80%); }
.tz-knob-sea::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(255, 236, 220, 0.9), transparent); }
.tz-knob-sea::after {
  content: "";
  position: absolute;
  left: 27%; right: 27%; top: 0; bottom: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 226, 200, 0.8) 0 1px, transparent 1px 4px);
  -webkit-mask: radial-gradient(50% 100% at 50% 0, #000, transparent);
  mask: radial-gradient(50% 100% at 50% 0, #000, transparent);
  opacity: calc(var(--build) * 0.7);
}
.tz-knob-drop {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night);
  background: radial-gradient(closest-side, rgba(255, 244, 232, 0.96), rgba(248, 214, 184, 0.85) 60%, rgba(233, 164, 124, 0));
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.tz-engine.is-drop .tz-knob-drop { animation: tz-drop 1.5s var(--ease) both; }
@keyframes tz-drop { 0% { opacity: 0; transform: scale(0.85); } 12% { opacity: 1; transform: scale(1.04); } 55% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }
.tz-readout { display: flex; align-items: baseline; gap: 14px; }
.tz-readout output { font-family: var(--serif); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: left; }
.tz-slider { width: min(100%, 360px); display: grid; gap: 10px; }
.tz-slider label { font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mist); }
.tz-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.tz-range::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--glow) calc(var(--build) * 100%), rgba(240, 235, 227, 0.18) 0); }
.tz-range::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(240, 235, 227, 0.18); }
.tz-range::-moz-range-progress { height: 2px; background: var(--glow); }
.tz-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; border: 0; background: radial-gradient(circle at 50% 35%, var(--tz-sun-hi), #f1b68f 70%, #e3936a); box-shadow: 0 0 18px rgba(233, 164, 124, 0.7); }
.tz-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 0; background: radial-gradient(circle at 50% 35%, var(--tz-sun-hi), #f1b68f 70%, #e3936a); box-shadow: 0 0 18px rgba(233, 164, 124, 0.7); }
.tz-range:focus-visible { outline: 1px solid var(--glow); outline-offset: 6px; border-radius: 4px; }
.tz-knob-status { min-height: 1.6em; font-family: var(--italic); font-style: italic; font-size: 21px; line-height: 1.3; color: rgba(240, 235, 227, 0.86); max-width: 34ch; }

.tz-fx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tz-fx-item {
  --amt: var(--build);
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px 22px 22px;
  border-radius: 16px;
  background: rgba(240, 235, 227, 0.035);
  border: 1px solid var(--tz-line-d-soft);
  transition: background 0.4s, border-color 0.4s;
}
.tz-fx-item:has(.tz-fx-input:checked) { background: rgba(240, 235, 227, 0.055); border-color: rgba(240, 235, 227, 0.14); }
.tz-fx-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tz-fx-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 13px;
  border-radius: 8px;
  border: 1px solid rgba(240, 235, 227, 0.22);
  background: linear-gradient(to bottom, rgba(240, 235, 227, 0.08), rgba(240, 235, 227, 0.02));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 235, 227, 0.6);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.tz-led { width: 8px; height: 8px; border-radius: 50%; background: rgba(240, 235, 227, 0.2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); transition: background 0.3s, box-shadow 0.3s; }
.tz-fx-input:checked + .tz-fx-btn { color: var(--cloud); border-color: rgba(233, 164, 124, 0.6); box-shadow: 0 0 22px -6px rgba(233, 164, 124, 0.55); }
.tz-fx-input:checked + .tz-fx-btn .tz-led { background: var(--glow); box-shadow: 0 0 10px 1px rgba(233, 164, 124, 0.85); }
.tz-fx-input:focus-visible + .tz-fx-btn { outline: 1px solid var(--glow); outline-offset: 4px; }
.tz-fx-btn:hover { border-color: rgba(240, 235, 227, 0.45); }
.tz-fx-meter { display: block; height: 3px; border-radius: 3px; background: rgba(240, 235, 227, 0.08); overflow: hidden; }
.tz-fx-meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(to right, rgba(233, 164, 124, 0.55), var(--glow)); transform-origin: left; transform: scaleX(var(--amt)); transition: transform 0.18s linear, opacity 0.3s; }
.tz-fx-input:not(:checked) ~ .tz-fx-meter i { transform: scaleX(0); }
.tz-fx-desc { font-size: 15px; line-height: 1.6; color: rgba(240, 235, 227, 0.78); }
.tz-fx-input:not(:checked) ~ .tz-fx-desc { color: rgba(240, 235, 227, 0.55); }
.tz-fx-wash { --amt: calc(var(--build) * var(--build)); }
.tz-fx-drive { --amt: calc(var(--build) * var(--build) * 0.9); }
.tz-fx-stutter { --amt: calc(var(--build) * var(--build) * var(--build)); }
.tz-fx-noise { --amt: calc(var(--build) * 0.92); }
.tz-drop-line { margin: clamp(48px, 6vw, 80px) auto 0; padding-top: 32px; border-top: 1px solid var(--line-d); text-align: center; font-family: var(--italic); font-style: italic; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; color: rgba(240, 235, 227, 0.92); max-width: 900px; text-wrap: balance; }
.tz-drop-line b { font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 0.78em; letter-spacing: 0.14em; color: var(--glow); }
@media (max-width: 1000px) {
  .tz-engine { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tz-fx { grid-template-columns: 1fr; gap: 10px; }
  .tz-fx-item { padding: 18px 18px 20px; }
  .tz-knob { --k: min(84vw, 330px); }
}

/* ───────── Presets band ───────── */
.tz-presets { background: var(--stone); color: var(--ink); padding: clamp(40px, 5vw, 64px) var(--gutter); border-bottom: 1px solid var(--line-l); text-align: center; }
.tz-presets .eyebrow { color: var(--mist-ink); }
.tz-preset-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1080px; margin: 24px auto 0; }
.tz-preset-list li { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px 10px; border-radius: 999px; border: 1px solid rgba(20, 23, 28, 0.16); background: rgba(255, 255, 255, 0.28); font-family: var(--serif); font-size: clamp(16px, 1.5vw, 21px); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.2; white-space: nowrap; }
.tz-preset-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tz-terra); }
.tz-presets-note { margin: 22px auto 0; max-width: 640px; font-family: var(--italic); font-style: italic; font-size: clamp(18px, 1.7vw, 22px); color: var(--mist-ink); }

/* ───────── Three ways to build ───────── */
.tz-modes { background: var(--stone); }
.tz-modes .title em { color: var(--tz-terra); }
.tz-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.tz-mode {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--tz-radius);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(20, 23, 28, 0.08);
  box-shadow: 0 30px 60px -45px rgba(20, 23, 28, 0.45);
}
.tz-mode .eyebrow { color: var(--tz-terra-ink); }
.tz-mode h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); text-transform: uppercase; line-height: 1.1; margin-top: 10px; }
.tz-mode p { margin-top: 14px; font-size: 16px; line-height: 1.65; color: #3a3d42; }
.tz-mode svg { width: 100%; height: auto; margin-bottom: 26px; overflow: visible; }
.tz-mode svg .grid { stroke: rgba(20, 23, 28, 0.12); stroke-width: 1; }
.tz-mode svg .base { stroke: rgba(20, 23, 28, 0.35); stroke-width: 1; }
.tz-mode svg .curve { fill: none; stroke: var(--tz-terra); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.tz-mode svg .fillc { fill: url(#tz-curve-fill); }
.tz-mode svg .drop { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.tz-mode svg text { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; fill: var(--mist-ink); }
.tz-mode svg text.hl { fill: var(--tz-terra-ink); }
.tz-mode svg .dot { fill: var(--tz-terra); }
.tz-preview-note { margin-top: clamp(28px, 3vw, 44px); text-align: center; font-size: 15px; color: #3a3d42; }
.tz-preview-note b { font-weight: 700; letter-spacing: 0.14em; font-size: 12px; }
@media (max-width: 760px) { .tz-mode-grid { grid-template-columns: 1fr; } .tz-mode svg { max-width: 440px; } }

/* ───────── Clean at zero ───────── */
.tz-zero { background: var(--night); overflow: hidden; isolation: isolate; text-align: center; }
.tz-zero-mark { position: relative; height: clamp(140px, 18vw, 230px); max-width: 760px; margin: 0 auto clamp(36px, 4vw, 56px); --d: clamp(150px, 20vw, 250px); }
.tz-zero-num { position: absolute; left: 0; right: 0; bottom: 30%; font-family: var(--serif); font-size: clamp(110px, 16vw, 220px); line-height: 0.8; letter-spacing: 0.02em; color: var(--cloud); }
.tz-zero-num span { font-size: 0.4em; vertical-align: 1.05em; margin-left: 0.04em; color: var(--glow); opacity: 0.85; }
.tz-zero-mark .tz-horizon { bottom: 30%; }
.tz-zero-glow { position: absolute; left: 50%; bottom: 30%; width: calc(var(--d) * 3.2); height: calc(var(--d) * 1.2); transform: translate(-50%, 50%); background: radial-gradient(closest-side, rgba(233, 164, 124, 0.2), transparent); z-index: -1; }
.tz-zero-sun { position: absolute; left: 50%; bottom: 30%; width: calc(var(--d) * 1.6); height: calc(var(--d) * 0.5); transform: translate(-50%, 50%); background: radial-gradient(closest-side, rgba(255, 228, 204, 0.42), rgba(233, 164, 124, 0.14) 50%, transparent); z-index: -1; }
.tz-zero .tz-lead { margin-inline: auto; max-width: 620px; }
.tz-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; margin: clamp(56px, 6vw, 88px) auto 0; border-top: 1px solid var(--line-d); text-align: left; }
.tz-points li { padding: 28px clamp(16px, 2vw, 32px) 0; }
.tz-points li + li { border-left: 1px solid var(--line-d); }
.tz-points strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; }
.tz-points span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--mist); }
@media (max-width: 760px) {
  .tz-points { grid-template-columns: 1fr; }
  .tz-points li { padding: 22px 0; }
  .tz-points li + li { border-left: 0; border-top: 1px solid var(--line-d); }
}

/* ───────── How buying works ───────── */
.tz-howbuy { background: var(--stone-2); }
.tz-howbuy .title em { color: var(--tz-terra); }
.tz-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); counter-reset: step; }
.tz-steps li { counter-increment: step; padding-top: 26px; border-top: 1px solid rgba(20, 23, 28, 0.2); }
.tz-steps li::before { content: counter(step); display: block; font-family: var(--italic); font-style: italic; font-size: 54px; line-height: 1; color: var(--tz-terra); margin-bottom: 14px; }
.tz-steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); text-transform: uppercase; line-height: 1.12; }
.tz-steps p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: #3a3d42; }
.tz-howbuy-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(48px, 6vw, 80px); padding: 24px 0 0; border-top: 1px solid rgba(20, 23, 28, 0.14); }
.tz-howbuy-foot p { font-family: var(--italic); font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--ink); }
.light .btn-ink { background: var(--ink); border-color: var(--ink); color: var(--stone); }
.light .btn-ink:hover { background: transparent; color: var(--ink); }
@media (max-width: 860px) { .tz-steps { grid-template-columns: 1fr; } }

/* ───────── Requirements + FAQ ───────── */
.tz-info { background: var(--night-2); }
.tz-info .tz-title { font-size: clamp(36px, 4.2vw, 60px); }
.tz-info-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.tz-specs { margin-top: 30px; display: grid; }
.tz-specs div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-d); }
.tz-specs div:first-child { border-top: 1px solid var(--line-d); }
.tz-specs dt { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mist); padding-top: 4px; }
.tz-specs dd { margin: 0; font-size: 16px; line-height: 1.55; }
.tz-specs dd small { display: block; font-size: 13px; color: var(--mist); margin-top: 2px; }
.tz-faq { margin-top: 30px; border-top: 1px solid var(--line-d); }
.tz-faq details { border-bottom: 1px solid var(--line-d); }
.tz-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.tz-faq summary::-webkit-details-marker { display: none; }
.tz-faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-d); background: linear-gradient(currentColor, currentColor) center / 11px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 11px no-repeat; transition: transform 0.4s var(--ease), border-color 0.3s; }
.tz-faq details[open] summary::after { transform: rotate(45deg); border-color: var(--glow); }
.tz-faq summary:hover { color: var(--glow); }
.tz-faq summary:focus-visible { outline-offset: 2px; }
.tz-faq .tz-answer { padding: 0 56px 26px 0; font-size: 16px; line-height: 1.7; color: rgba(240, 235, 227, 0.8); }
.tz-faq .tz-answer p + p { margin-top: 12px; }
@media (max-width: 900px) { .tz-info-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tz-faq .tz-answer { padding-right: 0; } }

/* ───────── Final CTA ───────── */
.tz-final { background: var(--night); text-align: center; overflow: hidden; isolation: isolate; }
.tz-final::before { content: ""; position: absolute; inset: auto -20% -25% -20%; height: 110%; z-index: -1; background: radial-gradient(50% 50% at 50% 100%, rgba(233, 164, 124, 0.26), transparent 70%), radial-gradient(40% 40% at 20% 100%, rgba(167, 184, 200, 0.14), transparent 70%); }
.tz-final .actions { justify-content: center; margin-top: 40px; }
.tz-final-help { margin-top: 30px; font-size: 14px; color: var(--mist); }

/* ───────── Footer (extends .footer) ───────── */
.tz-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.tz-footer-links a { color: var(--mist); text-decoration: none; transition: color 0.3s; }
.tz-footer-links a:hover { color: var(--cloud); }
.footer .tz-footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer a.tz-footer-home { display: inline-flex; }

/* ═════════════════ Thank-you page ═════════════════ */
.tz-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.tz-page main { flex: 1 0 auto; }
.tz-thanks-hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(36px, 4vw, 56px); }
.tz-mini { position: relative; height: clamp(84px, 10vw, 120px); max-width: 640px; margin: 0 auto 26px; --d: clamp(104px, 12vw, 150px); }
.tz-mini .tz-sky { inset: 0 0 18% 0; }
.tz-mini .tz-sky .tz-sun { transform: translateY(46%); }
.tz-mini .tz-horizon { bottom: 18%; }
.tz-mini .tz-glow { top: 82%; width: calc(var(--d) * 4); height: calc(var(--d) * 2); transform: translate(-50%, -50%); }
.tz-mini .tz-sea { top: 82%; background: none; }
.tz-mini .tz-reflect { width: var(--d); margin-left: calc(var(--d) / -2); opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .tz-mini .tz-sky .tz-sun { animation: tz-rise-mini 2.6s var(--ease) 0.1s both; }
}
@keyframes tz-rise-mini { from { transform: translateY(100%); } to { transform: translateY(46%); } }
.tz-thanks-title { font-size: clamp(48px, 7vw, 96px); }
.tz-thanks-title:focus { outline: none; }
.tz-thanks-hero .serif-line { max-width: 640px; margin-inline: auto; text-wrap: balance; }

.tz-narrow { max-width: 880px; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.tz-panel {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--tz-radius);
  background: linear-gradient(160deg, rgba(240, 235, 227, 0.075), rgba(240, 235, 227, 0.025) 60%, rgba(240, 235, 227, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 50px 90px -50px rgba(0, 0, 0, 0.9);
}
.tz-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit; background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.03) 60%, rgba(233, 164, 124, 0.34)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tz-panel h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); text-transform: uppercase; line-height: 1.1; }
.tz-state-center > p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: rgba(240, 235, 227, 0.84); max-width: 60ch; }
.tz-panel .actions { margin-top: 28px; }
.tz-panel-text > p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: rgba(240, 235, 227, 0.84); max-width: 62ch; }
.tz-panel-text > p b { font-weight: 600; color: var(--cloud); }
.tz-state-center { text-align: center; display: grid; justify-items: center; }
.tz-state-center > p { margin-inline: auto; }
.tz-help { font-size: 14px !important; color: var(--mist) !important; }
.tz-help a { color: var(--cloud); text-underline-offset: 3px; text-decoration-color: rgba(233, 164, 124, 0.7); }
.tz-help a:hover { color: var(--glow); }
.tz-spinner { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px; background: radial-gradient(circle at 50% 35%, var(--tz-sun-hi), #f1b68f 65%, #e3936a); box-shadow: 0 0 30px rgba(233, 164, 124, 0.55); }
@media (prefers-reduced-motion: no-preference) { .tz-spinner { animation: tz-breathe 1.8s ease-in-out infinite; } }
@keyframes tz-breathe { 50% { transform: scale(0.82); box-shadow: 0 0 12px rgba(233, 164, 124, 0.3); opacity: 0.75; } }
.tz-progress { width: min(100%, 320px); height: 2px; border-radius: 2px; margin: 26px auto 0; background: rgba(240, 235, 227, 0.12); overflow: hidden; }
.tz-progress span { display: block; height: 100%; width: 100%; background: var(--glow); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.6s var(--ease); }

.tz-licensed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 16px; }
.tz-download-missing { margin-top: 14px; }
.tz-licensed .eyebrow { margin: 0; }
.tz-licensed strong { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.tz-code-label { margin-top: 28px; }
.tz-code {
  margin-top: 12px;
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
  border-radius: 14px;
  background: rgba(5, 7, 10, 0.55);
  border: 1px solid rgba(233, 164, 124, 0.3);
  box-shadow: inset 0 0 40px rgba(233, 164, 124, 0.05);
  font-family: var(--tz-mono);
  font-size: clamp(15px, 1.9vw, 20px);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--tz-sun-hi);
  font-variant-numeric: slashed-zero;
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}
.tz-code .g { white-space: nowrap; }
.tz-code-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.tz-copy-state { align-self: center; font-size: 13px; color: var(--glow); min-height: 1em; }
.tz-safe { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-d); font-size: 15px; line-height: 1.6; color: rgba(240, 235, 227, 0.84); }
.tz-safe svg { width: 16px; height: 16px; margin-top: 4px; color: var(--glow); }
.tz-demo-note { margin-top: 18px; padding: 12px 16px; border-radius: 10px; border: 1px dashed rgba(233, 164, 124, 0.5); font-size: 13px; color: var(--glow); }

.tz-install { margin-top: clamp(56px, 7vw, 88px); }
.tz-install > h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); text-transform: uppercase; line-height: 1.1; }
.tz-install-steps { display: grid; gap: 0; margin-top: 28px; counter-reset: step; border-top: 1px solid var(--line-d); }
.tz-install-steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 18px; padding: 26px 0; border-bottom: 1px solid var(--line-d); }
.tz-install-steps li::before { content: counter(step); grid-row: span 2; font-family: var(--italic); font-style: italic; font-size: 46px; line-height: 0.9; color: var(--glow); }
.tz-install-steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 24px); text-transform: uppercase; line-height: 1.2; letter-spacing: 0.02em; }
.tz-install-steps p { font-size: 16px; line-height: 1.65; color: rgba(240, 235, 227, 0.8); }
.tz-install-steps p b { font-weight: 600; color: var(--cloud); }
.tz-install-foot { margin-top: 26px; font-size: 15px; color: var(--mist); }

.tz-ribbon {
  position: absolute;
  z-index: 3;
  top: 30px;
  right: -56px;
  width: 220px;
  padding: 7px 0;
  transform: rotate(45deg);
  background: rgba(233, 164, 124, 0.92);
  color: var(--night);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
@media (max-width: 560px) { .tz-ribbon { top: 22px; right: -66px; font-size: 9px; } }
.tz-hero > .tz-ribbon { top: 112px; } /* below the fixed nav */
@media (max-width: 560px) { .tz-hero > .tz-ribbon { top: 150px; } }

/* ═════════════════ Terms page ═════════════════ */
.tz-legal { background: var(--stone); color: var(--ink); }
.tz-draft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px var(--gutter);
  background: #f3d9c6;
  color: #5a2c16;
  border-bottom: 1px solid rgba(150, 80, 47, 0.3);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}
.tz-draft::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tz-terra-ink); }
.tz-legal-head { padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(40px, 5vw, 64px); max-width: 1120px; margin: 0 auto; }
.tz-legal-head .title { font-size: clamp(40px, 6vw, 84px); text-wrap: balance; }
.tz-legal-head .title em { color: var(--tz-terra); }
.tz-legal-head .serif-line { color: var(--mist-ink); }
.tz-legal-meta { margin-top: 22px; font-size: 14px; color: var(--mist-ink); }
.tz-legal-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); align-items: start; }
.tz-toc { position: sticky; top: 92px; padding-top: 6px; }
.tz-toc ol { margin-top: 14px; display: grid; gap: 2px; counter-reset: toc; }
.tz-toc li { counter-increment: toc; }
.tz-toc a { display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 6px 0; font-size: 14px; line-height: 1.4; color: #3a3d42; text-decoration: none; transition: color 0.3s; }
.tz-toc a::before { content: counter(toc) "."; font-family: var(--italic); font-style: italic; font-size: 16px; color: var(--tz-terra-ink); }
.tz-toc a:hover { color: var(--tz-terra-ink); }
.tz-prose { max-width: 72ch; font-size: 16.5px; line-height: 1.75; color: #24272c; }
.tz-prose section { padding: 34px 0; border-top: 1px solid var(--line-l); scroll-margin-top: 90px; }
.tz-prose section:first-child { border-top: 0; padding-top: 0; }
.tz-prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); display: flex; gap: 14px; align-items: baseline; }
.tz-prose h2 .n { font-family: var(--italic); font-style: italic; text-transform: none; color: var(--tz-terra); font-size: 1.05em; }
.tz-prose h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 26px; color: var(--ink); }
.tz-prose p, .tz-prose ul, .tz-prose ol { margin-top: 14px; }
.tz-prose ul { padding-left: 0; display: grid; gap: 8px; }
.tz-prose ul li { position: relative; padding-left: 22px; }
.tz-prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--tz-terra); }
.tz-prose a { color: inherit; text-decoration-color: rgba(184, 100, 63, 0.7); text-underline-offset: 3px; }
.tz-prose a:hover { color: var(--tz-terra-ink); }
.tz-prose strong { font-weight: 700; }
.tz-prose .tz-callout { margin-top: 18px; padding: 18px 22px; border-radius: 12px; background: rgba(255, 255, 255, 0.45); border: 1px solid var(--line-l); }
.tz-prose dl { margin-top: 14px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; }
.tz-prose dt { font-weight: 600; }
.tz-prose dd { margin: 0; }
.ph {
  display: inline;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(184, 100, 63, 0.14);
  box-shadow: inset 0 0 0 1px rgba(150, 80, 47, 0.35);
  color: #6e3519;
  font-weight: 600;
  font-size: 0.94em;
  white-space: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (max-width: 860px) {
  .tz-legal-grid { grid-template-columns: 1fr; }
  .tz-toc { position: static; padding: 22px; border-radius: 14px; background: rgba(255, 255, 255, 0.4); border: 1px solid var(--line-l); }
  .tz-prose dl { grid-template-columns: 1fr; gap: 2px; }
  .tz-prose dd { margin-bottom: 10px; }
}

/* Reduced motion: the global rule in styles.css already stops every animation/transition. */
