/* ==========================================================================
   Vorax Athletics — iOS app
   Direction: cool stone ground, white cards on tight technical radii, one
   confident royal accent taken from the storefront, and product photography
   always sitting on its own constant light plate so the studio background
   never fights the UI.
   Type: Archivo (expanded, uppercase) for statements · Assistant for everything
   else — Assistant is the storefront's own face, so app and web read as one.
   ========================================================================== */

:root {
  color-scheme: light;

  /* brand — sampled from voraxathletics.com */
  --royal:       #334FB4;   /* brand blue: CTAs, active states */
  --royal-deep:  #26399073;
  --royal-ink:   #22357C;
  --royal-soft:  #E6EAF7;

  --ink:         #121212;   /* brand ink */
  --ink-2:       #33363D;
  --muted:       #6B7080;
  --muted-2:     #9AA0AD;

  --ground:      #EFEFED;   /* cool stone, not blue-grey */
  --surface:     #FFFFFF;
  --surface-2:   #F6F6F5;
  --surface-sunk:#EAEAE8;
  --hairline:    #E4E4E2;
  --hairline-2:  #D3D3D0;

  /* photography always sits on this, in both themes */
  --plate:       #F1F1F0;

  --alert:       #E5484D;
  --alert-soft:  #FDE8E8;
  --go:          #1F9D55;
  --go-soft:     #E0F4E9;

  --on-royal:    #FFFFFF;
  --on-ink:      #FFFFFF;

  --chrome:      rgba(239,239,237,.86);
  --chrome-line: rgba(18,18,18,.08);
  --scrim:       rgba(10,11,14,.42);
  --press:       rgba(18,18,18,.05);

  --edge: inset 0 1px 0 rgba(255,255,255,.75);
  --shadow-1:
    0 1px 1px rgba(20,24,40,.04),
    0 3px 8px -3px rgba(20,24,40,.07),
    var(--edge);
  --shadow-2:
    0 2px 4px rgba(20,24,40,.05),
    0 14px 30px -10px rgba(20,24,40,.14),
    var(--edge);
  --shadow-3:
    0 30px 70px -24px rgba(16,20,34,.42),
    0 12px 28px -12px rgba(16,20,34,.2);
  --shadow-bar:
    0 1px 2px rgba(20,24,40,.06),
    0 14px 36px -10px rgba(20,24,40,.26),
    inset 0 1px 0 rgba(255,255,255,.8);

  /* metrics: tighter and more technical than the iOS default */
  --r-card: 16px;
  --r-group: 18px;
  --r-chip: 10px;
  --r-pill: 999px;
  --tab-h: 62px;
  --nav-h: 46px;
  --gutter: 18px;

  --ease-ios: cubic-bezier(.32,.72,0,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --ui: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --royal:       #7A99F7;
    --royal-deep:  #A8BEFF;
    --royal-ink:   #C3D2FF;
    --royal-soft:  #1B2340;

    --ink:         #F3F3F1;
    --ink-2:       #C8C9C6;
    --muted:       #969AA5;
    --muted-2:     #6E7280;

    --ground:      #0A0B0E;
    --surface:     #16181E;
    --surface-2:   #1D1F26;
    --surface-sunk:#212430;
    --hairline:    #272A33;
    --hairline-2:  #373B47;

    --plate:       #EDEDEB;

    --alert:       #FF6B6B;
    --alert-soft:  #3A1717;
    --go:          #3ED285;
    --go-soft:     #0E2E1E;

    --on-royal:    #0A0F20;
    --on-ink:      #101216;

    --chrome:      rgba(10,11,14,.86);
    --chrome-line: rgba(255,255,255,.09);
    --scrim:       rgba(0,0,0,.62);
    --press:       rgba(255,255,255,.06);

    --edge: inset 0 1px 0 rgba(255,255,255,.05);
    --shadow-1: 0 1px 2px rgba(0,0,0,.5), var(--edge);
    --shadow-2: 0 14px 30px -10px rgba(0,0,0,.66), var(--edge);
    --shadow-3: 0 30px 70px -24px rgba(0,0,0,.8);
    --shadow-bar: 0 14px 36px -10px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.07);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --royal:       #7A99F7;
  --royal-deep:  #A8BEFF;
  --royal-ink:   #C3D2FF;
  --royal-soft:  #1B2340;

  --ink:         #F3F3F1;
  --ink-2:       #C8C9C6;
  --muted:       #969AA5;
  --muted-2:     #6E7280;

  --ground:      #0A0B0E;
  --surface:     #16181E;
  --surface-2:   #1D1F26;
  --surface-sunk:#212430;
  --hairline:    #272A33;
  --hairline-2:  #373B47;

  --plate:       #EDEDEB;

  --alert:       #FF6B6B;
  --alert-soft:  #3A1717;
  --go:          #3ED285;
  --go-soft:     #0E2E1E;

  --on-royal:    #0A0F20;
  --on-ink:      #101216;

  --chrome:      rgba(10,11,14,.86);
  --chrome-line: rgba(255,255,255,.09);
  --scrim:       rgba(0,0,0,.62);
  --press:       rgba(255,255,255,.06);

  --edge: inset 0 1px 0 rgba(255,255,255,.05);
  --shadow-1: 0 1px 2px rgba(0,0,0,.5), var(--edge);
  --shadow-2: 0 14px 30px -10px rgba(0,0,0,.66), var(--edge);
  --shadow-3: 0 30px 70px -24px rgba(0,0,0,.8);
  --shadow-bar: 0 14px 36px -10px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.07);
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; border: 0; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--royal); }

