/* =========================================================================
   Motion Vault website - Apple-style design system + liquid glass
   Liquid glass here is a WEB APPROXIMATION (backdrop-filter + SVG refraction
   in Chromium). Apple does not publish a CSS version of Liquid Glass.
   Shape rule: buttons/segments = pill, large cards = 28px, small cards = 18px, inputs = 12px.
   ========================================================================= */

@font-face { font-family: "Inter Var"; src: url("../fonts/Inter-Latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Var"; src: url("../fonts/Inter-LatinExt.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --dark: #0b0b0c;
  --dark-2: #161617;
  --line: #d2d2d7;
  --link: #0066cc;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-active: #006edb;
  --focus: rgba(0, 125, 250, .6);
  --error: #e30000;
  --ok: #008009;
  --r-lg: 28px;
  --r-md: 18px;
  --r-in: 12px;
  --pill: 980px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --spring: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter Var", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --max: 1024px;
  --wide: 1240px;
  --nav-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.47; font-weight: 400; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; font-optical-sizing: auto; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type scale (Apple-like) ---------- */
.h-hero { font-size: clamp(48px, 7.4vw, 96px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.h-1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -.03em; }
.h-2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.026em; }
.h-3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.02em; }
.sub { font-size: clamp(19px, 2vw, 28px); line-height: 1.2; letter-spacing: -.016em; font-weight: 400; }
.lead { font-size: 21px; line-height: 1.38; letter-spacing: -.016em; color: var(--text-2); }
.small { font-size: 14px; line-height: 1.43; letter-spacing: -.008em; }
.muted { color: var(--text-2); }
.center { text-align: center; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 22px; }
.section { padding: 120px 0; }
.section.tight { padding: 80px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--dark); color: #f5f5f7; }
.bg-dark .muted, .bg-dark .lead { color: #a1a1a6; }
.bg-dark a.link { color: #2997ff; }

/* ---------- links & buttons ---------- */
.link { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; color: var(--link); }
.link .ph { font-size: .82em; transform: translateY(1px); }
.link.lg { font-size: 21px; }
.links-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 22px; border: 0; border-radius: var(--pill); background: var(--blue); color: #fff; font-size: 17px; line-height: 1.18; font-weight: 400; letter-spacing: -.022em; white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: background .2s var(--ease), color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn:hover { background: var(--blue-hover); }
.btn:active { background: var(--blue-active); transform: scale(.98); }
.btn .ph { font-size: 18px; }
.btn.outline { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn.outline:hover { background: var(--link); color: #fff; }
.btn.lg { min-height: 52px; padding: 15px 30px; font-size: 18px; }
.btn.sm { min-height: 28px; padding: 4px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; }
.bg-dark .btn.outline, .on-photo .btn.outline { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.bg-dark .btn.outline:hover, .on-photo .btn.outline:hover { background: #fff; color: var(--text); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ======================= LIQUID GLASS ======================= */
.glass {
  --g-tint: rgba(255, 255, 255, .16);
  --g-rim: rgba(255, 255, 255, .7);
  --g-blur: 10px;
  position: relative;
  isolation: isolate;
  background: var(--g-tint);
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(180%);
  backdrop-filter: blur(var(--g-blur)) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -1px 1px rgba(255, 255, 255, .12),
    inset 0 0 18px rgba(255, 255, 255, .08),
    0 10px 36px rgba(0, 0, 0, .16);
}
/* specular rim: bright top-left and bottom-right edges */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--g-rim), rgba(255,255,255,.08) 30%, rgba(255,255,255,0) 55%, rgba(255,255,255,.35) 85%, var(--g-rim));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
/* soft sheen on the top half */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(140% 70% at 30% -20%, rgba(255,255,255,.34), rgba(255,255,255,0) 60%);
}
.glass.light { --g-tint: rgba(255, 255, 255, .62); --g-rim: rgba(255,255,255,.95); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 30px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.06); }
.glass.dark { --g-tint: rgba(30, 30, 32, .38); --g-rim: rgba(255,255,255,.4); color: #fff; }
.glass.clear { --g-tint: rgba(255, 255, 255, .06); --g-blur: 3px; }
/* Chromium gets real refraction through an SVG displacement map (added by site.js) */
.glass.refract { -webkit-backdrop-filter: var(--g-filter) saturate(180%); backdrop-filter: var(--g-filter) saturate(180%); }
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass.refract { -webkit-backdrop-filter: none; backdrop-filter: none; --g-tint: rgba(250,250,252,.96); color: var(--text); }
  .glass.dark { --g-tint: rgba(28,28,30,.96); color: #fff; }
}

.btn.glass-btn { color: #fff; --g-tint: rgba(255,255,255,.14); }
.btn.glass-btn:hover { --g-tint: rgba(255,255,255,.24); background: var(--g-tint); }
.btn.glass-btn:active { transform: scale(.97); }

/* ======================= NAV ======================= */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.nav-bar { pointer-events: auto; width: 100%; max-width: 980px; height: var(--nav-h); border-radius: var(--pill); display: flex; align-items: center; gap: 6px; padding: 0 8px 0 18px; color: var(--text); transition: color .3s var(--ease); }
.nav-bar.glass { --g-tint: rgba(255,255,255,.58); --g-rim: rgba(255,255,255,.95); }
.nav.on-dark .nav-bar { color: #f5f5f7; }
.nav.on-dark .nav-bar.glass { --g-tint: rgba(28,28,30,.32); --g-rim: rgba(255,255,255,.45); }
.brand { display: flex; align-items: center; gap: 9px; color: inherit; font-weight: 600; font-size: 15px; letter-spacing: -.02em; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { color: inherit; font-size: 13px; letter-spacing: -.01em; padding: 7px 12px; border-radius: var(--pill); opacity: .82; transition: opacity .2s, background .2s; }
.nav-links a:hover { opacity: 1; text-decoration: none; background: rgba(127,127,127,.12); }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav-cta { margin-left: 8px; }
.nav-menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; align-items: center; justify-content: center; font-size: 20px; }
.nav-sheet { position: fixed; top: calc(12px + var(--nav-h) + 8px); left: 12px; right: 12px; border-radius: 24px; padding: 10px; display: none; pointer-events: auto; color: var(--text); }
.nav-sheet.glass { --g-tint: rgba(255,255,255,.78); }
.nav-sheet a { display: block; color: inherit; font-size: 21px; font-weight: 600; letter-spacing: -.02em; padding: 12px 14px; border-radius: 14px; }
.nav-sheet a:hover { background: rgba(0,0,0,.05); text-decoration: none; }
.nav.open .nav-sheet { display: block; animation: sheet .35s var(--spring); }
@keyframes sheet { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ======================= HERO ======================= */
.hero-photo { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center; color: #fff; overflow: hidden; padding: 150px 22px 0; background: var(--dark); }
.hero-photo > .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: scale(1.04); animation: settle 2.4s var(--spring) forwards; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 38%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.7) 100%); }
.hero-photo > * { position: relative; z-index: 1; }
@keyframes settle { to { transform: scale(1); } }
.hero-photo .sub { margin-top: 14px; color: rgba(255,255,255,.9); }
.hero-photo .btn-row { margin-top: 30px; }

.page-hero { padding: 150px 0 72px; text-align: center; }
.page-hero .h-1 + .lead { margin: 18px auto 0; max-width: 36em; }
.page-hero.photo { position: relative; color: #fff; overflow: hidden; padding: 180px 0 120px; background: var(--dark); }
.page-hero.photo .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.35) 50%, rgba(0,0,0,.65)); }
.page-hero.photo > .wrap { position: relative; z-index: 1; }
.page-hero.photo .lead { color: rgba(255,255,255,.86); }

/* demo device inside the home hero */
.demo-frame { margin-top: 64px; width: min(960px, 100%); border-radius: 30px 30px 0 0; padding: 12px 12px 0; }
.demo-frame .inner { border-radius: 20px 20px 0 0; overflow: hidden; background: #1c1c1e; box-shadow: 0 0 0 .5px rgba(255,255,255,.15); }
.demo-frame .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; color: #98989d; font-size: 12px; background: #2a2a2c; }
.demo-frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #48484a; }
.demo-frame .bar span { margin: 0 auto; transform: translateX(-24px); }
.demo-frame iframe { display: block; width: 100%; height: 540px; border: 0; background: #1c1c1e; }

/* ======================= TILES (Apple homepage style) ======================= */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 600px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 32px 0; background: var(--bg-alt); color: var(--text); text-decoration: none !important; isolation: isolate; }
.tile .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--spring); }
.tile:hover .bgimg { transform: scale(1.03); }
.tile.photo { color: #fff; }
.tile.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.2) 42%, rgba(0,0,0,0) 70%); }
.tile h2 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.028em; line-height: 1.08; }
.tile p { font-size: clamp(19px, 1.8vw, 24px); margin-top: 8px; letter-spacing: -.016em; }
.tile .links-row { margin-top: 16px; }
.tile.photo .link { color: #fff; }
.tile .tag { margin-top: auto; margin-bottom: 26px; padding: 10px 18px; border-radius: var(--pill); font-size: 14px; color: #fff; display: inline-flex; gap: 8px; align-items: center; }

/* ======================= CAROUSEL ======================= */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 82vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(22px, calc((100vw - var(--wide)) / 2 + 22px)) 24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card-xl { scroll-snap-align: center; position: relative; overflow: hidden; border-radius: var(--r-lg); height: 560px; color: #fff; padding: 32px; display: flex; flex-direction: column; background: var(--dark); isolation: isolate; }
.card-xl .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.card-xl::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0) 46%); }
.card-xl .kicker { font-size: 14px; font-weight: 600; opacity: .85; }
.card-xl h3 { font-size: 28px; line-height: 1.14; letter-spacing: -.022em; margin-top: 6px; max-width: 12em; }
.card-xl .chip-file { margin-top: auto; align-self: flex-start; padding: 10px 16px; border-radius: var(--pill); font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.rail-ctrl { display: flex; gap: 14px; justify-content: flex-end; max-width: var(--wide); margin: 0 auto; padding: 0 22px; }
.circle { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; font-size: 18px; background: rgba(210,210,215,.64); color: rgba(0,0,0,.56); transition: background .2s, transform .2s; }
.circle:hover { background: rgba(223,223,227,.7); color: rgba(0,0,0,.64); }
.circle:active { transform: scale(.94); }
.circle[disabled] { opacity: .4; cursor: default; }

/* ======================= GLASS SHOWCASE ======================= */
.showcase { position: relative; overflow: hidden; color: #fff; background: var(--dark); padding: 140px 0; isolation: isolate; }
.showcase .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.showcase .grid4 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 64px; }
.gcard { border-radius: var(--r-lg); padding: 30px; min-height: 230px; display: flex; flex-direction: column; color: #fff; }
.gcard .ph { font-size: 30px; }
.gcard h3 { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; margin-top: auto; }
.gcard p { color: rgba(255,255,255,.78); margin-top: 6px; font-size: 16px; }
.gcard.a { grid-column: span 7; } .gcard.b { grid-column: span 5; } .gcard.c { grid-column: span 5; } .gcard.d { grid-column: span 7; }

/* ======================= STORY (installers -> one panel) ======================= */
.files { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 48px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--pill); background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 15px; color: var(--text-2); position: relative; transition: opacity .5s var(--ease); }
.file-chip .ph { font-size: 16px; }
.file-chip::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: var(--text-3); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 100ms + 250ms); }
.files.in .file-chip::after { transform: scaleX(1); }
.files.in .file-chip { opacity: .45; transition-delay: calc(var(--i) * 100ms + 400ms); }
.file-chip.one { background: var(--text); color: #fff; box-shadow: none; opacity: 1 !important; transform: scale(.94); transition: transform .7s var(--spring) 1.3s; }
.file-chip.one::after { display: none; }
.files.in .file-chip.one { transform: scale(1.06); }

/* ======================= PACK CARDS ======================= */
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: #fff; color: var(--text); text-decoration: none !important; box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 4px 20px rgba(0,0,0,.04); transition: box-shadow .4s var(--ease), transform .4s var(--spring); }
.bg-alt .pcard { box-shadow: none; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.pcard .ph-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e8ed; }
.pcard .ph-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--spring); }
.pcard:hover .ph-img img { transform: scale(1.04); }
.pcard .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.pcard p { color: var(--text-2); font-size: 15px; }
.pcard .meta { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; align-items: center; color: var(--text-2); font-size: 13px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--pill); font-size: 12px; font-weight: 600; letter-spacing: 0; background: #e8e8ed; color: var(--text); white-space: nowrap; }
.badge.free { background: #e3f3e6; color: #0b6b1d; }
.badge.pro { background: var(--text); color: #fff; }
.badge.soon { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-weight: 500; }
.hosts { display: inline-flex; gap: 4px; }
.host { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 6px; font-size: 11px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.skeleton { background: linear-gradient(90deg, #ececf0 25%, #f6f6f8 50%, #ececf0 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-md); height: 420px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* filter bar */
.filterbar { position: sticky; top: calc(12px + var(--nav-h) + 10px); z-index: 20; display: flex; justify-content: center; margin: 0 auto 40px; padding: 0 12px; pointer-events: none; }
.filterbar .glass { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--pill); flex-wrap: wrap; justify-content: center; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: var(--pill); background: rgba(118,118,128,.12); }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 16px; border-radius: var(--pill); font-size: 14px; color: var(--text); cursor: pointer; letter-spacing: -.01em; transition: color .25s; white-space: nowrap; }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: var(--pill); background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); transition: transform .45s var(--spring), width .45s var(--spring); }
.seg button[aria-pressed="true"] { font-weight: 600; }
.search { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: var(--pill); background: rgba(118,118,128,.12); }
.search .ph { color: var(--text-2); }
.search input { border: 0; background: transparent; outline: 0; font: inherit; font-size: 15px; width: 170px; color: var(--text); }
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-2); }
.empty-state .ph { font-size: 44px; color: var(--text-3); }
.empty-state h3 { color: var(--text); font-size: 24px; margin: 14px 0 6px; }

