/* ============================================================
   The Trader Network — public landing page
   Self-contained design system (scoped under .tn-landing)
   ============================================================ */

/* smooth in-page jumps, offset for the fixed nav (scoped to the landing page) */
html:has(body.tn-landing) {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h, 74px);
}

.tn-landing {
  /* palette */
  --ink:        #070a14;
  --ink-2:      #0b1020;
  --surface:    #0f1527;
  --surface-2:  #141c33;
  --line:       rgba(255, 255, 255, .09);
  --line-soft:  rgba(255, 255, 255, .055);

  --text:       #eef1fa;
  --text-soft:  #c3cbe2;
  --muted:      #8b95b4;

  --brand:      #6d7bff;
  --brand-2:    #22d3ee;
  --violet:     #a78bfa;
  --amber:      #fbbf24;
  --emerald:    #34d399;

  --grad: linear-gradient(100deg, #8ea2ff 0%, #6d7bff 38%, #22d3ee 100%);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;

  --shadow:    0 24px 60px -28px rgba(0, 0, 0, .85);
  --shadow-sm: 0 12px 30px -18px rgba(0, 0, 0, .8);

  --maxw: 1140px;
  --nav-h: 74px;

  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.tn-landing *,
.tn-landing *::before,
.tn-landing *::after { box-sizing: border-box; }

.tn-landing main { display: block; }

.tn-landing a { color: inherit; text-decoration: none; }
.tn-landing h1, .tn-landing h2, .tn-landing h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
.tn-landing p { margin: 0; }

.tn-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tn-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.tn-skip:focus { left: 0; }

.tn-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Buttons ---------- */
.tn-btn {
  --b-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: .72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.tn-btn--lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.tn-btn--primary {
  background: var(--grad);
  color: #060a16;
  box-shadow: 0 10px 30px -12px rgba(109, 123, 255, .8);
}
.tn-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(109, 123, 255, .9); }
.tn-btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.tn-btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); transform: translateY(-2px); }

/* ---------- Brand mark ---------- */
.tn-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.01em; }
.tn-brand__text { font-size: 1.02rem; }
.tn-brand__mark {
  position: relative;
  width: 26px; height: 26px;
  display: inline-grid;
  place-items: center;
}
.tn-brand__mark span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
.tn-brand__mark span:nth-child(1) { top: 0; left: 9px; }
.tn-brand__mark span:nth-child(2) { bottom: 1px; left: 0; }
.tn-brand__mark span:nth-child(3) { bottom: 1px; right: 0; }
.tn-brand__mark::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(255, 255, 255, .35);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.tn-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.tn-nav.is-stuck {
  background: rgba(8, 11, 22, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.tn-nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.tn-nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: .94rem;
  color: var(--text-soft);
}
.tn-nav__links a { position: relative; padding: .25rem 0; transition: color .2s ease; }
.tn-nav__links a:hover { color: var(--text); }
.tn-nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--grad);
  transition: width .25s ease;
}
.tn-nav__links a:hover::after { width: 100%; }
.tn-nav__actions { display: flex; align-items: center; gap: .6rem; }

