/* taviplayer.com — Apple product-page grammar, Tavi brand truth.
   Palette: black / #1d1d1f / #f5f5f7 / white; one accent, Tavi teal (#2DD4BF on dark, #0F766E on light).
   Type: system stack (SF Pro on Apple devices, Segoe UI on Windows). Tracking tightens with size. */

:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #515154;      /* 7.1:1 on #f5f5f7 */
  --ink-3: #6e6e73;      /* 4.6:1 on #f5f5f7 */
  --ink-3-dark: #86868b; /* 5.3:1 on black */
  --snow: #f5f5f7;
  --white: #fff;
  --hair-dark: rgba(255,255,255,.14);
  --hair-light: rgba(0,0,0,.12);
  --teal: #2DD4BF;
  --teal-deep: #0B5F59;  /* white text 5.6:1; on #f5f5f7 5.9:1 */
  --teal-ink: #04201C;
  --radius-tile: 28px;
  --radius-ctl: 12px;
  --max: 980px;
  --max-wide: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.012em;
  color: var(--ink); background: var(--black); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--teal); }
.light :focus-visible { outline-color: var(--teal-deep); }
img { display: block; max-width: 100%; }

/* ---------- type scale (size-specific tracking) ---------- */
.t-hero  { font-size: clamp(44px, 7.2vw, 88px); line-height: 1.04; letter-spacing: -0.028em; font-weight: 600; }
.t-sec   { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.07; letter-spacing: -0.024em; font-weight: 600; }
.t-sub   { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.12; letter-spacing: -0.018em; font-weight: 600; }
.t-tile  { font-size: 24px; line-height: 1.17; letter-spacing: -0.014em; font-weight: 600; }
.t-intro { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.38; letter-spacing: 0.011em; font-weight: 400; }
.t-body  { font-size: 17px; line-height: 1.47; letter-spacing: -0.012em; }
.t-small { font-size: 14px; line-height: 1.43; letter-spacing: -0.008em; }
.t-fine  { font-size: 12px; line-height: 1.33; letter-spacing: -0.006em; }
.t-eyebrow { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: 0.01em; }
.balance { text-wrap: balance; }

