/* ==========================================================================
   Tesso v2 — design system + page styles
   Palette: "dusk to dawn". Motion: expo-out entrances, in-out wipes.
   ========================================================================== */

:root {
  /* tasteskill palette */
  --night: #140a05;
  --night-2: #1d0f08;
  --night-3: #2a1309;
  --rust: #7a2306;
  --orange: #ff5b14;
  --orange-hot: #ff7a2e;
  --peach: #ffc9a3;
  --peach-2: #ffe3cf;
  --cream: #f8f4ee;
  --sunk: #f1ebe2;
  --paper: #ffffff;

  --ink: #1a0e08;
  --text: #1a0e08;
  --text-2: rgba(26, 14, 8, 0.66);
  --text-3: rgba(26, 14, 8, 0.52);
  --hair: rgba(20, 10, 5, 0.07);
  --hair-2: rgba(20, 10, 5, 0.12);
  --label: #c2410c;
  --good: #23764d;
  --good-bg: #e5f2ea;
  --bad: #b8321c;
  --bad-bg: #fbe8e3;

  --on-dark: #f8f4ee;
  --on-dark-2: rgba(248, 244, 238, 0.68);
  --on-dark-3: rgba(248, 244, 238, 0.46);
  --hair-dark: rgba(248, 244, 238, 0.09);

  --ring: 0 0 0 1px rgba(20, 10, 5, 0.06);
  --shadow-card: var(--ring), 0 1px 2px rgba(20, 10, 5, 0.04), 0 18px 40px -28px rgba(80, 30, 5, 0.25);
  --shadow-lift: 0 0 0 1px rgba(20, 10, 5, 0.08), 0 1px 2px rgba(20, 10, 5, 0.05), 0 24px 44px -26px rgba(80, 30, 5, 0.34);
  --shadow-float: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -30px rgba(20, 10, 5, 0.6);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-enter: 0.9s;
  --t-stagger: 70ms;
  --rise: 28px;

  --w: 1120px;
  --w-narrow: 760px;
  --gutter: 24px;
  --r-card: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --r-card: 22px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--orange); color: var(--night); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - var(--gutter) * 2, var(--w)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, var(--w-narrow)); margin-inline: auto; }

.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--label); }
.on-dark .eyebrow { color: var(--orange); }

.h-display {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; margin: 0;
}
.h-section {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 0;
  text-wrap: balance;
}
.h-card { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--text-2); margin: 0; text-wrap: pretty; }
.on-dark .lede { color: var(--on-dark-2); }
.body-2 { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 0; text-wrap: pretty; }
.on-dark .body-2 { color: var(--on-dark-2); }
.muted { color: var(--text-3); }

.section-head { display: grid; gap: 18px; justify-items: center; text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lede { max-width: 620px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 500; font-size: 16px; letter-spacing: 0; white-space: nowrap;
  transition: transform 0.2s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart), background-color 0.3s;
  overflow: hidden;
}
.btn::after { /* soft sheen */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 140% at 50% -20%, rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0.8; transition: opacity 0.3s;
}
.btn .arr { transition: transform 0.35s var(--ease-out-expo); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-primary { --bg: var(--cream); --fg: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 24px -12px rgba(20, 10, 5, 0.5); }
.btn-primary:hover { --bg: #fff; }
.btn-primary::after, .btn-ink::after { opacity: 0; }
.nav.on-light .btn-primary, .on-paper .btn-primary { --bg: var(--ink); --fg: var(--cream); box-shadow: none; }
.btn-ghost-dark { --bg: rgba(255, 255, 255, 0.06); --fg: var(--on-dark); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost-dark:hover { --bg: rgba(255, 255, 255, 0.11); }
.btn-ghost-dark::after { opacity: 0; }
.btn-ink:hover { --bg: #2a1810; }
.btn-paper { --bg: var(--paper); --fg: var(--ink); box-shadow: var(--shadow-card); }
.btn-paper::after { opacity: 0; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }

.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size 0.4s var(--ease-out-expo); }
.link-u:hover { background-size: 100% 1px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.logo-mark { width: 22px; height: 22px; }
.logo-mark rect { transition: transform 0.6s var(--ease-out-expo); transform-box: fill-box; transform-origin: center; }
.logo:hover .logo-mark .t4 { transform: rotate(90deg); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  translate: -50% 0;
  width: min(100% - 28px, 860px);
  height: 58px; padding: 0 8px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px;
  color: var(--on-dark);
  transition: translate 0.36s var(--ease-out-expo), color 0.35s;
}
.nav::before, .nav::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transition: opacity 0.4s var(--ease-out-quart);
}
.nav::before {
  background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), rgba(20, 10, 5, 0.38);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav::after {
  opacity: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(20, 21, 43, 0.07), 0 10px 30px -16px rgba(42, 24, 60, 0.35);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.nav.on-light { color: var(--ink); }
.nav.on-light::before { opacity: 0; }
.nav.on-light::after { opacity: 1; }
.nav[data-tucked="true"] { translate: -50% calc(-100% - 30px); transition: translate 0.28s var(--ease-in-out), color 0.35s; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 480;
  opacity: 0.78; transition: opacity 0.2s, background-color 0.2s;
}
.nav-links a:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.nav.on-light .nav-links a:hover { background: rgba(20, 21, 43, 0.05); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-signin { padding: 8px 12px; font-size: 14.5px; opacity: 0.78; transition: opacity 0.2s; }
.nav-signin:hover { opacity: 1; }
.nav .btn-sm { height: 42px; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 999px; place-items: center; background: rgba(255, 255, 255, 0.08); }
.nav.on-light .nav-burger { background: rgba(20, 21, 43, 0.06); }
.nav-burger span { position: relative; display: block; width: 16px; height: 1.5px; background: currentColor; transition: background-color 0.2s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease-out-expo), top 0.35s var(--ease-out-expo); }
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }
.nav.menu-open .nav-burger span { background: transparent; }
.nav.menu-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav.menu-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  padding: 8px; border-radius: 22px; background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-lift);
  opacity: 0; translate: 0 -8px; scale: 0.98; pointer-events: none; transform-origin: top center;
  transition: opacity 0.25s var(--ease-out-quart), translate 0.4s var(--ease-out-expo), scale 0.4s var(--ease-out-expo);
}
.nav.menu-open .nav-menu { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.nav-menu a { display: flex; justify-content: space-between; padding: 14px 14px; border-radius: 14px; font-size: 17px; font-weight: 500; }
.nav-menu a:hover { background: var(--cream); }
.nav-menu .btn { width: 100%; margin-top: 6px; height: 50px; justify-content: center; }


@media (max-width: 820px) {
  .nav { padding-left: 16px; }
  .nav-links, .nav-signin { display: none; }
  .nav-burger { display: grid; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; color: var(--on-dark); isolation: isolate; }
.hero-sky {
  position: absolute; inset: 0 0 auto 0; height: 1500px; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #170b06 0%, #1d0e07 14%, #2e1209 26%, #5a1d08 36%, #9a300b 44%, #d9480f 51%, #ff6a24 57%, #ff9459 63%, #ffc9a3 71%, #f7e6d6 80%, var(--cream) 90%);
}
.hero-sky::after { /* grain */
  content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 160px; opacity: 0.09; mix-blend-mode: overlay;
}

.hero-sun {
  position: absolute; left: 50%; top: 560px; width: 1500px; height: 900px; translate: -50% 0;
  pointer-events: none;
}
.hero-sun-core {
  position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 190, 140, 0.8), rgba(255, 110, 40, 0.42) 38%, rgba(194, 65, 12, 0.16) 62%, transparent 72%);
  filter: blur(10px);
}
.hero-sun-core::after {
  content: ""; position: absolute; left: 30%; top: 20%; width: 40%; height: 50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 232, 190, 0.7), transparent);
  filter: blur(20px);
}
.hero-veil { position: absolute; inset: 0; background: var(--night); z-index: 2; pointer-events: none; opacity: 0; }