:focus-visible { outline: 2.5px solid var(--royal); outline-offset: 2px; border-radius: 8px; }

.u { text-transform: uppercase; }
.tnum { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Device frame — edge to edge on a phone, bezelled on a desktop
   ========================================================================== */
.stage { min-height: 100dvh; display: grid; place-items: center; background: var(--ground); }

.phone {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: var(--ground);
  overflow: hidden;
  isolation: isolate;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 780px) {
  .stage {
    background:
      radial-gradient(85% 55% at 50% 6%, rgba(255,255,255,.8), transparent 60%),
      radial-gradient(70% 50% at 50% 112%, rgba(51,79,180,.14), transparent 70%),
      linear-gradient(168deg, #F5F5F3 0%, var(--ground) 46%, #E1E1DE 100%);
    padding: 28px 16px;
  }
  .phone {
    width: 400px;
    height: min(860px, calc(100dvh - 56px));
    border-radius: 54px;
    box-shadow:
      0 0 0 2px #0A0B0E,
      0 0 0 10px #171A20,
      0 0 0 11px #4A505C,
      0 0 0 13px #23262E,
      var(--shadow-3);
    --safe-top: 48px;
    --safe-bot: 22px;
  }
  .phone::after {
    content: "";
    position: absolute;
    top: 9px; left: 50%;
    transform: translateX(-50%);
    width: 106px; height: 30px;
    background: #0F1116;
    border-radius: 999px;
    z-index: 90;
    pointer-events: none;
  }
  .phone::before {
    content: "";
    position: absolute;
    bottom: 8px; left: 50%;
    transform: translateX(-50%);
    width: 132px; height: 5px;
    border-radius: 999px;
    background: var(--ink);
    opacity: .22;
    z-index: 92;
    pointer-events: none;
  }
  .phone .status-bar { display: flex; }
}

@media (min-width: 780px) {
  :root[data-theme="dark"] .stage,
  :root:not([data-theme="light"]) .stage { }
}
@media (min-width: 780px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage {
    background:
      radial-gradient(85% 55% at 50% 6%, rgba(122,153,247,.10), transparent 60%),
      linear-gradient(168deg, #121419 0%, #0A0B0E 50%, #05060A 100%);
  }
}
@media (min-width: 780px) {
  :root[data-theme="dark"] .stage {
    background:
      radial-gradient(85% 55% at 50% 6%, rgba(122,153,247,.10), transparent 60%),
      linear-gradient(168deg, #121419 0%, #0A0B0E 50%, #05060A 100%);
  }
}

.status-bar {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  padding: 15px 30px 0;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  z-index: 91;
  pointer-events: none;
  transition: color .3s linear;
}
.status-bar .sb-right { display: flex; align-items: center; gap: 5px; }
.status-bar svg { display: block; }
/* over a full-bleed photo hero the bar inverts */
.phone[data-sb="light"] .status-bar { color: #fff; }

/* ==========================================================================
   Nav bar — transparent at rest, frosted once the screen scrolls
   ========================================================================== */
.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding-top: var(--safe-top);
  background: var(--chrome);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background .28s linear, border-color .28s linear;
}
.navbar[data-collapsed="true"] { border-bottom-color: var(--chrome-line); }
.navbar[data-collapsed="false"] {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-row {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  position: relative;
}
.nav-title {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -46%);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.015em;
  white-space: nowrap;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .2s linear, transform .3s var(--ease-out);
  pointer-events: none;
}
.navbar[data-collapsed="true"] .nav-title { opacity: 1; transform: translate(-50%, -50%); }

.nav-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: var(--r-pill);
  color: var(--royal);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  z-index: 1;
}
.nav-btn.left { padding: 0 10px 0 4px; max-width: 42%; }
.nav-btn.left span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-btn:active { opacity: .5; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; z-index: 1; }
.nav-actions button { display: block; }
.nav-actions button:active { transform: scale(.92); }

/* over a full-bleed photo the nav controls carry their own chip */
.navbar[data-on-photo="true"] .nav-btn.left {
  color: #fff;
  background: rgba(8,9,12,.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0 13px 0 8px;
}
.navbar[data-on-photo="true"] .nav-ico {
  background: rgba(8,9,12,.34);
  color: #fff;
  box-shadow: none;
}

/* icon-only nav action */
.nav-ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  position: relative;
  box-shadow: var(--shadow-1);
}
.nav-ico svg { width: 17px; height: 17px; }
.nav-ico .dot {
  position: absolute; top: 4px; right: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 2px var(--ground);
}

/* ==========================================================================
   Screens + push / pop transitions
   ========================================================================== */
.screens { position: absolute; inset: 0; }

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: calc(var(--safe-top) + var(--nav-h));
  padding-bottom: calc(var(--safe-bot) + var(--tab-h) + 26px);
  background: var(--ground);
}
.screen::-webkit-scrollbar { display: none; }
.screen.is-flush { padding-top: 0; }

@keyframes push-in  { from { transform: translateX(100%); } to { transform: none; } }
@keyframes push-out { from { transform: none; } to { transform: translateX(-26%); opacity: .55; } }
@keyframes pop-in   { from { transform: translateX(-26%); opacity: .55; } to { transform: none; opacity: 1; } }
@keyframes pop-out  { from { transform: none; } to { transform: translateX(100%); } }
@keyframes tab-in   { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

.screen.is-pushing-in  { animation: push-in .42s var(--ease-ios) both; z-index: 3; box-shadow: -14px 0 34px rgba(0,0,0,.14); }
.screen.is-pushing-out { animation: push-out .42s var(--ease-ios) both; }
.screen.is-popping-out { animation: pop-out .38s var(--ease-ios) both; z-index: 3; box-shadow: -14px 0 34px rgba(0,0,0,.14); }
.screen.is-popping-in  { animation: pop-in .38s var(--ease-ios) both; }
.screen.is-tab-in      { animation: tab-in .3s var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  .screen.is-pushing-in, .screen.is-pushing-out,
  .screen.is-popping-out, .screen.is-popping-in,
  .screen.is-tab-in { animation-duration: .01s; }
}

/* ==========================================================================
   Large title
   ========================================================================== */
.large-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 800;
  text-transform: uppercase;
  font-size: 32px;
  line-height: .96;
  letter-spacing: -.012em;
  padding: 14px var(--gutter) 4px;
  text-wrap: balance;
}
.lt-sub {
  display: block;
  font-family: var(--ui);
  font-variation-settings: normal;
  text-transform: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 8px;
  max-width: 34ch;
}

/* ==========================================================================
   Floating pill tab bar — only the active tab carries its label
   ========================================================================== */
.tabbar {
  position: absolute;
  left: 14px; right: 14px;
  bottom: calc(var(--safe-bot) + 12px);
  z-index: 50;
  height: var(--tab-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--shadow-bar);
}
.tab {
  flex: 0 0 auto;
  height: 46px;
  min-width: 46px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  position: relative;
  transition: background .26s var(--ease-out), color .2s linear, flex-grow .26s var(--ease-out);
}
.tab svg { width: 22px; height: 22px; display: block; flex: none; }
.tab span { display: none; white-space: nowrap; }
.tab[aria-selected="true"] { flex: 1 1 auto; background: var(--royal); color: var(--on-royal); }
.tab[aria-selected="true"] span { display: inline; }
.tab:active { transform: scale(.94); }
.tab .badge {
  position: absolute;
  top: 5px; right: 6px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--alert);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.tab[aria-selected="true"] .badge { display: none; }

/* ==========================================================================
   Building blocks
   ========================================================================== */
.pad { padding-inline: var(--gutter); }
.section { margin-top: 26px; }
.section.tight { margin-top: 18px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--gutter) 12px;
}
.section-head h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 102, "wght" 760;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .055em;
}
.section-head .more {
  font-size: 13px;
  font-weight: 700;
  color: var(--royal);
  flex: none;
}
.section-head .more:active { opacity: .5; }

.eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted { color: var(--muted); }
.body-copy { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* horizontal rails */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px var(--gutter) 6px;
  scroll-snap-type: x proximity;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* ==========================================================================
   Announcement ticker
   ========================================================================== */
.ticker {
  margin: 0 var(--gutter) 2px;
  background: var(--ink);
  color: var(--ground);
  border-radius: var(--r-chip);
  overflow: hidden;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 0;
}
:root[data-theme="dark"] .ticker,
:root:not([data-theme="light"]) .ticker { background: var(--royal); color: var(--on-royal); }
.ticker span { display: inline-block; padding-left: 100%; animation: slide 22s linear infinite; }
@keyframes slide { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker span { animation: none; padding-left: 14px; }
}

/* ==========================================================================
   Hero — full-bleed photography with the headline set into it
   ========================================================================== */
.hero {
  position: relative;
  margin: 0 var(--gutter);
  border-radius: 22px;
  overflow: hidden;
  background: var(--plate);
  box-shadow: var(--shadow-2);
}
.hero.flush { margin: 0; border-radius: 0; box-shadow: none; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .ratio { aspect-ratio: 4 / 5; }
.hero .ratio.wide { aspect-ratio: 5 / 4; }
.hero .ov {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 20px 22px;
  background: linear-gradient(to top, rgba(6,7,10,.94), rgba(6,7,10,.58) 46%, transparent);
  color: #fff;
}
.hero h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 830;
  text-transform: uppercase;
  font-size: 28px;
  line-height: .95;
  letter-spacing: -.012em;
}
.hero p {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.82);
  max-width: 30ch;
}
.hero .btn { margin-top: 16px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .12s var(--ease-out), opacity .2s linear;
}
.btn:active { transform: scale(.975); }
.btn.block { display: flex; width: 100%; }
.btn.sm { height: 40px; font-size: 13.5px; padding: 0 16px; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn.primary { background: var(--royal); color: var(--on-royal); box-shadow: var(--shadow-1); }
.btn.dark    { background: var(--ink); color: var(--on-ink); }
.btn.light   { background: #fff; color: #121212; }
.btn.subtle  { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.btn.ghost   { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hairline-2); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ==========================================================================
   Product cards
   ========================================================================== */
.pgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  padding: 0 var(--gutter);
}
.pcard { width: 100%; text-align: left; display: block; }
.rail .pcard { width: 156px; }

.pshot {
  position: relative;
  aspect-ratio: 1 / 1.18;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--plate);
  box-shadow: var(--shadow-1);
}
.pshot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease-out);
}
.pcard:active .pshot img { transform: scale(1.04); }