/* ---------- surfaces ---------- */
.dark  { background: var(--black); color: var(--snow); }
.dark .muted { color: var(--ink-3-dark); }
.dark .ink2 { color: rgba(245,245,247,.72); }
.light { background: var(--snow); color: var(--ink); }
.light .muted { color: var(--ink-3); }
.light .ink2 { color: var(--ink-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(80px, 10vw, 140px) 0; }
.center { text-align: center; }
.sec-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 72px); }
.sec-head .t-intro { margin-top: 18px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Apple-style links: color + chevron */
.link { color: var(--teal); font-weight: 400; display: inline-flex; align-items: center; gap: 2px; }
.light .link { color: var(--teal-deep); }
.link::after { content: ""; width: .55em; height: .55em; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg) translateY(.02em); margin-left: .3em; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- buttons (feedback on press, instantly) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 980px; font-size: 17px; font-weight: 400; letter-spacing: -0.012em; border: 0;
  transition: transform 100ms ease-out, background-color 180ms var(--ease-out), opacity 180ms;
  will-change: transform;
}
.btn:active, .btn.pressed { transform: scale(.97); }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: #58dfcd; }
.light .btn-primary { background: var(--teal-deep); color: #fff; }
.light .btn-primary:hover { background: #0F766E; }
.btn-secondary { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.light .btn-secondary { color: var(--teal-deep); box-shadow: inset 0 0 0 1px var(--teal-deep); }
.btn-secondary:hover { background: rgba(45,212,191,.08); }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- translucent nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; height: 52px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.nav::after { /* scroll-edge: a soft fade instead of a 1px rule */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.35), transparent); opacity: 0; transition: opacity 240ms;
}
.nav.scrolled::after { opacity: 1; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-brand img { height: 22px; width: auto; }
.nav-brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(245,245,247,.8); font-size: 13px; letter-spacing: -0.01em; transition: color 160ms; }
.nav-links a:hover { color: #fff; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }
@media (prefers-reduced-transparency: reduce) { .nav { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { .nav { background: #000; border-bottom: 1px solid #fff; } }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 9vw, 120px) 0 0; overflow: hidden; }
.hero .t-eyebrow { color: rgba(245,245,247,.8); }
.hero .t-hero { margin-top: 10px; }
.hero .t-intro { margin-top: 22px; max-width: 640px; margin-left: auto; margin-right: auto; color: rgba(245,245,247,.86); }
.hero-links { display: flex; justify-content: center; gap: 32px; margin-top: 26px; font-size: 21px; letter-spacing: 0.011em; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--ink-3-dark); }
.hero-note a { color: rgba(245,245,247,.86); text-decoration: underline; text-underline-offset: 3px; }

/* The product: a flat panel with the real screen in it */
.stage { margin: clamp(48px, 6vw, 84px) auto 0; max-width: 1100px; padding: 0 var(--gutter); }
.panel {
  position: relative; aspect-ratio: 16 / 9; border-radius: clamp(14px, 1.8vw, 22px); background: #0b0b0d;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 2px 0 rgba(255,255,255,.04) inset, 0 60px 120px -40px rgba(0,0,0,.9), 0 30px 60px -30px rgba(45,212,191,.12);
  padding: clamp(6px, .8vw, 10px); container-type: inline-size;
}
.panel.materialize { animation: materialize 900ms var(--ease-out) both; }
@keyframes materialize { from { opacity: 0; transform: translateY(24px) scale(.965); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.screen { text-align: left; position: relative; width: 100%; height: 100%; border-radius: calc(clamp(14px, 1.8vw, 22px) - clamp(6px, .8vw, 10px)); overflow: hidden; background: #0A0B0F; color: #F2F4F8; font-family: var(--font); }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.06), transparent 35%); }
.face { position: absolute; inset: 0; opacity: 0; transform: scale(1.015); transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out); pointer-events: none; }
.face.show { opacity: 1; transform: none; }

/* in-screen app UI, all sized against the panel width (cqw) */
.app { display: grid; grid-template-columns: 6cqw 1fr; height: 100%; }
.rail { background: #14161D; display: grid; align-content: start; justify-items: center; gap: 2.2cqw; padding-top: 2.6cqw; }
.rail i { width: 2.6cqw; height: 2.6cqw; border-radius: .7cqw; background: #2A2E3A; }
.rail i.on { background: #2DD4BF; }
.rail .sw { width: 3.4cqw; height: 1.8cqw; border-radius: 1cqw; background: #1D2029; border: .18cqw solid #2A2E3A; position: relative; margin-top: 1cqw; }
.rail .sw::after { content: ""; position: absolute; top: .18cqw; left: .18cqw; width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #2DD4BF; }
.face-vod .rail .sw::after { left: auto; right: .18cqw; }
.main { padding: 2.2cqw 2.8cqw; display: grid; grid-template-rows: auto 1fr; gap: 1.4cqw; min-width: 0; align-content: start; }
.face-live .main { grid-template-rows: auto auto 1fr; }
.cats { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1cqw; }
.cat { aspect-ratio: 16/9; border-radius: .9cqw; background: #14161D center / cover no-repeat; }
.cat.on { box-shadow: 0 0 0 .22cqw #2DD4BF; }
.bar { display: flex; justify-content: space-between; align-items: baseline; }
.bar b { font-size: 2cqw; font-weight: 600; letter-spacing: -0.02em; }
.bar span { font-size: 1.2cqw; color: #9AA3B2; }
.guide { display: grid; grid-template-columns: 11cqw 1fr; gap: 1cqw 1.2cqw; align-content: start; font-size: 1.35cqw; }
.guide .ch { display: flex; align-items: center; gap: .8cqw; color: #F2F4F8; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 4.2cqw; }
.guide .ch i { width: 2.4cqw; height: 2.4cqw; border-radius: .6cqw; background: #1D2029; flex: none; }
.guide .row { position: relative; display: grid; grid-template-columns: var(--c, 40%) 1fr; gap: .5cqw; height: 4.2cqw; }
.guide .p { background: #14161D; border-radius: .8cqw; display: flex; align-items: center; padding: 0 1.1cqw; color: #9AA3B2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide .p.now { background: #0F766E; color: #fff; }
.guide .p.pick { background: #14161D; box-shadow: inset 0 0 0 .18cqw #2DD4BF; color: #F2F4F8; }
.guide .nowline { position: absolute; top: -.9cqw; bottom: -.9cqw; left: var(--c, 40%); width: .2cqw; background: #2DD4BF; opacity: .9; }
.guide .hdr { display: grid; grid-template-columns: var(--c, 40%) 1fr; font-size: 1.1cqw; color: #9AA3B2; }
.guide .hdr2 { display: grid; grid-template-columns: 1fr 1fr; }
.shelf { display: grid; gap: 1cqw; align-content: start; }
.banner { height: 10.5cqw; border-radius: 1.4cqw; background: linear-gradient(100deg, #1e3a5f 0%, #0b1a2b 55%, #0A0B0F 100%); position: relative; overflow: hidden; }
.banner[style*="background-image"] { background-size: cover; background-position: center 25%; }
.banner[style*="background-image"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,15,.92) 0%, rgba(10,11,15,.55) 45%, rgba(10,11,15,.15) 100%); }
.banner .meta { z-index: 1; }
.banner::before { content: ""; position: absolute; right: -6cqw; top: -8cqw; width: 34cqw; height: 34cqw; border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,.35), transparent 60%); }
.banner .meta { position: absolute; left: 2cqw; bottom: 1.8cqw; }
.banner .meta small { font-size: 1.05cqw; color: #2DD4BF; font-weight: 600; letter-spacing: .04em; }
.banner .meta b { display: block; font-size: 2.6cqw; font-weight: 600; letter-spacing: -0.02em; margin-top: .3cqw; }
.banner .meta span { font-size: 1.15cqw; color: rgba(255,255,255,.75); }
.posters { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1cqw; }
.poster { aspect-ratio: 2/3; border-radius: .9cqw; position: relative; overflow: hidden; background: var(--g, #333) center / cover no-repeat; }
.poster[style*="background-image"]::before, .poster[style*="background-image"]::after { display: none; } /* the artwork carries its own title */
.poster::after { content: attr(data-t); position: absolute; left: .8cqw; right: .8cqw; bottom: .9cqw; font-size: 1.1cqw; font-weight: 600; line-height: 1.15; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.poster .prog { position: absolute; left: 0; right: 0; bottom: 0; height: .35cqw; background: rgba(255,255,255,.2); }
.poster .prog i { display: block; height: 100%; width: var(--w, 40%); background: #2DD4BF; }
.poster.focus { box-shadow: 0 0 0 .22cqw #2DD4BF; transform: scale(1.04); }
.shelf-title { font-size: 1.35cqw; font-weight: 600; letter-spacing: -0.01em; margin-top: .3cqw; }

/* segmented control (spring-driven thumb in JS) */
.seg-wrap { display: grid; justify-items: center; gap: 14px; margin-top: 28px; }
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255,255,255,.08); border-radius: 980px; padding: 3px; width: min(100%, 360px); touch-action: pan-y; }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 980px; background: var(--teal); will-change: transform; }
.seg button { position: relative; z-index: 1; appearance: none; background: transparent; border: 0; color: rgba(245,245,247,.85); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; min-height: 36px; border-radius: 980px; transition: color 180ms; }
.seg button[aria-pressed="true"] { color: var(--teal-ink); }
.seg-hint { color: var(--ink-3-dark); max-width: 46ch; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .panel.materialize { animation: fadein 400ms ease both; }
  @keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
  .face { transform: none; transition: opacity 200ms ease; }
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile {
  background: var(--white); border-radius: var(--radius-tile); padding: 34px 34px 0; overflow: hidden; position: relative;
  display: grid; grid-template-rows: auto 1fr; gap: 22px; min-height: 380px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 30px -20px rgba(0,0,0,.18);
}
.tile.dark-tile { background: var(--ink); color: var(--snow); }
.tile.dark-tile .muted { color: #a1a1a6; }
.tile h3 { margin-top: 6px; }
.tile p { margin-top: 8px; max-width: 44ch; }
.tile .kicker { color: var(--teal-deep); font-weight: 600; font-size: 14px; letter-spacing: 0.01em; }
.tile.dark-tile .kicker { color: var(--teal); }
.tile .plus { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--ink); background: rgba(0,0,0,.06); border-radius: 980px; padding: 2px 8px; vertical-align: middle; }
.tile.dark-tile .plus { color: var(--snow); background: rgba(255,255,255,.12); }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; } .span-6 { grid-column: span 6; }
@media (max-width: 980px) { .span-4, .span-3, .span-2 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .span-4, .span-3, .span-2, .span-6 { grid-column: auto; } .tile { padding: 26px 26px 0; min-height: 320px; } }
.demo { align-self: end; position: relative; }

/* tile demos */
.demo-guide { display: grid; gap: 8px; padding-bottom: 0; transform: translateY(8px); }
.demo-guide .r { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: center; font-size: 12px; }
.demo-guide .r b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-guide .r .l { display: grid; grid-template-columns: var(--c, 38%) 1fr; gap: 4px; height: 30px; position: relative; }
.demo-guide .r .l span { background: var(--snow); border-radius: 8px; padding: 0 10px; display: flex; align-items: center; color: var(--ink); white-space: nowrap; overflow: hidden; }
.demo-guide .r .l span.now { background: var(--teal-deep); color: #fff; }
.demo-guide .r .l span.on { box-shadow: inset 0 0 0 2px var(--teal-deep); color: var(--ink); background: #fff; }
.demo-guide .r:last-child .l span:last-child { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.demo-shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; transform: translateY(14px); }
.demo-shelf .poster::after { font-size: 11px; left: 8px; right: 8px; bottom: 8px; }
.demo-shelf .poster { border-radius: 10px; }
.demo-shelf .poster .prog { height: 4px; }

.demo-kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: translateY(10px); }
.demo-kids .k { aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #071226; position: relative; overflow: hidden; }
.demo-kids .k svg { width: 46%; height: 46%; }
.demo-kids .k span { position: absolute; bottom: 8px; }
.demo-kids .k.big { outline: 3px solid #8DE8FF; outline-offset: 3px; }

.demo-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; transform: translateY(14px); }
.demo-swatches .s { aspect-ratio: 1 / .78; border-radius: 14px 14px 0 0; position: relative; background: var(--bg); overflow: hidden; }
.demo-swatches .s::before { content: ""; position: absolute; left: 10px; top: 10px; right: 10px; height: 6px; border-radius: 3px; background: var(--a); }
.demo-swatches .s::after { content: ""; position: absolute; left: 10px; top: 22px; width: 55%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.demo-swatches .s small { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: rgba(255,255,255,.92); }

.demo-flat { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: translateY(10px); align-items: end; }
.demo-flat .ph { border-radius: 16px 16px 0 0; padding: 12px; background: #0A0B0F; display: grid; gap: 8px; min-height: 120px; }
.demo-flat .ph i { display: block; height: 22px; border-radius: 7px; background: #1D2029; }
.demo-flat .ph i.f { background: #2DD4BF; }
.demo-flat .ph.glow i.f { box-shadow: 0 0 18px rgba(45,212,191,.7); transform: scale(1.04); }
.demo-flat small { display: block; text-align: center; margin-top: 8px; color: var(--ink-2); font-size: 13px; }

.demo-resume { display: grid; gap: 10px; transform: translateY(10px); }
.demo-resume .card { background: #0A0B0F; border-radius: 14px 14px 0 0; padding: 14px; color: #F2F4F8; }
.demo-resume .card b { display: block; font-size: 14px; font-weight: 600; }
.demo-resume .card span { font-size: 12px; color: #9AA3B2; }
.demo-resume .bar2 { height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); margin-top: 10px; position: relative; }
.demo-resume .bar2 i { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; background: #2DD4BF; border-radius: 3px; }
.demo-resume .bar2 em { position: absolute; left: calc(62% - 7px); top: -4px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }

/* ---------- pricing (compare columns) ---------- */
.tiers { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; align-items: stretch; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier { border-radius: var(--radius-tile); padding: 34px 30px 30px; background: #141416; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; }
.tier.free { background: var(--teal); color: var(--teal-ink); }
.tier .name { font-size: 24px; font-weight: 600; letter-spacing: -0.014em; }
.tier .name small { display: block; font-size: 14px; font-weight: 400; letter-spacing: 0; opacity: .8; margin-top: 2px; }
.tier .price { font-size: clamp(40px, 4.5vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-top: 10px; }
.tier .price small { font-size: 15px; font-weight: 400; letter-spacing: 0; margin-left: 6px; opacity: .8; }
.tier .for { color: var(--ink-3-dark); }
.tier.free .for { color: rgba(4,32,28,.75); }
.tier ul { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--hair-dark); display: grid; gap: 9px; font-size: 15px; }
.tier.free ul { border-top-color: rgba(4,32,28,.2); }
.tier li { padding-left: 24px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.tier li.plus-only::before { border-color: var(--teal); }
.tier .btn { justify-self: start; margin-top: 18px; }
.tier.free .btn { background: var(--teal-ink); color: var(--teal); }
.tier.free .btn:hover { background: #0a3a33; }
.pricing-note { margin: 28px auto 0; max-width: 62ch; text-align: center; color: var(--ink-3-dark); }
.quote { margin: clamp(56px, 7vw, 96px) auto 0; max-width: 820px; text-align: center; }
.quote p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -0.018em; font-weight: 500; }
.quote footer { margin-top: 18px; color: var(--ink-3-dark); }

/* ---------- downloads ---------- */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr; } }
.dl .tile { min-height: 0; padding: 34px; grid-template-rows: auto 1fr auto; gap: 14px; }
.dl .pict { width: 56px; height: 56px; color: var(--teal-deep); }
.dl .pict svg { width: 100%; height: 100%; }
.dl .tile h3 { margin: 0; }
.dl code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--snow); padding: 4px 9px; border-radius: 8px; font-size: 15px; letter-spacing: 0; }
.dl .meta { color: var(--ink-2); }
.dl .hash { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-2); word-break: break-all; letter-spacing: 0; }
.dl .act { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.dl-foot { margin: 26px auto 0; max-width: 62ch; text-align: center; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--hair-light); }
.faq details { border-bottom: 1px solid var(--hair-light); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.014em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 24px; height: 24px; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); border-radius: 1px; transform: translate(-50%,-50%); transition: transform 240ms var(--ease-out); }
.faq summary .pm::before { width: 16px; height: 2px; }
.faq summary .pm::after { width: 2px; height: 16px; }
.faq details[open] summary .pm::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq .a { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 66ch; }
.faq .a p + p { margin-top: .7em; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
form { display: grid; gap: 12px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .f2 { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
input, textarea {
  font: inherit; font-size: 17px; letter-spacing: -0.012em; color: var(--ink); background: #fff; border: 1px solid #d2d2d7; border-radius: var(--radius-ctl);
  padding: 13px 15px; width: 100%; transition: border-color 160ms, box-shadow 160ms;
}
input:focus, textarea:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(15,118,110,.18); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.4em; font-size: 15px; }
.status.ok { color: var(--teal-deep); } .status.err { color: #c0392b; }

/* ---------- footer (legal) ---------- */
.foot { background: var(--snow); color: var(--ink-2); padding: 20px 0 40px; border-top: 1px solid var(--hair-light); }
.foot .no-content { font-size: 12px; line-height: 1.5; padding: 16px 0; border-bottom: 1px solid var(--hair-light); color: var(--ink-2); }
.foot .no-content a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding-top: 16px; font-size: 12px; }
.foot nav { display: flex; flex-wrap: wrap; }
.foot nav a { padding: 12px 10px; display: inline-block; border-left: 1px solid var(--hair-light); color: var(--ink); }
.foot nav a:first-child { padding-left: 0; border-left: 0; }
.foot nav a:hover { text-decoration: underline; }

/* ---------- reveal on scroll: one entrance grammar, headings and tiles only ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 60ms; } .reveal:nth-child(3) { transition-delay: 120ms; } .reveal:nth-child(4) { transition-delay: 180ms; } .reveal:nth-child(5) { transition-delay: 240ms; } .reveal:nth-child(6) { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- legal pages ---------- */
.legal { padding: clamp(56px, 8vw, 110px) 0 clamp(60px, 8vw, 120px); }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.024em; font-weight: 600; }
.legal h2 { font-size: 28px; line-height: 1.14; letter-spacing: -0.016em; font-weight: 600; margin-top: 48px; }
.legal p, .legal li { color: var(--ink-2); font-size: 17px; }
.legal p { margin-top: 14px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 22px; margin: 12px 0 0; }
.legal li + li { margin-top: 8px; }
.legal .updated { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.legal a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal .notice { margin-top: 32px; background: #fff; border-radius: var(--radius-tile); padding: 30px 32px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 30px -20px rgba(0,0,0,.18); }
.legal .notice p { color: var(--ink); margin-top: 0; font-size: 19px; line-height: 1.4; }
.legal .notice p + p { margin-top: 12px; }
.legal .notice p:first-child { font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--hair-light); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 600; }
.legal td { color: var(--ink-2); }
.legal td a { word-break: break-all; }
.legal code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; letter-spacing: 0; }