@media (max-width: 860px) {
  .tn-nav__links { display: none; }
}
@media (max-width: 520px) {
  .tn-nav__actions .tn-btn--ghost { display: none; }
  .tn-brand__text { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.tn-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(109, 123, 255, .25), transparent 60%),
    radial-gradient(90% 70% at 0% 10%, rgba(34, 211, 238, .14), transparent 55%),
    var(--ink);
}
.tn-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}
.tn-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 38%, transparent 40%, rgba(7, 10, 20, .55) 100%),
    linear-gradient(180deg, transparent 55%, var(--ink) 100%);
}
.tn-hero__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.tn-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}
.tn-eyebrow--dark { color: var(--brand); }
.tn-hero__title {
  margin-top: 1.2rem;
  /* sized so the longest phrase stays on a single line, full width down to phone widths */
  font-size: clamp(1.2rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.04;
  max-width: none;
  white-space: nowrap;
}
.tn-hero__title .tn-grad { display: block; }

/* typewriter line — single line, sits flush above "in one place" (no gap) */
.tn-type-line {
  display: block;
  white-space: nowrap;
  min-height: 1.05em;
}
.tn-type { color: var(--text); }
.tn-caret {
  display: inline-block;
  width: .055em;
  height: .92em;
  margin-left: .04em;
  vertical-align: -.06em;
  background: var(--brand-2);
  border-radius: 2px;
  animation: tn-blink 1.05s step-end infinite;
}
@keyframes tn-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* visually hidden (kept for screen readers / SEO while the visible line animates) */
.tn-vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.tn-hero__lead {
  margin-top: 1.4rem;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--text-soft);
}
.tn-hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.tn-hero__stats {
  margin: 3.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.4rem);
}
.tn-hero__stats div { display: flex; flex-direction: column; }
.tn-hero__stats dt {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.tn-hero__stats dd { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; max-width: 18ch; }

/* ---- split hero: organisers | stall owners, over the same background ---- */
.tn-hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.tn-hero__side { min-width: 0; }
/* the divider sits on whichever half comes second */
.tn-hero__side + .tn-hero__side {
  padding-left: clamp(2rem, 5vw, 4.5rem);
  border-left: 1px solid var(--line);
}
.tn-hero__side--stalls .tn-eyebrow { color: var(--emerald); }

/* each half gets half the width, so the headline is smaller and may wrap */
.tn-hero__split .tn-hero__title {
  font-size: clamp(1.7rem, 3.3vw, 2.9rem);
  white-space: normal;
}
.tn-hero__split .tn-type-line {
  white-space: normal;
  /* room for a phrase that wraps, so "in one place" doesn't jump as phrases change */
  min-height: 2.1em;
  display: flex;
  align-items: flex-end;
}
.tn-hero__split .tn-hero__lead { font-size: clamp(1rem, 1.35vw, 1.12rem); max-width: 46ch; }
.tn-hero__split .tn-hero__stats { margin-top: 2.4rem; gap: clamp(1.2rem, 3vw, 2.2rem); }
.tn-hero__split .tn-hero__stats dt { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

.tn-hero__ticks {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: .55rem;
  color: var(--text-soft);
}
.tn-hero__ticks li {
  position: relative;
  padding-left: 1.7rem;
}
.tn-hero__ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, .16);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .45);
}
.tn-hero__ticks li::after {
  content: "";
  position: absolute;
  left: .36rem; top: .55em;
  width: .3rem; height: .55rem;
  border: solid var(--emerald);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 860px) {
  .tn-hero__split { grid-template-columns: 1fr; }
  .tn-hero__side + .tn-hero__side {
    padding-left: 0;
    padding-top: clamp(2rem, 6vw, 3rem);
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .tn-hero__split .tn-hero__title { font-size: clamp(1.6rem, 6.4vw, 2.6rem); }
}

/* scroll cue */
.tn-scrollcue {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.tn-scrollcue__dot {
  width: 22px; height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  position: relative;
}
.tn-scrollcue__dot::after {
  content: "";
  position: absolute; left: 50%; top: 7px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand-2);
  transform: translateX(-50%);
  animation: tn-cue 1.7s ease-in-out infinite;
}
@keyframes tn-cue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ============================================================
   BANDS / SECTION SHELLS
   ============================================================ */
.tn-band { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.tn-problem  { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.tn-how      { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.tn-features { background: var(--ink); }
.tn-audience { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.tn-cta {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(109, 123, 255, .22), transparent 55%),
    var(--ink);
  border-top: 1px solid var(--line-soft);
}

.tn-sec-head { max-width: 60ch; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.tn-sec-head h2 {
  margin-top: .9rem;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 800;
}
.tn-sec-head__lead { margin-top: 1rem; color: var(--text-soft); font-size: 1.08rem; }

/* ---------- Problem ---------- */
.tn-problem__lead {
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.02em;
  max-width: 22ch;
}
.tn-problem__sub { margin-top: 1.6rem; max-width: 52ch; color: var(--text-soft); font-size: 1.1rem; }

/* ============================================================
   FLOW (timeline)
   ============================================================ */
.tn-flow {
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
  display: grid;
  gap: 1rem;
}
.tn-flow::before {
  content: "";
  position: absolute;
  left: 27px; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2) 55%, rgba(34, 211, 238, .1));
  opacity: .55;
}
.tn-flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.1rem 1.3rem 1.1rem 0;
}
.tn-flow__num {
  grid-row: 1 / span 2;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.tn-flow__step--final .tn-flow__num {
  background: var(--grad);
  color: #060a16;
  border-color: transparent;
}
.tn-flow__body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.05rem 1.3rem;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.tn-flow__step:hover .tn-flow__body {
  transform: translateX(4px);
  border-color: rgba(109, 123, 255, .45);
  background: var(--surface-2);
}
.tn-flow__body h3 { font-size: 1.18rem; font-weight: 700; }
.tn-flow__body p { margin-top: .4rem; color: var(--text-soft); font-size: .98rem; }

@media (min-width: 760px) {
  .tn-flow { grid-template-columns: 1fr 1fr; column-gap: 4rem; row-gap: 1.4rem; }
  .tn-flow::before { left: 50%; transform: translateX(-1px); }
  .tn-flow__step { grid-template-columns: 1fr; padding: 0; }
  .tn-flow__step:nth-child(odd)  { grid-column: 1; text-align: right; }
  .tn-flow__step:nth-child(even) { grid-column: 2; }
  .tn-flow__num {
    position: absolute; top: 4px;
    grid-row: auto;
  }
  .tn-flow__step:nth-child(odd)  .tn-flow__num { right: -56px; left: auto; transform: translateX(50%); }
  .tn-flow__step:nth-child(even) .tn-flow__num { left: -56px; transform: translateX(-50%); }
  .tn-flow__step:nth-child(odd)  .tn-flow__body { margin-right: 2rem; }
  .tn-flow__step:nth-child(even) .tn-flow__body { margin-left: 2rem; }
  .tn-flow__step:hover:nth-child(odd) .tn-flow__body { transform: translateX(-4px); }
}

/* ============================================================
   FEATURES BENTO
   ============================================================ */
.tn-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.tn-card {
  grid-column: span 2;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tn-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 0% 0%, rgba(109, 123, 255, .12), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.tn-card:hover { transform: translateY(-4px); border-color: rgba(109, 123, 255, .4); box-shadow: var(--shadow); }
.tn-card:hover::before { opacity: 1; }
.tn-card--wide { grid-column: span 4; }
.tn-card--tall { grid-row: span 2; }
.tn-card h3 { font-size: 1.22rem; font-weight: 700; margin-top: 1.1rem; }
.tn-card p { margin-top: .55rem; color: var(--text-soft); font-size: .98rem; }
.tn-card__list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.tn-card__list li {
  position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .92rem;
}
.tn-card__list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2);
}
.tn-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--brand);
}
.tn-card__icon svg { width: 26px; height: 26px; }
.tn-card__icon[data-accent="indigo"]  { color: var(--brand);   box-shadow: inset 0 0 0 1px rgba(109,123,255,.25); }
.tn-card__icon[data-accent="cyan"]    { color: var(--brand-2); box-shadow: inset 0 0 0 1px rgba(34,211,238,.25); }
.tn-card__icon[data-accent="emerald"] { color: var(--emerald); box-shadow: inset 0 0 0 1px rgba(52,211,153,.25); }
.tn-card__icon[data-accent="amber"]   { color: var(--amber);   box-shadow: inset 0 0 0 1px rgba(251,191,36,.25); }