.hero-top { position: relative; padding: 168px 0 0; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 13.5px; color: var(--on-dark-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.25s;
}
.hero-pill:hover { background: rgba(255, 255, 255, 0.1); }
.hero-pill b { font-weight: 550; color: var(--on-dark); }

.hero h1 { margin: 26px auto 0; }
.hero-line { display: block; }
.hero-word { display: inline-block; overflow: hidden; padding: 0.06em 0.04em 0.12em; margin: -0.06em -0.04em -0.12em; vertical-align: top; }
.hero-word > span { display: inline-block; }
.hero-accent { color: var(--peach); }
.hero-copy { margin: 26px auto 0; max-width: 600px; }
.hero-copy p { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: rgba(248, 244, 238, 0.78); margin: 0; text-wrap: balance; }
.hero-copy p b { color: var(--on-dark); font-weight: 520; }
.hero-actions { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--on-dark-3); }

/* hero load choreography */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-veil { animation: hero-veil 1.1s var(--ease-out-quart) backwards; }
  html.js .hero-sun { animation: hero-sunrise 1.6s var(--ease-out-expo) backwards; }
  html.js .hero-pill { animation: hero-rise-pill 0.7s var(--ease-out-expo) 60ms backwards; }
  html.js .hero-word > span { transform-origin: 0 100%; animation: hero-word 1s var(--ease-out-expo) backwards; animation-delay: calc(0.14s + var(--w) * 45ms + var(--l) * 60ms); }
  html.js .hero-copy { animation: hero-rise 0.8s var(--ease-out-expo) 0.5s backwards; }
  html.js .hero-actions > * { animation: hero-rise 0.8s var(--ease-out-expo) 0.6s backwards; }
  html.js .hero-actions > :nth-child(2) { animation-delay: 0.67s; }
  html.js .hero-note { animation: hero-rise 0.8s var(--ease-out-expo) 0.74s backwards; }
  html.js .show { animation: show-arrive 1.3s var(--ease-out-expo) 0.35s backwards; }
  html.js .hero-sun-core { animation: hero-breathe 16s ease-in-out 1.6s infinite alternate; }
  html.js .hero-sun-core::after { animation: hero-ember 22s ease-in-out 1.6s infinite alternate; }
  html.js .hero[data-asleep] .hero-sun-core, html.js .hero[data-asleep] .hero-sun-core::after { animation-play-state: paused; }
}
@keyframes hero-veil { from { opacity: 1; } to { opacity: 0; } }
@keyframes hero-sunrise { from { opacity: 0.15; translate: -50% 36%; scale: 0.76; } }
@keyframes hero-rise-pill { from { opacity: 0; translate: 0 14px; scale: 0.94; } }
@keyframes hero-word { from { translate: 0 112%; rotate: 7deg; } }
@keyframes hero-rise { from { opacity: 0; translate: 0 18px; } }
@keyframes show-arrive { from { opacity: 0; translate: 0 120px; } }
@keyframes hero-breathe { to { opacity: 0.86; translate: 2.5% -4%; scale: 1.08; } }
@keyframes hero-ember { 50% { translate: -14% -8%; scale: 1.12; } to { translate: 14% 2%; scale: 0.94; } }

/* ==========================================================================
   SHOWCASE (3D chat frame with scenes)
   ========================================================================== */
.show { position: relative; margin: 72px auto 0; width: min(100% - var(--gutter) * 2, 1120px); perspective: 1300px; perspective-origin: 50% 0; }
.show-tabs-wrap { display: flex; justify-content: center; margin-bottom: 22px; }
.show-tabs {
  position: relative; display: inline-flex; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 10px 30px -18px rgba(60, 20, 30, 0.5);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.show-tabs::-webkit-scrollbar { display: none; }
.show-tab {
  position: relative; z-index: 1; flex: none; height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.9); white-space: nowrap;
  transition: color 0.3s;
}
.show-tab[aria-selected="true"] { color: var(--ink); }
.show-tab .bar { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(20, 21, 43, 0.1); overflow: hidden; opacity: 0; transition: opacity 0.3s; }
.show-tab[aria-selected="true"] .bar { opacity: 1; }
.show-tab .bar i { display: none; }
.show-tabs-chip { position: absolute; inset: 5px; z-index: 0; pointer-events: none; border-radius: 999px;
  background: var(--paper); box-shadow: 0 2px 8px -2px rgba(20, 21, 43, 0.25);
  clip-path: inset(0 var(--cr, 100%) 0 var(--cl, 0) round 999px);
  transition: clip-path 0.55s var(--ease-out-expo);
}

