/* h24: one theme per product, Apple style flagship components. Tokens are remapped per theme so every shared component follows. */
html[class*="t-"] { --ap-bg: #FFFFFF; --ap-bg2: #F5F5F7; --ap-ink: #1D1D1F; --ap-muted: #6E6E73; --ap-card: #F5F5F7; --ap-line: rgba(0, 0, 0, 0.1);
  --ap-accent: #1D1D1F; --ap-accent-ink: #FFFFFF; --ap-link: #0066CC; --ap-glass: rgba(255, 255, 255, 0.78); --ap-dark: #000000; --ap-dark-ink: #F5F5F7; --ap-dark-muted: #A1A1A6; --ap-dark-card: #161618; --ap-dark-accent: #F5F5F7; --ap-dark-link: #2997FF; --ap-grad: linear-gradient(90deg, #1D1D1F, #6E6E73); }
html.t-azure { --ap-bg: #FFFFFF; --ap-bg2: #F3F7FC; --ap-card: #F3F7FC; --ap-accent: #0078D4; --ap-link: #005A9E; --ap-dark: #040B1A; --ap-dark-card: #0B1830; --ap-dark-accent: #4CA6F0; --ap-dark-link: #6CB8F5; --ap-grad: linear-gradient(90deg, #005A9E, #0078D4 55%, #50A9EC); }
html.t-gallery { --ap-accent: #1D1D1F; --ap-grad: linear-gradient(90deg, #1D1D1F, #515154); }
html.t-titanium { --ap-bg: #F8F9FB; --ap-bg2: #EEF0F4; --ap-card: #FFFFFF; --ap-accent: #1D1D1F; --ap-dark: #090B10; --ap-dark-card: #141821; --ap-grad: linear-gradient(90deg, #3A3F4A, #8A919E); }
html.t-studio { --ap-accent: #047857; --ap-link: #047857; --ap-grad: linear-gradient(90deg, #065F46, #10B981); }
html.t-alabaster { --ap-bg: #FFFFFF; --ap-bg2: #F7F7F9; --ap-card: #F7F7F9; --ap-accent: #B94A2F; --ap-link: #0F766E; --ap-dark: #0B1414; --ap-dark-card: #132222; --ap-dark-accent: #F08A6E; --ap-dark-link: #5EEAD4; --ap-grad: linear-gradient(90deg, #E15B3E, #F59E0B 45%, #0D9488); }
html.t-mono { --ap-bg: #FFFFFF; --ap-bg2: #F4F4F4; --ap-card: #F4F4F4; --ap-ink: #111111; --ap-muted: #5C5C5C; --ap-accent: #111111; --ap-link: #111111; --ap-dark: #111111; --ap-dark-card: #1C1C1C; --ap-grad: linear-gradient(90deg, #111111, #5C5C5C); }
html.is-dark { --ap-bg: #000000; --ap-bg2: #0A0A0B; --ap-ink: #F5F5F7; --ap-muted: #A1A1A6; --ap-card: #161618; --ap-line: rgba(255, 255, 255, 0.12); --ap-accent: #F5F5F7; --ap-accent-ink: #000000; --ap-link: #2997FF; --ap-glass: rgba(18, 18, 20, 0.72);
  --bg-canvas: var(--ap-bg); --bg-card: var(--ap-card); --bg-muted: #1D1D20; --border-hairline: rgba(255, 255, 255, 0.12); --border-strong: rgba(255, 255, 255, 0.24);
  --ink-primary: #F5F5F7; --ink-secondary: #C7C7CC; --ink-tertiary: #A1A1A6; --accent: var(--ap-link); --accent-hover: var(--ap-link); --accent-ink: #000; --band-dark: #161618; --band-dark-elevated: #1D1D20; color-scheme: dark; }
html.t-obsidian { --ap-grad: linear-gradient(90deg, #E5E5EA, #A1A1A6 40%, #5AC8FA); --ap-link: #5AC8FA; --ap-dark: #0A0A0B; --ap-dark-card: #161618; }
html.t-midnight { --ap-bg: #050814; --ap-bg2: #0A1024; --ap-card: #0E1530; --ap-accent: #38BDF8; --ap-link: #38BDF8; --ap-dark: #02040C; --ap-dark-card: #0E1530; --ap-dark-accent: #38BDF8; --ap-grad: linear-gradient(90deg, #E0F2FE, #38BDF8 60%, #818CF8); --band-dark: #0E1530; }
html.t-sapphire { --ap-bg: #040A18; --ap-bg2: #08122A; --ap-card: #0C1934; --ap-accent: #2563EB; --ap-accent-ink: #FFFFFF; --ap-link: #60A5FA; --ap-dark: #020611; --ap-dark-card: #0C1934; --ap-dark-accent: #2563EB; --ap-grad: linear-gradient(90deg, #DBEAFE, #60A5FA 55%, #2563EB); --band-dark: #0C1934; }
html.t-carbon { --ap-bg: #0B0C0E; --ap-bg2: #121316; --ap-card: #17181B; --ap-accent: #F59E0B; --ap-link: #FBBF24; --ap-dark: #060708; --ap-dark-card: #17181B; --ap-dark-accent: #F59E0B; --ap-grad: linear-gradient(90deg, #FDE68A, #F59E0B 55%, #B45309); --band-dark: #17181B; }
html.t-azure, html.t-gallery, html.t-titanium, html.t-studio, html.t-alabaster, html.t-mono { --bg-canvas: var(--ap-bg); --bg-muted: var(--ap-bg2); --accent: var(--ap-link); --accent-hover: var(--ap-accent); --ink-primary: var(--ap-ink); }
html.t-azure { --accent: #005A9E; --accent-hover: #004578; --accent-wash: #EAF3FC; --band-dark: #040B1A; --band-dark-elevated: #0B1830; }
html.t-alabaster { --accent: #B94A2F; --accent-hover: #9A3A22; --accent-wash: #FDF1EC; }
html.t-studio { --accent: #047857; --accent-hover: #065F46; }
html[class*="t-"] body { background: var(--ap-bg); color: var(--ap-ink); }

/* unified global bar and sticky product sub-nav: glass that follows the theme */
html[class*="t-"] .site-nav { background: var(--ap-glass); border-bottom-color: var(--ap-line); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
html.is-dark .fx-brand, html.is-dark .fx-menu > li > a, html.is-dark .fx-menu summary { color: var(--ap-ink); }
html.is-dark .fx-brand img { filter: invert(1) brightness(1.4); }
html.is-dark .fx-panel { background: #1C1C1E; }
@media (max-width: 1080px) { html.is-dark .fx-navbox { background: #0A0A0B; } }
html.is-dark .fx-btn--dark, html[class*="t-"] .site-nav .fx-btn--dark { background: var(--ap-accent); color: var(--ap-accent-ink); }
html.is-dark .fx-btn--dark:hover { filter: brightness(1.08); }
html.is-dark .fx-signin { color: var(--ap-ink); }
html[class*="t-"] .fl-subnav { background: var(--ap-glass); border-bottom: 1px solid var(--ap-line); }
html[class*="t-"] .fl-subnav__name { color: var(--ap-ink); }
html[class*="t-"] .fl-subnav__pill { background: var(--ap-accent); color: var(--ap-accent-ink); border-color: transparent; }
html.is-dark .fl-subnav summary, html.is-dark .fl-subnav__menu { color: var(--ap-ink); }
html.is-dark .fl-subnav__menu { background: #1C1C1E; }
html.is-dark .os-switch { background: rgba(255, 255, 255, 0.08); color: var(--ap-ink); border-color: rgba(255, 255, 255, 0.2); }
html.is-dark .fx-nav-toggle { background: rgba(255, 255, 255, 0.08); color: var(--ap-ink); border-color: rgba(255, 255, 255, 0.2); }
html.is-dark .ecosystem-footer-wrap { background: var(--ap-bg); }

/* typography */
.ap-eyebrow { margin: 0 0 0.6rem; font-size: clamp(0.95rem, 1.4vw, 1.15rem); font-weight: 600; letter-spacing: 0; color: var(--ap-muted); }
.ap-h1 { margin: 0 0 1rem; font-size: clamp(2.9rem, 8.4vw, 6.4rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; color: var(--ap-ink); }
.ap-h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; color: var(--ap-ink); max-width: 18ch; }
.ap-lead { margin: 0 0 1.75rem; max-width: 40ch; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.45; color: var(--ap-muted); font-weight: 500; }
.ap-sub { max-width: 52ch; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.5; color: var(--ap-muted); margin: 0 0 2rem; }
.ap-grad { background: var(--ap-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-src { margin: 1.25rem 0 0; font-size: 0.85rem; color: var(--ap-muted); }
.ap-src a, .ap-faq a, .ap-layers a { color: var(--ap-link); }
.ap-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* pills */
.ap-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.ap-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font: 600 1rem/1 var(--font-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 200ms var(--ease-expo), background-color 200ms; }
.ap-pill--solid { background: var(--ap-accent); color: var(--ap-accent-ink); }
.ap-pill--ghost { background: transparent; color: var(--ap-ink); border-color: var(--ap-line); }
.ap-pill:hover { transform: translateY(-1px); }
.ap-pill--ghost:hover { border-color: var(--ap-ink); }

/* hero */
.ap-hero { position: relative; padding: clamp(3.5rem, 9vw, 7.5rem) 0 0; background: var(--ap-bg); overflow: hidden; }
.ap-hero-copy { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ap-hero-copy .ap-lead { margin-left: auto; margin-right: auto; }
.ap-hero-copy .ap-h1 { max-width: 16ch; }
.ap-hero-media { position: relative; margin: clamp(2rem, 5vw, 3.5rem) auto 0; width: min(1240px, 100%); aspect-ratio: 16 / 9; }
.ap-hero-f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transform: scale(calc(1.06 - var(--p, 0) * 0.06)); }
.ap-hero-f--2 { opacity: clamp(0, calc((var(--p, 0) - 0.25) * 3), 1); }
.ap-hero-f--3 { opacity: clamp(0, calc((var(--p, 0) - 0.6) * 3), 1); }
.ap-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(transparent, var(--ap-bg)); pointer-events: none; }
@media (min-width: 900px) { .ap-hero-media { border-radius: 28px; overflow: hidden; width: min(1240px, calc(100% - 4rem)); } }

/* rise on scroll */
html.ap-js .ap-rise { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 900ms var(--ease-expo), transform 900ms var(--ease-expo); }
html.ap-js .ap-rise.is-in { opacity: 1; transform: none; }
html.ap-js .ap-hero .ap-rise { opacity: 1; transform: none; animation: apRise 1000ms var(--ease-expo) both; }
@keyframes apRise { from { opacity: 0.001; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }

/* bands */
.ap-band { padding: clamp(4rem, 10vw, 8rem) 0; background: var(--ap-bg); color: var(--ap-ink); }
.ap-band--alt { background: var(--ap-bg2); }
.ap-band--dark, .ap-band--graphite { --ap-ink: var(--ap-dark-ink); --ap-muted: var(--ap-dark-muted); --ap-card: var(--ap-dark-card); --ap-line: rgba(255, 255, 255, 0.12); --ap-accent: var(--ap-dark-accent); --ap-accent-ink: #000; --ap-link: var(--ap-dark-link); background: var(--ap-dark); color: var(--ap-dark-ink); }
html.t-sapphire .ap-band--dark { --ap-accent-ink: #fff; }
.ap-band--graphite { background: linear-gradient(180deg, var(--ap-bg) 0, var(--ap-dark) 18%); }

/* highlights carousel */
.ap-hl { padding-bottom: clamp(3rem, 7vw, 5rem); }
.ap-hl-wrap { position: relative; }
.ap-track { display: flex; gap: 1.25rem; margin: 0; padding: 0.5rem max(1.25rem, calc((100vw - var(--max-width)) / 2 + 1.25rem)) 1rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(1.25rem, calc((100vw - var(--max-width)) / 2 + 1.25rem)); scrollbar-width: none; overscroll-behavior-x: contain; }
.ap-track::-webkit-scrollbar { display: none; }
.ap-card { flex: 0 0 min(86vw, 420px); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 28px; background: var(--ap-card); overflow: hidden; min-height: 520px; }
.ap-card-media { aspect-ratio: 16 / 11; overflow: hidden; }
.ap-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-card-copy { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.ap-card-eb { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--ap-muted); }
.ap-card-h { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.15; color: var(--ap-ink); }
.ap-card-t { margin: 0.2rem 0 0; color: var(--ap-muted); font-size: 1.02rem; line-height: 1.5; }
.ap-card-link { margin-top: auto; padding-top: 1rem; color: var(--ap-link); font-weight: 600; text-decoration: none; }
.ap-card-link:hover { text-decoration: underline; }
.ap-hl-ctl { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; }
.ap-dots { display: inline-flex; gap: 0.5rem; padding: 0.7rem 0.9rem; border-radius: 999px; background: var(--ap-card); }
.ap-dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.ap-dot::before { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 99px; background: var(--ap-muted); opacity: 0.55; transition: width 300ms var(--ease-expo), left 300ms var(--ease-expo); }
.ap-dot[aria-current="true"]::before { opacity: 1; background: var(--ap-ink); }
.ap-arrows { display: inline-flex; gap: 0.6rem; }
.ap-arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ap-card); color: var(--ap-ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ap-arrow:disabled { opacity: 0.35; cursor: default; }

/* closer look scrubber */
.ap-cl { position: relative; }
.ap-cl-r { position: absolute; opacity: 0; pointer-events: none; }
.ap-cl-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: var(--ap-card); }
.ap-cl-f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms var(--ease-smooth), transform 900ms var(--ease-expo); transform: scale(1.04); }
.ap-cl-f--0 { opacity: 1; transform: none; }
.ap-cl:has(.ap-cl-r:nth-of-type(2):checked) .ap-cl-f--0, .ap-cl:has(.ap-cl-r:nth-of-type(3):checked) .ap-cl-f--0 { opacity: 0; }
.ap-cl:has(.ap-cl-r:nth-of-type(2):checked) .ap-cl-f--1, .ap-cl:has(.ap-cl-r:nth-of-type(3):checked) .ap-cl-f--2 { opacity: 1; transform: none; }
html.ap-js .ap-cl[data-live] .ap-cl-f { transition: none; opacity: var(--o, 0); transform: scale(calc(1 + (1 - var(--o, 0)) * 0.04)); }
.ap-cl-ctl { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.25rem; }
.ap-cl-pills { display: inline-flex; gap: 0.25rem; padding: 0.3rem; border-radius: 999px; background: var(--ap-card); }
.ap-cl-l { min-height: 40px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--ap-muted); cursor: pointer; }
.ap-cl:has(.ap-cl-r:nth-of-type(1):checked) .ap-cl-l:nth-child(1), .ap-cl:has(.ap-cl-r:nth-of-type(2):checked) .ap-cl-l:nth-child(2), .ap-cl:has(.ap-cl-r:nth-of-type(3):checked) .ap-cl-l:nth-child(3) { background: var(--ap-ink); color: var(--ap-bg); }
.ap-cl-r:focus-visible ~ .ap-cl-ctl .ap-cl-pills { outline: 2px solid var(--ap-link); outline-offset: 3px; }
.ap-cl-scrub { display: none; align-items: center; width: min(320px, 80vw); }
html.ap-js .ap-cl-scrub { display: inline-flex; }
.ap-cl-scrub input { width: 100%; accent-color: var(--ap-accent); height: 32px; }
.ap-cl-cap { text-align: center; color: var(--ap-muted); margin: 1rem 0 0; }

/* spec callouts */
.ap-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2.5rem; border-top: 1px solid var(--ap-line); }
.ap-spec { padding: 2rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--ap-line); }
.ap-spec-n { margin: 0 0 0.5rem; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: var(--ap-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-band--dark .ap-spec-n, .ap-band--graphite .ap-spec-n { background: linear-gradient(90deg, #F5F5F7, var(--ap-dark-accent)); -webkit-background-clip: text; background-clip: text; }
.ap-spec-l { margin: 0; max-width: 28ch; color: var(--ap-muted); font-size: 1rem; line-height: 1.45; }
@media (min-width: 720px) { .ap-spec { border-left: 1px solid var(--ap-line); padding-left: 1.5rem; } .ap-spec:first-child { border-left: 0; padding-left: 0; } }

/* architecture layers */
.ap-layers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.ap-layers li { padding: 1.5rem; border-radius: 24px; background: var(--ap-card); }
.ap-layer-k { margin: 0 0 0.75rem; font: 600 0.8rem/1 var(--font-mono); color: var(--ap-muted); }
.ap-layers h3 { margin: 0 0 0.4rem; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ap-ink); }
.ap-layers p { margin: 0; color: var(--ap-muted); line-height: 1.5; }

/* FAQ */
.ap-faq { border-top: 1px solid var(--ap-line); max-width: 860px; }
.ap-faq details { border-bottom: 1px solid var(--ap-line); }
.ap-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; color: var(--ap-ink); }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; line-height: 1; transition: transform 300ms var(--ease-expo); }
.ap-faq details[open] summary::after { transform: rotate(45deg); }
.ap-faq-a p { margin: 0 0 1.4rem; color: var(--ap-muted); max-width: 60ch; line-height: 1.6; }

/* floating pill and bottom sheet */
.ap-fab { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 55; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0 0.5rem 0 1.2rem; border-radius: 999px; background: var(--ap-glass); color: var(--ap-ink); border: 1px solid var(--ap-line); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.45); }
.ap-fab-plus { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ap-accent); color: var(--ap-accent-ink); font-size: 1.25rem; }
@media (max-width: 640px) { .ap-fab { left: 16px; transform: none; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); } html:has(.ap-fab) .hope-orb .hope-orb-t, html:has(.ap-fab) .hope-orb > span:not(:first-child) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } html:has(.ap-fab) .hope-orb { padding: 0 0.45rem; } }
.ap-sheet { width: min(980px, 100vw); max-width: none; max-height: 86dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: var(--ap-bg2); color: var(--ap-ink); }
.ap-sheet[open] { animation: apSheet 420ms var(--ease-expo); }
@keyframes apSheet { from { transform: translateY(40%); opacity: 0.4; } to { transform: none; opacity: 1; } }
.ap-sheet::backdrop { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ap-sheet-in { position: relative; padding: 1rem clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3rem); overflow-y: auto; max-height: 86dvh; }
.ap-sheet-grab { width: 44px; height: 5px; border-radius: 9px; background: var(--ap-line); margin: 0 auto 1.25rem; }
.ap-sheet-x { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ap-card); color: var(--ap-ink); font-size: 1.4rem; cursor: pointer; }
.ap-sheet .ap-layers li { background: var(--ap-bg); }

/* Hope orb hero */
.ap-hero--orb { padding-bottom: clamp(3rem, 8vw, 6rem); }
.ap-orb-stage { display: flex; justify-content: center; margin-top: clamp(2rem, 6vw, 4rem); position: relative; z-index: 1; }
.ap-orb { position: relative; width: min(72vw, 420px); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer; }
.ap-orb-core { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #E0F2FE 0, #38BDF8 22%, #4F46E5 55%, rgba(5, 8, 20, 0) 72%); box-shadow: 0 0 120px 20px rgba(56, 189, 248, 0.35), inset 0 0 60px rgba(255, 255, 255, 0.25); animation: apOrb 6s ease-in-out infinite; }
.ap-orb-label { position: absolute; left: 50%; bottom: -2.5rem; transform: translateX(-50%); white-space: nowrap; color: var(--ap-muted); font-weight: 600; }
@keyframes apOrb { 50% { transform: scale(1.04); filter: hue-rotate(18deg); } }

/* live check inside dark band */
.ap-sim { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: 24px; background: var(--ap-card); }
.ap-sim output { color: var(--ap-muted); font-family: var(--font-mono); font-size: 0.9rem; }

/* themed legacy sections so existing pages share the palette */
html.t-azure .hero.hero-stage, html.t-azure section.alt { background: var(--ap-bg2); }
html.t-azure .btn-primary, html.t-azure .fx-btn--dark { background: #0078D4; color: #fff; }
html.t-azure .btn-primary:hover, html.t-azure .fx-btn--dark:hover { background: #005A9E; }
html.t-alabaster .fx-btn--dark { background: #B94A2F; color: #fff; }
html.t-alabaster .tfh-chip input:checked + span { background: #0F766E; }
html.t-studio .fx-btn--dark { background: #047857; }
html.is-dark .fx-section, html.is-dark .hero-stage { background: var(--ap-bg); color: var(--ap-ink); }

@media (prefers-reduced-motion: reduce) {
  html.ap-js .ap-rise, html.ap-js .ap-hero .ap-rise { opacity: 1; transform: none; transition: none; animation: none; }
  .ap-hero-f { transform: none; } .ap-hero-f--2, .ap-hero-f--3 { display: none; }
  .ap-orb-core { animation: none; } .ap-sheet[open] { animation: none; }
}
@media (max-width: 640px) { .ap-card { min-height: 480px; } .ap-hero-copy { text-align: left; align-items: flex-start; } .ap-hero-copy .ap-lead { margin-left: 0; } .ap-hl-ctl { justify-content: space-between; } }
.ap-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin: 1.6rem 0 0; color: var(--ap-muted); font-weight: 600; font-size: 0.95rem; }
.ap-trust li::before { content: "\2713"; color: var(--ap-accent); margin-right: 0.4rem; }
@media (max-width: 640px) { .ap-trust { justify-content: flex-start; } }
html.t-azure .teardown-band, html.t-azure .cine--dark { background-color: #040B1A; }

/* floating pill appears once the hero is passed (JS); without JS it is always shown */
html.ap-js .ap-fab { opacity: 0; pointer-events: none; translate: 0 12px; transition: opacity 300ms, translate 400ms var(--ease-expo); }
html.ap-js .ap-fab.is-on { opacity: 1; pointer-events: auto; translate: 0 0; }
html.t-azure img[src*="trimline-emerald-strata"] { filter: hue-rotate(58deg) saturate(1.15); }

/* h26 studio heroes: live WebGPU canvas over the poster stills, fades in only after the first frame */
.studio-live { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; pointer-events: none; }
.is-studio > .studio-live { opacity: 1; }
.ap-hero-media .studio-live { z-index: 1; }
.ap-orb-stage[data-studio] { width: min(1240px, 100%); margin-inline: auto; aspect-ratio: 16 / 9; align-items: center; }
.ap-orb-stage[data-studio] .ap-orb { width: 30%; z-index: 2; }
.ap-orb-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-orb-stage[data-studio] .ap-orb-core { display: none; }
.ap-orb-stage[data-studio] .ap-orb-label { bottom: -2.2rem; color: #C9D2DC; }
@media (min-width: 900px) { .ap-orb-stage[data-studio] { border-radius: 28px; overflow: hidden; width: min(1240px, calc(100% - 4rem)); } }
@media (prefers-reduced-motion: reduce) { .studio-live { display: none; } }
/* h26 psychology gate: the h1, lead, single CTA and objection shield all sit inside the first fold at 1440x900 and 390x844 */
.ap-h1.h26-h1 { font-size: clamp(2.1rem, 4.4vw, 4rem); max-width: 18ch; }
.h26-shield { margin-top: 1rem; font-size: 0.9rem; }
.h26-faq details { border-top: 1px solid var(--ap-line, rgba(127, 127, 127, 0.25)); padding: 1rem 0; max-width: 760px; }
.h26-faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.h26-faq details p { color: var(--ap-muted); margin: 0.6rem 0 0; }
/* h26 page critic round 1: scene beside copy on desktop, one filled hero CTA, compact fixed controls on mobile */
.ap-hero .ap-ctas .ap-pill--ghost { background: none; border-color: transparent; padding-inline: 0.35rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ap-hero .ap-ctas .ap-pill--ghost:hover { border-color: transparent; text-decoration-thickness: 2px; }
@media (min-width: 1100px) {
  .ap-hero:has(> .ap-hero-media[data-studio]) { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr); align-items: center; column-gap: clamp(2rem, 3.5vw, 4rem); padding: clamp(2.5rem, 5vw, 4.5rem) max(2rem, calc((100vw - 1320px) / 2)) clamp(2.5rem, 4vw, 3.5rem); }
  .ap-hero:has(> .ap-hero-media[data-studio]) .ap-hero-copy { text-align: left; align-items: flex-start; width: auto; max-width: none; margin: 0; padding: 0; }
  .ap-hero:has(> .ap-hero-media[data-studio]) .ap-lead { margin-left: 0; }
  .ap-hero:has(> .ap-hero-media[data-studio]) .ap-trust { justify-content: flex-start; }
  .ap-hero:has(> .ap-hero-media[data-studio]) .ap-hero-media { margin: 0; width: 100%; border-radius: 24px; }
  .ap-hero:has(> .ap-hero-media[data-studio])::after { display: none; }
}
@media (max-width: 640px) {
  .ap-hero { padding-top: 1.75rem; }
  .hope-orb { min-height: 44px; padding: 0 0.3rem; }
  .hope-orb > span:not(:first-child), .hope-orb .hope-orb-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hope-orb__core { width: 30px; height: 30px; }
  .ap-fab { gap: 0; padding: 0 0.4rem; min-height: 44px; }
  .ap-fab > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  main { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
/* h26 interactive proof control (round 2) */
.h26-proof { display: grid; gap: 0.45rem; width: min(440px, 100%); margin: 1.2rem 0 0; padding: 0.85rem 1rem; border: 1px solid var(--ap-line); border-radius: 16px; background: var(--ap-glass, transparent); text-align: left; }
.h26-proof label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ap-muted); }
.h26-proof input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--ap-accent); cursor: ew-resize; }
.h26-proof output { font-weight: 650; font-size: 0.98rem; color: var(--ap-ink); }
.ap-hero-copy .h26-proof { margin-inline: auto; }
@media (min-width: 1100px) { .ap-hero:has(> .ap-hero-media[data-studio]) .h26-proof { margin-inline: 0; } }
@media (max-width: 640px) { .ap-hero-copy .h26-proof { margin-inline: 0; } }
