/* DV63 AURA water tabs · Stage 3 of 5 adds the canvases: the photo behind the hero and tile 1, and the glass above each bar. One fixed look (never follows the OS colour scheme). --s scales the hero. */
:root {
  --s: 1;
  --ink: #1b1c1e;
  --label: #5e5e60;
  --navy: #0b1240;
  --navy-2: #070b2a;
  --tile-bg: #e7e6ea;
  --focus: #ffd29a;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: only light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--navy-2); }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff; background: var(--navy-2);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ───────── hero ───────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #e9a98f url(img/wall.jpg) 55% 42% / cover no-repeat;
  background-image: image-set(url(img/wall.avif) type("image/avif"), url(img/wall.webp) type("image/webp"), url(img/wall.jpg) type("image/jpeg")); }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(9,14,36,0), rgba(9,14,36,.55) 70%, #090e24); }
.brand { position: absolute; left: calc(var(--s) * 50px); top: calc(var(--s) * 54px); z-index: 4; }
.logo { display: inline-flex; align-items: center; gap: calc(var(--s) * 14px); color: #fff; text-decoration: none; border-radius: 14px; padding: 4px 6px 4px 2px; min-height: 44px; }
.logo-drop { width: calc(var(--s) * 40px); height: calc(var(--s) * 52px); filter: drop-shadow(0 6px 14px rgba(40, 20, 90, .35)); overflow: visible; }
.wordmark { font-weight: 600; font-size: calc(var(--s) * 30px); letter-spacing: .06em; text-shadow: 0 1px 2px rgba(120, 60, 50, .35), 0 2px 22px rgba(120, 50, 60, .35); }

.tabs-nav { position: absolute; left: 0; right: 0; top: calc(var(--s) * 176px); display: flex; justify-content: center; z-index: 3; pointer-events: none; }
.tabbar { position: relative; pointer-events: auto; display: flex; width: min(calc(var(--s) * 1015px), 92vw); height: calc(var(--s) * 112px);
  padding: 0 calc(var(--s) * 8px); border-radius: calc(var(--s) * 24px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tabbar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.86));
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(120,110,160,.12) inset, 0 calc(var(--s) * 24px) calc(var(--s) * 60px) rgba(40, 18, 80, .28), 0 2px 6px rgba(40, 18, 80, .12); }
.drop-canvas { position: absolute; z-index: 1; pointer-events: none; display: block; }
.tabbar [role=tab] { position: relative; z-index: 2; flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: calc(var(--s) * 18px); color: var(--label); }
.tabbar .lbl { display: flex; flex-direction: column; align-items: center; gap: calc(var(--s) * 9px); transform-origin: 50% 55%; will-change: auto; }
.tabbar .ico { width: calc(var(--s) * 27px); height: calc(var(--s) * 27px); fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .txt { font-size: calc(var(--s) * 16.5px); font-weight: 500; letter-spacing: .035em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.tabbar [role=tab][aria-selected=true] { color: var(--ink); }
.tabbar [role=tab][aria-selected=true] .txt { font-weight: 600; }
.tabbar [role=tab]:hover { color: #2c2d31; }
.tabbar [role=tab]:focus-visible { outline: 2px solid #6d5cff; outline-offset: -6px; }
.tabbar [role=tab] { transition: color .25s var(--ease); }

/* tab panels: a frosted strip at the foot of the hero */
.panels { position: absolute; left: 50%; bottom: calc(var(--s) * 40px); transform: translateX(-50%); width: min(calc(var(--s) * 780px), 92vw); z-index: 3; }
.panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: calc(var(--s) * 28px); padding: calc(var(--s) * 22px) calc(var(--s) * 28px);
  border-radius: calc(var(--s) * 22px); background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.16), 0 20px 50px rgba(5, 8, 40, .3); min-height: calc(var(--s) * 132px); }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 4px; }
.panel.enter { animation: panel-in .5s var(--ease) both; }
.panel.enter-l { --dx: -14px; } .panel.enter-r { --dx: 14px; }
@keyframes panel-in { from { opacity: 0; transform: translateX(var(--dx, 0)); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 calc(var(--s) * 8px); font-size: calc(var(--s) * 12px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.p-title { margin: 0; font-size: calc(var(--s) * 30px); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.p-title.num { font-size: calc(var(--s) * 40px); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.p-sub { margin: calc(var(--s) * 8px) 0 0; font-size: calc(var(--s) * 15px); color: rgba(255,255,255,.82); }
.k-d { font-weight: 600; font-variant-numeric: tabular-nums; }
.k-d.up { color: #ffd7a8; }
.kpis { list-style: none; margin: 0; padding: 0; display: flex; gap: calc(var(--s) * 10px); }
.kpis li { display: grid; gap: 4px; padding: calc(var(--s) * 12px) calc(var(--s) * 16px); border-radius: calc(var(--s) * 16px); background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); min-width: calc(var(--s) * 104px); }
.k-l { font-size: calc(var(--s) * 12px); color: rgba(255,255,255,.75); }
.k-v { font-size: calc(var(--s) * 22px); font-weight: 600; font-variant-numeric: tabular-nums; }
.kpis .k-d { font-size: calc(var(--s) * 12px); }
.spark { margin: 0; width: calc(var(--s) * 330px); }
.spark svg { display: block; width: 100%; height: calc(var(--s) * 74px); overflow: visible; }
.days { display: flex; justify-content: space-between; margin-top: 6px; font-size: calc(var(--s) * 11px); color: rgba(255,255,255,.66); font-weight: 500; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--s) * 8px); max-width: calc(var(--s) * 420px); font-size: calc(var(--s) * 14px); line-height: 1.4; color: rgba(255,255,255,.86); }
.rows b { color: #fff; font-weight: 600; }
.rows.files li { display: flex; justify-content: space-between; gap: 18px; padding: calc(var(--s) * 7px) 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.rows.files li:last-child { border-bottom: 0; }
.rows.files span { color: rgba(255,255,255,.7); white-space: nowrap; }
.rows.prefs li { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-width: calc(var(--s) * 300px); }

/* ───────── state tiles ───────── */
.states { position: relative; padding: clamp(56px, 8vw, 120px) clamp(16px, 5vw, 80px) clamp(48px, 6vw, 96px);
  background: radial-gradient(1100px 520px at 50% 18%, rgba(110, 80, 170, .28), transparent 70%), linear-gradient(180deg, #090e24 0%, #0a0d2e 55%, var(--navy-2) 100%); }
.states-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.states-head .eyebrow { font-size: 12.5px; color: #ffcfa8; }
.states-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.lede { margin: 18px auto 0; max-width: 620px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; color: rgba(225, 228, 255, .78); text-wrap: pretty; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 34px); max-width: 1320px; margin: 0 auto; }
.tile { margin: 0; }
.tile-face { position: relative; aspect-ratio: 1.78; border-radius: 22px; overflow: hidden; background: var(--tile-bg);
  box-shadow: 0 0 0 6px rgba(255,255,255,.96), 0 30px 60px rgba(0, 0, 20, .45), 0 0 0 7px rgba(255,255,255,.4); }
.tile figcaption { display: grid; justify-items: center; gap: 4px; margin-top: 22px; text-align: center; }
.tile figcaption b { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tile figcaption span { font-size: 14px; color: rgba(225, 228, 255, .72); }
.face-light { background: radial-gradient(120% 90% at 50% 30%, #f3f2f6 0%, #e6e5ea 60%, #dddce2 100%); }
.tile-wall { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.band { position: absolute; left: 0; right: 0; top: 50%; height: 30%; transform: translateY(-50%); background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 24px rgba(60, 50, 90, .14); }
.face-light .band { background: #fbfbfd; box-shadow: 0 8px 22px rgba(70, 70, 90, .1), 0 1px 0 #fff inset; -webkit-backdrop-filter: none; backdrop-filter: none; }
.duo, .pair { position: absolute; left: 0; right: 0; top: 50%; height: 30%; transform: translateY(-50%); display: flex; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.duo [role=radio], .pair [role=radio] { position: relative; z-index: 2; flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 44px; color: #5b5b5f; border-radius: 12px; }
.duo .lbl, .pair .lbl, .seg .lbl { display: inline-block; font-size: clamp(11.5px, 1.05vw, 14.5px); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; transform-origin: 50% 50%; }
.duo [aria-checked=true], .pair [aria-checked=true], .seg [aria-checked=true] { color: #1b1c1e; }
.duo [aria-checked=true] .lbl, .pair [aria-checked=true] .lbl, .seg [aria-checked=true] .lbl { font-weight: 600; }
.duo [role=radio]:focus-visible, .pair [role=radio]:focus-visible, .seg [role=radio]:focus-visible { outline: 2px solid #6d5cff; outline-offset: -4px; }
.seg { position: absolute; left: 13%; right: 13%; top: 50%; height: 27%; min-height: 44px; transform: translateY(-58%); display: flex; border-radius: 99px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.seg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; background: #fbfbfd; box-shadow: 0 8px 22px rgba(70, 70, 90, .12), 0 1px 0 #fff inset, 0 0 0 1px rgba(120, 120, 140, .08); }
.seg [role=radio] { position: relative; z-index: 2; flex: 1 1 0; display: flex; align-items: center; justify-content: center; color: #5b5b5f; border-radius: 99px; }
.seg-out { position: absolute; left: 0; right: 0; bottom: 9%; margin: 0; text-align: center; font-size: 13px; color: #6a6a72; }
.seg-v { font-weight: 600; color: #1b1c1e; font-variant-numeric: tabular-nums; }

.foot { padding: 28px clamp(16px, 5vw, 80px) 40px; text-align: center; font-size: 13px; color: rgba(210, 214, 255, .55); background: var(--navy-2); }
.foot p { margin: 0 auto; max-width: 760px; line-height: 1.6; }
.foot b { color: rgba(255,255,255,.8); letter-spacing: .08em; }

/* no-WebGL: the same layout with a frosted CSS indicator */
.fallback-ind { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; transition: transform .45s var(--ease), width .45s var(--ease); }
.fb-cap { position: absolute; inset: 0; border-radius: 999px; background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.95), rgba(235,235,250,.55) 55%, rgba(170,175,220,.45));
  box-shadow: inset 0 1px 1px #fff, inset 0 -6px 12px rgba(80, 90, 160, .22), 0 8px 20px rgba(40, 30, 90, .22); -webkit-backdrop-filter: blur(6px) saturate(1.6); backdrop-filter: blur(6px) saturate(1.6); }

/* ───────── tablet / small laptop ───────── */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile:last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); width: 100%; justify-self: center; }
}

/* ───────── phone ───────── */
@media (max-width: 719px) {
  .hero { min-height: 520px; }
  .brand { left: 16px; top: max(14px, env(safe-area-inset-top)); }
  .logo { gap: 10px; }
  .logo-drop { width: 26px; height: 34px; }
  .wordmark { font-size: 21px; }
  .tabs-nav { top: calc(max(14px, env(safe-area-inset-top)) + 62px); }
  .tabbar { width: calc(100vw - 20px); height: 68px; padding: 0 4px; border-radius: 20px; }
  .tabbar [role=tab] { border-radius: 15px; }
  .tabbar .lbl { gap: 6px; }
  .tabbar .ico { width: 22px; height: 22px; }
  .tabbar .txt { font-size: 9.6px; letter-spacing: .02em; }
  .panels { width: calc(100vw - 20px); bottom: max(12px, env(safe-area-inset-bottom)); }
  .panel { grid-template-columns: 1fr; gap: 14px; padding: 18px 18px; border-radius: 20px; min-height: 0; }
  .eyebrow { font-size: 11px; }
  .p-title { font-size: 22px; } .p-title.num { font-size: 30px; }
  .p-sub { font-size: 13.5px; }
  .kpis { gap: 8px; } .kpis li { min-width: 0; flex: 1; padding: 10px 12px; } .k-l, .kpis .k-d { font-size: 11px; } .k-v { font-size: 17px; }
  .spark { width: 100%; } .spark svg { height: 56px; } .days { font-size: 10.5px; }
  .rows { font-size: 13px; max-width: none; }
  .rows.prefs li { min-width: 0; }
  .tiles { grid-template-columns: 1fr; gap: 54px; }
  .tiles .tile:last-child { max-width: none; }
  .tile-face { border-radius: 20px; }
  .duo .lbl, .pair .lbl, .seg .lbl { font-size: 12px; }
}
@media (max-width: 359px) {
  .tabbar .txt { font-size: 8.6px; letter-spacing: 0; }
  .tabbar .ico { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel.enter { animation: none; }
  .fallback-ind, .tabbar [role=tab] { transition: none; }
}