.show-frame {
  position: relative; border-radius: 22px; overflow: hidden;
  background: var(--night-2);
  box-shadow: var(--shadow-float), 0 60px 120px -40px rgba(122, 35, 6, 0.45);
  transform-origin: 50% 0;
  will-change: transform;
}
html.js .show-frame { transform: translateY(40px) rotateX(24deg) scale(0.86); }
.show-chrome { height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--hair-dark); color: var(--on-dark-2); font-size: 13px; }
.show-dots { display: flex; gap: 7px; }
.show-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.show-dots i:nth-child(1) { background: #ff6159; } .show-dots i:nth-child(2) { background: #ffbd2e; } .show-dots i:nth-child(3) { background: #28c941; }
.show-title { flex: 1; text-align: center; font-weight: 500; color: var(--on-dark); }
.show-conn { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(40, 201, 120, 0.1); color: #7fe3b0; font-size: 12px; font-weight: 500; }
.show-conn i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; }

.show-body { display: grid; grid-template-columns: 1fr 290px; height: 560px; }
.show-stage { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 50% 120%, rgba(255, 140, 90, 0.08), transparent 60%), var(--night-2); }
.shot { position: absolute; inset: 0; padding: 30px 40px 96px; display: flex; flex-direction: column; gap: 16px; visibility: hidden; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 120%, rgba(255, 140, 90, 0.08), transparent 60%), var(--night-2); }
.shot[data-state="on"], .shot[data-state="off"] { visibility: visible; }
.shot[data-state="on"] { z-index: 2; }
.shot[data-state="off"] { z-index: 1; }
.shot::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .shot[data-turned][data-state="on"] { animation: shot-wipe-next 0.82s var(--ease-in-out) backwards; }
  .show-stage[data-dir="back"] .shot[data-turned][data-state="on"] { animation-name: shot-wipe-back; }
  .shot[data-turned][data-state="on"] .shot-inner { animation: shot-settle-next 1.1s var(--ease-out-expo) backwards; }
  .show-stage[data-dir="back"] .shot[data-turned][data-state="on"] .shot-inner { animation-name: shot-settle-back; }
  .shot[data-turned][data-state="off"] { animation: shot-recede-next 0.82s var(--ease-in-out) both; }
  .show-stage[data-dir="back"] .shot[data-turned][data-state="off"] { animation-name: shot-recede-back; }
  .shot[data-turned][data-state="off"]::after { animation: shot-dim 0.82s var(--ease-in-out) both; }
}
@keyframes shot-wipe-next { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes shot-wipe-back { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes shot-settle-next { from { translate: 12% 0; scale: 1.06; } }
@keyframes shot-settle-back { from { translate: -12% 0; scale: 1.06; } }
@keyframes shot-recede-next { to { clip-path: inset(0 round 18px); translate: -7% 0; scale: 0.9; } }
@keyframes shot-recede-back { to { clip-path: inset(0 round 18px); translate: 7% 0; scale: 0.9; } }
@keyframes shot-dim { to { opacity: 0.6; } }
.shot-inner { display: flex; flex-direction: column; gap: 14px; max-width: 640px; width: 100%; margin: 0 auto; }

/* chat atoms */
.msg-user { align-self: flex-end; max-width: 80%; padding: 11px 16px; border-radius: 18px 18px 6px 18px; background: rgba(255, 255, 255, 0.09); color: var(--on-dark); font-size: 15px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.msg-tool { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; font-size: 13px; color: var(--on-dark-3); }
.msg-tool .tick { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 201, 163, 0.14); color: var(--peach); }
.msg-tool .tick svg { width: 11px; height: 11px; }
.msg-tool b { color: var(--on-dark-2); font-weight: 500; }
.msg-ai { color: var(--on-dark); font-size: 15.5px; line-height: 1.55; max-width: 95%; }
.msg-ai p { margin: 0 0 12px; }
.msg-ai em { font-style: normal; color: var(--peach); }
.hl-good { color: #7fe3b0; }
.hl-bad { color: #ff9a8a; }

.w-card { border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--hair-dark); padding: 14px 16px; }
.w-rows { display: grid; gap: 10px; }
.w-row { display: grid; grid-template-columns: 150px 1fr 52px; align-items: center; gap: 12px; font-size: 13px; }
.w-row .h { color: var(--on-dark-2); display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-track { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.w-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; width: var(--v); background: var(--orange-hot); transform-origin: 0 50%; }
.w-track.low i { background: rgba(248, 244, 238, 0.28); }
.w-track .usual { position: absolute; left: 33%; top: -5px; bottom: -5px; width: 1px; background: rgba(255, 255, 255, 0.4); }
.w-row .x { text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--on-dark); }
.w-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--on-dark-3); }

.plat { width: 16px; height: 16px; flex: none; border-radius: 5px; display: grid; place-items: center; }
.plat svg { width: 10px; height: 10px; }
.plat.tt { background: #111; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.plat.ig { background: linear-gradient(135deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%); color: #fff; }

.rival-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rival { border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--hair-dark); padding: 12px; display: grid; grid-template-columns: 54px 1fr; gap: 12px; }
.thumb { width: 54px; height: 72px; border-radius: 8px; position: relative; overflow: hidden; }
.thumb::after { content: "▶"; position: absolute; left: 6px; bottom: 4px; font-size: 9px; color: rgba(255, 255, 255, 0.85); }
.thumb.a { background: linear-gradient(160deg, #8a4a2a, #4a1c0a 60%, #2a1309); }
.thumb.b { background: linear-gradient(160deg, #ffc9a3, #e8500e 55%, #7a2306); }
.thumb.c { background: linear-gradient(160deg, #f3e2cf, #c9a37f 55%, #6b4a33); }
.rival .who { font-size: 12.5px; color: var(--on-dark-3); display: flex; gap: 6px; align-items: center; }
.rival .fmt { font-size: 14px; color: var(--on-dark); font-weight: 500; margin-top: 3px; line-height: 1.3; }
.rival .x { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(255, 201, 163, 0.14); color: var(--peach); font-family: var(--mono); font-size: 11.5px; }

.brief { border-radius: 16px; padding: 16px 18px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(255, 201, 163, 0.22); }
.brief-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--on-dark-3); }
.brief-top span:last-child { display: inline-flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0; font-family: var(--sans); color: var(--on-dark-2); }
.brief h4 { margin: 10px 0 12px; font-size: 18px; line-height: 1.3; font-weight: 550; letter-spacing: -0.015em; color: var(--on-dark); }
.why { display: grid; gap: 7px; }
.why div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 13.5px; color: var(--on-dark-2); }
.src { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.src.n { background: rgba(127, 227, 176, 0.12); color: #a9e8c6; }
.src.r { background: rgba(255, 201, 163, 0.14); color: var(--peach); }
.src.u { background: rgba(255, 91, 20, 0.18); color: #ffb18a; }

.hooks { display: grid; gap: 8px; }
.hook { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--hair-dark); font-size: 14.5px; color: var(--on-dark); line-height: 1.4; }
.hook .n { font-family: var(--mono); font-size: 12px; color: var(--on-dark-3); padding-top: 2px; }
.hook .tag { font-size: 11px; height: 22px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; background: rgba(255, 255, 255, 0.06); color: var(--on-dark-2); white-space: nowrap; }

.show-ask { position: absolute; left: 40px; right: 40px; bottom: 22px; z-index: 5; max-width: 640px; margin: 0 auto; height: 52px; border-radius: 16px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--on-dark-3); font-size: 14.5px; }
.show-ask > span:first-child { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-ask .send { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--cream); color: var(--ink); }

/* context side panel */
.show-side { border-left: 1px solid var(--hair-dark); padding: 22px 18px; display: flex; flex-direction: column; gap: 20px; background: rgba(0, 0, 0, 0.12); }
.side-h { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 500; color: var(--on-dark-3); margin-bottom: 8px; }
.side-group { border-radius: 14px; padding: 10px; margin: -10px; transition: background-color 0.5s var(--ease-out-quart), box-shadow 0.5s var(--ease-out-quart); }
.side-group.is-used { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 201, 163, 0.2); }
.side-group.is-used .side-h { color: var(--peach); }
.side-list { display: grid; gap: 7px; font-size: 13px; color: var(--on-dark-2); }
.side-list > div { display: flex; align-items: center; gap: 8px; }
.side-list .x { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-3); }
.side-rule { display: flex; gap: 8px; align-items: flex-start; }
.side-rule::before { content: ""; width: 5px; height: 5px; margin-top: 7px; flex: none; border-radius: 1px; background: var(--orange); }

@media (max-width: 960px) {
  .show-body { grid-template-columns: 1fr; height: 600px; }
  .show-side { display: none; }
}
@media (max-width: 760px) {
  .show { margin-top: 48px; }
  html.js .show-frame { transform: translateY(18px) rotateX(12deg) scale(0.95); }
  @media (prefers-reduced-motion: no-preference) { html.js .show { animation-name: show-arrive-short; } }
  .show-tabs-wrap { justify-content: flex-start; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .show-tabs-wrap::-webkit-scrollbar { display: none; }
  .show-tabs { overflow: visible; }
  .show-body { height: 590px; }
  .shot { padding: 20px 16px 84px; }
  .show-ask { left: 14px; right: 14px; bottom: 14px; }
  .show-title { font-size: 12.5px; }
  .show-conn { display: none; }
  .w-row { grid-template-columns: 116px 1fr 44px; gap: 10px; font-size: 12px; }
  .rival-grid { grid-template-columns: 1fr; }
  .rival-grid .rival:nth-child(n+3) { display: none; }
  .why div { grid-template-columns: 84px 1fr; font-size: 13px; }
  .hook { grid-template-columns: 20px 1fr; }
  .hook .tag { grid-column: 2; justify-self: start; }
  .msg-ai { font-size: 14.5px; }
}
@keyframes show-arrive-short { from { opacity: 0; translate: 0 48px; } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
main > section:not(.hero):not(.p-hero) { position: relative; z-index: 1; }
.section { padding: clamp(96px, 12vw, 160px) 0 0; }

/* ---- Tabs problem section ---- */
.tabs-story { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.tabs-story .copy { display: grid; gap: 20px; }
.tabs-board {
  position: relative; border-radius: var(--r-card); padding: 28px; min-height: 470px;
  background: linear-gradient(180deg, #fff, #fbf8f3); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.corner-marks::before, .corner-marks::after { content: ""; position: absolute; inset: 14px; pointer-events: none; z-index: 3;
  background:
    linear-gradient(var(--cm, rgba(20, 21, 43, 0.18)), var(--cm, rgba(20, 21, 43, 0.18))) 0 0 / 12px 1px no-repeat,
    linear-gradient(var(--cm, rgba(20, 21, 43, 0.18)), var(--cm, rgba(20, 21, 43, 0.18))) 0 0 / 1px 12px no-repeat,
    linear-gradient(var(--cm, rgba(20, 21, 43, 0.18)), var(--cm, rgba(20, 21, 43, 0.18))) 100% 0 / 12px 1px no-repeat,
    linear-gradient(var(--cm, rgba(20, 21, 43, 0.18)), var(--cm, rgba(20, 21, 43, 0.18))) 100% 0 / 1px 12px no-repeat,
    linear-gradient(var(--cm, rgba(20, 21, 43, 0.18)), var(--cm, rgba(20, 21, 43, 0.18))) 0 100% / 12px 1px no-repeat,
    linear-gradient(var(--cm, rgba(20, 21, 43, 0.18)), var(--cm, rgba(20, 21, 43, 0.18))) 0 100% / 1px 12px no-repeat,
    linear-gradient(var(--cm, rgba(20, 21, 43, 0.18)), var(--cm, rgba(20, 21, 43, 0.18))) 100% 100% / 12px 1px no-repeat,
    linear-gradient(var(--cm, rgba(20, 21, 43, 0.18)), var(--cm, rgba(20, 21, 43, 0.18))) 100% 100% / 1px 12px no-repeat;
}
.corner-marks::after { display: none; }
.tab-pile { position: relative; display: grid; gap: 10px; }
.tchip { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border-radius: 14px; background: var(--paper); box-shadow: var(--ring), 0 6px 18px -12px rgba(42, 24, 60, 0.35); font-size: 15px; font-weight: 500; }
.tchip .fav { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.fav-sheet { background: #e5f2ea; color: #23764d; } .fav-saved { background: #fff0e6; color: var(--label); } .fav-doc { background: #e8eef9; color: #2f5fb3; } .fav-chat { background: var(--sunk); color: var(--text-2); }
.tchip .close { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); background: var(--cream); }
.tchip .sub { color: var(--text-3); font-weight: 400; font-size: 13.5px; }
.tchip .strike { position: relative; }
.tchip .strike::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 1.5px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--s, 0)); }
.ask-card {
  position: absolute; left: 28px; right: 28px; bottom: 28px;
  border-radius: 20px; padding: 20px; background: var(--night-2); color: var(--on-dark);
  box-shadow: 0 30px 60px -24px rgba(20, 10, 5, 0.6);
}
.ask-q { display: inline-block; padding: 9px 14px; border-radius: 14px 14px 4px 14px; background: rgba(255, 255, 255, 0.09); font-size: 15px; margin-left: auto; }
.ask-row { display: flex; }
.ask-a { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--on-dark); }
.ask-src { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.tchip .strike { white-space: nowrap; }
@media (max-width: 480px) { .tchip .sub { display: none; } }
@media (max-width: 900px) {
  .tabs-story { grid-template-columns: 1fr; }
  .tabs-board { min-height: 500px; padding: 18px; }
  .ask-card { left: 18px; right: 18px; bottom: 18px; }
}

/* ---- "Watches" feature cards ---- */
.feats { display: grid; gap: 18px; }
.feat {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
  border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-card); overflow: hidden; min-height: 480px;
}
.feat.flip { grid-template-columns: 1fr 1.1fr; }
.feat.flip .feat-art { order: 2; }
.feat-art { position: relative; overflow: hidden; display: grid; place-items: center; padding: 48px 40px; isolation: isolate; }
.feat-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); background-size: 160px; opacity: 0.08; mix-blend-mode: multiply; }
.feat-art.is-peach { background: radial-gradient(90% 80% at 50% 115%, #ffb07a, transparent 70%), linear-gradient(180deg, #fff3e8, #ffd7bd); }
.feat-art.is-dark, .feat-art.is-night { background: radial-gradient(70% 60% at 50% 118%, rgba(255, 91, 20, 0.6), transparent 70%), linear-gradient(180deg, #2a1309, #140a05); }
.feat-art.is-dark::before { mix-blend-mode: overlay; opacity: 0.12; }
.feat-copy { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.feat-copy .h-card { max-width: 380px; }
.feat-copy .body-2 { max-width: 400px; }
.feat-points { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.feat-points li { display: flex; gap: 10px; align-items: flex-start; }
.feat-points li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; flex: none; border-radius: 5px; background: var(--good-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%231f8a5b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.mock { width: 100%; max-width: 420px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-lift); overflow: hidden; font-size: 13px; }
.mock-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--hair); color: var(--text-3); font-size: 12.5px; }
.mock-h b { color: var(--ink); font-weight: 550; }
.mock-b { padding: 16px; }
.mock-f { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--text-3); background: #fcfaf7; }

/* pages chart */
.chart { position: relative; height: 170px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; padding-top: 26px; }
.chart .b { position: relative; height: var(--h); border-radius: 7px 7px 3px 3px; background: #ece5da; transform-origin: 50% 100%; }
.chart .b.hot { background: var(--orange); }
.chart .b.cold { background: #f3d6cf; }
.chart .tip { position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; padding: 4px 8px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 550; white-space: nowrap; }
.chart .tip::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 4px solid transparent; border-top-color: var(--ink); }
.chart .avg { position: absolute; left: 0; right: 0; bottom: 34%; height: 0; border-top: 1.5px dashed rgba(20, 21, 43, 0.35); transform-origin: 0 50%; }
.chart .avg span { position: absolute; right: 0; bottom: 4px; font-size: 11px; color: var(--text-3); background: var(--paper); padding: 0 4px; }
.chart-x { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 8px; font-size: 11px; color: var(--text-3); text-align: center; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--hair); }
.kpi { padding: 12px 16px; }
.kpi + .kpi { border-left: 1px solid var(--hair); }
.kpi .l { font-size: 11.5px; color: var(--text-3); }
.kpi .v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.kpi .d { font-size: 11.5px; color: var(--good); font-weight: 500; }

/* rivals feed */
.feed { display: grid; }
.feed-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--hair); }
.feed-row:last-child { border-bottom: 0; }
.feed-row .thumb { width: 40px; height: 54px; border-radius: 7px; }
.feed-row .t { font-weight: 500; color: var(--ink); font-size: 13.5px; line-height: 1.3; }
.feed-row .s { font-size: 12px; color: var(--text-3); display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.mult { font-family: var(--mono); font-size: 12px; height: 24px; padding: 0 8px; border-radius: 7px; display: inline-flex; align-items: center; background: var(--sunk); color: var(--text-2); }
.mult.hit { background: #fff0e6; color: var(--label); box-shadow: inset 0 0 0 1px rgba(255, 91, 20, 0.3); }
.hit-flag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }

/* rules doc */
.rules { display: grid; gap: 2px; }
.rule { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 9px 4px; font-size: 13.5px; color: var(--ink); }
.rule .ck { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--good-bg); color: var(--good); }
.rule .ck svg { width: 12px; height: 12px; }
.draft { margin-top: 12px; border-radius: 12px; padding: 12px 14px; background: var(--bad-bg); box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.15); }
.draft .l { font-size: 12px; color: var(--bad); font-weight: 500; }
.draft .t { margin-top: 4px; font-size: 13.5px; color: var(--ink); position: relative; display: inline; }
.draft .t s { text-decoration-thickness: 1.5px; }
.draft .fix { margin-top: 10px; border-radius: 10px; padding: 10px 12px; background: var(--paper); font-size: 13.5px; box-shadow: var(--ring); }
.draft .fix b { color: var(--good); font-weight: 600; font-size: 11.5px; display: block; margin-bottom: 2px; }

@media (max-width: 900px) {
  .feat, .feat.flip { grid-template-columns: 1fr; min-height: 0; }
  .feat.flip .feat-art { order: 0; }
  .feat-art { padding: 36px 18px; min-height: 380px; }
}

/* ---- Steps ---- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-card); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 340px; }
.step-n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--label); background: #fff0e6; }
.step-n i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; background: #fff1e4; color: var(--label); font-weight: 600; }
.step h3 { margin: 0; font-size: 22px; letter-spacing: -0.025em; line-height: 1.15; font-weight: 600; }
.step-vis { margin-top: auto; border-radius: 16px; background: var(--cream); padding: 14px; min-height: 160px; display: grid; align-content: center; gap: 8px; box-shadow: inset 0 0 0 1px var(--hair); }
.add-row { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--paper); box-shadow: var(--ring); font-size: 13.5px; }
.add-row .tag { margin-left: auto; font-size: 11px; color: var(--text-3); }
.add-row.input { box-shadow: 0 0 0 1.5px var(--orange); color: var(--text-3); }
.caret { display: inline-block; width: 1.5px; height: 16px; background: var(--ink); margin-left: -6px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.conn-field { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 12px; border-radius: 10px; background: var(--paper); box-shadow: var(--ring); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.conn-field span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conn-field button { height: 30px; padding: 0 10px; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 500; }
.conn-to { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.conn-app { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--paper); box-shadow: var(--ring); font-size: 13px; font-weight: 500; }
.conn-app .ok { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--good-bg); color: var(--good); display: grid; place-items: center; }
.conn-app .ok svg { width: 10px; height: 10px; }
.mini-chat { display: grid; gap: 8px; }
.mini-chat .q { justify-self: end; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--ink); color: #fff; font-size: 13px; }
.mini-chat .a { padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--paper); box-shadow: var(--ring); font-size: 13px; line-height: 1.45; }
.steps-line { position: absolute; top: 49px; left: 10%; right: 10%; height: 1px; z-index: -1; background: repeating-linear-gradient(90deg, var(--hair-2) 0 6px, transparent 6px 12px); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .steps-line { display: none; }
}

/* ---- Compare ---- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 440px; display: flex; flex-direction: column; }
.cmp-h { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.cmp-tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 550; }
.cmp.without { background: var(--sunk); box-shadow: inset 0 0 0 1px var(--hair); }
.cmp.without .cmp-tag { background: rgba(20, 21, 43, 0.06); color: var(--text-2); }
.cmp.with { background: var(--night-2); color: var(--on-dark); box-shadow: 0 30px 70px -30px rgba(20, 10, 5, 0.55); }
.cmp.with::before { content: ""; position: absolute; inset: auto -20% -70% -20%; height: 100%; background: radial-gradient(closest-side, rgba(255, 91, 20, 0.5), transparent); pointer-events: none; }
.cmp.with .cmp-tag { background: rgba(255, 201, 163, 0.14); color: var(--peach); }
.marquee { position: relative; flex: 1; display: grid; align-content: center; gap: 12px; padding: 24px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-row { display: flex; gap: 10px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 44s; }
.marquee-row.slow { animation-duration: 52s; }
.mq { flex: none; padding: 12px 16px; border-radius: 14px; background: var(--paper); box-shadow: var(--ring); font-size: 14.5px; color: var(--text-2); }
.mq.dupe { color: var(--text-3); }
@keyframes marquee { to { transform: translateX(-50%); } }
.cmp.without:hover .marquee-row { animation-play-state: paused; }
.cmp-foot { padding: 0 24px 22px; font-size: 14px; color: var(--text-3); }
.cmp.with .cmp-body { position: relative; flex: 1; display: grid; align-content: center; padding: 24px; gap: 18px; }
.with-hook { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 500; text-wrap: balance; }
.with-why { display: grid; gap: 8px; }
.with-why div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--on-dark-2); }
.with-why .src { padding: 0 8px; min-width: 88px; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } .cmp { min-height: 380px; } }

/* ---- FAQ ---- */
.faq { border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-card); overflow: hidden; }
.qa + .qa { border-top: 1px solid var(--hair); }
.qa-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; text-align: left; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; transition: background-color 0.2s; }
.qa-btn:hover { background: #fdfbf8; }
.qa-ic { position: relative; width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--cream); transition: background-color 0.3s, transform 0.5s var(--ease-out-expo); }
.qa-ic::before, .qa-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; translate: -50% -50%; border-radius: 1px; background: var(--ink); transition: rotate 0.5s var(--ease-out-expo), background-color 0.3s; }
.qa-ic::after { rotate: 90deg; }
.qa.open .qa-ic { background: var(--ink); transform: rotate(180deg); }
.qa.open .qa-ic::before, .qa.open .qa-ic::after { background: #fff; }
.qa.open .qa-ic::after { rotate: 0deg; }
.qa-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out-expo); }
.qa.open .qa-panel { grid-template-rows: 1fr; }
.qa-panel > div { overflow: hidden; }
.qa-panel p { margin: 0; padding: 0 26px 24px; max-width: 680px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); opacity: 0; translate: 0 -6px; transition: opacity 0.3s, translate 0.5s var(--ease-out-expo); }
.qa.open .qa-panel p { opacity: 1; translate: 0 0; transition-delay: 0.08s; }
@media (max-width: 760px) { .qa-btn { padding: 20px 18px; font-size: 16px; } .qa-panel p { padding: 0 18px 20px; } }