.fav {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: #121212;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  transition: transform .18s var(--ease-out), background .2s linear, color .2s linear;
}
.fav svg { width: 15px; height: 15px; }
.fav[aria-pressed="true"] { background: var(--alert); color: #fff; }
.fav:active { transform: scale(.86); }

.pmeta { padding-top: 9px; }
.pmeta .ptype {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.pmeta .pname {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1.25;
  margin-top: 2px;
}
.pmeta .pprice { font-size: 13px; color: var(--muted); margin-top: 2px; }

.ptag {
  position: absolute;
  left: 8px; top: 8px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,255,255,.92);
  color: #121212;
  border-radius: 6px;
  padding: 4px 7px;
}

/* ==========================================================================
   Sport cards
   ========================================================================== */
.sportcard { width: 104px; text-align: center; }
.sportcard .shot {
  width: 104px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--plate);
  box-shadow: var(--shadow-1);
  margin-bottom: 8px;
}
.sportcard .shot img { width: 100%; height: 100%; object-fit: cover; }
.sportcard b {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sportcard:active .shot { transform: scale(.97); }

/* ==========================================================================
   Grouped list rows
   ========================================================================== */
.group {
  margin: 0 var(--gutter);
  background: var(--surface);
  border-radius: var(--r-group);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.group + .group { margin-top: 14px; }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
  position: relative;
  transition: background .16s linear;
}
.row + .row::before {
  content: "";
  position: absolute;
  left: 14px; right: 0; top: 0;
  height: 1px;
  background: var(--hairline);
}
.row + .row.has-thumb::before { left: 72px; }
.row:active { background: var(--press); }
.row.is-off { opacity: .55; }

.row .rico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--ink);
  flex: none;
}
.row .rico svg { width: 17px; height: 17px; }
.row .rico.accent { background: var(--royal-soft); color: var(--royal); }

.row .rthumb {
  width: 46px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--plate);
  flex: none;
}
.row .rthumb img { width: 100%; height: 100%; object-fit: cover; }

.row .rtext { flex: 1; min-width: 0; }
.row .rtext b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; }
.row .rtext small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.row .rval { font-size: 13.5px; color: var(--muted); flex: none; }
.row .chev { color: var(--muted-2); flex: none; display: grid; place-items: center; }
.row .chev svg { width: 15px; height: 15px; }

.group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 22px var(--gutter) 9px;
}

/* ==========================================================================
   Cards, features, stats
   ========================================================================== */
.card {
  margin: 0 var(--gutter);
  background: var(--surface);
  border-radius: var(--r-group);
  padding: 16px;
  box-shadow: var(--shadow-1);
}
.card.accent { background: var(--royal-soft); box-shadow: none; }

.featgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 var(--gutter);
}
.feat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 12px;
  box-shadow: var(--shadow-1);
}
.feat.span { grid-column: 1 / -1; }
.feat svg { width: 18px; height: 18px; flex: none; color: var(--royal); }
.feat b { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.feat small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 2px; }

.stats {
  display: flex;
  margin: 0 var(--gutter);
  background: var(--surface);
  border-radius: var(--r-group);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.stats div { flex: 1; text-align: center; padding: 14px 6px; position: relative; }
.stats div + div::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--hairline);
}
.stats b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.stats small { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Chips + segmented control
   ========================================================================== */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px var(--gutter) 14px;
}
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-chip);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  transition: background .2s linear, color .2s linear;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
:root[data-theme="dark"] .chip[aria-pressed="true"],
:root:not([data-theme="light"]) .chip[aria-pressed="true"] { background: var(--royal); color: var(--on-royal); }
.chip:active { transform: scale(.96); }

.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-sunk);
  border-radius: 12px;
}
.seg button {
  flex: 1;
  padding: 9px 6px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: background .2s var(--ease-out), box-shadow .2s linear;
}
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow-1); }
.seg button small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 1px; }

/* ==========================================================================
   Switch
   ========================================================================== */
.sw {
  width: 48px; height: 29px;
  border-radius: 15px;
  background: var(--surface-sunk);
  position: relative;
  flex: none;
  transition: background .24s var(--ease-out);
}
.sw::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 25px; height: 25px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: transform .24s var(--ease-ios);
}
.sw[aria-pressed="true"] { background: var(--go); }
.sw[aria-pressed="true"]::after { transform: translateX(19px); }

/* ==========================================================================
   Colourway swatches
   ========================================================================== */
.swatches {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px var(--gutter) 10px;
}
.swatches::-webkit-scrollbar { display: none; }
.swatch { flex: none; width: 46px; text-align: center; }
.swatch i {
  display: block;
  width: 46px; height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
  transition: box-shadow .2s var(--ease-out);
}
.swatch[aria-pressed="true"] i {
  box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--royal), inset 0 0 0 1px rgba(0,0,0,.1);
}
.swatch small {
  display: block;
  font-size: 9px;
  line-height: 1.2;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 600;
}
.swatch[aria-pressed="true"] small { color: var(--ink); }

/* ==========================================================================
   Product detail
   ========================================================================== */
