/* Beach Life site. Colours from the logo (navy, sun, aqua, cream) plus 30A's emerald water. */
:root {
  --navy: #042E71;
  --ink: #0E1B33;
  --ink2: #55617A;
  --sun: #FADA77;
  --aqua: #81C5D5;
  --emerald: #14A79B;
  --emerald-deep: #0B7F86;
  --cream: #F8F5EE;
  --sand: #F1E7D3;
  --line: rgba(14, 27, 51, .12);
  --wrap: 1180px;
  --head: "Josefin Sans", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--navy); }
h3 { font-size: 16px; letter-spacing: .12em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.eyebrow { font: 700 13px/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--emerald); margin: 0 0 14px; }
.lede { color: var(--ink2); max-width: 640px; margin: 14px 0 0; }
.fine { color: var(--ink2); font-size: 14px; margin-top: 22px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 700 13px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.pill:hover { transform: translateY(-2px); }
.pill-sun { background: var(--sun); color: var(--navy); }
.pill-ghost { border: 2px solid rgba(255, 255, 255, .85); color: #fff; }
.pill-ghost:hover { background: rgba(255, 255, 255, .14); }

/* header: clear over the hero, solid once scrolled. One logo at a time: the header's arrives as the hero's goes under it */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 48px);
  transition: background .3s, box-shadow .3s, padding .3s; }
