/* Homepage: GO, CLUB and TARGET gather into one record on scroll.
   The device frames hold app screen previews. */
@layer sections {
  .showcase {
    --app-bg: var(--color-night); --app-card: var(--color-line-dark);
    --app-tile: var(--color-grey-2); --app-line: var(--color-grey-2);
    --app-text: var(--color-snow); --app-muted: var(--color-snow-2);
    --app-lime: var(--color-lime);
    --sheet-r: calc(var(--radius-nav) * 1.5);
    padding-block: clamp(4.5rem, 3rem + 6vw, 8rem);
    background: var(--bg-alt); overflow-x: clip;
  }
  /* The section reads top to bottom: the heading, the devices, the paragraphs, then GO, CLUB and TARGET. */
  .sc-frame { position: relative; display: grid; width: min(100%, 40rem); margin-inline: auto; container-type: inline-size; }
  .film.is-live + .showcase {
    position: relative; z-index: 1; margin-top: -100svh;
    border-radius: var(--sheet-r) var(--sheet-r) 0 0;
    box-shadow: inset 0 1px 0 var(--color-white), 0 -30px 90px -10px rgb(4 7 10 / 0.7);
  }
  .film.is-live:not(.is-done) + .showcase { margin-top: -100lvh; }
  /* The landing on a return visit (or after the film's X): the scene's page already shows its rounded top at the foot of the screen, an
     invitation to scroll on (23 Oct 2026). The same peek ends the film (assets/film/auto.js scrolls to it). */
  .film.is-live.is-done + .showcase { margin-top: calc(-100svh - var(--film-peek)); }
  :root { --film-peek: clamp(3rem, 8svh, 4.5rem); }
  .sc-head { position: relative; z-index: 4; grid-area: 1 / 1; padding-inline: var(--gutter); margin-bottom: var(--space-5); }
  /* "One experience" matches Better together: fern, upright, no lime block. The rule that
     actually wins sits after the layers, because the default accent is a layered lime chip. */
  .sc-stage { position: relative; grid-area: 2 / 1; aspect-ratio: 1 / 0.78; isolation: isolate; }
  .sc-copy { grid-area: 3 / 1; display: grid; gap: 1.1em; justify-items: center; max-width: 46rem; margin-inline: auto; padding-inline: var(--gutter); margin-top: var(--space-4); text-align: center; color: var(--text-muted); }
  .sc-copy p { max-width: 62ch; text-wrap: pretty; }
  .sc-stage::before {
    content: ""; position: absolute; left: 50%; top: 46%; z-index: -1;
    width: 130cqw; height: 92cqw; translate: -50% -50%; pointer-events: none;
    background: radial-gradient(closest-side, var(--color-white), transparent 75%);
  }
  .dev {
    position: absolute; left: 0; top: 0;
    translate: calc(var(--x) * 1cqw - 50%) calc(var(--y) * 1cqw - 50%);
    scale: var(--s);
    /* devices.js (GSAP + ScrollTrigger, on Lenis' clock) moves each device's body in with transform; --dx/--dy (cqw) and --angle
       (deg) are how far it starts out, a middle way: they glide in, they do not fly. */
  }
  .dev > .phone, .dev > .tab { will-change: transform; }
  .dev-go { --x: 18; --y: 49; --s: 0.48; --dx: -6; --dy: 10; --angle: -8; z-index: 3; }
  .dev-club { --tw: 62cqw; --x: 46; --y: 46; --s: 0.57; --dx: 0; --dy: -9; --angle: 4; z-index: 1; }
  .dev-target { --x: 73; --y: 55; --s: 0.49; --dx: 6; --dy: 9; --angle: 8; z-index: 2; }
  .dev-hit { position: absolute; inset: 0; z-index: 5; display: block; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
  .dev-hit:focus-visible { outline: calc(2.6px / var(--s)) solid var(--focus); outline-offset: calc(6px / var(--s)); }
  .dev-shadow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgb(19 32 26 / 0.3), transparent); }
  /* Phone: the site's iPhone frame (site.css .phone) at our size */
  .dev-go { --pw: 44cqw; border-radius: calc(var(--pw) * 0.17); }
  .dev-go .phone { --pw: inherit; }
  .dev-go .dev-shadow { left: 6%; right: 6%; height: calc(var(--pw) * 0.1); bottom: calc(var(--pw) * -0.05); }

  /* Upright iPad with a 3:4 screen capture. */
  .dev-club { border-radius: calc(var(--tw) * 1.2987 * 0.058); }
  .dev-club .dev-shadow { left: 6%; right: 6%; height: calc(var(--tw) * 0.1); bottom: calc(var(--tw) * -0.05); }

  /* Tablet in landscape; .is-portrait turns it on its end (CLUB). --tw is its width, --tl its long edge */
  .dev-target { --tw: 90cqw; border-radius: calc(var(--tw) * 0.058); }
  .tab {
    --tl: var(--tw);
    position: relative; width: var(--tw); aspect-ratio: 1.387; padding: calc(var(--tl) * 0.006);
    border-radius: calc(var(--tl) * 0.058);
    background: linear-gradient(135deg, #8b8e93 0%, #3d3f43 14%, #26282b 50%, #424448 86%, #7e8186 100%);
    box-shadow:
      0 calc(var(--tl) * 0.03) calc(var(--tl) * 0.08) rgb(19 32 26 / 0.22),
      0 calc(var(--tl) * 0.006) calc(var(--tl) * 0.015) rgb(19 32 26 / 0.16),
      inset 0 0 0 calc(var(--tl) * 0.0012) rgb(255 255 255 / 0.12);
  }
  .tab.is-portrait { --tl: calc(var(--tw) * 1.387); aspect-ratio: 1 / 1.387; }
  /* Match the captured screen's 3:4 or 4:3 proportions inside the bezel. */
  .tab.is-recorded { aspect-ratio: 1.2987; }
  .tab.is-portrait.is-recorded { --tl: calc(var(--tw) * 1.2987); aspect-ratio: 1 / 1.2987; }
  .tab::before { content: ""; position: absolute; right: 9%; top: calc(var(--tl) * -0.0035); width: 7%; height: calc(var(--tl) * 0.0045); border-radius: 2px 2px 0 0; background: #3a3c40; }
  .tab-bezel { position: relative; height: 100%; padding: calc(var(--tl) * 0.034); border-radius: calc(var(--tl) * 0.052); background: #050607; }
  .tab-cam { position: absolute; left: 50%; top: calc(var(--tl) * 0.0135); width: calc(var(--tl) * 0.0075); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a5c 0%, #0b1020 55%, #05070d 100%); }
  .tab-screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--tl) * 0.022); background: var(--app-bg); container-type: size; }
  .tab-screen-image { display: block; width: 100%; height: 100%; object-fit: contain; }
  .dev-target .dev-shadow { left: 3%; right: 3%; height: calc(var(--tw) * 0.05); bottom: calc(var(--tw) * -0.025); }

  /* Screen sheen */
  .glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(118deg, rgb(255 255 255 / 0.055) 0%, rgb(255 255 255 / 0.018) 28%, rgb(255 255 255 / 0) 46%); }


  /* GO, CLUB, TARGET on one line. Height follows the column so a phone holds all three; --a is where
     "Aimlink" starts in that lockup, so the caption begins under the A at every size. */
  .sc-apps {
    --gap: clamp(0.75rem, 2.4cqi, 2.75rem);
    --lockup-h: min(3rem, calc((100cqi - 2 * var(--gutter) - 2 * var(--gap)) / 13.4));
    grid-area: 4 / 1; display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: flex-start;
    gap: var(--gap); margin: calc(1.25rem + 10px) 0 0; padding-inline: var(--gutter); list-style: none;
  }
  .sc-app-go { --aw: 1024; --ah: 279; --a: 33.6%; }
  .sc-app-club { --aw: 1024; --ah: 226; --a: 29.5%; }
  .sc-app-target { --aw: 1024; --ah: 203; --a: 25.7%; }
  .sc-apps a { display: grid; justify-items: start; color: var(--color-ink); text-decoration: none; }
  .sc-lockup { display: block; height: var(--lockup-h); width: calc(var(--lockup-h) * var(--aw) / var(--ah)); max-width: none; fill: currentColor; }
  .sc-apps span {
    margin-top: 0.35em; margin-inline-start: var(--a); width: 0; min-width: 0; overflow: visible; white-space: nowrap;
    font-size: clamp(0.4375rem, calc(var(--lockup-h) * 0.3), var(--type-small-size)); line-height: 1.15; color: var(--text-muted);
  }
  .sc-apps a:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: var(--radius-xs); }
  @media (hover: hover) and (pointer: fine) {
    .sc-apps a:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
  }
  @media (max-width: 719.98px) {
    .showcase { padding-bottom: 2.5rem; }
    .sc-head { margin-bottom: 0.75rem; }
    .sc-stage { aspect-ratio: 1 / 0.64; }
    .dev-go { --y: 36; }
    .dev-club { --y: 33; }
    .dev-target { --y: 42; }
  }
  @media (min-width: 900px) and (min-aspect-ratio: 5/4) {
    .sc-apps { justify-content: space-between; margin-top: calc(var(--space-7) + 10px); }
  }
  @media (min-width: 900px) and (min-aspect-ratio: 5/4) {
    .showcase { overflow: clip; }
    .sc-frame { width: min(100%, 78rem); }
    .sc-stage { aspect-ratio: 50 / 20; }
    .sc-stage::before { top: 44%; width: 110cqw; height: 52cqw; }
    .dev-go { --pw: 21.5cqw; --x: 33; --y: 22; --s: 0.6; --dx: -10; --dy: 5; }
    .dev-club { --tw: 33cqw; --x: 48; --y: 20; --s: 0.68; --dy: -5; }
    .dev-target { --tw: 50cqw; --x: 68; --y: 25; --s: 0.59; --dx: 10; --dy: 5; }
  }
  /* Mobile lockups and audience labels retain readable type and separate hit areas. */
  @media (max-width: 1023.98px) {
    .sc-apps { --lockup-h: 3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
    .sc-apps li { min-width: 0; }
    .sc-apps a {
      width: 100%; min-width: 0; min-height: 80px; gap: 8px;
      padding-block: 12px; border-bottom: 1px solid var(--line);
    }
    .sc-apps .sc-lockup { max-width: 100%; }
    .sc-apps span {
      width: auto; margin: 0; white-space: normal;
      font-size: var(--type-small-size); line-height: var(--type-small-leading);
    }
  }
  /* Full product lockups need their own rows on mobile: percentage-positioned
     captions overlap even when the surrounding section clips document overflow. */
  @media (max-width: 1023.98px) {
    .sc-stage {
      display: grid; gap: 0; aspect-ratio: auto;
      padding: 72cqw var(--gutter) 0;
    }
    .sc-cap {
      position: relative; left: auto; top: auto; translate: none;
      width: 100%; min-width: 0; min-height: 64px; gap: 12px;
      padding-block: 10px; border-bottom: 1px solid var(--line);
    }
    .cap-mark { width: 40px; height: 40px; }
    .cap-t { min-width: 0; gap: 6px; }
    .cap-sub { display: block; white-space: normal; }
  }
  @media (min-width: 900px) and (max-width: 1023.98px) and (min-aspect-ratio: 5/4) {
    .sc-stage { padding-top: 38cqw; }
  }
  /* GO on the phone, laid out to the Figma frame "main.tsx, Main dashboard" (file BY21hWRhUZJhss3mrsJQZ3, node 64:3, 393 x 852).
     --u is one Figma pixel: the screen is 393 u wide, so every value below is the frame's own (ScreenView Content: top 59, 8 px
     padding, 8 px gaps; Performance 405 = title 36 + gauge row 285 + count cells 84; Activity feed 124; Target shooting 120;
     the collapsed menu 78). Colours are the frame's too: night, grey-2 cells, line-dark box, grey-3 menu, lime, moss. */
  .dev-go .phone-screen { container-type: size; }
  /* the Dynamic Island: 122 x 36 at (135.5, 12) */
  .dev-go .phone-island { left: 34.48%; top: 1.41%; width: 31.04%; height: 4.23%; }
  .go { --u: calc(100cqw / 393); position: relative; display: flex; flex-direction: column; gap: calc(8 * var(--u)); height: 100%; padding: calc(67 * var(--u)) calc(8 * var(--u)) 0; overflow: hidden; font-size: calc(14 * var(--u)); line-height: 1.3; color: var(--app-text); background: var(--app-bg); }
  .go-status { position: absolute; left: 0; top: 0; width: 100%; height: calc(59 * var(--u)); color: var(--color-snow); }
  .go-time { position: absolute; left: calc(40 * var(--u)); top: calc(22 * var(--u)); font-size: calc(15 * var(--u)); font-weight: 700; line-height: 1.2; }
  .go-wifi { position: absolute; left: calc(316 * var(--u)); top: calc(24 * var(--u)); width: calc(18 * var(--u)); height: calc(13 * var(--u)); }
  .go-bat { position: absolute; left: calc(342 * var(--u)); top: calc(24 * var(--u)); width: calc(24 * var(--u)); height: calc(12 * var(--u)); border-radius: calc(3.5 * var(--u)); box-shadow: inset 0 0 0 max(0.5px, calc(1 * var(--u))) rgb(244 246 248 / 0.5); }
  .go-bat i { position: absolute; left: calc(2 * var(--u)); top: calc(2 * var(--u)); width: calc(19 * var(--u)); height: calc(8 * var(--u)); border-radius: calc(2 * var(--u)); background: var(--color-snow); }
  .go-user { display: flex; align-items: center; justify-content: flex-end; gap: calc(8 * var(--u)); height: calc(28 * var(--u)); flex: none; padding-right: calc(12 * var(--u)); }
  .go-av, .go-fav { display: grid; place-items: center; flex: none; background: var(--app-lime); color: var(--color-moss); font: 600 calc(20 * var(--u))/calc(22 * var(--u)) var(--font-numeric); }
  .go-av { width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: calc(14 * var(--u)); padding-top: calc(2 * var(--u)); }
  .go-title { position: relative; flex: none; height: calc(36 * var(--u)); display: grid; place-items: center; font: 500 calc(24 * var(--u))/1 var(--font-numeric); letter-spacing: 0; text-align: center; color: var(--color-snow); }
  .go-perf { flex: none; }
  .go-gauge { position: relative; height: calc(285 * var(--u)); }
  .go-dial { position: absolute; left: 50%; top: 50%; width: calc(190 * var(--u)); height: calc(190 * var(--u)); translate: -50% -50%; overflow: visible; }
  .go-track, .go-glow, .go-arc { fill: none; stroke-linecap: round; }
  .go-track { stroke: var(--color-grey-2); stroke-width: 16; stroke-dasharray: 100 100; }
  /* the arc is a 240 degree sweep, 100 units long: 10.0 would fill it, so Sofie's 9.38 is 93.8 */
  .go-arc { stroke: url(#go-grad); stroke-width: 12; stroke-dasharray: var(--arc, 93.8) 100; }
  .go-glow { stroke: var(--app-lime); stroke-opacity: 0.55; stroke-width: 12; stroke-dasharray: var(--arc, 93.8) 100; }
  .go.is-live .go-arc, .go.is-live .go-glow { transition: stroke-dasharray 1000ms var(--ease-out); }
  .go-avg { position: absolute; left: 50%; top: 50%; width: calc(190 * var(--u)); height: calc(190 * var(--u)); translate: -50% -50%; }
  .go-avg b { position: absolute; left: 0; right: 0; top: calc(50 * var(--u)); text-align: center; font: 500 calc(76 * var(--u))/calc(76 * var(--u)) var(--font-numeric); color: var(--app-lime); text-shadow: 0 0 calc(10 * var(--u)) rgb(160 224 32 / 0.35); font-variant-numeric: tabular-nums; }
  .go-avg b small { font-size: calc(43 * var(--u)); line-height: calc(43 * var(--u)); }
  .go-avg span { position: absolute; left: 0; right: 0; top: calc(133 * var(--u)); text-align: center; font-size: calc(14 * var(--u)); line-height: 1.35; }
  .go.is-live .go-avg { animation: sc-fade 500ms var(--ease-out) 450ms both; }
  .go-tiles { display: flex; gap: calc(8 * var(--u)); }
  .go-tiles p { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: calc(4 * var(--u)); padding-block: calc(16 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--app-tile); }
  .go-tiles .k { font: 700 calc(11 * var(--u))/calc(14 * var(--u)) var(--font-text); letter-spacing: 0.055em; text-transform: uppercase; color: var(--color-grey-7); }
  .go-tiles b { font: 500 calc(34 * var(--u))/calc(34 * var(--u)) var(--font-numeric); color: var(--app-lime); font-variant-numeric: tabular-nums; }
  .go-feedbox { flex: none; display: grid; gap: calc(8 * var(--u)); }
  .go-chev { position: absolute; right: calc(4 * var(--u)); top: calc(4 * var(--u)); width: calc(28 * var(--u)); height: calc(28 * var(--u)); color: var(--color-grey-7); }
  /* the feed is a stack of cards: the next two peek out underneath, 8 px each */
  .go-stack { position: relative; height: calc(80 * var(--u)); }
  .go-back { position: absolute; left: calc(8 * var(--u)); width: calc(361 * var(--u)); height: calc(56 * var(--u)); border-radius: calc(18 * var(--u)); }
  .go-back-1 { top: calc(8 * var(--u)); background: var(--color-grey-7); }
  .go-back-2 { top: calc(16 * var(--u)); background: var(--color-grey-3); }
  .go-feed { position: absolute; left: calc(8 * var(--u)); top: 0; display: flex; align-items: center; gap: calc(8 * var(--u)); width: calc(361 * var(--u)); height: calc(56 * var(--u)); padding: 0 calc(12 * var(--u)) 0 calc(8 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--color-snow); color: #1a1a1a; }
  .go-fav { width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: calc(18 * var(--u)); font-size: calc(22 * var(--u)); line-height: calc(24 * var(--u)); padding-top: calc(2 * var(--u)); }
  .go-feed p { flex: 1 1 0; min-width: 0; display: grid; font-weight: 700; white-space: nowrap; overflow: hidden; }
  .go-fwho { font-size: calc(11 * var(--u)); line-height: calc(14 * var(--u)); color: var(--color-grey-4); overflow: hidden; text-overflow: ellipsis; }
  .go-feed b { font-size: calc(13 * var(--u)); line-height: calc(16 * var(--u)); overflow: hidden; text-overflow: ellipsis; }
  .go-like { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 700; }
  .go-like svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
  .go-conn { flex: none; display: grid; justify-items: stretch; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)); border-radius: calc(26 * var(--u)); background: var(--color-line-dark); }
  .go-btn { display: grid; place-items: center; height: calc(36 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--app-lime); color: var(--color-moss); font: 500 calc(20 * var(--u))/calc(24 * var(--u)) var(--font-numeric); letter-spacing: 0.04em; text-transform: uppercase; padding-top: calc(2 * var(--u)); }
  .go-note { text-align: center; font-size: calc(12 * var(--u)); line-height: calc(16 * var(--u)); color: var(--color-grey-7); }
  /* the collapsed menu: grey-3, 26 radius on top, six tabs (the current one, Main, is dimmed in the frame), the home bar */
  .go-tabs { position: absolute; left: 0; top: calc(774 * var(--u)); width: 100%; height: calc(78 * var(--u)); display: flex; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(8 * var(--u)) 0; border-radius: calc(26 * var(--u)) calc(26 * var(--u)) 0 0; background: var(--color-grey-3); }
  .go-tabs span { flex: 1 1 0; min-width: 0; height: calc(36 * var(--u)); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: calc(9 * var(--u)); line-height: calc(12 * var(--u)); white-space: nowrap; color: var(--color-snow); }
  .go-tabs .is-on { color: var(--color-grey-5); }
  /* the app's tab glyphs live in a 34-unit symbol (30 x 24 of glyph); the trophy is the frame's own 24 x 24 drawing */
  .go-tabs .ic { width: calc(34 * var(--u)); height: calc(34 * var(--u)); margin: calc(-5 * var(--u)) calc(-2 * var(--u)); }
  .go-trophy { width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
  .go-home { position: absolute; left: calc(126.5 * var(--u)); top: calc(840 * var(--u)); width: calc(140 * var(--u)); height: calc(5 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--app-bg); }
  /* The series arrives from TARGET as a notification, under the island */
  .go-banner {
    position: absolute; left: calc(8 * var(--u)); right: calc(8 * var(--u)); top: calc(54 * var(--u)); z-index: 2;
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: calc(12 * var(--u));
    padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(24 * var(--u)); background: rgb(52 58 66 / 0.97); box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgb(0 0 0 / 0.45);
    opacity: 0; translate: 0 -130%;
  }
  .go.is-banner .go-banner { opacity: 1; translate: 0 0; }
  .go.is-live .go-banner { transition: translate 520ms var(--ease-out), opacity 300ms var(--ease-out); }
  .go-banner-ic { display: grid; place-items: center; width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: calc(10 * var(--u)); background: #f6f7f2; }
  .go-banner-ic img { width: 78%; height: 78%; }
  .go-banner p { display: grid; gap: calc(2 * var(--u)); font-size: calc(12 * var(--u)); line-height: 1.25; color: #c9cfd5; }
  .go-banner-k { display: flex; justify-content: space-between; font-size: calc(10.5 * var(--u)); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-muted); }
  .go-banner-k i { font-style: normal; text-transform: none; letter-spacing: 0; }
  .go-banner b { font-size: calc(14 * var(--u)); font-weight: 700; color: var(--app-text); }

}

/* Unlayered, so it beats the lime chip on .h2 em (that chip lives in a layer, and a phone was still painting it). */
.home .sc-head .h2 em,
.home #news-title em,
.home #builtfor-title em {
  display: inline; font-style: normal; font-synthesis: none; line-height: inherit;
  color: var(--color-fern); background: none; padding: 0; margin: 0;
}
.home #news-title em { display: inline-block; }
.home #proof-title em,
.home .footer-title em {
  display: inline-block; font-style: normal; font-synthesis: none; line-height: inherit;
  color: var(--emphasis); background: none; padding: 0; margin: 0; white-space: nowrap;
}
.home #sub-title em {
  display: inline; font-style: normal; font-synthesis: none; line-height: inherit;
  color: var(--color-fern); background: none; padding: 0; margin: 0;
}

@layer utilities {
  @media (prefers-reduced-motion: reduce) {
    .dev > .phone, .dev > .tab { transform: none !important; will-change: auto; }
  }
}