.pd-shot {
  position: relative;
  background: var(--plate);
  aspect-ratio: 1 / 1.08;
}
.pd-shot img { width: 100%; height: 100%; object-fit: cover; }
.pd-shot .ptag { left: 16px; top: calc(var(--safe-top) + var(--nav-h) + 8px); }

.pd-head { padding: 18px var(--gutter) 0; }
.pd-head .ptype {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.pd-head h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-top: 6px;
}
.pd-price {
  display: flex; align-items: baseline; gap: 9px; margin-top: 7px;
}
.pd-price b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pd-price span { font-size: 13px; color: var(--muted); }

.pd-cta {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px var(--gutter);
  padding-bottom: calc(var(--safe-bot) + 12px);
  background: var(--chrome);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-top: 1px solid var(--chrome-line);
}
.pd-cta .fav-lg {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
  flex: none;
  transition: transform .18s var(--ease-out), background .2s linear, color .2s linear;
}
.pd-cta .fav-lg svg { width: 19px; height: 19px; }
.pd-cta .fav-lg[aria-pressed="true"] { background: var(--alert); color: #fff; }
.pd-cta .fav-lg:active { transform: scale(.9); }
/* a screen with its own action bar hides the tab bar and makes room for it */
.phone[data-cta="on"] .tabbar { transform: translateY(170%); pointer-events: none; }
.tabbar { transition: transform .34s var(--ease-ios); }
.phone[data-cta="on"] .screen { padding-bottom: calc(var(--safe-bot) + 176px); }
.phone[data-cta="on"] .toast { bottom: calc(var(--safe-bot) + 168px); }

/* Root-tab variant: the tab bar stays, so the action bar becomes a floating
   panel sitting directly above it, in the same stack of glass. */
.pd-cta.over {
  left: 14px;
  right: 14px;
  bottom: calc(var(--safe-bot) + var(--tab-h) + 20px);
  border-radius: 22px;
  border-top: 0;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow-bar);
}
.phone[data-cta="over"] .screen { padding-bottom: calc(var(--safe-bot) + 168px); }
.phone[data-cta="over"] .toast { bottom: calc(var(--safe-bot) + 160px); }

/* ==========================================================================
   Notifications
   ========================================================================== */
.note {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  position: relative;
}
.note + .note::before {
  content: ""; position: absolute; left: 14px; right: 0; top: 0; height: 1px; background: var(--hairline);
}
.note:active { background: var(--press); }
.note .ndot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--royal); margin-top: 6px; flex: none;
}
.note .ndot.read { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hairline-2); }
.note .ntext { min-width: 0; }
.note .ntext b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.005em; }
.note .ntext p { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.note .ntext time {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); margin-top: 6px;
}

/* ==========================================================================
   Tags
   ========================================================================== */
.phase2 {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--royal);
  background: var(--royal-soft);
  border-radius: 5px;
  padding: 2px 6px;
  vertical-align: 1px;
}
.placeholder {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--hairline-2);
  border-radius: 5px;
  padding: 2px 6px;
}

/* ==========================================================================
   Gallery grid
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 var(--gutter);
}
.gallery div {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--plate);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Socials
   ========================================================================== */
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 var(--gutter); }
.social {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 12px;
  box-shadow: var(--shadow-1);
  text-align: left;
}
.social svg { width: 19px; height: 19px; flex: none; color: var(--royal); }
.social b { display: block; font-size: 13px; font-weight: 700; }
.social small { display: block; font-size: 11px; color: var(--muted); }
.social:active { background: var(--press); }

/* ==========================================================================
   Search + form fields
   ========================================================================== */
.searchbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 var(--gutter) 14px;
  height: 44px;
  padding: 0 13px;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.searchbar svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.searchbar input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: none;
  font: inherit; font-size: 15.5px; color: var(--ink);
}
.searchbar input::placeholder { color: var(--muted-2); }
.searchbar .clear { color: var(--muted); display: grid; place-items: center; }
.searchbar .clear svg { width: 15px; height: 15px; }

.field { padding: 0 var(--gutter); margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.field .inp {
  background: var(--surface);
  border-radius: 13px;
  padding: 13px 14px;
  font-size: 14.5px;
  color: var(--muted-2);
  box-shadow: var(--shadow-1);
}
.field .inp.tall { min-height: 88px; }

/* ==========================================================================
   Empty state
   ========================================================================== */
.empty { padding: 46px 40px; text-align: center; }
.empty .eico {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted-2);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-1);
}
.empty .eico svg { width: 24px; height: 24px; }
.empty b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.empty p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 7px; }

/* ==========================================================================
   Quote block
   ========================================================================== */
