/* Make App Great Again — production styles (design: Concept A, Aurora Motion) */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-regular.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-var.woff2) format("woff2"); }

:root {
  --bg: #05060b;
  --bg-2: #0b0d16;
  --ink: #eef0f8;
  --mute: #a3a9bd;
  --dim: #7f859b;
  --glass: rgba(255,255,255,.055);
  --glass-2: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.18);
  --a1: #47f0c9; --a2: #7b5cff; --a3: #ff58a8;
  --ac: #7b5cff; --ac2: #b9a8ff;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
  --r: 28px;
  --ease: cubic-bezier(.2,.7,.1,1);
  --wrap: 1160px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Background light ---------- */
.sky { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none;
  background: radial-gradient(70% 45% at 20% -5%, color-mix(in srgb, var(--a1) 22%, transparent), transparent 70%),
              radial-gradient(60% 45% at 85% 0%, color-mix(in srgb, var(--a2) 30%, transparent), transparent 70%),
              radial-gradient(50% 35% at 55% 10%, color-mix(in srgb, var(--a3) 14%, transparent), transparent 70%), var(--bg); }
.sky.tinted { background: radial-gradient(70% 45% at 25% -5%, color-mix(in srgb, var(--ac2) 26%, transparent), transparent 70%),
              radial-gradient(60% 45% at 85% 0%, color-mix(in srgb, var(--ac) 34%, transparent), transparent 70%), var(--bg); }
#aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
#aurora.on { opacity: 1; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- Header ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(var(--wrap), calc(100% - 28px));
  display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 18px;
  background: rgba(9,11,19,.55); border: 1px solid var(--line); border-radius: 20px;
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.wordmark { font-family: var(--serif); font-size: 23px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.wordmark em { font-style: italic; background: linear-gradient(100deg, var(--a1), #b9a8ff 50%, var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .04em; }
.nav-links { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 12px; color: var(--mute); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--glass); }
.nav-cta { text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 12px; color: #05060b; background: var(--ink); white-space: nowrap; }
.nav-cta:hover { background: #fff; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 12px; background: var(--glass-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px; border-radius: 18px; background: rgba(12,14,24,.96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--glass-2); }

/* ---------- Layout + type ---------- */
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
main { display: block; min-height: 60vh; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.h-display { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1; margin: 0; }
.h-display em { font-style: italic; background: linear-gradient(100deg, var(--a1) 0%, #b9a8ff 45%, var(--a3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { color: var(--mute); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 36em; }
.page-head { padding: 150px 0 40px; }
.page-head .h-display { font-size: clamp(46px, 7vw, 96px); margin: 16px 0 18px; }
.crumbs { font-size: 13px; color: var(--dim); margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--dim); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--dim); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 16px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.btn-light { background: var(--ink); color: #05060b; }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-glass { background: var(--glass); border-color: var(--line-2); }
.btn-glass:hover { background: var(--glass-2); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.badge-store { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .3s var(--ease); }
.badge-store img { height: 52px; width: auto; display: block; }
.badge-store:hover { transform: translateY(-2px); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: rgba(71,240,201,.12); color: #7ff5d9; letter-spacing: .01em; white-space: nowrap; }
.pill.soon { background: rgba(255,88,168,.13); color: #ffb0d3; }
.pill.cat { background: var(--glass-2); color: var(--mute); font-weight: 600; }

/* Glass + pointer light */
.glass { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); isolation: isolate; }
.lit::before, .lit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; }
.lit::before { z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.09), transparent 45%); }
.lit::after { padding: 1px; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), rgba(255,255,255,0) 45%);
  -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 exclude, linear-gradient(#000 0 0); }
@media (hover: hover) and (pointer: fine) { .lit:hover::before, .lit:hover::after { opacity: 1; } }

/* App icons */
.icon { display: block; width: var(--is, 64px); height: var(--is, 64px); border-radius: 22.5%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; background: #111; }
.icon-ph { display: grid; place-items: center; width: var(--is, 64px); height: var(--is, 64px); border-radius: 22.5%; flex: none; font-family: var(--serif); font-size: calc(var(--is, 64px) * .5); color: #fff;
  background: radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--ac) 85%, #fff), var(--ac) 45%, color-mix(in srgb, var(--ac) 35%, #000)); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; }

/* Reveal (only when JS runs and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); animation: rv-safety 0s 2.5s forwards; }
  .js .rv.in { opacity: 1; transform: none; filter: none; animation: none; }
  @keyframes rv-safety { to { opacity: 1; transform: none; filter: none; } }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; } }
}

/* ---------- Home ---------- */
.hero { min-height: min(100svh, 980px); display: grid; place-items: center; text-align: center; padding: 140px 0 70px; position: relative; }
.hero .h-display { font-size: clamp(54px, 9.4vw, 146px); margin: 22px 0 26px; }
.hero .lead { margin: 0 auto; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.orbit { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(10px, 1.5vw, 20px); margin: 60px auto 0; padding: 0; list-style: none; max-width: 1060px; }
.orbit .icon { width: clamp(44px, 4.8vw, 64px); height: auto; aspect-ratio: 1; }
.orbit a { --is: clamp(50px, 5.4vw, 72px); display: block; position: relative; border-radius: 22%; transition: transform .5s var(--ease); }
.orbit a::after { content: ""; position: absolute; inset: 18% 10% -24%; z-index: -1; border-radius: 50%; background: var(--ac); filter: blur(20px); opacity: .45; transition: opacity .4s; }
.orbit a:hover { transform: translateY(-8px) scale(1.06); }
.orbit a:hover::after { opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .orbit li { animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); } }
@keyframes bob { 50% { transform: translateY(-9px); } }
.stats { display: flex; justify-content: center; flex-wrap: wrap; margin: 52px auto 0; width: fit-content; max-width: 100%; padding: 6px; border-radius: 18px; font-size: 13px; color: var(--mute); }
.stats span { padding: 8px 18px; }
.stats span + span { border-left: 1px solid var(--line); }
.stats b { color: var(--ink); font-weight: 600; margin-right: 6px; }

.sec { padding: 110px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 30px 40px; margin-bottom: 50px; flex-wrap: wrap; }
.sec-head .h-display { font-size: clamp(40px, 5.4vw, 80px); margin-top: 14px; }
.sec-head p { color: var(--mute); max-width: 28em; margin: 0; }

.stack { display: grid; gap: 28px; }
.feat { position: sticky; top: calc(96px + var(--i) * 14px); min-height: min(600px, 76vh); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding: clamp(28px, 4.5vw, 60px); overflow: hidden; text-decoration: none; }
.feat-tint { position: absolute; inset: 0; z-index: -2; background: radial-gradient(80% 90% at 85% 40%, color-mix(in srgb, var(--ac) 38%, transparent), transparent 62%), linear-gradient(160deg, rgba(14,16,26,.95), rgba(8,9,16,.93)); }
.feat-top { display: flex; align-items: center; gap: 14px; }
.feat-top .icon { --is: 56px; }
.feat-top small { display: block; color: var(--mute); font-size: 13px; }
.feat h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.02em; margin: 28px 0 14px; }
.feat p { color: var(--mute); max-width: 30em; margin: 0 0 24px; }
.feat-more { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.feat-more i { font-style: normal; transition: transform .3s var(--ease); }
.feat:hover .feat-more i { transform: translateX(5px); }
.fan { position: relative; height: min(500px, 62vh); }
.fan img { position: absolute; top: 50%; left: 50%; width: auto; height: 86%; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12); transition: transform .8s var(--ease); }
.fan img:nth-child(1) { transform: translate(-50%, -50%) translateX(-34%) rotate(-7deg) scale(.88); z-index: 1; }
.fan img:nth-child(2) { transform: translate(-50%, -50%); z-index: 2; }
.fan img:nth-child(3) { transform: translate(-50%, -50%) translateX(34%) rotate(7deg) scale(.88); z-index: 1; }
.feat:hover .fan img:nth-child(1) { transform: translate(-50%, -50%) translateX(-42%) rotate(-9deg) scale(.88); }
.feat:hover .fan img:nth-child(3) { transform: translate(-50%, -50%) translateX(42%) rotate(9deg) scale(.88); }
.fan::before { content: ""; position: absolute; left: 20%; right: 20%; top: 20%; bottom: 20%; border-radius: 50%; background: var(--ac); filter: blur(70px); opacity: .4; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts article { padding: 30px; }
.facts b { display: block; font-family: var(--serif); font-size: 46px; font-weight: 400; line-height: 1; margin-bottom: 12px; }
.facts p { margin: 0; color: var(--mute); }

/* ---------- Directory ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: 18px; width: fit-content; max-width: 100%; margin: 0 0 30px; list-style: none; }
.chips a { display: block; text-decoration: none; font-size: 14px; color: var(--mute); padding: 9px 15px; border-radius: 12px; transition: background .25s, color .25s; white-space: nowrap; }
.chips a[aria-current="page"] { background: var(--ink); color: #05060b; font-weight: 600; }
.chips a:hover:not([aria-current]) { color: var(--ink); background: var(--glass); }
.chips small { opacity: .65; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.card { height: 100%; display: flex; flex-direction: column; gap: 16px; padding: 26px; text-decoration: none; transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card .icon, .card .icon-ph { --is: 62px; }
.card h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; line-height: 1.25; }
.card .sub { margin: 4px 0 0; color: var(--mute); font-size: 14.5px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.card.soon { background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); }
.subhead { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); margin: 80px 0 24px; }

/* ---------- App detail ---------- */
.d-hero { padding: 140px 0 50px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: min(92svh, 900px); }
.d-id { display: flex; align-items: center; gap: 18px; }
.d-id .icon, .d-id .icon-ph { --is: 96px; box-shadow: 0 20px 60px -12px var(--ac), 0 0 0 1px rgba(255,255,255,.12) inset; }
.d-id small { color: var(--mute); display: block; }
.d-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.4vw, 92px); letter-spacing: -.02em; line-height: 1; margin: 28px 0 14px; }
.d-hero .lead { margin: 0; }
.d-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; align-items: center; }
.meta { display: flex; flex-wrap: wrap; margin-top: 34px; width: fit-content; max-width: 100%; border-radius: 18px; }
.meta div { padding: 13px 20px; }
.meta div + div { border-left: 1px solid var(--line); }
.meta dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.meta dd { margin: 0; font-weight: 600; font-size: 15px; }
.d-visual { position: relative; height: min(640px, 76vh); }
.d-visual::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, var(--ac), transparent 65%); opacity: .5; filter: blur(30px); }
.d-visual img { position: absolute; top: 50%; left: 50%; height: 92%; width: auto; border-radius: 26px; box-shadow: 0 40px 80px -24px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.14); transform: translate(-50%, -50%) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 3deg)); transition: transform .6s var(--ease); }
.d-visual.two img:first-child { transform: translate(-50%, -50%) translateX(-24%) rotate(-5deg) scale(.9); opacity: .9; }
.d-visual.two img:last-child { transform: translate(-50%, -50%) translateX(18%) rotate(3deg); }
.d-visual .icon-ph, .d-visual .icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); --is: min(260px, 50vw); box-shadow: 0 40px 100px -20px var(--ac); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature-grid li { padding: 24px 26px; display: flex; gap: 14px; align-items: flex-start; }
.feature-grid i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--ac) 24%, transparent); color: var(--ac2); font-style: normal; font-weight: 700; font-size: 13px; }
.feature-grid p { margin: 4px 0 0; color: #d3d6e2; }
.gallery-tabs { display: flex; gap: 6px; margin: 0 0 18px; }
.gallery-tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--mute); background: var(--glass); border: 1px solid var(--line); padding: 8px 16px; border-radius: 12px; cursor: pointer; }
.gallery-tabs button[aria-selected="true"] { color: #05060b; background: var(--ink); }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; margin: 0; list-style: none; }
.shots li { flex: none; scroll-snap-align: start; }
.shots img { display: block; height: clamp(380px, 46vw, 560px); width: auto; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); }
.shots.ipad img { height: clamp(300px, 36vw, 440px); border-radius: 18px; }
.js .gallery-panel[hidden] { display: none; }
.desc { max-width: 72ch; }
.desc h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 30px 0 10px; }
.desc p { margin: 0 0 14px; color: #d0d3df; }
.desc ul { margin: 0 0 14px; padding-left: 20px; color: #d0d3df; }
.desc li { margin: 6px 0; }
details.more { max-width: 72ch; }
details.more summary { cursor: pointer; list-style: none; display: inline-flex; gap: 10px; align-items: center; font-weight: 600; padding: 12px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; transition: transform .3s var(--ease); }
details.more[open] summary::after { transform: rotate(45deg); }
details.more[open] summary { margin-bottom: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: 32px; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 16px; line-height: 1.1; }
.info { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.info dt, .info dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.info dt { color: var(--mute); padding-right: 18px; font-size: 14px; }
.info dd { text-align: right; font-weight: 500; font-size: 15px; }
.info dd ul { list-style: none; margin: 0; padding: 0; }
.links { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.links a { display: flex; justify-content: space-between; gap: 12px; padding: 15px 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-decoration: none; transition: background .25s; }
.links a:hover { background: rgba(255,255,255,.09); }
.links a span:last-child { color: var(--mute); }
.notes { color: var(--mute); white-space: pre-line; margin: 0; }
.note-box { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--mute); font-size: 14.5px; }

/* ---------- Legal / support documents ---------- */
.legal { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px; padding: 130px 0 90px; align-items: start; }
.legal aside { position: sticky; top: 100px; padding: 22px; }
.legal aside .d-id { gap: 12px; margin-bottom: 18px; }
.legal aside .d-id .icon, .legal aside .d-id .icon-ph { --is: 46px; box-shadow: none; }
.tabs { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tabs a { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--mute); font-weight: 500; font-size: 15px; }
.tabs a[aria-current="page"] { background: rgba(255,255,255,.1); color: var(--ink); }
.tabs a:hover { color: var(--ink); }
.toc { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; display: flex; flex-direction: column; gap: 1px; max-height: 46vh; overflow: auto; }
.toc a { color: var(--dim); text-decoration: none; padding: 5px 12px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.toc a.on, .toc a:hover { color: var(--ink); border-color: var(--a1); }
.doc { padding: clamp(24px, 5vw, 60px); min-width: 0; }
.doc-meta { color: var(--dim); font-size: 13px; margin: 0 0 18px; }
.prose { max-width: 72ch; color: #d3d6e2; overflow-wrap: anywhere; }
.prose h1 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 6px 0 14px; }
.prose h2 { font-size: 21px; color: var(--ink); margin: 38px 0 10px; letter-spacing: -.01em; line-height: 1.3; }
.prose h3 { font-size: 17px; color: var(--ink); margin: 26px 0 8px; }
.prose h4 { font-size: 15px; color: var(--ink); margin: 20px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--ac2); text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); }
.prose .callout { padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); margin: 0 0 18px; }
.prose small { color: var(--dim); }
.support-card { margin: 0 0 28px; padding: 24px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.support-card h2 { margin-top: 0; }
.mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; padding: 12px 18px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line-2); overflow-wrap: anywhere; }
.mail:hover { background: rgba(255,255,255,.14); }