/* ==========================================================================
   CLOSING SCENE (sticky sunrise -> night)
   ========================================================================== */
.scene { position: relative; height: 330vh; margin-top: clamp(96px, 12vw, 160px); }
.scene-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--cream); isolation: isolate; }
.scene-sun { position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax; translate: -50% 0; border-radius: 50%; z-index: -2;
  background: radial-gradient(closest-side, #ffc9a3 0%, #ff9459 20%, #ff6a24 38%, #e8500e 52%, rgba(194, 65, 12, 0.7) 64%, rgba(194, 65, 12, 0) 74%);
  will-change: transform; }
.scene-night { position: absolute; inset: 0 0 auto; height: 160%; z-index: -1; will-change: transform;
  background: linear-gradient(180deg, var(--night) 0%, var(--night) 66%, rgba(20, 10, 5, 0.7) 80%, rgba(20, 10, 5, 0) 100%); }
html.js .scene-night { transform: translateY(-140%); }
@media (max-width: 760px) { .scene { height: 280vh; } }
.scene-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: var(--grain); background-size: 160px; opacity: 0.07; mix-blend-mode: overlay; }
.scene-text { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.scene-a, .scene-b { display: block; font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; }
.scene-a { font-size: clamp(44px, 8vw, 120px); color: var(--ink); }
.scene-b { font-size: clamp(54px, 11vw, 168px); color: #fff; margin-top: 0.06em; }
.scene-cta { margin-top: 44px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
html:not(.js) .scene { height: auto; }
html:not(.js) .scene-stage { position: relative; background: var(--night); }
html:not(.js) .scene-a { color: var(--on-dark-2); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; background: var(--night); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 40px 0 56px; border-bottom: 1px solid var(--hair-dark); }
.footer-top h3 { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; }
.footer-top p { margin: 0 0 24px; color: var(--on-dark-2); font-size: 15.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-cols h6 { margin: 0 0 14px; font-size: 13px; font-weight: 550; color: var(--on-dark); }
.footer-cols a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--on-dark-2); transition: color 0.2s; }
.footer-cols a:hover { color: var(--on-dark); }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0; font-size: 13px; color: var(--on-dark-3); }
.footer-legal a:hover { color: var(--on-dark-2); }
.foot-sunrise { position: relative; height: clamp(170px, 22vw, 330px); margin-top: 10px; }
.foot-glow { position: absolute; left: 50%; bottom: -55%; width: 120%; height: 150%; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 148, 89, 0.9), rgba(255, 91, 20, 0.6) 38%, rgba(194, 65, 12, 0.25) 62%, transparent); filter: blur(8px); }
@media (prefers-reduced-motion: no-preference) { .foot-glow { animation: fs-ember 9s ease-in-out infinite alternate; } }
@keyframes fs-ember { from { scale: 0.92; } to { scale: 1.08; } }
.foot-word { position: absolute; left: 50%; bottom: 0; translate: -50% 26%; font-size: clamp(104px, 27vw, 420px); line-height: 0.8; font-weight: 700; letter-spacing: -0.06em; white-space: nowrap;
  color: var(--cream); }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.enter-ready [data-enter]:not([data-entered]) { opacity: 0; transform: translate3d(0, var(--rise), 0); }
  html.enter-ready [data-enter="scale"]:not([data-entered]) { transform: translate3d(0, calc(var(--rise) * 1.4), 0) scale(0.96); }
  html.enter-ready [data-enter="fade"]:not([data-entered]) { transform: none; }
  html.enter-ready [data-enter] { transition: opacity var(--t-enter) var(--ease-out-expo), transform var(--t-enter) var(--ease-out-expo); transition-delay: calc(var(--enter-i, 0) * var(--t-stagger)); }
}

