/*
 * TripRank UI — "telemetry cockpit" design system.
 * Loaded site-wide (see triprank_scripts()). Section components are scoped
 * under .tr-ui; the homepage wrapper is .tr-ui.tr-home.
 * Accent follows the Customizer pick via --ice / --ice-dim / --ice-glow.
 */

.tr-ui {
  --h-text: rgba(245, 242, 236, 0.80);
  --h-dim: rgba(245, 242, 236, 0.52);
  --h-line: rgba(255, 255, 255, 0.09);
  --h-card: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  --h-radius: 20px;
  --h-hot: var(--redline);
  overflow-x: clip;
}

.tr-ui .wrap { max-width: 1200px; }

/* ---------- Type scale ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9.2vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
}
.h-display .h-line { display: block; }
.h-display-sm { font-size: clamp(2.6rem, 7vw, 6rem); }
.h-accent {
  background: linear-gradient(95deg, var(--ice) 10%, var(--h-hot) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 0.35em;
}
.h-title-sm { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; margin: 0 0 0.4em; }
.h-lede {
  font-size: clamp(1.08rem, 0.4vw + 1rem, 1.3rem);
  line-height: 1.55;
  color: var(--h-text);
  max-width: 34em;
  margin: 0;
}
.h-eyebrow, .h-label, .h-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.h-eyebrow, .h-kicker { color: var(--ice); }
.h-label { color: var(--h-dim); font-size: 0.72rem; margin: 0; }
.h-note { color: var(--h-dim); font-size: 0.88rem; margin: 0; }
.h-note.mono { font-size: 0.74rem; letter-spacing: 0.04em; }
.h-dim { color: var(--h-dim); }

.h-big, .h-huge {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.h-big { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.h-huge { font-size: clamp(3rem, 5.4vw, 4.8rem); }
.h-big small, .h-huge small {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ice);
  margin-left: 6px;
}

/* ---------- Sections ---------- */
.h-sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.h-sec-tight { padding-top: 40px; }
.h-sec-band {
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, var(--ice-glow), transparent 70%),
    #0c0a08;
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
}
/* Diagonal speed streaks — the band texture */
.h-sec-band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,0.022) 46px 47px);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.h-sec-band > * { position: relative; }

.h-head { margin-bottom: clamp(40px, 5vw, 64px); }
.h-head-center { text-align: center; }
.h-head-center .h-lede { margin: 0 auto; }

.h-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.h-split .h-head { margin-bottom: 0; }
.h-split-rev { grid-template-columns: 1.1fr 1fr; }

.h-card {
  background: var(--h-card);
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 60px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

/* ---------- Reveal ---------- */
.js .tr-ui [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.js .tr-ui [data-reveal].is-in { opacity: 1; transform: none; }

/* ================= HERO ================= */
.h-hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.h-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.h-hero-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.07);
  animation: h-spin 120s linear infinite;
  transform-origin: 75% 58%;
}
.h-hero-rays {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 78% 55%, var(--ice-glow), transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 0%, rgba(232,146,26,0.06), transparent 70%),
    repeating-conic-gradient(from 0deg at 75% 58%, rgba(255,255,255,0.025) 0deg 0.6deg, transparent 0.6deg 7.5deg);
  mask-image: radial-gradient(circle at 75% 58%, #000 10%, transparent 62%);
}
@keyframes h-spin { to { transform: rotate(360deg); } }