@media (max-width: 900px) {
  .tn-bento { grid-template-columns: repeat(2, 1fr); }
  .tn-card, .tn-card--wide { grid-column: span 2; }
  .tn-card--tall { grid-row: auto; }
}
@media (max-width: 560px) {
  .tn-bento { grid-template-columns: 1fr; }
  .tn-card, .tn-card--wide { grid-column: span 1; }
}

/* ============================================================
   AUDIENCE
   ============================================================ */
.tn-audience__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.tn-aud {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: transform .25s ease, border-color .25s ease;
}
.tn-aud:hover { transform: translateY(-3px); border-color: rgba(109, 123, 255, .4); }
.tn-aud--primary {
  grid-column: span 3;
  background:
    linear-gradient(180deg, rgba(109, 123, 255, .14), rgba(34, 211, 238, .05)),
    var(--surface);
  border-color: rgba(109, 123, 255, .3);
}
.tn-aud h3 { font-size: 1.25rem; font-weight: 700; }
.tn-aud--primary h3 { font-size: 1.5rem; }
.tn-aud p { margin-top: .55rem; color: var(--text-soft); font-size: .98rem; }

@media (max-width: 900px) {
  .tn-audience__grid { grid-template-columns: repeat(2, 1fr); }
  .tn-aud, .tn-aud--primary { grid-column: span 1; }
}
@media (max-width: 560px) {
  .tn-audience__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.tn-cta__inner { max-width: 60ch; text-align: center; margin-inline: auto; }
.tn-cta__inner h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.tn-cta__inner p { margin-top: 1.1rem; color: var(--text-soft); font-size: 1.12rem; }
.tn-cta__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.tn-footer { background: var(--ink); border-top: 1px solid var(--line); }
.tn-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2rem) 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}
.tn-footer__brand p { margin-top: 1rem; color: var(--muted); max-width: 38ch; font-size: .95rem; }
.tn-footer__col h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.tn-footer__col { display: flex; flex-direction: column; gap: .6rem; }
.tn-footer__col a { color: var(--text-soft); font-size: .96rem; transition: color .2s ease; }
.tn-footer__col a:hover { color: var(--text); }
.tn-footer__bar {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.3rem clamp(1.1rem, 4vw, 2rem);
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--muted); font-size: .88rem;
}
.tn-footer__bar a:hover { color: var(--text); }
.tn-footer__legal { display: flex; gap: 1.2rem; }
@media (max-width: 720px) {
  .tn-footer__inner { grid-template-columns: 1fr 1fr; }
  .tn-footer__brand { grid-column: 1 / -1; }
}

