/* ExactDisk experience layer (v1): menu bar, window stack, dock, chapters, gallery window.
   Original design for ExactDisk; no third-party code or artwork. */
:root { --glass: rgba(10,26,40,.72); --glass-line: rgba(160,232,240,.18); --ease-out: cubic-bezier(.2,.8,.2,1); }
html { scroll-padding-top: 72px; }

/* Atmosphere: slow aurora, transform-only animation. */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5; will-change: transform;
  background: radial-gradient(circle, rgba(32,200,214,.20), transparent 62%); animation: aurora-drift 48s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { top: -30vmax; right: -18vmax; }
.aurora span:nth-child(2) { top: 30vh; left: -30vmax; background: radial-gradient(circle, rgba(46,104,200,.18), transparent 64%); animation-duration: 62s; animation-delay: -20s; }
.aurora span:nth-child(3) { bottom: -40vmax; right: 0; width: 55vmax; height: 55vmax; background: radial-gradient(circle, rgba(120,90,210,.10), transparent 64%); animation-duration: 75s; }
@keyframes aurora-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6vmax,5vmax,0) scale(1.12); } }

/* Menu bar: one compact translucent row, like a macOS menu bar, with no OS status. */
.site-chrome { background: rgba(8,20,32,.62); border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
.site-chrome .nav { height: 52px; gap: 18px; }
.site-chrome .brand { font-size: 14px; font-weight: 700; letter-spacing: -.01em; min-height: 44px; }
.site-chrome .brand img { width: 22px; height: 22px; border-radius: 6px; }
.site-chrome .navlinks { gap: 4px; font-size: 13px; margin-left: 8px; margin-right: auto; }
.site-chrome .navlinks > a:not(.nav-cta) { padding: 6px 11px; border-radius: 7px; color: #d4e6ee; min-height: 32px; display: inline-flex; align-items: center; }
.site-chrome .navlinks > a:not(.nav-cta):hover { background: rgba(255,255,255,.09); color: #fff; }
.site-chrome .navlinks .nav-cta { order: 9; margin-left: 10px; padding: 7px 14px; min-height: 34px; font-size: 13px; }
.menubar-status { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: #a9e9d4; white-space: nowrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: #65edc5; box-shadow: 0 0 10px rgba(101,237,197,.7); vertical-align: 1px; }
.hero .eyebrow:has(.status-dot):before { content: none; }

/* Hero: layered window stack with gentle pointer parallax. */
.hero { min-height: min(860px, 100svh); padding: 96px 0 72px; }
.hero-device { --px: 0; --py: 0; perspective: 1400px; }
.hero-device .device-window { transform: perspective(1100px) rotateY(calc(-7deg + var(--px) * 5deg)) rotateX(calc(4deg - var(--py) * 4deg));
  transition: transform .6s var(--ease-out), box-shadow .45s ease; }
.window-stack { position: absolute; inset: 92px 0 85px; z-index: 0; pointer-events: none; }
.stack-window { position: absolute; width: 78%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(160,232,240,.18);
  box-shadow: 0 30px 70px rgba(0,0,0,.45); opacity: .5; transition: transform .8s var(--ease-out); }
.stack-window img { display: block; width: 100%; height: auto; filter: saturate(.8) brightness(.8); }
.stack-back { top: -14%; right: -8%; transform: translate3d(calc(var(--px) * -18px), calc(var(--py) * -12px), 0) rotate(3deg); opacity: .32; }
.stack-mid { top: -6%; left: -10%; transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -8px), 0) rotate(-2.5deg); opacity: .45; }
.hero-art { position: relative; z-index: 1; }
.float-chip { z-index: 3; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Chapters: the Discover → Understand → Reclaim safely journey. */
.chapter { position: relative; z-index: 1; padding: 120px 0 8px; scroll-margin-top: 60px; }
.chapter-inner { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: end; }
.chapter-num { grid-row: span 2; font: 500 clamp(84px, 13vw, 180px)/.8 ui-serif, "Iowan Old Style", "New York", Georgia, serif; letter-spacing: -.06em;
  background: linear-gradient(180deg, rgba(160,250,246,.55), rgba(160,250,246,0)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapter-title { margin: 0; font: 500 clamp(36px, 5vw, 64px)/1 ui-serif, "Iowan Old Style", "New York", Georgia, serif; letter-spacing: -.04em; color: #f2fbfd; }
.chapter-kicker { display: block; margin-bottom: 12px; font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; color: #8ce9e9; }
.chapter-line { margin: 14px 0 0; color: #c1d5dd; font-size: 18px; max-width: 560px; }
.chapter + .section { padding-top: 64px; border-top: 0; }
.chapter::after { content: ""; position: absolute; left: 50%; bottom: -20px; width: min(var(--max), calc(100% - 48px)); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(140,233,233,.35), transparent); }

/* Gallery window: sidebar of real screens + stage. */
.gallery-window { border-radius: 16px; overflow: hidden; border: 1px solid rgba(160,232,240,.22);
  background: rgba(9,22,34,.86); box-shadow: 0 50px 120px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.gallery-titlebar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: rgba(22,38,54,.95); border-bottom: 1px solid rgba(255,255,255,.06); color: #acc9d6; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.gallery-titlebar .traffic-light { width: 12px; height: 12px; }
.gallery-body { display: grid; grid-template-columns: 220px minmax(0,1fr); }
.gallery-sidebar { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: rgba(15,30,44,.7); border-right: 1px solid rgba(255,255,255,.06); }
.gallery-tab { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: #c6dbe3; text-align: left; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.gallery-tab:hover { background: rgba(255,255,255,.06); }
.gallery-tab[aria-selected="true"] { background: rgba(57,231,236,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(95,237,232,.3); }
.tab-num { font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: #79e9eb; }
.gallery-stage { padding: 22px; min-width: 0; }
.gallery-panel .screenshot-open { border-radius: 10px; }
.gallery-panel figcaption { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.gallery-panel figcaption h3 { margin: 0; }
.gallery-panel.is-entering { animation: panel-in .5s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translate3d(0,10px,0) scale(.99); } to { opacity: 1; transform: none; } }

/* Dock: chapter navigation that appears after the hero. */
.dock { position: fixed; z-index: 30; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 6px; padding: 7px;
  border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 20px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translate3d(-50%, 140%, 0); opacity: 0; visibility: hidden; transition: transform .5s var(--ease-out), opacity .35s, visibility 0s .5s; }
.dock.is-visible { transform: translate3d(-50%,0,0); opacity: 1; visibility: visible; transition: transform .5s var(--ease-out), opacity .35s; }
.dock.is-visible.at-end { transform: translate3d(-50%, 140%, 0); opacity: 0; visibility: hidden; transition: transform .5s var(--ease-out), opacity .35s, visibility 0s .5s; }
.dock a { position: relative; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 14px; color: #d6e8ef; font-size: 13px; font-weight: 600; transition: background .2s, transform .25s var(--ease-out); }
.dock a:hover { background: rgba(255,255,255,.07); transform: translateY(-3px); }
.dock-tile { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: #bff; background: linear-gradient(150deg, #1b4b5e, #0e2636); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.dock a[aria-current="step"] { color: #fff; }
.dock a[aria-current="step"] .dock-tile { background: linear-gradient(150deg, #39e7ec, #1f8ea6); color: #04161d; }
.dock a[aria-current="step"]::after { content: ""; position: absolute; left: 22px; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: #9ff; }
.dock-progress { position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.06); }
.dock-progress span { display: block; height: 100%; background: linear-gradient(90deg,#39e7ec,#8ff); transform: scaleX(0); transform-origin: left; }

/* Final CTA */
.final { position: relative; z-index: 1; padding: 130px 0 140px; background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(57,231,236,.14), transparent 70%); }
.final-icon { display: block; width: 112px; height: 112px; margin: 0 auto 26px; border-radius: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 80px rgba(57,231,236,.25); }
.final h2 { font-size: clamp(36px, 5vw, 62px); }
.final .button { min-height: 52px; padding: 14px 26px; font-size: 16px; }

/* Reveals (JS adds .reveal-ready only when motion is allowed). */
.js-reveal .chapter-inner, .js-reveal .pain, .js-reveal .view-card, .js-reveal .flow-card, .js-reveal .risk,
.js-reveal .safety-item, .js-reveal .feature, .js-reveal .privacy-band, .js-reveal .gallery-window, .js-reveal .final .wrap {
  opacity: 0; transform: translate3d(0,26px,0); transition: opacity .8s var(--ease-out) var(--reveal-delay,0ms), transform .8s var(--ease-out) var(--reveal-delay,0ms); }
.js-reveal .is-revealed { opacity: 1 !important; transform: none !important; }

/* Responsive */
@media (max-width: 1040px) { .site-chrome .navlinks > a:not(.nav-cta) { padding: 6px 7px; } .menubar-status { display: none; } }
@media (max-width: 900px) { .gallery-body { grid-template-columns: 1fr; } .stack-window { display: none; }
  .gallery-sidebar { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); padding: 10px; scrollbar-width: none; }
  .gallery-sidebar::-webkit-scrollbar { display: none; }
  .gallery-tab { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .gallery-stage { padding: 14px; } }
@media (max-width: 720px) {
  html { scroll-padding-top: 64px; }
  .site-chrome .nav { height: 56px; }
  .site-chrome .navlinks { margin: 0; gap: 0; }
  .site-chrome .navlinks > a:not(.nav-cta) { min-height: 44px; padding: 10px 6px; }
  .site-chrome .navlinks .nav-cta { order: 0; margin: 8px 0 0; min-height: 44px; }
  .menu-toggle { min-height: 44px; min-width: 64px; justify-content: center; align-items: center; }
  .hero { min-height: 0; padding: 40px 0 48px; }
  .chapter { padding: 80px 0 0; }
  .chapter-inner { grid-template-columns: 1fr; }
  .chapter-num { grid-row: auto; font-size: 72px; margin-bottom: -18px; }
  .chapter-line { font-size: 16px; }
  .chapter + .section { padding-top: 40px; }
  .dock { left: 12px; right: 12px; justify-content: space-between; transform: translate3d(0,140%,0); }
  .dock.is-visible { transform: none; }
  .dock.is-visible.at-end { transform: translate3d(0,140%,0); }
  .dock a { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11px; justify-content: center; }
  .dock-tile { width: 28px; height: 28px; }
  .dock a[aria-current="step"]::after { display: none; }
  footer { padding-bottom: 110px; }
  .final { padding: 90px 0 110px; }
  .final-icon { width: 88px; height: 88px; border-radius: 21px; }
}
@media (max-width: 360px) { .dock-label { font-size: 10px; } .hero .promise span { font-size: 11px; } }

/* Comfort: reduced motion and Save-Data stay static. */
@media (prefers-reduced-motion: reduce) {
  .aurora span, .gallery-panel.is-entering { animation: none !important; }
  .dock, .dock a, .stack-window, .hero-device .device-window { transition: none !important; }
  .hero-device .device-window { transform: none; }
}
html.save-data .aurora { display: none; }
@media (prefers-reduced-data: reduce) { .aurora { display: none; } }
.hero-device .device-window:hover,.hero-device .device-window:focus-within{transform:perspective(1100px) rotateY(0) rotateX(0)}
.footlinks a, .foot .brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-inline: 4px; }
.chip-right { bottom: 22%; }
@media (max-width: 720px) { .chapter-num { font-size: 60px; margin-bottom: 6px; } .dock { padding: 4px; } .dock-tile { width: 24px; height: 24px; font-size: 10px; } .dock a { min-height: 48px; } }

/* R2 · P1 Aurora: pause (never restart) whenever the hero is off-screen or the tab is hidden. */
.ambient-paused .aurora span, .ambient-paused .device-aura, .ambient-paused .float-chip { animation-play-state: paused !important; }
.ambient-paused .aurora span { will-change: auto; }

.js-reveal .reveal-instant { transition: none !important; }

/* R2 · P1 Dock never covers content. */
:root { --dock-h: 58px; }
body { padding-bottom: calc(var(--dock-h) + 28px + env(safe-area-inset-bottom)); }
html { scroll-padding-bottom: calc(var(--dock-h) + 28px + env(safe-area-inset-bottom)); }
.dock { bottom: calc(14px + env(safe-area-inset-bottom)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dock { background: #0b1f2e; }
  .site-chrome { background: #08141f; }
  .float-chip { background: #0b2736; }
}
@media (max-width: 720px) { :root { --dock-h: 60px; } .dock { left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); } footer { padding-bottom: 24px; } }

/* R2 · P2 Headings: real chapter H2s, demoted section titles keep the editorial look. */
h2.chapter-title { margin: 0; }
.section .section-title, .final h2 { font-family: ui-serif, "Iowan Old Style", "New York", Georgia, serif; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; line-height: 1.08; margin: 14px 0 20px; font-size: clamp(39px,4.2vw,61px); }
.privacy-band .section-title { font-size: clamp(32px,4vw,46px); }
h4 { margin-top: 0; line-height: 1.25; letter-spacing: -.02em; }
.pain h4 { font-size: 19px; margin-bottom: 8px; }
.view-card h4 { font-size: 21px; margin: 11px 0 4px; }
.flow-card h4 { font-size: 16px; margin: 0 0 8px; }
.safety-item h4 { font-size: 16px; margin: 1px 0 7px; }
.screenshot-figure h4 { font-size: 20px; color: var(--ink); margin: 0 0 6px; }
.gallery-panel figcaption h4 { margin: 0; }

/* R2 · P2 Menu bar: 44px hit areas, CTA anchored right with status beside it. */
.site-chrome .navlinks { flex: 1; }
.site-chrome .navlinks > a:not(.nav-cta) { min-height: 44px; }
.site-chrome .navlinks .menubar-status { margin-left: auto; margin-right: 14px; }
.site-chrome .navlinks .nav-cta { order: 0; margin-left: 0; min-height: 44px; padding: 0 18px; font-size: 13px; }
@media (max-width: 1040px) { .site-chrome .navlinks .nav-cta { margin-left: auto; } }
@media (max-width: 720px) { .site-chrome .navlinks .nav-cta { margin: 8px 0 0; } }

/* R2 · P2 320px fold: tighter spacing only. */
@media (max-width: 390px) {
  .hero { padding: 22px 0 36px; }
  .hero h1 { margin: 12px 0 14px; }
  .hero .lead { margin-bottom: 12px; line-height: 1.45; }
  .hero .promise { margin-top: 10px; }
  .hero-device { padding-top: 14px; padding-bottom: 20px; }
}
@media (max-width: 390px) {
  .hero .eyebrow { letter-spacing: .07em; }
  .hero .eyebrow .status-dot { margin-right: 7px; }
  .hero .button { padding: 10px 14px; gap: 6px; letter-spacing: -.01em; }
  .hero-cta { gap: 4px 10px; }
  .hero .micro { line-height: 1.3; }
  .hero .promise { gap: 5px; margin-top: 8px; }
  .hero .promise span { padding: 3px 8px; }
  .hero-device { padding-top: 10px; }
}
@media (max-width: 340px) { .hero { padding-top: 14px; } .hero .eyebrow { letter-spacing: .03em; font-size: 10.5px; } .hero h1 { margin: 10px 0 12px; } }