.h-hero-inner { position: relative; }
.h-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.h-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 0 var(--ice);
  animation: h-pulse 1.8s ease-out infinite;
  display: inline-block;
}
@keyframes h-pulse {
  0% { box-shadow: 0 0 0 0 var(--ice-dim); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

.h-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(36px, 4vw, 56px);
}
.h-hero-copy .store-badges { margin-top: 32px; }
.h-hero-copy .store-badge { border-radius: 14px; padding: 12px 22px 12px 18px; }

.h-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 26px;
  font-size: 0.95rem;
  color: var(--h-dim);
}
.h-proof strong { color: var(--white); font-family: var(--font-display); font-size: 1.05rem; }
.h-stars { color: #F5B83D; letter-spacing: 2px; }
.h-sep { opacity: 0.5; }

/* Live dash card */
.h-hero-visual { position: relative; }
.h-dash {
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 60%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 22px 24px 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 80px var(--ice-glow), inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}
.h-dash-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; }
.h-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 99px;
  background: var(--ice-dim); color: var(--white);
}
.h-dash-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: center; margin: 18px 0; }
.h-speedo, .h-gmini { width: 100%; height: auto; display: block; }
.h-speedo circle { fill: none; stroke-width: 10; stroke-linecap: round; transform: rotate(135deg); transform-origin: 100px 100px; }
.h-speedo-track { stroke: rgba(255,255,255,0.08); stroke-dasharray: 75 100; }
.h-speedo-val { stroke: var(--ice); stroke-dasharray: 0 100; filter: drop-shadow(0 0 8px var(--ice)); }
.h-speedo-num { fill: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 46px; letter-spacing: -0.04em; }
.h-speedo-unit { fill: var(--h-dim); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; }
.h-gmini circle, .h-gmini line { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 1.2; }
.h-gmini .h-gmini-dot { fill: var(--ice); stroke: none; filter: drop-shadow(0 0 10px var(--ice)); }
.h-dash-foot {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--h-line); padding-top: 16px;
}
.h-dash-foot div { display: flex; flex-direction: column; gap: 2px; }
.h-dash-foot div + div { padding-left: 16px; border-left: 1px solid var(--h-line); }
.h-dash-foot small { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-dim); }
.h-dash-foot span { font-size: 1.6rem; font-weight: 600; color: var(--white); }
.h-dash-foot em { font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ice); margin-left: 3px; }
.h-dash-foot div { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.h-dash-foot small { flex-basis: 100%; }

/* Hero media (Customizer): phone frame for portrait, wide card for landscape */
.h-frame { position: relative; overflow: hidden; background: #111; }
.h-frame img { display: block; width: 100%; height: auto; }
.h-frame-phone {
  width: min(320px, 78%);
  margin: 0 auto;
  border-radius: 44px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 50px 120px rgba(0,0,0,0.6), 0 0 90px var(--ice-glow);
}
.h-frame-phone img { border-radius: 34px; }
.h-frame-wide {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 90px var(--ice-glow);
}
.h-frame-wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.h-frame-wide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,5,4,0.55));
  pointer-events: none;
}
.h-hero-visual .h-chip-a { left: -18px; }
.h-hero-visual .h-chip-b { right: -18px; }
.h-chip {
  position: absolute;
  display: flex; align-items: baseline; gap: 6px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(16,14,12,0.82);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  animation: h-float 6s ease-in-out infinite;
}
.h-chip span { font-size: 1.7rem; font-weight: 600; color: var(--white); }
.h-chip small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ice); letter-spacing: 0.1em; }
.h-chip-a { left: 0; top: 18%; }
.h-chip-b { right: 0; bottom: 20%; animation-delay: -3s; }
@keyframes h-float { 50% { transform: translateY(-10px); } }

/* ================= TICKER ================= */
.h-ticker {
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.h-ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: h-marquee 40s linear infinite;
}
.h-ticker span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--h-text);
  white-space: nowrap;
}
.h-ticker i { width: 7px; height: 7px; background: var(--ice); transform: rotate(45deg); flex: none; }
@keyframes h-marquee { to { transform: translateX(-50%); } }