.top.scrolled { background: rgba(248, 245, 238, .96); box-shadow: 0 1px 0 var(--line); padding-block: 8px; }
.brand { width: 132px; height: 66px; flex: none; transition: opacity .35s, transform .35s, visibility .35s; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.top:not(.brand-in) .brand { opacity: 0; visibility: hidden; transform: translateY(-8px); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font: 700 13px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: #fff; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--sun); }
.top.scrolled .nav a { color: var(--navy); }
.top .pill { min-height: 42px; padding: 0 20px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: #fff; padding: 120px clamp(16px, 5vw, 64px) 160px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1C8E95; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 46, 113, .72) 0%, rgba(4, 46, 113, .38) 45%, rgba(4, 46, 113, 0) 70%),
    linear-gradient(0deg, rgba(4, 46, 113, .25), rgba(4, 46, 113, 0) 40%); }
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; }
.hero-waves path { fill: var(--cream); opacity: .55; }
.hero-waves path + path { opacity: 1; }
.hero-copy { position: relative; max-width: 560px; z-index: 2; }
.hero-logo { width: min(380px, 70vw); margin: 0 0 18px -6px; filter: drop-shadow(0 6px 18px rgba(4, 46, 113, .35)); }
.hero h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: .08em; text-shadow: 0 2px 18px rgba(4, 46, 113, .35); }
.hero-copy p { font-size: clamp(18px, 1.6vw, 21px); max-width: 30em; margin: 18px 0 30px; text-shadow: 0 1px 10px rgba(4, 46, 113, .4); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
/* the whole frame in view, its right edge in line with the header's button, and sized to the room beside the copy
   (padding + 560 px copy + a gap) so the headline never runs into it; below 1100 px it goes under the copy */
.hero-device { position: absolute; z-index: 1; right: clamp(16px, 4vw, 48px); bottom: 110px; width: clamp(420px, calc(100vw - 700px), 760px); margin: 0; transform: rotate(-2deg); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; translate: -50% 0; display: grid; justify-items: center; gap: 6px;
  color: var(--navy); text-decoration: none; font: 700 11px/1 var(--head); letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue svg { width: 16px; height: 46px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(6px); } }

/* device frame: the 10.1" panel's black bezel */
.device { background: #111; border-radius: 18px; padding: 3.2% 3%; box-shadow: 0 30px 60px -20px rgba(4, 46, 113, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.device img { width: 100%; aspect-ratio: 1024 / 600; border-radius: 4px; background: #0B1326; }
.device-lg { border-radius: 22px; }
.device-sm { border-radius: 12px; padding: 3% 2.8%; }

/* live strip */
.live { padding: 80px 0 90px; }
.live-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.live-photo { margin: 0; position: relative; }
.live-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(4, 46, 113, .45); }
.live-photo figcaption { position: absolute; left: 16px; bottom: 16px; font: 700 11px/1 var(--head); letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: rgba(4, 46, 113, .55); padding: 8px 12px; border-radius: 999px; }
.live-card { background: #fff; border-radius: 16px; padding: 22px 22px 20px; box-shadow: 0 1px 0 var(--line); border-top: 4px solid var(--aqua); }
.live-card:nth-child(2) { border-top-color: var(--sun); }
.live-card:nth-child(3) { border-top-color: #F2A65A; }
.live-card:nth-child(4) { border-top-color: var(--emerald); }
.live-card h3 { color: var(--ink2); font-size: 12px; }
.live-card .big { font: 700 26px/1.2 var(--head); color: var(--navy); margin: 12px 0 6px; display: flex; align-items: center; gap: 10px; }
.live-card .sub { color: var(--ink2); font-size: 15px; margin: 0; }
.flag-dots { display: inline-flex; gap: 4px; flex: none; }
.flag-dots:empty { display: none; }
.flag-dot { width: 18px; height: 18px; border-radius: 4px; flex: none; }

/* screens viewer */
.screens { padding: 90px 0; background: #fff; }
.viewer { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 40px; }
#screen-img { transition: opacity .35s; }
#screen-img.fade { opacity: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { border: 1.5px solid var(--line); background: var(--cream); color: var(--navy); border-radius: 999px; padding: 9px 16px;
  font: 700 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.caption { margin-top: 28px; min-height: 150px; }
.caption h3 { font-size: 22px; color: var(--navy); }
.caption p { color: var(--ink2); margin: 10px 0 0; }

/* photo band */
.band { position: relative; min-height: 420px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.band, .closer { isolation: isolate; }
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after, .closer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 46, 113, .55), rgba(4, 46, 113, .15)); }
.band { min-height: 520px; }
.band-chairs .band-photo { object-position: 50% 70%; }
.band-quote span { display: block; margin-top: 12px; font: 400 clamp(17px, 1.6vw, 21px)/1.4 var(--body); letter-spacing: 0; text-transform: none; }
.closer { position: relative; min-height: 420px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.closer-copy { color: #fff; padding: 0 20px; }
.closer-copy h2 { color: #fff; text-shadow: 0 2px 14px rgba(4, 46, 113, .5); }
.closer-copy p { margin: 12px 0 26px; font-size: 20px; text-shadow: 0 1px 10px rgba(4, 46, 113, .5); }
.band-quote { position: relative; color: #fff; font: 600 clamp(24px, 3.2vw, 40px)/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; margin: 0; padding: 0 20px; text-shadow: 0 2px 14px rgba(4, 46, 113, .45); }

/* features */
.features { padding: 90px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.feature-grid article { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 1px 0 var(--line); }
.feature-grid svg { width: 44px; height: 44px; fill: none; stroke: var(--emerald); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid h3 { color: var(--navy); margin: 16px 0 8px; }
.feature-grid p { color: var(--ink2); margin: 0; font-size: 16px; }

/* setup */
.setup { padding: 90px 0; background: linear-gradient(180deg, #fff, var(--cream)); }
.steps { list-style: none; margin: 46px 0 0; padding: 0; display: grid; gap: 40px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.step:nth-child(even) .step-copy { order: -1; }
.step-copy .num { display: block; font: 700 64px/1 var(--head); color: var(--aqua); }
.step-copy h3 { font-size: 22px; color: var(--navy); margin: 8px 0 10px; }
.step-copy p { color: var(--ink2); margin: 0; }
.step-art { background: var(--sand); border-radius: 18px; padding: 24px; }
.step-art svg { width: 100%; height: auto; }
.step-art .d { fill: #111; } .step-art .s { fill: #A9DCE6; } .step-art .k { fill: var(--navy); }
.step-art .c { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; }
.phone { width: 260px; margin: 0 auto; background: #111; border-radius: 36px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(4, 46, 113, .45); }
.phone img { display: block; width: 100%; height: auto; border-radius: 25px; }

/* how to: the app and the display side by side, numbered steps, the settings list and the touch cards */
.use { padding: 90px 0 100px; background: #fff; }
.howto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 64px; }
.howto-flip .howto-copy { order: -1; }
.howto-art .phone { width: 240px; }
.pair { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 560 / 410; }
.pair .device { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 78%; }
.pair .phone { position: absolute; right: 0; top: 0; width: 34%; padding: 2%; border-radius: 13% / 6%; }
.pair .phone img { border-radius: 10% / 4.6%; }
.howto-copy h3 { font-size: 22px; color: var(--navy); margin: 0 0 18px; }
.howto-p { color: var(--ink2); margin: 0; }
.howto-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.howto-steps li { position: relative; padding-left: 46px; color: var(--ink2); counter-increment: step; }
.howto-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--aqua); color: var(--navy); font: 700 15px/33px var(--head); text-align: center; }
.howto-copy b, .howto-note b { color: var(--ink); font-weight: 600; }
.ico { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.25em; }
.ico-line { fill: none; stroke: var(--ink2); stroke-width: 2.4; stroke-linecap: round; }
.howto-note { margin: 22px 0 0; padding: 14px 18px; background: var(--cream); border-left: 4px solid var(--sun); border-radius: 0 12px 12px 0;
  color: var(--ink2); font-size: 16px; }
.howto-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 24px; margin: 22px 0 0; }
.howto-list dt { font: 700 13px/1.9 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.howto-list dd { margin: 0; color: var(--ink2); font-size: 16px; }
.use-sub { font-size: 22px; color: var(--navy); margin: 90px 0 0; }
.touch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.touch-grid article { background: var(--cream); border-radius: 16px; padding: 20px 20px 24px; }
.touch-grid .device { padding: 2.6% 2.4%; border-radius: 12px; box-shadow: 0 18px 36px -18px rgba(4, 46, 113, .55); }
.touch-grid h4 { font: 600 15px/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 20px 0 8px; }
.touch-grid article > p { margin: 0; color: var(--ink2); font-size: 16px; }
.touch-note { margin-top: 22px; }

/* How-to illustrations: real screens, with HTML stand-ins for the parts that move. Sizes are in the screen's own
   pixels: --p is one display pixel (1024 across), --u one phone point (390 across); both scale with the frame.
   main.js adds s1, s2... as the steps play, so each rule below says what a step changes. */
.sym { position: absolute; width: 0; height: 0; overflow: hidden; }
.ill { margin: 0; --p: calc(100cqw / 1024); --u: calc(100cqw / 390); }
.ill .scr { position: relative; aspect-ratio: 1024 / 600; overflow: hidden; border-radius: 4px; background: #0B1326; container-type: inline-size; }
.ill .scr img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; }
:where(.ill) p, :where(.ill) ul { margin: 0; padding: 0; list-style: none; }
.ill .app-scr { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 25px; background: #F3F1EA; color: #14213D;
  container-type: inline-size; font: 500 16px/1.3 Montserrat, system-ui, sans-serif; text-align: left; }
.ill .app-scr svg { display: block; flex: none; }
.ill-pages .phone { width: 270px; margin: 0 auto; }
.pair .phone .app-scr { border-radius: 10% / 4.6%; }
.ill.fade .scr, .ill.fade .app-scr { opacity: 0; }
.ill .scr, .ill .app-scr { transition: opacity .4s; }
.ill.snap, .ill.snap * { transition: none !important; animation: none !important; }
.ill:not(.play) * { animation-play-state: paused !important; }

/* a fingertip: taps, presses and swipes */
.touch { position: absolute; z-index: 6; left: var(--x, 50%); top: var(--y, 50%); width: calc(84 * var(--p)); height: calc(84 * var(--p));
  margin: calc(-42 * var(--p)) 0 0 calc(-42 * var(--p)); border-radius: 50%; background: rgba(255, 255, 255, .55);
  border: calc(5 * var(--p)) solid #fff; box-shadow: 0 0 0 calc(10 * var(--p)) rgba(255, 255, 255, .2), 0 calc(8 * var(--p)) calc(26 * var(--p)) rgba(4, 46, 113, .55);
  opacity: 0; pointer-events: none; }
.touch::after { content: ""; position: absolute; inset: -45%; border-radius: 50%; border: calc(3 * var(--p)) solid #fff; opacity: 0; }
.app-scr .touch { width: calc(46 * var(--u)); height: calc(46 * var(--u)); margin: calc(-23 * var(--u)) 0 0 calc(-23 * var(--u));
  background: rgba(4, 46, 113, .2); border: calc(2.5 * var(--u)) solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 calc(1 * var(--u)) rgba(4, 46, 113, .3), 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(4, 46, 113, .3); }
.app-scr .touch::after { border: calc(2 * var(--u)) solid rgba(4, 46, 113, .45); }
@keyframes tap { 0% { opacity: 0; transform: scale(1.5); } 25% { opacity: 1; transform: scale(1); } 42% { transform: scale(.8); }
  62% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes ripple { 0% { opacity: .9; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* swipe: home slides away to the tide, then back */
.ill-swipe .sw-strip { position: absolute; inset: 0; width: 200%; display: flex; transition: transform .75s cubic-bezier(.55, 0, .25, 1) .2s; }
.ill-swipe .sw-strip img { position: static; width: 50%; flex: none; }
.ill-swipe.s1 .sw-strip { transform: translateX(-50%); }
.ill-swipe.s3 .sw-strip { transform: none; }
.ill-swipe .t1 { --x: 80%; --y: 52%; }
.ill-swipe .t2 { --x: 20%; --y: 52%; }
.ill-swipe .touch::before { content: ""; position: absolute; top: 50%; width: calc(260 * var(--p)); height: 56%; translate: 0 -50%; border-radius: 99px; transform: scaleX(0); }
.ill-swipe .t1::before { left: 50%; transform-origin: left; background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); }
.ill-swipe .t2::before { right: 50%; transform-origin: right; background: linear-gradient(270deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); }
@keyframes swipe-l { 0% { opacity: 0; transform: translateX(0) scale(1.4); } 16% { opacity: 1; transform: translateX(0) scale(1); }
  76% { opacity: 1; transform: translateX(calc(-610 * var(--p))) scale(1); } 100% { opacity: 0; transform: translateX(calc(-640 * var(--p))) scale(1); } }
@keyframes swipe-r { 0% { opacity: 0; transform: translateX(0) scale(1.4); } 16% { opacity: 1; transform: translateX(0) scale(1); }
  76% { opacity: 1; transform: translateX(calc(610 * var(--p))) scale(1); } 100% { opacity: 0; transform: translateX(calc(640 * var(--p))) scale(1); } }
@keyframes trail { 0%, 16% { transform: scaleX(0); } 55% { transform: scaleX(1); } 100% { transform: scaleX(.15); } }
.ill-swipe.s1 .t1 { animation: swipe-l 1.25s ease-in-out both; }
.ill-swipe.s1 .t1::before { animation: trail 1.25s ease-in-out both; }
.ill-swipe.s3 .t2 { animation: swipe-r 1.25s ease-in-out both; }
.ill-swipe.s3 .t2::before { animation: trail 1.25s ease-in-out both; }

/* tap: the touched state (ui_touch.cpp), then a page button */
.ill-tap .pg2, .ill-hold .pg2 { opacity: 0; transition: opacity .45s .3s; }
.ill-tap .t1 { --x: 54%; --y: 38%; }
.ill-tap.s1 .t1, .ill-tap.s3 .t2 { animation: tap 1s ease-out both; }
.ill-tap.s1 .t1::after, .ill-tap.s3 .t2::after { animation: ripple .7s .38s ease-out both; }
.ov { position: absolute; inset: 0; opacity: 0; transition: opacity .35s .45s; font-family: Montserrat, system-ui, sans-serif; }
.ov::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(436 * var(--p)); background: rgba(6, 18, 38, .38); }
.ill-tap.s1 .ov { opacity: 1; }
.ill-tap.s3 .pg2 { opacity: 1; }
.ov-pill { position: absolute; left: calc(322 * var(--p)); top: calc(150 * var(--p)); width: calc(380 * var(--p)); height: calc(48 * var(--p));
  display: flex; align-items: center; gap: calc(12 * var(--p)); padding-left: calc(22 * var(--p)); border-radius: calc(24 * var(--p));
  background: rgba(6, 18, 38, .85); color: #fff; font-size: calc(24 * var(--p)); font-weight: 600; white-space: nowrap; }
.ov-pill i { flex: none; width: calc(12 * var(--p)); height: calc(12 * var(--p)); border-radius: 50%; background: #F5C400; }
.ov-band { position: absolute; left: 0; right: 0; bottom: 0; height: calc(164 * var(--p)); display: flex; align-items: center; background: #0B1326; }
.ov-chips { display: flex; flex-wrap: wrap; gap: calc(8 * var(--p)); width: calc(880 * var(--p)); margin-left: calc(28 * var(--p)); }
.ov-chips b { position: relative; height: calc(56 * var(--p)); display: flex; align-items: center; padding: 0 calc(14 * var(--p)); border-radius: calc(10 * var(--p));
  background: rgba(255, 255, 255, .16); color: #fff; font-size: calc(22 * var(--p)); font-weight: 700; transition: background-color .25s .4s, color .25s .4s; }
.ov-chips .c-home, .ill-tap.s3 .c-tide { background: #fff; color: #14213D; }
.ill-tap.s3 .c-home { background: rgba(255, 255, 255, .16); color: #fff; }
.ov-gear { position: absolute; left: calc(932 * var(--p)); top: calc(50 * var(--p)); width: calc(64 * var(--p)); height: calc(64 * var(--p)); border-radius: 50%; background: #fff; }
.ov-gear::after { content: ""; position: absolute; inset: calc(21 * var(--p)); border-radius: 50%; border: calc(4 * var(--p)) solid #14213D; }

/* hold: a ring fills for three seconds, then Settings */
.ill-hold .t1 { --x: 50%; --y: 46%; }
.ring { position: absolute; left: -40%; top: -40%; width: 180%; height: 180%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke: var(--sun); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 126 126; stroke-dashoffset: 126; }
@keyframes hold { 0% { opacity: 0; transform: scale(1.5); } 8% { opacity: 1; transform: scale(1); } 14% { transform: scale(.85); }
  90% { opacity: 1; transform: scale(.85); } 100% { opacity: 0; transform: scale(.85); } }
@keyframes ring { to { stroke-dashoffset: 0; } }
.ill-hold.s1 .t1 { animation: hold 3.4s ease-out both; }
.ill-hold.s1 .ring circle { animation: ring 2.6s .45s linear both; }
.ill-hold.s2 .pg2 { opacity: 1; }

/* the app (cloud/static), drawn small */
.a-top { display: flex; align-items: center; justify-content: space-between; padding: calc(16 * var(--u)) calc(20 * var(--u)) calc(10 * var(--u)); }
.a-wm { display: flex; align-items: center; gap: .14em; font: 400 calc(26 * var(--u)) / 1 "Bebas Neue", Oswald, sans-serif; letter-spacing: .08em; }
.a-wm svg { width: .62em; height: .62em; border-radius: 50%; box-shadow: 0 0 0 1px rgba(20, 33, 61, .12); }
.a-who { display: flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 600; color: #56607A; white-space: nowrap; }
.a-who::before { content: ""; width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: #1FA3A3; }
.a-who b { font-weight: 700; color: #14213D; }
.a-dn { width: 0; height: 0; border: calc(4 * var(--u)) solid transparent; border-top: calc(5 * var(--u)) solid #14213D; border-bottom: 0; }
.a-h1 { padding: calc(10 * var(--u)) calc(20 * var(--u)) 0; font-size: calc(28 * var(--u)); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.a-sub { padding: calc(6 * var(--u)) calc(20 * var(--u)) calc(14 * var(--u)); font-size: calc(14 * var(--u)); color: #56607A; }
.a-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; padding: calc(10 * var(--u)) calc(8 * var(--u)) calc(20 * var(--u));
  border-top: 1px solid rgba(20, 33, 61, .12); background: rgba(243, 241, 234, .96); }
.a-tabs span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--u)); font-size: calc(11 * var(--u)); font-weight: 600;
  letter-spacing: .04em; color: #8A93A8; }
.a-tabs svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); fill: currentColor; }
.a-tabs .on { color: #14213D; }
.i-gold { --sf: #F5A623; --ss: none; }
.i-teal { --pf: #1FA3A3; --ps: #1FA3A3; --pcf: #fff; --pcs: none; }

/* Events tab */
.a-info { display: flex; align-items: center; gap: calc(12 * var(--u)); margin: 0 calc(20 * var(--u)) calc(14 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u));
  border-radius: calc(12 * var(--u)); background: #fff; font-size: calc(13 * var(--u)); line-height: 1.35; color: #56607A; }
.a-info svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.a-picks { display: flex; align-items: center; gap: calc(12 * var(--u)); height: calc(48 * var(--u)); margin: 0 calc(20 * var(--u)) calc(14 * var(--u));
  padding: 0 calc(14 * var(--u)) 0 calc(16 * var(--u)); border-radius: calc(12 * var(--u)); background: #fff; font-size: calc(16 * var(--u)); }
.a-picks > span:first-child { flex: 1; }
.a-val { position: relative; display: grid; justify-items: end; font-size: calc(15 * var(--u)); color: #56607A; white-space: nowrap; }
.a-val span { grid-area: 1 / 1; transition: opacity .2s .35s; }
.a-val .v1, .a-val .v2, .ill-fav.s1 .v0 { opacity: 0; }
.ill-fav.s1 .v1 { opacity: 1; }
.ill-fav.s2 .v1 { opacity: 0; }
.ill-fav.s2 .v2 { opacity: 1; }
.a-chev { flex: none; width: calc(9 * var(--u)); height: calc(9 * var(--u)); margin-right: calc(4 * var(--u)); border-top: 2px solid rgba(20, 33, 61, .35);
  border-right: 2px solid rgba(20, 33, 61, .35); transform: rotate(45deg); }
.a-list { background: #fff; border-top: 1px solid rgba(20, 33, 61, .12); }
.a-list li { display: grid; grid-template-columns: minmax(0, 1fr) calc(36 * var(--u)); align-items: center; row-gap: calc(2 * var(--u));
  padding: calc(10 * var(--u)) calc(12 * var(--u)) calc(10 * var(--u)) calc(16 * var(--u)); border-bottom: 1px solid rgba(20, 33, 61, .12); }
.a-t { grid-column: 1 / 3; font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .03em; color: #56607A; }
.a-act { display: flex; align-items: center; gap: calc(6 * var(--u)); min-width: 0; font-size: calc(17 * var(--u)); font-weight: 600; white-space: nowrap; }
.a-ms { width: 0; height: calc(16 * var(--u)); --sf: #F5A623; --ss: none; transition: width .25s .35s; }
.ill-fav.s1 .a-ms { width: calc(16 * var(--u)); }
.a-ven { min-width: 0; font-size: calc(14 * var(--u)); color: #56607A; white-space: nowrap; }
.a-ven u { display: inline-block; margin-left: calc(-8 * var(--u)); padding: calc(3 * var(--u)) calc(8 * var(--u)); border-radius: calc(5 * var(--u)); text-decoration: none;
  transition: background-color .25s .35s, color .25s .35s, margin .25s .35s; }
.ill-fav.s2 .a-ven u { margin-left: 0; background: #1FA3A3; color: #fff; font-weight: 700; }
.a-eb { position: relative; display: grid; place-items: center; width: calc(36 * var(--u)); height: calc(36 * var(--u)); color: rgba(20, 33, 61, .35); }
.a-eb svg { grid-area: 1 / 1; width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.a-eb .on { opacity: 0; transition: opacity .15s .35s; }
.ill-fav.s1 .fa .on, .ill-fav.s2 .fv .on { opacity: 1; animation: pop .45s .35s ease-out both; }
.ill-fav.s1 .t1, .ill-fav.s2 .t2 { animation: tap 1s ease-out both; }
.ill-fav.s1 .t1::after, .ill-fav.s2 .t2::after { animation: ripple .7s .38s ease-out both; }

/* the display's Events page (ui_music.cpp), so the picks can move */
.ill .ev-scr { background: #7A5A63 url(assets/screens/plate-events.webp) center / cover; color: #fff; font-family: Montserrat, system-ui, sans-serif; }
.d-head { position: absolute; left: calc(30 * var(--p)); right: calc(28 * var(--p)); top: calc(24 * var(--p)); display: flex; align-items: baseline; gap: calc(18 * var(--p));
  font-size: calc(24 * var(--p)); color: rgba(255, 255, 255, .9); white-space: nowrap; }
.d-head b { font-size: calc(32 * var(--p)); font-weight: 600; color: #fff; }
.d-head span { display: flex; align-items: center; gap: calc(16 * var(--p)); margin-left: auto; font-size: calc(22 * var(--p)); font-weight: 700; letter-spacing: .12em; color: #fff; }
.d-head svg { width: calc(28 * var(--p)); height: calc(28 * var(--p)); fill: none; stroke: #3CC4C4; stroke-width: 2.6; stroke-linecap: round; }
.d-head svg circle { fill: #3CC4C4; stroke: none; }
.d-title { position: absolute; left: calc(28 * var(--p)); top: calc(82 * var(--p)); font-size: calc(22 * var(--p)); font-weight: 700; letter-spacing: .12em; color: rgba(255, 255, 255, .85); }
.d-strip { position: absolute; right: calc(28 * var(--p)); top: calc(70 * var(--p)); height: calc(44 * var(--p)); display: flex; align-items: center;
  font-size: calc(22 * var(--p)); font-weight: 600; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.d-strip b { font: 400 calc(40 * var(--p)) / 1 "Bebas Neue", Oswald, sans-serif; color: #fff; }
.d-strip > span:last-child { margin-left: calc(14 * var(--p)); }
.d-picks { display: flex; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .7s .6s, opacity .4s .8s; }
.d-picks > span { display: flex; align-items: center; gap: calc(8 * var(--p)); padding-left: calc(14 * var(--p)); }
.d-picks svg { width: calc(20 * var(--p)); height: calc(20 * var(--p)); --sf: #F5A623; --ss: none; }
.ill-fav.s3 .d-picks { max-width: calc(180 * var(--p)); opacity: 1; }
.d-panel { position: absolute; left: calc(28 * var(--p)); top: calc(120 * var(--p)); width: calc(478 * var(--p)); height: calc(430 * var(--p)); overflow: hidden;
  border-radius: calc(10 * var(--p)); color: #14213D; background: rgba(255, 255, 255, .86)
  repeating-linear-gradient(transparent 0 calc(60 * var(--p) - 1px), rgba(20, 33, 61, .1) calc(60 * var(--p) - 1px) calc(60 * var(--p)))
  0 calc(4 * var(--p)) / 100% calc(360 * var(--p)) no-repeat; }
.d-right { left: calc(518 * var(--p)); }
.drow { position: absolute; left: 0; right: 0; top: calc((4 + var(--i) * 60) * var(--p)); height: calc(60 * var(--p));
  transition: transform .9s cubic-bezier(.6, .05, .25, 1) .25s; }
.drow.on { background: rgba(20, 33, 61, .06); }
.ill-fav.s3 .drow { transform: translateY(calc((var(--j) - var(--i)) * 60 * var(--p))); }
.drow > b { position: absolute; left: calc(10 * var(--p)); top: calc(3 * var(--p)); display: flex; align-items: center; font-size: calc(25 * var(--p)); font-weight: 700; line-height: 1.25; white-space: nowrap; }
.drow > b svg { width: 0; height: calc(22 * var(--p)); --sf: #F5A623; --ss: none; transition: width .3s .9s, margin .3s .9s; }
.ill-fav.s3 .drow > b svg { width: calc(22 * var(--p)); margin-right: calc(10 * var(--p)); }
.drow > span { position: absolute; left: calc(10 * var(--p)); top: calc(33 * var(--p)); display: flex; align-items: center; gap: calc(10 * var(--p));
  font-size: calc(20 * var(--p)); font-weight: 500; line-height: 1.2; color: #56607A; white-space: nowrap; }
.drow em { font-style: normal; font-weight: 600; color: #14213D; }
.drow u { margin-left: calc(-8 * var(--p)); padding: calc(1 * var(--p)) calc(8 * var(--p)); border-radius: calc(5 * var(--p)); text-decoration: none;
  transition: background-color .3s .9s, color .3s .9s, margin .3s .9s; }
.ill-fav.s3 .drow u { margin-left: 0; background: #1FA3A3; color: #fff; font-weight: 700; }
.eq { position: absolute; left: calc(448 * var(--p)); top: calc(10 * var(--p)); width: calc(15 * var(--p)); height: calc(16 * var(--p)); display: flex; align-items: flex-end; gap: calc(3 * var(--p)); }
.eq i { flex: 1; height: 100%; border-radius: 1px; background: #14213D; transform-origin: bottom; animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration: 1.3s; }
.eq i:nth-child(3) { animation-duration: 1.1s; }
@keyframes eq { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.d-dots { position: absolute; left: 0; right: 0; top: calc(562 * var(--p)); display: flex; justify-content: center; gap: calc(9 * var(--p)); }
.d-dots i { width: calc(8 * var(--p)); height: calc(8 * var(--p)); border-radius: calc(4 * var(--p)); background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 calc(1 * var(--p)) rgba(20, 33, 61, .3); }
.d-dots .on { width: calc(22 * var(--p)); }
.d-gear { position: absolute; left: calc(973 * var(--p)); top: calc(549 * var(--p)); width: calc(18 * var(--p)); height: calc(18 * var(--p)); border-radius: 50%; border: calc(3 * var(--p)) solid rgba(255, 255, 255, .55); }

/* Pages tab: Sky off, then Events dragged up to second */
.a-cyc { padding: 0 calc(20 * var(--u)) calc(8 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 700; letter-spacing: .1em; color: #56607A; }
.a-tiles { position: relative; height: calc(24 * var(--u)); margin: 0 calc(20 * var(--u)) calc(14 * var(--u)); }
.a-tiles i { position: absolute; top: 0; left: calc(var(--i) * 36 * var(--u)); width: calc(30 * var(--u)); height: calc(24 * var(--u)); display: grid; place-items: center;
  border-radius: calc(5 * var(--u)); background: #14213D; color: #fff; font-size: calc(11 * var(--u)); font-weight: 700; font-style: normal;
  transition: transform .8s cubic-bezier(.6, .05, .25, 1), background-color .25s .35s, color .25s .35s; }
.ill-pages.s1 .a-tiles .sk { background: rgba(20, 33, 61, .1); color: rgba(20, 33, 61, .45); }
.ill-pages.s3 .a-tiles i { transform: translateX(calc((var(--j) - var(--i)) * 36 * var(--u))); }
.a-plist { position: relative; height: calc(540 * var(--u)); background: #fff; border-top: 1px solid rgba(20, 33, 61, .12); }
.a-plist li { position: absolute; left: 0; right: 0; top: calc(var(--i) * 60 * var(--u)); height: calc(60 * var(--u)); display: flex; align-items: center; gap: calc(14 * var(--u));
  padding: 0 calc(16 * var(--u)); background: #fff; border-bottom: 1px solid rgba(20, 33, 61, .12); font-size: calc(17 * var(--u)); font-weight: 600;
  transition: transform .8s cubic-bezier(.6, .05, .25, 1), box-shadow .3s, border-radius .3s; }
.a-plist li > span { flex: 1; min-width: 0; line-height: 1.2; white-space: nowrap; transition: opacity .25s .35s; }
.a-plist small { display: block; margin-top: calc(2 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 500; color: #56607A; }
.a-plist li > b { font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .04em; color: #56607A; }
.a-hd { position: relative; flex: none; width: calc(18 * var(--u)); height: calc(2 * var(--u)); border-radius: 1px; background: rgba(20, 33, 61, .35);
  box-shadow: 0 calc(-6 * var(--u)) 0 rgba(20, 33, 61, .35), 0 calc(6 * var(--u)) 0 rgba(20, 33, 61, .35); }
.a-sw { position: relative; flex: none; width: calc(51 * var(--u)); height: calc(31 * var(--u)); border-radius: calc(16 * var(--u)); background: #1FA3A3; transition: background-color .25s .35s; }
.a-sw::after { content: ""; position: absolute; top: calc(2 * var(--u)); left: calc(2 * var(--u)); width: calc(27 * var(--u)); height: calc(27 * var(--u)); border-radius: 50%;
  background: #fff; box-shadow: 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, .2); transform: translateX(calc(20 * var(--u))); transition: transform .25s .35s; }
.ill-pages.s1 .sk .a-sw { background: rgba(20, 33, 61, .18); }
.ill-pages.s1 .sk .a-sw::after { transform: none; }
.ill-pages.s1 .sk > span { opacity: .55; }
.ill-pages.s1 .t1 { animation: tap 1s ease-out both; }
.ill-pages.s1 .t1::after { animation: ripple .7s .38s ease-out both; }
.ill-pages .t2 { transform: scale(1.5); transition: opacity .25s, transform .25s; }
.ill-pages.s2 .t2 { opacity: 1; transform: scale(.85); }
.ill-pages.s4 .t2 { opacity: 0; }
.ill-pages.s2 .ev { z-index: 3; border-radius: calc(12 * var(--u)); border-bottom-color: transparent; box-shadow: 0 calc(10 * var(--u)) calc(28 * var(--u)) rgba(20, 33, 61, .22); transform: scale(1.03); }
.ill-pages.s3 li { transform: translateY(calc((var(--j) - var(--i)) * 60 * var(--u))); }
.ill-pages.s3 .ev { transform: translateY(calc((var(--j) - var(--i)) * 60 * var(--u))) scale(1.03); }
.ill-pages.s4 .ev { transform: translateY(calc((var(--j) - var(--i)) * 60 * var(--u))); border-radius: 0; border-bottom-color: rgba(20, 33, 61, .12); box-shadow: none; }
.a-foot { padding: calc(12 * var(--u)) calc(20 * var(--u)); font-size: calc(13 * var(--u)); color: #56607A; }

/* help */
.help { padding: 90px 0 110px; }
.help h2 { margin-bottom: 26px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 17px/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 26px; color: var(--emerald); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 22px; color: var(--ink2); }

/* release notes page (updates.html): no hero, so the header starts with navy links */
.top.light .nav a { color: var(--navy); }
.page-head { padding: 150px 0 30px; background: linear-gradient(180deg, #fff, var(--cream)); }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); color: var(--navy); }
.notes { padding: 10px 0 110px; }
.rel { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 32px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.rel-when { margin: 3px 0 0; font: 600 14px/1.4 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.rel h2 { font-size: 22px; letter-spacing: .08em; }
.rel-tag { display: inline-block; vertical-align: 3px; margin-right: 12px; padding: 6px 10px 4px; border-radius: 999px; background: var(--sand); color: var(--navy);
  font: 700 11px/1 var(--head); letter-spacing: .16em; }
.rel-tag.disp { background: #DDF1EE; color: var(--emerald-deep); }
.rel ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink2); }
.rel li { margin: 6px 0; }
.rel li b { color: var(--ink); font-weight: 600; }

/* footer */
.foot { background: var(--navy); color: #DCE6F5; padding: 60px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-logo { width: 150px; margin-bottom: 14px; }
.foot h3 { color: #fff; font-size: 13px; margin-bottom: 14px; }
.foot a { display: block; text-decoration: none; padding: 4px 0; color: #DCE6F5; }
.foot a:hover { color: var(--sun); }
.foot p { margin: 0; }
.legal { margin-top: 40px; font-size: 14px; opacity: .7; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue svg { animation: none; }
  .brand { transform: none !important; }
}

/* small screens */
@media (max-width: 1100px) {
  .hero { align-items: start; padding-top: 110px; padding-bottom: 130px; }
  .hero-device { position: relative; z-index: 2; right: auto; bottom: auto; width: min(100%, 560px); margin: 44px auto 0; }   /* under the copy, not over it */
  .scroll-cue { display: none; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .top .pill { margin-left: auto; }
  .live-split, .viewer, .step { grid-template-columns: 1fr; gap: 26px; }
  .live-photo img { aspect-ratio: 16 / 10; }
  .step:nth-child(even) .step-copy { order: 0; }
  .howto { grid-template-columns: 1fr; gap: 30px; margin-top: 56px; }
  .howto-flip .howto-copy { order: 0; }
  .touch-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand { width: 110px; height: 56px; }
  .live-grid, .feature-grid, .touch-grid { grid-template-columns: 1fr; }
  .howto-art .phone { width: 220px; }
  .howto-list { grid-template-columns: 1fr; gap: 2px; }
  .howto-list dd { margin-bottom: 12px; }
  .hero { padding-bottom: 110px; }
  .page-head { padding-top: 120px; }
  .rel { grid-template-columns: minmax(0, 1fr); }
}
