/* window.css: direction B, The Window (stage only, 2026-11-25). Loads after style.css and only restyles. */
:root { --maxw: 1200px; --win-frame: #18274a; --win-frame-hi: #1c2c4f; --win-frame-lo: #0c1426; --win-sill-lo: #0e172b; --win-glass: #0a1122; --win-ridge: #070b15; --sky-night-top: #0b1428; --sky-night-low: #1c2f58; --sky-day-top: #1b2d55; --sky-day-mid: #27406f; --sky-day-low: #345489; }
body.win-b { background: radial-gradient(90% 60% at 78% 4%, #14213D 0%, #080D18 58%) no-repeat, #080D18; }
.win-b .wrap { padding: 0 clamp(20px, 4vw, 44px); }
.win-b .btn { border-radius: 999px; padding: 15px 24px; font-size: 1rem; }

/* ---------- hero ---------- */
.win-b.home .hero { grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 5vw, 84px); min-height: min(calc(100svh - 96px), 860px); padding: clamp(8px, 2vw, 28px) 0 clamp(96px, 10vw, 140px); }
.win-b.home .hero h1 { font-size: clamp(2.7rem, 6.3vw, 5.9rem); line-height: 0.98; letter-spacing: -0.04em; margin-bottom: 26px; }
.win-b.home h1 .warm { display: block; white-space: normal; }
.win-b .lede { font-size: clamp(1.06rem, 1.5vw, 1.26rem); max-width: 31em; }
.scene { position: relative; justify-self: center; width: min(100%, 450px); }
.win { position: relative; aspect-ratio: 5 / 6.6; border-radius: 26px; padding: 12px; background: linear-gradient(160deg, var(--win-frame-hi), var(--win-frame-lo)); box-shadow: 0 0 0 1px rgba(234,240,250,.12), 0 50px 120px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(234,240,250,.05); perspective: 1400px; }
.view { position: absolute; inset: 12px; border-radius: 15px; overflow: hidden; background: var(--win-glass); }
.sky, .sky2, .wstars { position: absolute; inset: 0; }
.sky { background: linear-gradient(180deg, var(--sky-night-top) 0%, #14213D 55%, var(--sky-night-low) 100%); }
.sky2 { background: linear-gradient(180deg, var(--sky-day-top) 0%, var(--sky-day-mid) 60%, var(--sky-day-low) 100%); opacity: calc(1 - var(--n, 0)); }
.wstars { opacity: calc(var(--n, 0) * .9); background-image: radial-gradient(1px 1px at 14% 12%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 31% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 52% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 24%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 86% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 44%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 62% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 38%, #fff 50%, transparent 51%); }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: var(--win-ridge); clip-path: polygon(0 46%, 14% 30%, 28% 44%, 44% 18%, 58% 40%, 72% 26%, 88% 44%, 100% 30%, 100% 100%, 0 100%); }
.view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wcurve { fill: none; stroke: rgba(234,240,250,.34); stroke-width: 1.4; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.wdot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--dcs, #F5A623); box-shadow: 0 0 30px 12px var(--dc, rgba(245,166,35,.45)); will-change: transform; }
.sash { position: absolute; top: 12px; bottom: 12px; width: calc(50% - 12px); border: 7px solid var(--win-frame); background: linear-gradient(125deg, rgba(234,240,250,.07) 0%, transparent 34%, transparent 62%, rgba(234,240,250,.05) 100%); box-shadow: inset 0 0 0 1px rgba(234,240,250,.08); }
.sash.l { left: 12px; border-radius: 15px 4px 4px 15px; }
.sash.r { right: 12px; border-radius: 4px 15px 15px 4px; transform-origin: 100% 50%; transition: transform 1.6s cubic-bezier(.3,.7,.2,1); box-shadow: inset 0 0 0 1px rgba(234,240,250,.08), -30px 0 60px -20px rgba(0,0,0,.5); }
.scene.open .sash.r { transform: rotateY(-62deg); }
/* The starting state is set with no transition, so the sash never swings at page load without a crossing (Branding br-2100a). */
.scene:not(.ready) .sash.r, .scene:not(.ready) .air { transition: none; }
.rail { position: absolute; left: 12px; right: 12px; top: 50%; height: 7px; margin-top: -3.5px; background: var(--win-frame); box-shadow: 0 0 0 1px rgba(234,240,250,.07); }
.rail span { position: absolute; left: 14px; top: -22px; font: 500 10px/1 var(--mono); letter-spacing: .2em; color: rgba(234,240,250,.78); }
.sill { height: 16px; margin: 0 -18px; border-radius: 4px 4px 10px 10px; background: linear-gradient(180deg, var(--win-frame-hi), var(--win-sill-lo)); box-shadow: 0 0 0 1px rgba(234,240,250,.08); }
.spill { position: absolute; left: -12%; right: -12%; top: 100%; height: 180px; background: radial-gradient(50% 100% at 50% 0%, rgba(234,240,250,.07), transparent 70%); pointer-events: none; }
.scene-img { position: relative; }
.air { position: absolute; right: 16%; top: 20%; bottom: 20%; width: 34%; opacity: 0; transition: opacity 1.2s .5s; pointer-events: none; }
.scene.open .air { opacity: 1; }
.air i { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(234,240,250,.5), transparent); animation: wdrift 4.2s linear infinite; }
.air i:nth-child(1) { top: 22%; } .air i:nth-child(2) { top: 50%; animation-delay: 1.4s; } .air i:nth-child(3) { top: 76%; animation-delay: 2.6s; }
@keyframes wdrift { from { transform: translateX(40%); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(-70%); opacity: 0; } }
/* Zone labels (Legal lg-1950a, Branding br-2036a): static, always shown, one per zone at the window's right edge. */
.zones { position: absolute; left: 100%; top: 12px; bottom: 28px; width: 0; }
.zone { position: absolute; left: 16px; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: .16em; color: var(--ink); transform: translateY(-50%); }
.zone.rise { top: 25%; } .zone.fall { top: 75%; }
.zone::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.zone.rise::before { background: var(--warm); } .zone.fall::before { background: var(--cool); }
/* Crossing marks (Legal lg-1950b): a neutral open ring where the curve meets the rail, never gold or blue. */
.xring { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px; border-radius: 50%; border: 1.5px solid rgba(234,240,250,.7); background: var(--win-glass); }
.xring.x1 { left: calc(12px + (100% - 24px) * .30); } .xring.x2 { left: calc(12px + (100% - 24px) * .725); }
.scene { margin-right: 150px; width: min(100%, 420px); }
@media (max-width: 1180px) {
  .scene { margin-right: 0; padding-right: 26px; }
  .zones { left: auto; right: -26px; width: 20px; }
  .zone { left: 4px; writing-mode: vertical-rl; transform: translateY(-50%); font-size: 10px; letter-spacing: .1em; gap: 6px; }
  .zone .glyph { width: 15px; height: 15px; }
}
.scene .fig-cap { position: relative; padding: 30px 0 0; }

/* ---------- the other pages (beta, card, guide, privacy, terms, 404): same sky, pills and scale; copy untouched ---------- */
.win-b:not(.home) .hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; }
.win-b .doc h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -0.04em; }
.win-b .doc h2 { font-size: 1.3rem; margin-top: 46px; }

/* ---------- sections ---------- */
.win-b .se { margin-top: clamp(40px, 8vw, 110px); }
.win-b .se h2, .win-b .wn h2 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; max-width: 14em; text-wrap: balance; }
.win-b .se-card, .win-b .cell, .win-b .getapp { background: linear-gradient(140deg, rgba(234,240,250,.06), rgba(20,33,61,.34) 40%, rgba(8,13,24,.3)); box-shadow: inset 0 1px 0 rgba(234,240,250,.08); border: 1px solid var(--line); }
.win-b .se-card { border-radius: 24px; padding: clamp(18px, 3vw, 32px); }
.win-b .triad { gap: clamp(14px, 2vw, 24px); background: none; border: 0; border-radius: 0; overflow: visible; margin: clamp(72px, 11vw, 140px) 0 0; }
.win-b .cell { border-radius: 22px; padding: clamp(24px, 2.6vw, 34px); }
.win-b .cell h3 { font-size: 1.28rem; letter-spacing: -0.015em; }
.win-b .cell p { font-size: 0.98rem; }
.win-b .wn { position: relative; margin: clamp(80px, 12vw, 160px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px clamp(20px, 3vw, 44px); }
.win-b .wn h2 { grid-column: 1 / -1; margin-bottom: clamp(10px, 2vw, 26px); }
.win-b .wn p { margin: 0; max-width: none; }
.win-b .wn p:first-of-type { color: var(--ink); }
.win-b .wn::before { content: ""; position: absolute; inset: -60px -40px auto auto; width: 60%; height: 260px; pointer-events: none; opacity: .5; background: radial-gradient(60% 50% at 85% 0%, rgba(234,240,250,.09), transparent 70%), repeating-linear-gradient(115deg, rgba(234,240,250,.035) 0 1px, transparent 1px 9px); -webkit-mask-image: radial-gradient(70% 70% at 90% 10%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 90% 10%, #000, transparent 75%); }
.win-b .getapp { max-width: none; border-radius: 28px; padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 56px); margin: clamp(80px, 12vw, 160px) 0 clamp(64px, 9vw, 120px); }
.win-b .getapp h2 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 14px; }
.win-b .getapp-sub { font-size: 1.06rem; }

@media (max-width: 900px) {
  .win-b.home .hero { grid-template-columns: 1fr; gap: 48px; min-height: 0; }
  .win-b.home .hero h1 { font-size: clamp(2.5rem, 11.4vw, 4rem); }
  .scene { width: min(86%, 350px); }
  .win { aspect-ratio: 5 / 6.9; }
  .win-b .wn { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sash.r, .air { transition: none; } .air i { animation: none; opacity: .6; transform: translateX(-10%); } }
.still .sash.r, .still .air { transition: none; } .still .air i { animation: none; opacity: .6; transform: translateX(-10%); }
@media (forced-colors: active) { .win, .sash, .rail { border: 1px solid CanvasText; } }
@media print { .scene { display: none; } }

/* ---------- TestFlight step strip (Branding's snippet, verbatim) ---------- */
.tf-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 560px; }
.tf-steps li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 18px 0 0; }
.tf-steps li + li { padding-left: 18px; border-left: 1px solid var(--line-strong); }
.tf-steps .tf-k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.tf-steps .tf-t { font-size: 0.95rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.tf-steps .tf-txt { display: flex; flex-direction: column; gap: 4px; }
.tf-steps svg { width: 22px; height: 22px; stroke: var(--ink-soft); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .tf-steps { grid-template-columns: 1fr; gap: 14px; }
  .tf-steps li { flex-direction: row; align-items: center; gap: 14px; padding: 0; }
  .tf-steps li + li { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--line); }
}
@media (forced-colors: active) { .tf-steps svg { stroke: CanvasText; } }
.win-b footer .tm { flex-basis: 100%; order: 3; font-size: 0.78rem; color: var(--ink-faint); }
.win-b .tf-steps + .beta-note { margin-top: 22px; }
@media print { .win-b footer .tm { flex-basis: auto; } footer { padding-bottom: 0; } }

/* Print (Branding br-2035b): with background graphics on, every dark surface goes white so dark ink stays readable;
   the h1's second line prints in ink, never amber, because it is not a direction. */
@media print {
  /* the pages' own inline styles (the /beta and /card step grid, helper lines) read these tokens, so print redefines them light */
  :root { color-scheme: light; --bg: #FFFFFF; --bg-lift: #F2F4F7; --ink: #101828; --ink-soft: #364152; --ink-faint: #475467; --line: #D0D5DD; --line-strong: #98A2B3; }
  html, body.win-b { background: #FFFFFF !important; background-image: none !important; }
  .win-b main, .win-b .wrap, .win-b .hero, .win-b section, .win-b .se-card, .win-b .cell, .win-b .se-time { background: #FFFFFF !important; background-image: none !important; box-shadow: none; border-color: #D0D5DD; }
  .win-b .wn::before { display: none; }
  /* the interactive sample works on screen only (Branding br-1017w): on paper keep the eyebrow and heading, hide the line, pills and card */
  .win-b .se .se-sub, .win-b .se .se-tabs, .win-b .se .se-card { display: none !important; }
  .win-b h1 .warm, .win-b .hero h1, .win-b .se h2, .win-b .wn h2 { color: #101828; }
  .win-b .wn p, .win-b .wn p:first-of-type { color: #364152; }
}
@media print { .tf-steps .tf-t { color: #101828; } .tf-steps .tf-k { color: #364152; } .tf-steps svg { stroke: #364152; } .tf-steps li + li { border-color: #D0D5DD; } }