/* ================= BENTO ================= */
.h-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.h-card-trace { grid-column: span 2; grid-row: span 3; display: flex; flex-direction: column; }
.h-card-score { grid-column: span 2; display: flex; align-items: center; gap: 24px; }
.h-card-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.h-card .h-huge { margin: 14px 0 12px; }
.h-card-hot {
  background:
    radial-gradient(circle at 100% 0%, var(--ice-dim), transparent 60%),
    var(--h-card);
  border-color: color-mix(in srgb, var(--ice) 35%, transparent);
}
.h-trace { width: 100%; height: auto; flex: 1; min-height: 180px; margin-top: 18px; overflow: visible; }
.h-trace-grid line { stroke: rgba(255,255,255,0.06); stroke-dasharray: 3 6; }
.h-trace-line {
  fill: none; stroke: var(--ice); stroke-width: 2.5; vector-effect: non-scaling-stroke;
  stroke-dasharray: 100; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px var(--ice));
}
.h-trace-peak { fill: var(--white); stroke: var(--ice); stroke-width: 3; vector-effect: non-scaling-stroke; }
.js .h-card-trace:not(.is-in) .h-trace-line { stroke-dashoffset: 100; }
.js .h-card-trace .h-trace-line { transition: stroke-dashoffset 2.2s cubic-bezier(.4,0,.2,1) 0.3s; }
.js .h-card-trace .h-trace-area, .js .h-card-trace .h-trace-peak { transition: opacity 0.8s ease 1.8s; }
.js .h-card-trace:not(.is-in) .h-trace-area, .js .h-card-trace:not(.is-in) .h-trace-peak { opacity: 0; }
.h-card-axis { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--h-dim); margin-top: 10px; }

.h-ring { width: 120px; height: 120px; flex: none; }
.h-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; }
.h-ring-track { stroke: rgba(255,255,255,0.08); }
.h-ring-val {
  stroke: var(--ice);
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--v));
  filter: drop-shadow(0 0 6px var(--ice));
  transition: stroke-dashoffset 1.6s cubic-bezier(.3,.7,.2,1) 0.2s;
}
.js .tr-ui [data-reveal]:not(.is-in) .h-ring-val { stroke-dashoffset: 100; }

/* ================= SPRINT ================= */
.h-replay {
  margin-top: 28px;
  font: 600 0.92rem var(--font-body);
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  padding: 11px 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.h-replay:hover { border-color: var(--ice); color: var(--ice); }
.h-sprint {
  background: var(--h-card);
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius);
  padding: clamp(24px, 3vw, 40px);
}
.h-lights { display: flex; gap: 12px; margin-bottom: 30px; }
.h-lights span {
  width: 28px; height: 28px; border-radius: 50%;
  background: #1d1916;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s, box-shadow 0.15s;
}
.h-lights span.on { background: #ff3b30; box-shadow: 0 0 18px rgba(255,59,48,0.8); }
.h-lights.go span { background: #31d158; box-shadow: 0 0 18px rgba(49,209,88,0.7); }
.h-lane + .h-lane { margin-top: 24px; }
.h-lane-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.h-lane-time { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; color: var(--white); }
.h-lane-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; }
.h-lane-bar i {
  display: block; height: 100%; width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ice-dark), var(--ice) 70%, var(--h-hot));
  box-shadow: 0 0 16px var(--ice);
  transform-origin: left;
}
.h-sprint .h-note { margin-top: 26px; }

/* ================= RADAR ================= */
.h-radar-wrap { position: relative; }
.h-radar { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto; touch-action: none; cursor: crosshair; }
.h-radar-grid circle, .h-radar-grid line { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 1; }
.h-radar-grid circle:nth-child(2) { stroke-dasharray: 3 5; }
.h-radar-labels text { fill: var(--h-dim); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-anchor: middle; }
.h-radar-trail { fill: none; stroke: var(--ice); stroke-opacity: 0.45; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-radar-dot { fill: var(--ice); stroke: var(--white); stroke-width: 2.5; filter: drop-shadow(0 0 14px var(--ice)); }
.h-radar-read {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 480px; margin: 26px auto 0;
  border-top: 1px solid var(--h-line); padding-top: 18px;
}
.h-radar-read div { display: flex; flex-direction: column; gap: 4px; }
.h-radar-read div + div { padding-left: 18px; border-left: 1px solid var(--h-line); }
.h-radar-read small { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-dim); }
.h-radar-read span { font-size: 1.5rem; font-weight: 600; color: var(--white); }
.h-radar-read span[data-radar-state] { font-family: var(--font-display); font-size: 1.15rem; color: var(--ice); line-height: 1.9; }
.h-hint { margin-top: 26px; color: var(--h-dim); font-size: 0.8rem; }