/* ==========================================================================
   PRICING PAGE
   ========================================================================== */
.p-hero { position: relative; color: var(--on-dark); isolation: isolate; padding: 160px 0 0; text-align: center; }
.p-hero .hero-sky { height: 1100px; background: linear-gradient(180deg, #170b06 0%, #241008 18%, #5a1d08 34%, #c2410c 46%, #ff6a24 54%, #ff9f6a 62%, #ffd3b3 71%, #f7e8da 80%, var(--cream) 88%); }
.p-hero .hero-sun { top: 380px; }
.p-hero h1 { margin-top: 22px; }
@media (max-width: 420px) { .p-hero h1 { font-size: 39px; } }
.p-hero .hero-copy { margin-top: 22px; }
.bill { margin-top: 34px; display: inline-flex; position: relative; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bill button { position: relative; z-index: 1; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, 0.85); transition: color 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.bill button[aria-pressed="true"] { color: var(--ink); }
.bill .save { height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 500; background: var(--peach); color: var(--ink); display: inline-flex; align-items: center; }
.bill .chip { position: absolute; inset: 5px; border-radius: 999px; background: var(--paper); z-index: 0; clip-path: inset(0 var(--cr, 50%) 0 var(--cl, 0) round 999px); transition: clip-path 0.55s var(--ease-out-expo); }

.plans { position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; text-align: left; color: var(--ink); }
.plan { position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-lift); padding: 28px; }
.plan.pop { background: var(--night-2); color: var(--on-dark); box-shadow: 0 40px 80px -30px rgba(20, 10, 5, 0.6); overflow: hidden; isolation: isolate; }
.plan.pop::before { content: ""; position: absolute; inset: auto -30% -50% -30%; height: 80%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 91, 20, 0.45), transparent); }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.plan .tagline { margin: 6px 0 0; font-size: 14.5px; color: var(--text-2); min-height: 44px; }
.plan.pop .tagline { color: var(--on-dark-2); }
.plan .pop-tag { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 500; background: rgba(255, 201, 163, 0.14); color: var(--peach); }
.price { margin-top: 22px; display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.price .cur { font-size: 26px; font-weight: 550; align-self: flex-start; margin-top: 6px; }
.price .num { position: relative; display: inline-block; height: 64px; overflow: hidden; font-size: 60px; line-height: 64px; font-weight: 600; letter-spacing: -0.05em; }
.price .num span { display: block; transition: transform 0.6s var(--ease-out-expo), opacity 0.4s; }
.price .num .yr { position: absolute; left: 0; top: 0; transform: translateY(100%); opacity: 0; }
.yearly .price .num .mo { transform: translateY(-100%); opacity: 0; }
.yearly .price .num .yr { transform: translateY(0); opacity: 1; }
.price .per { font-size: 14px; color: var(--text-3); padding-bottom: 10px; line-height: 1.3; }
.plan.pop .price .per { color: var(--on-dark-3); }
.plan .btn { margin-top: 24px; width: 100%; }
.plan ul { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hair); display: grid; gap: 11px; font-size: 14.5px; color: var(--text-2); }
.plan.pop ul { border-top-color: var(--hair-dark); color: var(--on-dark-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; flex: none; border-radius: 5px; background: var(--good-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%231f8a5b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan.pop li::before { background-color: rgba(255, 201, 163, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23ffc9a3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan li b { color: var(--ink); font-weight: 550; }
.plan.pop li b { color: var(--on-dark); }
.plans-note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--text-3); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .plan.pop { order: -1; } }
@media (prefers-reduced-motion: no-preference) {
  html.js .plans > .plan { animation: show-arrive 1.2s var(--ease-out-expo) backwards; }
  html.js .plans > .plan:nth-child(1) { animation-delay: 0.45s; }
  html.js .plans > .plan:nth-child(2) { animation-delay: 0.53s; }
  html.js .plans > .plan:nth-child(3) { animation-delay: 0.61s; }
  html.js .plans-note { animation: hero-rise 0.8s var(--ease-out-expo) 0.8s backwards; }
  html.js .bill { animation: hero-rise 0.8s var(--ease-out-expo) 0.55s backwards; }
}
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; translate: -50% 0; border-radius: 50%; background: var(--orange); }

.table-wrap { border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-card); overflow: hidden; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp-table th, .cmp-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--hair); }
.cmp-table thead th { position: sticky; top: 0; background: #fcfaf7; font-size: 14px; font-weight: 600; }
.cmp-table thead th.pop { color: var(--label); }
.cmp-table td:not(:first-child), .cmp-table th:not(:first-child) { text-align: center; width: 18%; }
.cmp-table td:first-child { color: var(--text-2); }
.cmp-table tr.grp td { background: var(--cream); font-size: 13px; font-weight: 500; color: var(--text-3); padding-top: 11px; padding-bottom: 11px; }
.cmp-table tbody tr:not(.grp):hover td { background: #fdfbf8; }
.cmp-table .yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--good-bg); color: var(--good); }
.cmp-table .yes svg { width: 12px; height: 12px; }
.cmp-table .no { color: var(--text-3); }
.cmp-table tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .table-wrap { overflow-x: auto; }
  .cmp-table { min-width: 620px; font-size: 13.5px; }
  .cmp-table th, .cmp-table td { padding: 13px 14px; }
}