/* ======================= PACK DETAIL ======================= */
.pd-hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--dark); color: #fff; padding: 140px 0 48px; }
.pd-hero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 40%, rgba(0,0,0,.5)); }
.pd-card { position: relative; z-index: 1; border-radius: var(--r-lg); padding: 30px 32px; max-width: 520px; }
.pd-card .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-card .badge { background: rgba(255,255,255,.2); color: #fff; }
.pd-card h1 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -.03em; line-height: 1.05; }
.pd-card p { margin-top: 10px; font-size: 19px; color: rgba(255,255,255,.88); }
.pd-card .btn-row { justify-content: flex-start; margin-top: 24px; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 48px; }
.spec > div { background: #fff; padding: 24px; }
.spec dt { font-size: 14px; color: var(--text-2); }
.spec dd { margin: 4px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.includes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.includes span { padding: 8px 14px; border-radius: var(--pill); background: var(--bg-alt); font-size: 15px; }

/* ======================= PRICING ======================= */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 48px auto 0; }
.plan { border-radius: var(--r-lg); padding: 40px; display: flex; flex-direction: column; background: #fff; }
.plan.pro { background: var(--dark); color: #f5f5f7; }
.plan h2 { font-size: 28px; letter-spacing: -.022em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 2px; }
.plan .price b { font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--text-2); font-size: 17px; }
.plan.pro .price span, .plan.pro .note { color: #a1a1a6; }
.plan .note { color: var(--text-2); font-size: 15px; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }
.plan li .ph { color: var(--ok); font-size: 18px; margin-top: 3px; }
.plan.pro li .ph { color: #30d158; }
.plan .btn { margin-top: auto; }
.swap { transition: opacity .2s var(--ease), transform .2s var(--ease); }
.swap.out { opacity: 0; transform: translateY(6px); }
.compare { width: 100%; max-width: 900px; margin: 48px auto 0; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { padding: 18px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-size: 14px; color: var(--text-2); font-weight: 600; }
.compare .ph-check { color: var(--ok); font-size: 20px; }
.compare .ph-minus { color: var(--text-3); font-size: 20px; }
.compare tbody tr:last-child td { border-bottom: 0; }

/* ======================= STEPS / SPLIT ======================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { display: grid; gap: 28px; margin-top: 32px; counter-reset: s; }
.steps li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.steps li::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; font-weight: 600; font-size: 17px; }
.steps h3 { font-size: 21px; letter-spacing: -.02em; }
.steps p { color: var(--text-2); margin-top: 4px; }
.steps ol { padding: 0; margin: 0; }
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.req > div { background: #fff; border-radius: var(--r-md); padding: 28px; }
.req .ph { font-size: 28px; }
.req h3 { font-size: 19px; margin-top: 14px; letter-spacing: -.018em; }
.req p { color: var(--text-2); font-size: 15px; margin-top: 4px; }

/* ======================= ACCORDION ======================= */
.acc { max-width: 820px; margin: 0 auto; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -.018em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ph { font-size: 20px; color: var(--text-2); transition: transform .35s var(--spring); flex: none; }
.acc details[open] summary .ph { transform: rotate(45deg); }
.acc .ans { color: var(--text-2); padding: 0 0 24px; max-width: 42em; }
.acc .group-title { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 48px 0 4px; }

/* ======================= FORMS (Apple-style) ======================= */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; height: 56px; padding: 22px 16px 6px; border: 1px solid #86868b; border-radius: var(--r-in);
  background: #fff; color: var(--text); font: inherit; font-size: 17px; letter-spacing: -.016em; outline: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { height: 140px; padding-top: 26px; resize: vertical; line-height: 1.4; }
.field select { padding-right: 44px; cursor: pointer; }
.field .chev { position: absolute; right: 16px; top: 19px; pointer-events: none; color: var(--text-2); font-size: 18px; }
.field label { position: absolute; left: 17px; top: 17px; font-size: 17px; color: #6e6e73; pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease), color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--focus); }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label,
.field select ~ label { transform: translateY(-9px) scale(.706); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); background: #fff2f4; }
.field.invalid input:focus { box-shadow: 0 0 0 4px rgba(227,0,0,.25); }
.field .err { display: none; align-items: center; gap: 6px; font-size: 12px; color: var(--error); margin-top: 8px; }
.field.invalid .err { display: flex; }
.field .hint { font-size: 12px; color: var(--text-2); margin-top: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1px solid #86868b; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible { box-shadow: 0 0 0 4px var(--focus); }
.form-status { display: none; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-in); font-size: 15px; }
.form-status.show { display: flex; }
.form-status.ok { background: #e3f3e6; color: #0b6b1d; }
.form-status.err { background: #fff2f4; color: var(--error); }
.form-status.info { background: var(--bg-alt); color: var(--text-2); }
.inline-form { display: flex; gap: 12px; max-width: 520px; margin: 32px auto 0; }
.inline-form .field { flex: 1; }
.inline-form .btn { height: 56px; border-radius: var(--r-in); padding: 0 24px; }
.panel-form { max-width: 640px; margin: 40px auto 0; background: #fff; border-radius: var(--r-lg); padding: 40px; }
.bg-alt .panel-form { box-shadow: none; }

/* ======================= FOOTER ======================= */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; line-height: 1.33; letter-spacing: -.01em; padding: 32px 0 24px; }
.footer .wrap { max-width: 980px; }
.footer .note { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.footer .note p + p { margin-top: 8px; }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; }
.footer h4 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }

/* ======================= TOAST ======================= */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: var(--pill); font-size: 15px; display: flex; gap: 8px; align-items: center; transition: opacity .3s, transform .4s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ======================= REVEAL ======================= */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--spring); transition-delay: calc(var(--d, 0) * 90ms); }
  .rv.in { opacity: 1; transform: none; }
  .hero-in > * { opacity: 0; transform: translateY(20px); animation: up 1.1s var(--spring) forwards; }
  .hero-in > *:nth-child(2) { animation-delay: .1s; } .hero-in > *:nth-child(3) { animation-delay: .2s; } .hero-in > *:nth-child(4) { animation-delay: .35s; }
  @keyframes up { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1068px) {
  .section { padding: 96px 0; }
  .pack-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 833px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: inline-flex; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 500px; padding-top: 44px; }
  .showcase .grid4 { grid-template-columns: 1fr; }
  .gcard.a, .gcard.b, .gcard.c, .gcard.d { grid-column: auto; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .req, .spec { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .demo-frame iframe { height: 500px; }
}
@media (max-width: 734px) {
  body { font-size: 17px; }
  .section { padding: 72px 0; }
  .wrap, .wrap-wide { padding: 0 16px; }
  .hero-photo { padding: 120px 16px 0; }
  .pack-grid { grid-template-columns: 1fr; }
  .tiles { padding: 8px; gap: 8px; }
  .tile { border-radius: 22px; min-height: 460px; }
  .card-xl { height: 480px; }
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; }
  .form .two { grid-template-columns: 1fr; }
  .panel-form { padding: 24px 18px; border-radius: 22px; }
  .plan { padding: 28px; }
  .compare { font-size: 15px; }
  .compare th, .compare td { padding: 14px 6px; }
  .filterbar .glass { border-radius: 24px; }
  .search input { width: 120px; }
  .page-hero { padding: 120px 0 56px; }
  .page-hero.photo { padding: 140px 0 88px; }
  .pd-card { padding: 24px; }
  .demo-frame { margin-top: 44px; padding: 8px 8px 0; border-radius: 22px 22px 0 0; }
  .demo-frame .bar span { display: none; }
}

/* ---------- additions ---------- */
.brand svg rect { fill: currentColor; }
.brand svg path { stroke: var(--brand-ink, #fff); }
.nav.on-dark .brand svg { --brand-ink: #1d1d1f; }
.check-field .err { display: none; align-items: center; gap: 6px; font-size: 12px; color: var(--error); margin: 8px 0 0 32px; }
.check-field.invalid .err { display: flex; }
.check-field.invalid .check input { border-color: var(--error); }
.seg.on-dark { background: rgba(255,255,255,.16); }
.seg.on-dark button { color: #fff; }
.seg.on-dark button[aria-pressed="true"] { color: #1d1d1f; }
.search.big { height: 56px; max-width: 560px; margin: 32px auto 0; padding: 0 20px; border-radius: var(--pill); }
.search.big input { width: 100%; font-size: 17px; color: inherit; }
.search.big input::placeholder { color: rgba(255,255,255,.75); }
.search.big .ph { color: rgba(255,255,255,.85); font-size: 20px; }
.count { font-size: 14px; color: var(--text-2); padding: 0 10px 0 4px; white-space: nowrap; }
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; letter-spacing: -.02em; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.feature-list { display: grid; gap: 22px; margin-top: 28px; }
.feature-list li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.feature-list .ph { font-size: 26px; color: var(--text); }
.feature-list h3 { font-size: 19px; letter-spacing: -.018em; }
.feature-list p { color: var(--text-2); margin-top: 2px; }
.feature-list ul, ul.feature-list { padding: 0; margin: 28px 0 0; }
.cta-band { text-align: center; }
.cta-band .links-row { margin-top: 20px; }
.hero-photo .demo-frame { align-self: center; }
.gcard.glass { --g-tint: rgba(16, 16, 18, .34); --g-blur: 26px; --g-rim: rgba(255,255,255,.55); }
.gcard h3, .gcard p { text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.card-xl .chip-file.glass { --g-tint: rgba(20,20,22,.28); --g-blur: 18px; }
.pd-card.glass { --g-tint: rgba(16,16,18,.36); --g-blur: 28px; }
@media (max-width: 734px) {
  .filterbar .glass { width: 100%; }
  .filterbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filterbar .seg::-webkit-scrollbar { display: none; }
  .filterbar .search { flex: 1; }
  .filterbar .search input { width: 100%; }
}
.tile.photo::after { background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.32) 38%, rgba(0,0,0,0) 66%); }
.tile.photo h2, .tile.photo p { text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.steps a .ph { font-size: .9em; }

/* ======================= v2: fewer photos, Apple product-page layout ======================= */
/* nav: more breathing room at the ends */
.nav-bar { padding: 0 10px 0 22px; gap: 10px; }
.brand { margin-right: auto; padding-right: 16px; }
.nav-cta { margin-left: 14px; }
.nav-menu { margin-right: 2px; }
@media (max-width: 833px) { .nav { padding: 0 16px; } .nav-bar { padding: 0 8px 0 20px; } .nav-sheet { left: 16px; right: 16px; } }

/* plain hero with the product (live panel) */
.hero-plain { padding: 136px 0 40px; text-align: center; }
.hero-plain .sub { margin-top: 10px; color: var(--text-2); }
.hero-plain .btn-row { margin-top: 30px; }
.demo-frame.plain { margin: 64px auto 0; max-width: 1000px; padding: 0; border-radius: 22px; background: #1c1c1e; box-shadow: 0 40px 100px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; }
.demo-frame.plain .inner { border-radius: 0; box-shadow: none; }
.demo-note { margin-top: 16px; font-size: 14px; color: var(--text-2); display: flex; gap: 8px; align-items: center; justify-content: center; }

/* tiles without photos */
.tiles .tile { min-height: 460px; background: #fff; }
.tiles .tile.dark { background: var(--dark); color: #f5f5f7; }
.tiles .tile.dark p { color: #a1a1a6; }
.tiles .tile.dark .link { color: #2997ff; }
.tile-art { margin-top: auto; padding-bottom: 44px; width: 100%; display: flex; justify-content: center; }
.name-cloud { flex-wrap: wrap; gap: 8px; max-width: 460px; margin-left: auto; margin-right: auto; }
.name-cloud span { padding: 8px 14px; border-radius: var(--pill); background: var(--bg-alt); font-size: 15px; font-weight: 500; }
.big-word { font-size: clamp(96px, 13vw, 168px); font-weight: 700; letter-spacing: -.06em; line-height: .9; padding-bottom: 36px;
  background: linear-gradient(180deg, #f5f5f7 0%, rgba(245,245,247,.15) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-word.light { background: linear-gradient(180deg, #1d1d1f 0%, rgba(29,29,31,.12) 100%); -webkit-background-clip: text; background-clip: text; }
.apps { gap: 18px; }
.apps span { width: 104px; height: 104px; border-radius: 24px; display: grid; place-items: center; font-size: 42px; font-weight: 700; letter-spacing: -.02em; background: #1c1c3a; }
.apps .ae { color: #9999ff; box-shadow: inset 0 0 0 2px #9999ff; }
.apps .pr { color: #ea77ff; box-shadow: inset 0 0 0 2px #ea77ff; }

/* rail cards without photos */
.rail-card { scroll-snap-align: center; height: 400px; border-radius: var(--r-lg); background: var(--bg-alt); padding: 34px; display: flex; flex-direction: column; }
.rail-card > .ph { font-size: 44px; color: var(--text); }
.rail-card .kicker { margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.rail-card h3 { font-size: 26px; line-height: 1.15; letter-spacing: -.022em; margin-top: 6px; }
.rail-card .chip-file { margin-top: auto; align-self: flex-start; padding: 9px 15px; border-radius: var(--pill); background: #fff; font-size: 14px; color: var(--text-2); }

/* download install list, centered */
.install { max-width: 720px; margin: 0 auto; }
.install .steps { margin-top: 44px; }

/* support search on white */
.search.big:not(.glass) { background: var(--bg-alt); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.search.big:not(.glass) input::placeholder { color: var(--text-3); }
.search.big:not(.glass) .ph { color: var(--text-2); }
.search.big:not(.glass) input { color: var(--text); }

/* pack detail: contained image with a glass card */
.pd-top { padding: 112px 0 0; }
.pd-figure { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--dark); aspect-ratio: 16 / 7; max-height: 560px; width: 100%; }
.pd-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-figure .pd-card { position: absolute; left: 28px; bottom: 28px; max-width: min(520px, calc(100% - 56px)); }
.footer .cols { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 734px) {
  .hero-plain { padding: 112px 0 24px; }
  .demo-frame.plain { margin-top: 40px; border-radius: 16px; }
  .tiles .tile { min-height: 400px; }
  .apps span { width: 84px; height: 84px; font-size: 34px; border-radius: 20px; }
  .rail-card { height: 360px; padding: 28px; }
  .pd-top { padding-top: 92px; }
  .pd-figure { aspect-ratio: auto; max-height: none; overflow: visible; background: none; }
  .pd-figure img { position: static; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; }
  .pd-figure .pd-card { position: relative; left: 0; bottom: 0; max-width: none; margin-top: -60px; margin-left: 12px; margin-right: 12px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}

/* ======================= v3: clean Apple style (no liquid glass) ======================= */
/* Apple-style global nav: full-width translucent bar */
.nav { top: 0; padding: 0; }
.nav-bar, .nav-bar.glass { max-width: none; height: 52px; border-radius: 0; box-shadow: none; background: rgba(251, 251, 253, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); color: var(--text);
  padding: 0 max(24px, calc((100vw - 1024px) / 2 + 24px)); gap: 8px; }
.nav-bar::before, .nav-bar::after { display: none; }
.nav.on-dark .nav-bar { background: rgba(22, 22, 23, .82); color: #f5f5f7; border-bottom-color: rgba(255,255,255,.08); }
.brand { padding-right: 24px; }
.nav-links a { font-size: 12.5px; padding: 6px 12px; }
.nav-cta { margin-left: 16px; }
.nav-sheet, .nav-sheet.glass { top: 52px; left: 0; right: 0; border-radius: 0; padding: 12px 24px 24px; background: rgba(251,251,253,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.nav-sheet::before, .nav-sheet::after { display: none; }
@media (max-width: 833px) { .nav { padding: 0; } .nav-bar { padding: 0 20px; } .nav-sheet { left: 0; right: 0; } }
.hero-plain { padding-top: 120px; }
.page-hero { padding-top: 132px; }

/* plain toast */
.toast { background: rgba(29,29,31,.92); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* packs filter bar (plain) */
.filterbar { top: 64px; }
.filter-inner { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--pill); flex-wrap: wrap; justify-content: center; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); }
@media (max-width: 734px) { .filter-inner { width: 100%; border-radius: 22px; } .filterbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } }

/* pack page */
.pd-head { padding: 128px 0 40px; }
.pd-head .badges { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.pd-head .sub { margin-top: 12px; color: var(--text-2); }
.pd-head .btn-row { margin-top: 28px; }
.pd-hosts { margin-top: 18px; font-size: 14px; color: var(--text-2); }
.pd-media { padding-bottom: 24px; }
.player { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.12); }
.player img, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player video { opacity: 0; transition: opacity .4s; }
.player.playing video { opacity: 1; }
.player.playing img, .player.playing .play, .player.playing .player-label { display: none; }
.player .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #1d1d1f; display: grid; place-items: center; font-size: 32px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s var(--spring); }
.player .play .ph { transform: translateX(3px); }
.player .play:hover { transform: scale(1.06); }
.player .play:active { transform: scale(.96); }
.player-label { position: absolute; left: 50%; top: calc(50% + 58px); transform: translateX(-50%); color: #fff; font-size: 15px; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.pv { margin: 0; }
.pv-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #e8e8ed; }
.pv-media img, .pv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-media video { opacity: 0; transition: opacity .5s; }
.pv.live .pv-media video { opacity: 1; }
.pv figcaption { margin-top: 12px; font-size: 17px; font-weight: 600; letter-spacing: -.016em; }
@media (max-width: 734px) {
  .pd-head { padding-top: 104px; }
  .player { border-radius: 18px; }
  .player .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; font-size: 26px; }
  .player-label { top: calc(50% + 44px); }
  .preview-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ======================= v4: bigger nav, articles ======================= */
/* nav: a step up from Apple's 44px bar so the links read at a glance */
:root { --nav-h: 58px; }
.nav-bar, .nav-bar.glass { height: var(--nav-h); }
.brand { font-size: 16.5px; gap: 10px; }
.brand svg { width: 26px; height: 26px; }
.nav-links a { font-size: 14px; padding: 8px 14px; }
.nav-cta { min-height: 32px; padding: 5px 15px; font-size: 14px; }
.nav-menu { font-size: 22px; }
.nav-sheet, .nav-sheet.glass { top: var(--nav-h); }
.filterbar { top: calc(var(--nav-h) + 12px); }

/* article cards reuse .pcard; the cover is a tinted gradient with an icon instead of a photo */
.tint-blue { --tint-bg: linear-gradient(135deg, #eaf2ff, #cfe0ff); --tint-ink: #0a57c2; }
.tint-purple { --tint-bg: linear-gradient(135deg, #f1ecff, #d9ccff); --tint-ink: #5b2bd6; }
.tint-orange { --tint-bg: linear-gradient(135deg, #fff1e6, #ffd6b3); --tint-ink: #c2410c; }
.tint-teal { --tint-bg: linear-gradient(135deg, #e6f9f7, #b8ece6); --tint-ink: #0f766e; }
.tint-pink { --tint-bg: linear-gradient(135deg, #ffecf2, #ffc9da); --tint-ink: #be185d; }
.tint-green { --tint-bg: linear-gradient(135deg, #eaf8ea, #c6ecc9); --tint-ink: #15803d; }
.pcard .ph-img.acover { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--tint-bg, var(--bg-alt)); color: var(--tint-ink, var(--text)); }
.acover .ph { font-size: 64px; transition: transform 1s var(--spring); }
.pcard:hover .acover .ph { transform: scale(1.08); }
.kicker-sm { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tint-ink, var(--text-2)); }
.pcard.acard .body { gap: 6px; }
.pcard.acard .meta { font-size: 13px; }
.pcard.acard .meta > * + *::before { content: "\00b7"; margin-right: 8px; }

/* article page */
.article-head { padding: 136px 0 40px; text-align: center; }
.article-head .kicker-sm { display: inline-block; margin-bottom: 18px; }
.article-head .h-1 { max-width: 18em; margin: 0 auto; }
.article-head .lead { margin: 20px auto 0; max-width: 34em; }
.article-meta { margin-top: 22px; font-size: 15px; color: var(--text-2); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.article-meta > * + *::before { content: "\00b7"; margin-right: 8px; }
.article-cover { border-radius: var(--r-lg); aspect-ratio: 21 / 9; display: grid; place-items: center; background: var(--tint-bg, var(--bg-alt)); color: var(--tint-ink, var(--text)); }
.article-cover .ph { font-size: clamp(72px, 10vw, 128px); }
.article-body { max-width: 680px; margin: 56px auto 0; padding: 0 22px; }
.article-body p, .article-body li { color: var(--text); font-size: 19px; line-height: 1.53; letter-spacing: -.012em; }
.article-body p + p, .article-body ul + p, .article-body ol + p, .article-body pre + p, .article-body table + p { margin-top: 18px; }
.article-body h2 { font-size: 28px; letter-spacing: -.022em; line-height: 1.15; margin: 52px 0 14px; }
.article-body h3 { font-size: 21px; letter-spacing: -.018em; margin: 34px 0 10px; }
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 1.3em; }
.article-body li + li { margin-top: 8px; }
.article-body li::marker { color: var(--text-2); }
.article-body code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; background: var(--bg-alt); padding: 2px 7px; border-radius: 6px; }
.article-body pre { margin: 20px 0; padding: 20px 24px; border-radius: var(--r-md); background: var(--dark); color: #f5f5f7; overflow-x: auto; font-size: 15px; line-height: 1.55; }
.article-body pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.article-body kbd { display: inline-block; font-family: var(--font); font-size: .82em; font-weight: 600; padding: 2px 8px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1.5px 0 var(--line); white-space: nowrap; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 17px; }
.article-body th, .article-body td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body td { color: var(--text); }
.article-body th { font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.article-body td:first-child { white-space: nowrap; }
.callout { display: flex; gap: 14px; align-items: flex-start; margin: 32px 0; padding: 20px 22px; border-radius: var(--r-md); background: var(--bg-alt); }
.callout .ph { font-size: 24px; color: var(--blue); flex: none; margin-top: 2px; }
.callout p { font-size: 17px; line-height: 1.47; }
.callout p + p { margin-top: 8px; }
.article-foot { max-width: 680px; margin: 56px auto 0; padding: 28px 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.article-foot .rule { width: 100%; border-top: 1px solid var(--line); margin: 0 0 28px; }
.share { display: flex; gap: 10px; align-items: center; }
.share span { font-size: 14px; color: var(--text-2); margin-right: 4px; }
.share .circle { width: 40px; height: 40px; font-size: 18px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags a { padding: 7px 13px; border-radius: var(--pill); background: var(--bg-alt); font-size: 14px; color: var(--text); }
.tags a:hover { background: #e8e8ed; text-decoration: none; }
.cta-card { max-width: 860px; margin: 64px auto 0; border-radius: var(--r-lg); background: var(--dark); color: #f5f5f7; padding: 56px 40px; text-align: center; }
.cta-card h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.024em; line-height: 1.1; }
.cta-card p { color: #a1a1a6; margin-top: 12px; font-size: 19px; }
.cta-card .btn-row { margin-top: 28px; }
.cta-card .btn.outline { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.cta-card .btn.outline:hover { background: #fff; color: var(--text); }
@media (max-width: 734px) {
  .article-head { padding-top: 108px; }
  .article-cover { border-radius: 22px; aspect-ratio: 16 / 9; }
  .article-body { margin-top: 40px; padding: 0 16px; }
  .article-body p, .article-body li { font-size: 17px; }
  .article-body h2 { font-size: 24px; margin-top: 40px; }
  .article-body pre { padding: 16px 18px; font-size: 13.5px; border-radius: 14px; }
  .article-body table { font-size: 15px; }
  .article-body th, .article-body td { padding: 10px 6px; }
  .article-body td:first-child { white-space: normal; }
  .article-foot { padding: 24px 16px 0; }
  .cta-card { padding: 40px 22px; border-radius: 22px; margin-top: 48px; }
}