/* ================= SCORES / DNA ================= */
.h-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.h-score {
  background: var(--h-card);
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius);
  padding: 36px 30px;
  text-align: center;
}
.h-score-ring { position: relative; width: 150px; margin: 0 auto 22px; }
.h-score-ring svg { width: 100%; height: auto; display: block; }
.h-score-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; }
.h-score-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 3rem; letter-spacing: -0.04em;
}
.h-score h3 { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 8px; }
.h-score p { font-size: 1rem; color: var(--h-text); margin: 0 auto; max-width: 26ch; }

.h-dna {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--h-card);
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius);
  padding: clamp(28px, 4vw, 56px);
}
.h-dna-chart { width: 100%; max-width: 440px; justify-self: center; overflow: visible; }
.h-dna-grid polygon, .h-dna-grid line { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.h-dna-shape {
  fill: var(--ice-dim);
  stroke: var(--ice);
  stroke-width: 2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px var(--ice-dim));
  transform-origin: 110px 110px;
  transition: transform 1.2s cubic-bezier(.3,.8,.2,1.2) 0.3s;
}
.js .h-dna:not(.is-in) .h-dna-shape { transform: scale(0.1); }
.h-dna-labels text { fill: var(--h-dim); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; }

/* ================= DEVICES ================= */
.h-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.h-device h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 28px 0 8px; }
.h-device p { font-size: 1.05rem; color: var(--h-text); margin: 0; max-width: 40ch; }
.h-carplay {
  display: grid; grid-template-columns: 54px 1fr;
  aspect-ratio: 21 / 9;
  border-radius: 16px;
  background: #050505;
  border: 6px solid #1a1816;
  overflow: hidden;
}
.h-carplay-side { background: #121110; display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: center; }
.h-carplay-side i { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.08); }
.h-carplay-side i:first-child { background: var(--ice); }
.h-carplay-main { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.h-carplay-main div { text-align: center; }
.h-carplay-main div + div { border-left: 1px solid var(--h-line); }
.h-carplay-main span { display: block; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; color: var(--white); line-height: 1; }
.h-carplay-main small { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--ice); }
.h-watch { display: flex; justify-content: center; align-items: center; aspect-ratio: 21 / 9; }
.h-watch-face {
  height: 100%;
  aspect-ratio: 0.82;
  border-radius: 28%;
  background: #050505;
  border: 6px solid #1a1816;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.h-watch-face small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: #ff5a5f; }
.h-watch-face span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--white); line-height: 1.05; }
.h-watch-face svg { width: 72%; height: auto; }
.h-ecg {
  fill: none; stroke: #ff5a5f; stroke-width: 2; stroke-linejoin: round;
  stroke-dasharray: 60 40;
  animation: h-ecg 1.4s linear infinite;
}
@keyframes h-ecg { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* ================= PRIVACY ================= */
.h-privacy {
  position: relative;
  border-radius: 32px;
  padding: clamp(36px, 6vw, 88px) clamp(24px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--h-line);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, var(--ice-dim), transparent 70%),
    #0d0b09;
}
/* Concentric "shield" rings behind the heading */
.h-privacy::before {
  content: '';
  position: absolute;
  left: 50%; top: -260px;
  width: 760px; height: 760px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 38px, rgba(255,255,255,0.035) 38px 39px);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  pointer-events: none;
}
.h-privacy > * { position: relative; }
.h-privacy .h-title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.h-privacy .h-lede { margin: 0 auto; }