.cta-card { position: relative; isolation: isolate; overflow: hidden; border-radius: calc(var(--r-card) + 8px); padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px); text-align: center; color: var(--on-dark);
  background: radial-gradient(90% 90% at 50% 135%, #ffc9a3 0%, #ff6a24 22%, #c2410c 42%, #5a1d08 66%, transparent 88%), linear-gradient(180deg, #140a05, #2a1309); }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); background-size: 160px; opacity: 0.1; mix-blend-mode: overlay; }
.cta-card .h-section { color: #fff; }
.cta-card .lede { color: var(--on-dark-2); margin: 16px auto 0; max-width: 520px; }
.cta-card .hero-actions { margin-top: 30px; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.js .show-frame { transform: none !important; }
  .marquee-row, .caret, .foot-glow { animation: none !important; }
  .nav[data-tucked="true"] { translate: -50% 0; }
  .scene { height: auto; }
  .scene-stage { position: relative; background: var(--night); }
  .scene-a { color: var(--on-dark-2); }
  .scene-sun { translate: -50% 10%; }
}

/* ==========================================================================
   v3 — Tesso's own identity: full-width bar, split hero, mosaic motif,
   two-tone headings, context tabs, mosaic closing scene, tiled wordmark
   ========================================================================== */

/* ---- full-width nav bar ---- */
.nav {
  top: 0; left: 0; translate: none; width: 100%; height: 64px; border-radius: 0;
  padding: 0 max(var(--gutter), calc((100% - var(--w)) / 2));
  display: grid; grid-template-columns: 1fr auto 1fr;
}
.nav::before {
  background: rgba(20, 10, 5, 0.28);
  box-shadow: inset 0 -1px rgba(248, 244, 238, 0.08);
}
.nav::after {
  background: rgba(248, 244, 238, 0.86);
  box-shadow: inset 0 -1px rgba(20, 10, 5, 0.08);
}
.nav-right { justify-self: end; }
.nav-links { justify-self: center; }
.nav-links a { border-radius: 8px; }
.nav .btn-sm { height: 38px; border-radius: 10px; }
.nav-burger { border-radius: 10px; }
.nav[data-tucked="true"] { translate: 0 -100%; }
.nav-menu { left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); border-radius: 18px; }
@media (max-width: 820px) { .nav { grid-template-columns: 1fr auto; } }
@media (prefers-reduced-motion: reduce) { .nav[data-tucked="true"] { translate: none; } }

/* buttons: softer square-ish pills, less like tasteskill */
.btn { border-radius: 12px; height: 50px; }
.btn-sm { border-radius: 10px; }

/* ---- split hero ---- */
.hero-top {
  padding: 168px 0 0; text-align: left;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 56px; align-items: end;
}
.hero h1 { margin: 26px 0 0; font-size: clamp(50px, 6.3vw, 92px); }
@media (min-width: 901px) { .hero .hero-line { white-space: nowrap; } }
.hero-side { padding-bottom: 10px; }
.hero-copy { margin: 0; max-width: 430px; }
.hero-copy p { text-wrap: pretty; }
.hero-actions { justify-content: flex-start; margin-top: 28px; }
.hero-pill { padding: 0 12px; height: 32px; border-radius: 9px; }
.show { margin-top: 88px; }
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; padding-top: 128px; gap: 24px; }
  .hero-side { padding-bottom: 0; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1; }
}