/* ============================================================
   LEGAL PAGES (Privacy, Terms)
   ============================================================ */
.tn-legal-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  background:
    radial-gradient(110% 80% at 85% -20%, rgba(109, 123, 255, .22), transparent 60%),
    radial-gradient(90% 70% at 0% 0%, rgba(34, 211, 238, .12), transparent 55%),
    var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.tn-legal-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  max-width: 20ch;
}
.tn-legal-hero p { margin-top: 1rem; color: var(--text-soft); font-size: 1.05rem; max-width: 60ch; }

.tn-legal {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem);
  background: var(--ink-2);
}
.tn-legal__grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.tn-legal__toc {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  align-self: start;
}
.tn-legal__toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.tn-legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: toc; }
.tn-legal__toc a {
  display: block;
  color: var(--text-soft);
  font-size: .92rem;
  padding: .25rem 0 .25rem .9rem;
  border-left: 2px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
.tn-legal__toc a:hover { color: var(--text); border-left-color: var(--brand); }

.tn-prose { max-width: 70ch; color: var(--text-soft); }
.tn-prose > section { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.tn-prose > section + section { margin-top: 2.6rem; }
.tn-prose h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.tn-prose h2 .tn-prose__num { color: var(--brand); font-variant-numeric: tabular-nums; margin-right: .5rem; }
.tn-prose h3 { font-size: 1.08rem; font-weight: 700; color: var(--text); margin-top: 1.4rem; }
.tn-prose p { margin-top: .9rem; line-height: 1.7; }
.tn-prose ul { margin: .9rem 0 0; padding-left: 0; list-style: none; display: grid; gap: .55rem; }
.tn-prose ul li { position: relative; padding-left: 1.4rem; line-height: 1.6; }
.tn-prose ul li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2);
}
.tn-prose a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.tn-prose strong { color: var(--text); }

.tn-callout {
  margin-top: 1.2rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(109, 123, 255, .35);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(109, 123, 255, .12), rgba(34, 211, 238, .04));
}
.tn-callout p { margin-top: 0; color: var(--text); }
.tn-callout p + p { margin-top: .7rem; }

.tn-legal__meta {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 820px) {
  .tn-legal__grid { grid-template-columns: 1fr; }
  .tn-legal__toc { position: static; display: none; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.tn-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: 0ms;
  will-change: opacity, transform;
}
.tn-reveal[data-tn-delay="1"] { transition-delay: 90ms; }
.tn-reveal[data-tn-delay="2"] { transition-delay: 180ms; }
.tn-reveal[data-tn-delay="3"] { transition-delay: 270ms; }
.tn-reveal[data-tn-delay="4"] { transition-delay: 360ms; }
.tn-reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .tn-landing *,
  .tn-landing *::before,
  .tn-landing *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .tn-reveal { opacity: 1; transform: none; }
  .tn-caret { display: none; }
}