.h-seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 40px auto 0;
  padding: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--h-line);
}
.h-seg button {
  position: relative; z-index: 1;
  font: 600 0.98rem var(--font-body);
  color: var(--h-dim);
  background: none; border: 0;
  padding: 12px 26px;
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.25s;
}
.h-seg button[aria-pressed="true"] { color: var(--bg); }
.h-seg-thumb {
  position: absolute;
  top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 99px;
  background: var(--white);
  transform: translateX(calc(var(--i, 2) * 100%));
  transition: transform 0.35s cubic-bezier(.3,.8,.2,1);
}
.h-seg-out { min-height: 1.6em; margin: 20px 0 0; font-size: 1.1rem; color: var(--white); }

.h-notes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  text-align: left;
  border-top: 1px solid var(--h-line);
}
.h-noteitem { display: flex; gap: 14px; padding: 28px 22px 0; }
.h-noteitem + .h-noteitem { border-left: 1px solid var(--h-line); }
.h-noteitem svg {
  width: 40px; height: 40px; flex: none;
  padding: 9px;
  border-radius: 50%;
  border: 1px solid var(--h-line);
  background: rgba(255,255,255,0.03);
  fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.h-noteitem h3 { font-size: 1.02rem; margin: 2px 0 6px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.h-noteitem p { font-size: 0.95rem; color: var(--h-text); margin: 0; line-height: 1.5; }

/* ================= PLANS ================= */
.h-plan ul { list-style: none; padding: 0; margin: 8px 0 0; }
.h-plan li { padding: 12px 0 12px 30px; border-top: 1px solid var(--h-line); position: relative; font-size: 1.05rem; color: var(--h-text); }
.h-plan li::before {
  content: '';
  position: absolute; left: 4px; top: 19px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--ice); border-bottom: 2px solid var(--ice);
  transform: rotate(-45deg);
}
.h-plan-pro {
  border-color: color-mix(in srgb, var(--ice) 40%, transparent);
  background: radial-gradient(circle at 100% 0%, var(--ice-dim), transparent 55%), var(--h-card);
}
.h-plan-pro .h-huge { background: linear-gradient(95deg, var(--ice), var(--h-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-center-link { text-align: center; margin-top: 36px; }
.h-center-link a { font-weight: 600; color: var(--ice); font-size: 1.05rem; }
.h-center-link a:hover { text-decoration: underline; }

/* Journal strip sits a little looser on the new page */
.tr-home .home-journal { padding-top: 96px; }
.tr-home .home-journal-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; }

/* ================= FINAL CTA ================= */
.h-final {
  position: relative;
  padding: clamp(100px, 13vw, 180px) 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, var(--ice-dim), transparent 70%);
}
.h-final::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(58deg) translateY(30%);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000, transparent 75%);
  pointer-events: none;
}
.h-final .wrap { position: relative; }
.h-final .h-lede { margin: 28px auto 0; }
.h-final .store-badges { justify-content: center; margin-top: 36px; }
.h-final .store-badge { border-radius: 14px; }

/* ================= PAGE HERO (all inner pages) ================= */
.p-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); }
.p-hero-md { padding-bottom: clamp(32px, 4vw, 56px); }
.p-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 60% at 82% 40%, var(--ice-glow), transparent 70%),
    repeating-conic-gradient(from 0deg at 82% 40%, rgba(255,255,255,0.022) 0deg 0.6deg, transparent 0.6deg 7.5deg),
    repeating-radial-gradient(circle at 82% 40%, transparent 0 79px, rgba(255,255,255,0.04) 79px 80px);
  mask-image: radial-gradient(circle at 82% 40%, #000 8%, transparent 60%);
}
.p-hero-inner { position: relative; }
.p-hero.has-visual .p-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.p-hero .h-display { font-size: clamp(2.8rem, 7.4vw, 6.6rem); }
.p-hero-md .h-display { font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.p-hero.has-visual .h-display { font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
.p-hero .h-lede { margin-top: 26px; }
.p-hero .store-badges { margin-top: 32px; }
.p-media {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 80px var(--ice-glow);
}
.p-media img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }

/* ================= FEATURES ================= */
.f-group-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.f-group-head { position: sticky; top: 110px; }
.f-num {
  display: block;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  background: linear-gradient(180deg, var(--ice), transparent 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.f-items { display: grid; gap: 16px; }
.f-item h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.f-item p { font-size: 1.08rem; color: var(--h-text); margin: 0; }
.f-item::before {
  content: '';
  position: absolute; left: 0; top: 28px; bottom: 28px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--ice), var(--h-hot));
  opacity: 0; transition: opacity 0.25s ease;
}
.f-item:hover::before { opacity: 1; }

/* ================= DOWNLOAD STEPS ================= */
.p-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.p-step-num {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ice), var(--ice-dark));
  box-shadow: 0 10px 30px var(--ice-dim);
  margin-bottom: 22px;
}
.p-steps h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.p-steps p { font-size: 1.05rem; color: var(--h-text); margin: 0; }