/* ---- mosaic motif ---- */
.hero-mosaic {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 10, 5, 0.17) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(20, 10, 5, 0.17) 2px, transparent 2px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent 20%, #000 36%, #000 60%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 36%, #000 60%, transparent 80%);
}
.mtile { position: absolute; width: 62px; height: 62px; border-radius: 3px; background: var(--peach); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.js .mtile { animation: mtile-in 0.9s var(--ease-out-quart) forwards; animation-delay: var(--d); }
}
@media (prefers-reduced-motion: reduce) { .mtile { opacity: var(--o); } }
@keyframes mtile-in { from { opacity: 0; } to { opacity: var(--o); } }

/* ---- two-tone headings (left aligned) ---- */
.h-two { max-width: 860px; margin-bottom: clamp(40px, 5vw, 64px); text-align: left; }
.h-two span { color: rgba(26, 14, 8, 0.38); }
.tabs-story .h-two { margin-bottom: 0; }

/* ---- context tabs (replaces stacked feature cards) ---- */
.reads { display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.25fr; column-gap: clamp(32px, 5vw, 72px); grid-auto-flow: dense; }
.read-item {
  grid-column: 1; display: grid; grid-template-columns: 40px 1fr; gap: 4px; align-content: center;
  text-align: left; padding: 24px 0 24px 20px; border-left: 2px solid var(--hair-2);
  transition: border-color 0.3s var(--ease-out-quart);
}
.read-item:hover { border-left-color: rgba(26, 14, 8, 0.28); }
.read-item.is-on { border-left-color: var(--orange); }
.ri-n { font-family: var(--mono); font-size: 13px; color: var(--text-3); padding-top: 6px; }
.read-item.is-on .ri-n { color: var(--label); }
.ri-t b { display: block; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: var(--text-3); transition: color 0.3s; }
.ri-t > span { display: block; margin-top: 8px; font-size: 16.5px; line-height: 1.55; color: var(--text-3); max-width: 380px; transition: color 0.3s; }
.read-item.is-on .ri-t b { color: var(--ink); }
.read-item.is-on .ri-t > span { color: var(--text-2); }
.read-vis {
  grid-column: 2; grid-row: 1 / span 3; min-height: 540px;
  display: grid; opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.985);
  transition: opacity 0.45s var(--ease-out-quart), transform 0.7s var(--ease-out-expo), visibility 0s 0.45s;
}
.read-vis.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s var(--ease-out-quart), transform 0.7s var(--ease-out-expo), visibility 0s; }
.read-art { border-radius: var(--r-card); box-shadow: var(--shadow-card); }
@media (max-width: 900px) {
  .reads { grid-template-columns: 1fr; row-gap: 0; }
  .read-item { grid-column: auto; padding: 20px 0 16px 16px; margin-top: 24px; border-left-color: var(--orange); pointer-events: none; }
  .read-item .ri-t b { color: var(--ink); }
  .read-item .ri-t > span { color: var(--text-2); }
  .read-item .ri-n { color: var(--label); }
  .read-vis { grid-column: auto; grid-row: auto; min-height: 0; opacity: 1; visibility: visible; transform: none; }
  .read-art { min-height: 400px; }
}