/* Hubs */
.hub { width: 100%; border-collapse: collapse; font-size: 15px; }
.hub th, .hub td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hub thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 600; }
.hub td a { color: var(--ink); text-underline-offset: 3px; }
.hub .app { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.hub .app .icon, .hub .app .icon-ph { --is: 36px; }
.hub .muted { color: var(--dim); font-size: 13px; }
.table-wrap { overflow-x: auto; padding: 10px 24px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* 404 */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.nf .h-display { font-size: clamp(90px, 18vw, 220px); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0,0,0,.65)); padding: 64px 0 36px; margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; }
.foot-in > div > p { color: var(--mute); max-width: 24em; margin: 14px 0 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 14px; }
.foot-cols h2 { font-size: 13px; margin: 0 0 10px; font-weight: 700; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols a { display: inline-block; color: var(--mute); text-decoration: none; padding: 3px 0; }
.foot-cols a:hover { color: var(--ink); }
.foot-legal { margin: 44px auto 0; color: var(--dim); font-size: 12.5px; }
.brand-lg .wordmark { font-size: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .feat { grid-template-columns: 1fr; position: relative; top: auto; min-height: 0; }
  .fan { height: 360px; order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .d-hero { grid-template-columns: 1fr; padding-top: 120px; min-height: 0; }
  .d-visual { height: 440px; order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-template-columns: minmax(0, 1fr); padding-top: 110px; }
  .legal aside { position: relative; top: 0; min-width: 0; }
  .toc { display: none; }
  .facts, .cols { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 32px); }
  .nav { top: 10px; width: calc(100% - 20px); padding: 7px 7px 7px 14px; }
  .wordmark { font-size: 20px; }
  .hero { padding-top: 120px; }
  .stats span { padding: 6px 12px; }
  .stats span + span { border-left: 0; }
  .sec { padding: 76px 0; }
  .grid, .feature-grid { grid-template-columns: 1fr; }
  .fan { height: 300px; }
  .d-visual { height: 380px; }
  .meta div { padding: 10px 14px; }
  .shots img { height: 420px; }
  .shots.ipad img { height: 280px; }
  .foot-in, .foot-cols { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; }
  .tabs a { white-space: nowrap; }
  .badge-store img { height: 48px; }
  .page-head { padding-top: 120px; }
  .hub th:nth-child(4), .hub td:nth-child(4) { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .nav, .foot, .sky, #aurora, .grain, .legal aside { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose h1, .prose h2, .prose strong { color: #000; }
  .legal { display: block; padding: 0; }
  .glass { border: 0; background: none; }
}