.quote { padding: 0 var(--gutter); }
.quote p {
  font-family: var(--display);
  font-variation-settings: "wdth" 104, "wght" 780;
  text-transform: uppercase;
  font-size: 21px;
  line-height: 1.04;
  letter-spacing: -.008em;
}
.quote cite {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

/* ==========================================================================
   Scrim + sheet
   ========================================================================== */
.scrim {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: var(--scrim);
  opacity: 0;
  transition: opacity .32s var(--ease-out);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.scrim.is-on { opacity: 1; }

.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  max-height: 86%;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 44px rgba(0,0,0,.24);
  transform: translateY(101%);
  transition: transform .42s var(--ease-ios);
  padding-bottom: calc(var(--safe-bot) + 18px);
}
.sheet.is-on { transform: none; }
.sheet-grab { padding: 10px 0 6px; display: grid; place-items: center; flex: none; cursor: grab; touch-action: none; }
.sheet-grab i { width: 38px; height: 5px; border-radius: 3px; background: var(--hairline-2); display: block; }
.sheet-scroll { overflow-y: auto; scrollbar-width: none; padding-top: 4px; }
.sheet-scroll::-webkit-scrollbar { display: none; }

.sheet-head { padding: 0 var(--gutter) 14px; display: flex; align-items: flex-start; gap: 12px; }
.sheet-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.sheet-head p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.sheet-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-sunk); color: var(--muted);
  display: grid; place-items: center; flex: none;
}
.sheet-close svg { width: 14px; height: 14px; }
.sheet-foot { padding: 16px var(--gutter) 4px; }

.sizegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 0 var(--gutter); }
.sizegrid button {
  padding: 15px 0;
  border-radius: 13px;
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
  transition: background .18s linear, color .18s linear;
}
.sizegrid button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
:root[data-theme="dark"] .sizegrid button[aria-pressed="true"],
:root:not([data-theme="light"]) .sizegrid button[aria-pressed="true"] { background: var(--royal); color: var(--on-royal); }
.sizegrid button[disabled] { opacity: .35; pointer-events: none; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bot) + var(--tab-h) + 26px);
  transform: translate(-50%, 16px);
  z-index: 80;
  max-width: calc(100% - 44px);
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s linear, transform .32s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Intro: splash then onboarding, over everything
   ========================================================================== */
.intro {
  position: absolute;
  inset: 0;
  z-index: 95;
  background: #08090C;
  color: #fff;
  overflow: hidden;
}
.intro.is-out { opacity: 0; transition: opacity .5s linear; pointer-events: none; }

.splash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #08090C;
  z-index: 2;
}
.splash img { width: 168px; filter: invert(1); opacity: 0; animation: fade-up .8s .1s forwards; }
.splash p {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 20px;
  opacity: 0;
  animation: fade-up .8s .45s forwards;
}
.splash .bar {
  width: 108px; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,.14);
  margin-top: 38px; overflow: hidden;
}
.splash .bar i { display: block; height: 100%; width: 0; background: #7A99F7; animation: load 1.7s .25s var(--ease-out) forwards; }
.splash.is-gone { opacity: 0; pointer-events: none; transition: opacity .45s linear; }

@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes load { to { width: 100%; } }

.slides { position: absolute; inset: 0; display: flex; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s linear; }
.slide.is-on { opacity: 1; pointer-events: auto; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.slide .ov {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 24px;
  padding-bottom: calc(var(--safe-bot) + 34px);
  background: linear-gradient(to top, rgba(4,5,8,.97), rgba(4,5,8,.7) 52%, transparent);
}
.slide h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 840;
  text-transform: uppercase;
  font-size: 31px;
  line-height: .94;
  letter-spacing: -.015em;
  white-space: pre-line;
}
.slide p { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.5; margin-top: 12px; max-width: 34ch; }
.intro-dots { display: flex; gap: 6px; margin: 24px 0 18px; }
.intro-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.3); transition: width .3s var(--ease-out), background .3s linear; }
.intro-dots i.on { width: 20px; background: #fff; }
.intro-skip {
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  right: 18px;
  z-index: 3;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   Desktop screen glare
   ========================================================================== */
.glare { display: none; }
@media (min-width: 780px) {
  .glare {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 93;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
      118deg,
      rgba(255,255,255,.16) 0%,
      rgba(255,255,255,.06) 16%,
      rgba(255,255,255,0) 32%,
      rgba(255,255,255,0) 100%
    );
  }
}

/* ==========================================================================
   PHASE 2 — commerce, loyalty, membership, events, content
   ========================================================================== */

/* --- "Proposed" marker: everything not yet real carries one -------------- */
.proposed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--hairline-2);
  border-radius: 5px;
  padding: 3px 7px;
}
.proposed::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

/* --- Bag line items ------------------------------------------------------ */
.line {
  display: flex;
  gap: 12px;
  padding: 14px;
  position: relative;
  align-items: flex-start;
}
.line + .line::before {
  content: ""; position: absolute; left: 14px; right: 0; top: 0; height: 1px; background: var(--hairline);
}
.line .lshot {
  width: 66px; height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--plate);
  flex: none;
}
.line .lshot img { width: 100%; height: 100%; object-fit: cover; }
.line .lbody { flex: 1; min-width: 0; }
.line .lname { font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.line .lvar { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.line .lprice { font-size: 14px; font-weight: 700; margin-top: 6px; }
.line .lrow { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.line .lrm { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-left: auto; }
.line .lrm:active { color: var(--alert); }

.qty {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  padding: 2px;
}
.qty button {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .16s linear;
}
.qty button:active { background: var(--press); }
.qty button[disabled] { opacity: .3; pointer-events: none; }
.qty button svg { width: 14px; height: 14px; }
.qty b { min-width: 24px; text-align: center; font-size: 14px; font-weight: 700; }

/* --- Free shipping progress --------------------------------------------- */
.ship-prog { padding: 14px; }
.ship-prog .track {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-sunk);
  overflow: hidden;
  margin-top: 10px;
}
.ship-prog .track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--royal);
  transition: width .5s var(--ease-out);
}
.ship-prog.is-met .track i { background: var(--go); }
.ship-prog p { font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.ship-prog p span { color: var(--royal); }
.ship-prog.is-met p span { color: var(--go); }

/* --- Price summary ------------------------------------------------------- */
.sumrows { padding: 4px 14px 14px; }
.sumrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
}
.sumrow span:first-child { color: var(--muted); }
.sumrow .v { font-weight: 700; }
.sumrow .v.note { font-weight: 400; color: var(--muted-2); font-size: 13px; }
.sumrow .v.off { color: var(--go); }
.sumrow.total {
  border-top: 1px solid var(--hairline);
  margin-top: 6px;
  padding-top: 13px;
  font-size: 17px;
}
.sumrow.total span:first-child { color: var(--ink); font-weight: 800; letter-spacing: -.015em; }
.sumrow.total .v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