/* steps & compare & problem: left aligned heads already */
.step h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/* ---- FAQ split ---- */
.faq-split { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-split .h-two { position: sticky; top: 100px; }
@media (max-width: 900px) { .faq-split { grid-template-columns: 1fr; } .faq-split .h-two { position: static; margin-bottom: 0; } }

/* ---- mosaic closing scene ---- */
.scene-stage { background: var(--cream); }
.scene-tiles { position: absolute; inset: 0; z-index: 0; display: grid; gap: 4px; padding: 4px;
  grid-template-columns: repeat(var(--cols, 20), 1fr); grid-template-rows: repeat(var(--rows, 12), 1fr); }
.scene-tiles i { display: block; border-radius: 4px; background: var(--sunk); will-change: background-color; }
.scene-text { z-index: 2; }
html:not(.js) .scene-tiles i { background: var(--night-2); }

/* ---- footer lockup: tile mark + wordmark, fully visible ---- */
html { background: var(--night); }
.foot-sunrise { height: auto; margin-top: 0; padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); overflow: hidden; }
.foot-brand { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.foot-mark { width: clamp(64px, 14vw, 200px); height: auto; flex: none; }
.foot-sunrise .foot-word {
  position: static; translate: none; background: none; color: var(--cream);
  font-size: clamp(88px, 21vw, 320px); line-height: 0.78; font-weight: 700; letter-spacing: -0.055em;
  padding-bottom: 0.06em;
}

/* ---- cursor trail: cells light up in faint white, then fade ---- */
.hover-cell { position: absolute; width: 62px; height: 62px; border-radius: 3px; background: #fff; opacity: 0; pointer-events: none; transition: opacity 1.2s var(--ease-out-quart); }
.hover-cell.on { opacity: var(--a); transition: opacity 0.06s linear; }
.scene-tiles i { position: relative; }
.scene-tiles i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: 0; pointer-events: none; transition: opacity 1.2s var(--ease-out-quart); }
.scene-tiles i.on::after { opacity: var(--a); transition: opacity 0.06s linear; }
@media (prefers-reduced-motion: reduce) { .hover-cell, .scene-tiles i::after { display: none; } }
.hero-hover { position: absolute; inset: 0; pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 18%, #000 34%, #000 62%, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, transparent 18%, #000 34%, #000 62%, transparent 82%); }

/* ---- footer v4: tile-matrix wordmark + slim bar ---- */
.foot-matrix { padding: clamp(48px, 7vw, 96px) 0 clamp(20px, 3vw, 32px); }
.foot-canvas { display: block; max-width: 100%; }
.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 28px; border-top: 1px solid var(--hair-dark); font-size: 13.5px; color: var(--on-dark-3); }
.footer-bar .logo { font-size: 16px; color: var(--on-dark); }
.footer-bar .logo-mark { width: 18px; height: 18px; }
.footer-bar-links { display: flex; gap: 20px; align-items: center; }
.footer-bar-links a { transition: color 0.2s; }
.footer-bar-links a:hover { color: var(--on-dark); }
.footer-top { border-bottom: 0; padding-bottom: clamp(48px, 6vw, 72px); }
@media (max-width: 480px) {
  .footer-bar { font-size: 12.5px; }
  .footer-bar-links { gap: 14px; }
}

/* footer v5: wordmark peeks out half, at half strength */
.foot-matrix { padding: 0; margin-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.foot-canvas { opacity: 0.5; }
.footer-bar { padding-bottom: 20px; }

/* ==========================================================================
   iOS-style continuous corners (corner smoothing)
   Native CSS corner-shape where supported; plain rounded corners elsewhere.
   ========================================================================== */
@supports (corner-shape: superellipse(1.6)) {
  :root { --r-card: 30px; --r-md: 20px; --r-sm: 12px; }
  *, *::before, *::after { corner-shape: superellipse(1.6); }
  /* true circles stay circles */
  .show-dots i, .show-conn i, .conn-app .ok, .day-n i, .side-rule::before,
  .nav-links a[aria-current="page"]::after, .hero-sun-core::after { corner-shape: round; }
}
.footer-bar { padding-top: 24px; }
.foot-canvas { -webkit-tap-highlight-color: transparent; }

/* pricing hero stays centered (the home hero is the left-aligned split) */
.p-hero .hero-copy { margin: 22px auto 0; max-width: 600px; }
.p-hero .hero-copy p { text-wrap: balance; }
.p-hero .hero-actions { justify-content: center; }

/* ==========================================================================
   v5 nav — floating, not full width (after skiper-ui), plus a progressive
   blur band at the top of the viewport that content dissolves into
   ========================================================================== */
.nav {
  top: 10px; left: 50%; translate: -50% 0;
  width: min(100% - 24px, 768px); height: 56px;
  padding: 0 8px 0 18px; border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav::before {
  background: rgba(26, 14, 8, 0.82);
  box-shadow: inset 0 0 0 1px rgba(248, 244, 238, 0.08), 0 10px 30px -14px rgba(0, 0, 0, 0.55);
}
.nav::after {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(20, 10, 5, 0.08), 0 10px 30px -16px rgba(80, 30, 5, 0.3);
}
.nav-links { margin-left: auto; }
.nav-links a { font-size: 14px; padding: 8px 11px; }
.nav-right { gap: 4px; }
.nav-signin { font-size: 14px; }
.nav .btn-sm { height: 38px; border-radius: 11px; padding: 0 14px; }
.nav[data-tucked="true"] { translate: -50% calc(-100% - 24px); }
.nav-menu { left: 0; right: 0; top: calc(100% + 6px); border-radius: 16px; }
@media (prefers-reduced-motion: reduce) { .nav[data-tucked="true"] { translate: -50% 0; } }

/* progressive blur band */
.top-fade { position: fixed; inset: 0 0 auto 0; height: 120px; z-index: 40; pointer-events: none; }
.top-fade i { position: absolute; inset: 0; }
.top-fade i:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px);
  mask-image: linear-gradient(#000 0%, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(#000 0%, #000 55%, transparent 100%); }
.top-fade i:nth-child(2) { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  mask-image: linear-gradient(#000 0%, #000 35%, transparent 75%); -webkit-mask-image: linear-gradient(#000 0%, #000 35%, transparent 75%); }
.top-fade i:nth-child(3) { backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  mask-image: linear-gradient(#000 0%, #000 18%, transparent 50%); -webkit-mask-image: linear-gradient(#000 0%, #000 18%, transparent 50%); }
.top-fade::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--fade-bg, rgba(20, 10, 5, 0.85)) 0%, transparent 90%); transition: background 0.4s; }
/* top band: blur only, no colour tint — so content dissolves smoothly whatever its colour */
.top-fade::after { display: none; }

/* Showcase entrance without fading the wrapper: an element that is fading
   can't blur what's behind it, so the tab bar's frosted glass appeared late.
   The wrapper only slides up; the window fades on its own. */
@media (prefers-reduced-motion: no-preference) {
  html.js .show { animation: show-rise 1.3s var(--ease-out-expo) 0.35s backwards; }
  html.js .show-frame { animation: frame-fade 1s var(--ease-out-quart) 0.35s backwards; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  html.js .show { animation-name: show-rise-short; }
}
@keyframes show-rise { from { translate: 0 120px; } }
@keyframes show-rise-short { from { translate: 0 48px; } }
@keyframes frame-fade { from { opacity: 0; } }

/* true pills: no corner smoothing on these */
.show-tabs, .show-tabs-chip, .show-tab, .bill, .bill .chip, .bill button { corner-shape: round; }