/* ================= SUPPORT FAQ ================= */
.p-faq-sec { padding: 8px 0 clamp(72px, 9vw, 120px); }
.p-faq-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.p-faq { display: grid; gap: 10px; }
.p-faq-item {
  border: 1px solid var(--h-line);
  border-radius: 18px;
  background: var(--h-card);
  transition: border-color 0.25s ease;
}
.p-faq-item[open] { border-color: color-mix(in srgb, var(--ice) 45%, transparent); }
.p-faq-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  cursor: pointer;
}
.p-faq-item summary::-webkit-details-marker { display: none; }
.p-faq-num { font-size: 0.8rem; color: var(--ice); }
.p-faq-q { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--white); line-height: 1.3; }
.p-faq-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--h-line); }
.p-faq-icon::before, .p-faq-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.8px; background: var(--white);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.p-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.p-faq-item[open] .p-faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.p-faq-item > p { padding: 0 24px 24px 64px; margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--h-text); }
.p-faq-item a { color: var(--ice); }
.p-faq-item strong { color: var(--white); }
.p-contact { position: sticky; top: 110px; }
.p-contact p { font-size: 1.02rem; color: var(--h-text); }
.p-contact .btn { margin-top: 10px; }

/* ================= 404 ================= */
.p-404-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-bottom: 120px; }
.p-404-actions .search-form { flex: 1 1 320px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .h-bento { grid-template-columns: repeat(2, 1fr); }
  .h-card-trace { grid-row: auto; }
  .h-hero-visual .h-chip-a { left: 8px; }
  .h-hero-visual .h-chip-b { right: 8px; }
  .h-notes { grid-template-columns: 1fr 1fr; }
  .h-noteitem:nth-child(3) { border-left: 0; }
  .h-noteitem { padding-bottom: 24px; }
}
@media (max-width: 880px) {
  .h-hero-grid, .h-split, .h-split-rev, .h-dna, .h-duo,
  .p-hero.has-visual .p-hero-inner, .f-group-grid, .p-steps, .p-faq-wrap { grid-template-columns: 1fr; }
  .f-group-head, .p-contact { position: static; }
  .h-split-rev .h-radar-wrap { order: 2; }
  .h-scores { grid-template-columns: 1fr; }
  .h-dna-copy { text-align: center; }
  .h-dna-copy .h-lede { margin: 0 auto; }
}
@media (max-width: 600px) {
  .tr-ui .wrap { padding: 0 16px; }
  .h-bento { grid-template-columns: 1fr; }
  .h-card-trace, .h-card-score { grid-column: auto; grid-row: auto; }
  .h-notes { grid-template-columns: 1fr; }
  .h-noteitem + .h-noteitem { border-left: 0; }
  .h-seg button { padding: 11px 16px; font-size: 0.9rem; }
  .p-faq-item summary { padding: 18px; gap: 12px; }
  .p-faq-item > p { padding: 0 18px 20px; }
  .h-dash-body { grid-template-columns: 1fr 1fr; }
  .h-dash-foot span { font-size: 1.25rem; }
  .h-chip span { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .h-hero-arcs, .h-ticker-track, .h-chip, .h-live-dot, .h-ecg { animation: none !important; }
  .js .tr-ui [data-reveal] { opacity: 1; transform: none; }
}