/* --- Apple Pay express --------------------------------------------------- */
.applepay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 50px;
  border-radius: var(--r-pill);
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  transition: transform .12s var(--ease-out);
}
:root[data-theme="dark"] .applepay,
:root:not([data-theme="light"]) .applepay { background: #fff; color: #000; }
.applepay:active { transform: scale(.975); }
.applepay svg { width: 19px; height: 19px; }
.or-line {
  display: flex; align-items: center; gap: 12px;
  padding: 16px var(--gutter) 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-2);
}
.or-line::before, .or-line::after {
  content: ""; flex: 1; height: 1px; background: var(--hairline);
}

/* --- Checkout blocks ----------------------------------------------------- */
.ck-block { position: relative; }
.ck-block .edit {
  font-size: 13px; font-weight: 700; color: var(--royal); flex: none;
}
.ck-val { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.ck-val b { color: var(--ink); font-weight: 700; display: block; font-size: 14.5px; margin-bottom: 2px; }

.paycard {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
}
.paycard .brand {
  width: 42px; height: 28px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--on-ink);
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800; letter-spacing: .04em;
  flex: none;
}
.paycard .brand.ap { background: #000; color: #fff; }
:root[data-theme="dark"] .paycard .brand.ap,
:root:not([data-theme="light"]) .paycard .brand.ap { background: #fff; color: #000; }

/* --- Order status -------------------------------------------------------- */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.transit    { background: var(--royal-soft); color: var(--royal); }
.status.delivered  { background: var(--go-soft); color: var(--go); }
.status.processing { background: var(--surface-sunk); color: var(--muted); }

/* --- Tracking timeline --------------------------------------------------- */
.track-list { padding: 4px 14px 10px; }
.tstep {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}
.tstep:last-child { padding-bottom: 4px; }
.tstep .tdot {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex: none;
  display: grid; place-items: center;
  background: var(--surface-sunk);
  color: var(--muted-2);
  z-index: 1;
}
.tstep .tdot svg { width: 11px; height: 11px; }
.tstep.done .tdot { background: var(--go); color: #fff; }
.tstep.now .tdot  { background: var(--royal); color: var(--on-royal); }
.tstep.now .tdot::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--royal); opacity: .5;
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tstep.now .tdot::after { animation: none; } }

.tstep::before {
  content: "";
  position: absolute;
  left: 9.5px; top: 20px; bottom: 0;
  width: 2px;
  background: var(--hairline);
}
.tstep:last-child::before { display: none; }
.tstep.done::before { background: var(--go); }
.tstep .tbody b { display: block; font-size: 14px; font-weight: 700; }
.tstep .tbody small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.tstep:not(.done):not(.now) .tbody b { color: var(--muted-2); font-weight: 600; }

/* --- Club: points header ------------------------------------------------- */
.pointcard {
  margin: 0 var(--gutter);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(150deg, var(--royal) 0%, var(--royal-ink) 100%);
  color: #fff;
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
:root[data-theme="dark"] .pointcard,
:root:not([data-theme="light"]) .pointcard {
  background: linear-gradient(150deg, #24306A 0%, #131A36 100%);
}
.pointcard::after {
  content: "";
  position: absolute;
  right: -40px; top: -60px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.pointcard .pc-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
}
.pointcard .pc-pts {
  font-size: 44px; font-weight: 800; letter-spacing: -.035em; line-height: 1;
  margin-top: 8px;
}
.pointcard .pc-pts small { font-size: 15px; font-weight: 700; letter-spacing: 0; margin-left: 6px; opacity: .7; }
.pointcard .pc-sub { font-size: 13px; color: rgba(255,255,255,.78); margin-top: 6px; }
.pointcard .pc-track {
  height: 6px; border-radius: 3px; background: rgba(255,255,255,.2);
  margin-top: 18px; overflow: hidden;
}
.pointcard .pc-track i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.pointcard .pc-legend {
  display: flex; justify-content: space-between;
  font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.75);
  margin-top: 9px;
}

/* --- Membership tiers ---------------------------------------------------- */
.tier-card {
  margin: 0 var(--gutter) 12px;
  background: var(--surface);
  border-radius: var(--r-group);
  padding: 18px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.tier-card.is-current { box-shadow: 0 0 0 2px var(--royal), var(--shadow-1); }
.tier-card .tc-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.tier-card .tc-head { display: flex; align-items: center; gap: 10px; }
.tier-card h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 104, "wght" 800;
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: .02em;
}
.tier-card .tc-at { font-size: 12.5px; color: var(--muted); margin-left: auto; font-weight: 700; }
.tier-card ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.tier-card li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.tier-card li svg { width: 15px; height: 15px; flex: none; color: var(--go); margin-top: 2px; }
.tier-badge {
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--royal); color: var(--on-royal); border-radius: 5px; padding: 3px 7px;
}

/* --- Redeem rows --------------------------------------------------------- */
.redeem .rpts {
  font-size: 13px; font-weight: 800; color: var(--royal);
  background: var(--royal-soft); border-radius: 6px; padding: 4px 8px; flex: none;
}
.redeem.locked { opacity: .5; }

/* --- Events -------------------------------------------------------------- */
.eventcard {
  display: flex;
  gap: 13px;
  padding: 13px;
  align-items: center;
  position: relative;
  width: 100%;
  text-align: left;
}
.eventcard + .eventcard::before {
  content: ""; position: absolute; left: 13px; right: 0; top: 0; height: 1px; background: var(--hairline);
}
.eventcard .edate {
  width: 52px; flex: none;
  border-radius: 12px;
  background: var(--surface-2);
  padding: 8px 0;
  text-align: center;
}
.eventcard .edate b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.eventcard .edate small {
  display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.eventcard .ebody { flex: 1; min-width: 0; }
.eventcard .ekind {
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--royal);
}
.eventcard .ename { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; line-height: 1.25; }
.eventcard .emeta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.eventcard .espot { font-size: 11.5px; font-weight: 700; color: var(--go); margin-top: 4px; }
.eventcard .espot.full { color: var(--muted-2); }

/* --- Content cards ------------------------------------------------------- */
.article-card { width: 100%; text-align: left; display: block; }
.rail .article-card { width: 240px; }
.article-card .ashot {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--plate);
  box-shadow: var(--shadow-1);
}
.article-card .ashot img { width: 100%; height: 100%; object-fit: cover; }
.article-card .ameta {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px;
}
.article-card .ameta .k { color: var(--royal); }
.article-card .atitle {
  font-size: 15px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin-top: 5px;
}
.article-card .alede { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 4px; }

/* --- Article reader ------------------------------------------------------ */
.prose { padding: 0 var(--gutter); }
.prose p {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
  margin-bottom: 18px;
  max-width: 40ch;
}
.prose p:first-child { font-size: 18.5px; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }

/* --- Community posts ----------------------------------------------------- */
.post { margin-bottom: 22px; }
.post .phead {
  display: flex; align-items: center; gap: 10px;
  padding: 0 var(--gutter) 10px;
}
.post .pav {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-sunk); color: var(--muted);
  display: grid; place-items: center; flex: none;
  font-size: 12px; font-weight: 800;
}
.post .pav.athlete { background: var(--royal); color: var(--on-royal); }
.post .pby { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.post .pago { font-size: 12px; color: var(--muted-2); margin-left: auto; }
.post .pimg { aspect-ratio: 4 / 5; background: var(--plate); overflow: hidden; }
.post .pimg img { width: 100%; height: 100%; object-fit: cover; }
.post .pfoot { padding: 11px var(--gutter) 0; display: flex; align-items: center; gap: 16px; }
.post .plike { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.post .plike svg { width: 18px; height: 18px; }
.post .plike[aria-pressed="true"] { color: var(--alert); }
.post .pcap { padding: 9px var(--gutter) 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

.composer {
  display: flex; align-items: center; gap: 11px;
  margin: 0 var(--gutter) 20px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
  width: calc(100% - var(--gutter) * 2);
  text-align: left;
}
.composer .cico {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--royal-soft); color: var(--royal);
  display: grid; place-items: center; flex: none;
}
.composer .cico svg { width: 15px; height: 15px; }
.composer span { font-size: 14px; color: var(--muted); flex: 1; }

/* --- Order confirmation -------------------------------------------------- */
.confirm { padding: 40px var(--gutter) 0; text-align: center; }
.confirm .cmark {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--go-soft);
  color: var(--go);
  display: grid; place-items: center;
  margin: 0 auto 22px;
  animation: pop-mark .5s var(--ease-out) both;
}
.confirm .cmark svg { width: 34px; height: 34px; }
@keyframes pop-mark { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .confirm .cmark { animation: none; } }
.confirm h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 820;
  text-transform: uppercase;
  font-size: 30px;
  line-height: .96;
  letter-spacing: -.015em;
}
.confirm p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-top: 12px; }
.confirm .cnum {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-pill); padding: 8px 16px; margin-top: 18px;
  box-shadow: var(--shadow-1);
}

/* --- Release switch (MVP vs Phase 2 demo) -------------------------------- */
.release {
  margin: 0 var(--gutter);
  background: var(--surface);
  border-radius: var(--r-group);
  padding: 16px;
  box-shadow: var(--shadow-1);
}
.release h4 { font-size: 14.5px; font-weight: 800; letter-spacing: -.015em; }
.release p { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.release .seg { margin-top: 14px; }

/* ==========================================================================
   Footnote
   ========================================================================== */
.footnote {
  padding: 26px var(--gutter) 6px;
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted-2);
}
.footnote b { font-weight: 700; color: var(--muted); }
