/* Flotra store: light, simple, one accent. Tokens first, then the parts. */
:root {
  --canvas: #FFFFFF;
  --surface: #F4F4F2;
  --surface-2: #EBEBE7;
  --ground: #F5F5F3;                                 /* every product-image surface: gallery, renders, phone preview, packaging */
  --ink: #121417;
  --ink-soft: #5F6570;
  --hairline: rgba(18, 20, 23, 0.10);
  --hairline-strong: rgba(18, 20, 23, 0.45);
  --accent: #1F5FD0;
  --accent-ink: #FFFFFF;
  --font-display: "Albert Sans", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20, 30, 50, 0.06), 0 4px 12px -4px rgba(20, 30, 50, 0.10);
  --shadow-2: 0 2px 6px rgba(20, 30, 50, 0.06), 0 18px 40px -16px rgba(20, 30, 50, 0.22);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 84rem;
  --section: 4rem;                                   /* 64 / 96 / 128px by width, see below */
  --t-xs: 0.75rem; --t-sm: 0.875rem; --t-base: 1.0625rem; --t-lg: 1.3125rem;
  --t-xl: 1.75rem;
  --t-2xl: clamp(1.75rem, 1rem + 2.6vw, 3rem);
  --t-3xl: clamp(2.5rem, 1.6rem + 3.9vw, 5rem);
  --t-pdp: clamp(2.5rem, 1.6rem + 2.6vw, 3.5rem);   /* 40px on phones, 56px on desktop */
}
@media (min-width: 760px) { :root { --section: 6rem; } }
@media (min-width: 1200px) { :root { --section: 8rem; } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font-text); font-size: var(--t-base); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-3xl); line-height: 1.0; }
h2 { font-size: var(--t-2xl); line-height: 1.05; }
h3 { font-size: var(--t-xl); letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.soft { color: var(--ink-soft); }
.cap { font-family: var(--font-display); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: 4rem; }
.stack > * + * { margin-top: 1rem; }
.stack > h2 + p, .stack > h1 + p { margin-top: 1.5rem; }
.lede { font-size: var(--t-lg); color: var(--ink-soft); max-width: 46ch; }
.measure { max-width: 60ch; }

/* --- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: var(--t-sm); letter-spacing: 0.01em;
  padding: 0.75rem 1.25rem; line-height: 1.25rem; border-radius: var(--r-pill); border: 0; text-decoration: none;
  transition: background 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease), border-color 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: var(--canvas); }
.btn--primary:hover { background: var(--accent); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #1849A6; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--light { background: rgba(255,255,255,0.92); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--lg { padding: 1rem 1.75rem; font-size: var(--t-base); line-height: 1.25rem; }
.btn--block { width: 100%; }
/* the buy button lines up with the segmented control above it on wide screens; on phones both fill the column */
.btn--accent:active { background: #16408F; }

/* --- header ------------------------------------------------------------ */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.bar__row {
  display: flex; align-items: center; gap: 1.5rem; height: 4rem;
  padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto;
}
.bar::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--hairline); opacity: 0; transition: opacity 220ms var(--ease); }
.bar.is-solid::before, .bar--solid::before { opacity: 1; }
.bar > * { position: relative; }
/* Brand: the supplied SVGs, used as-is. Full logo in the header and footer, the icon on phones. Black on light, white on dark. */
.mark { display: inline-flex; align-items: center; text-decoration: none; }
.mark img { display: block; height: 1.5rem; width: auto; }
.mark .mark__logo--white, .mark .mark__icon { display: none; }
.bar.is-dark .mark__logo--black { display: none; }
.bar.is-dark .mark__logo--white { display: block; }
.mark--foot img { height: 1.75rem; }
@media (max-width: 760px) { .mark img { height: 1.25rem; } }   /* full logo on phones too, a touch smaller */
.bar__nav { display: flex; gap: 0.25rem; margin-left: 1rem; }
.bar__nav a { text-decoration: none; font-family: var(--font-display); font-size: var(--t-sm); font-weight: 500; padding: 0.625rem 0.75rem; line-height: 1.5rem; border-radius: var(--r-pill); color: var(--ink-soft); transition: color 140ms var(--ease), background 140ms var(--ease); }
.bar__nav a:hover, .bar__nav a[aria-current="page"] { color: var(--ink); background: rgba(18,20,23,0.05); }
.bar__spacer { flex: 1; }
.bar__cart { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--font-display); font-size: var(--t-sm); font-weight: 500; padding: 0.5rem 0.6rem; border-radius: var(--r-pill); }
.bar__cart svg { width: 1.25rem; height: 1.25rem; }
.bar.is-dark { color: #fff; }
.bar.is-dark .bar__nav a { color: rgba(255,255,255,0.72); }
.bar.is-dark .bar__nav a:hover, .bar.is-dark .bar__nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.10); }
.bar.is-dark .btn--primary { background: #fff; color: var(--ink); }
.bar.is-dark .btn--primary:hover { background: #F4F4F2; }
.bar.is-dark::before { opacity: 0; background: rgba(7, 8, 10, 0.62); border-bottom-color: rgba(255,255,255,0.08); }
.bar.is-dark.is-solid::before { opacity: 1; }
@media (max-width: 760px) { .bar__nav { display: none; } .bar__row { height: 3.5rem; } .bar .btn { padding: 0.5rem 1rem; } }

/* --- stage (Soar-style hero) --------------------------------------------- */
.stage { position: relative; height: 100svh; min-height: 44rem; max-height: 64rem; display: grid; align-content: start; justify-items: center; text-align: center; overflow: clip; background: #07080A; color: #fff; isolation: isolate; }
.stage__bg { position: absolute; inset: 0; z-index: -1; background: #05070C url("assets/space/bg-desktop.webp") center / cover no-repeat; }
.stage__bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__copy { position: relative; z-index: 2; padding: clamp(5.5rem, 10vh, 7rem) var(--gutter) 0; max-width: 52rem; }
.stage h1 { font-size: clamp(2.5rem, 1.5rem + 2.2vw, 3.5rem); line-height: 1.0; letter-spacing: -0.03em; color: rgba(255,255,255,0.96); }
.stage__sticker { display: block; margin-top: 0.2em; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 1.1rem + 2.2vw, 3rem); white-space: nowrap; line-height: 1.0; letter-spacing: -0.03em; }
/* die-cut sticker: a fat white contour that hugs the letters (a stroked copy of the text behind it), navy face, soft shadow */
.stage__sticker span { position: relative; display: inline-block; padding: 0.02em 0.1em; color: #101828; font-weight: 600; transform: rotate(-2deg); filter: drop-shadow(0 6px 0 rgba(0,0,0,0.28)) drop-shadow(0 16px 30px rgba(0,0,0,0.55)); }
.stage__sticker span::before { content: attr(data-text); position: absolute; inset: 0; padding: inherit; z-index: -1; color: #fff; filter: url(#die-cut); }
@media (max-width: 760px) { .stage__sticker span::before { filter: url(#die-cut-m); } }
.stage__sub { margin: 1.5rem auto 0; max-width: 36rem; font-size: 1.0625rem; line-height: 1.5; color: rgba(255,255,255,0.7); }
.stage__actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #F4F4F2; }
.btn--glass { background: rgba(255,255,255,0.10); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255,255,255,0.18); }
.stage__case { position: relative; width: min(40vw, 580px); margin-top: 2.5rem; z-index: 1; pointer-events: none; will-change: transform; }
/* side notes: two short lines either side of the case, at the height of the camera block */
.stage__note { position: absolute; top: 58%; z-index: 2; width: 13rem; margin: 0; text-align: left; font-family: var(--font-display); font-size: var(--t-base); line-height: 1.35; color: rgba(255,255,255,0.86); text-wrap: balance; }
.stage__note--l { left: var(--gutter); }
.stage__note--r { right: var(--gutter); text-align: right; }
.stage__note .cap { display: block; margin-bottom: 0.5rem; color: rgba(255,255,255,0.5); }
@media (max-width: 1000px) { .stage__note { display: none; } }
.stage__case img { width: 100%; height: auto; filter: drop-shadow(0 -10px 40px rgba(0,0,0,0.6)) drop-shadow(0 30px 60px rgba(0,0,0,0.7)); }
.stage__case::before { content: ""; position: absolute; inset: -12% -20% auto; height: 60%; background: radial-gradient(50% 50% at 50% 60%, rgba(255,120,150,0.22), transparent 70%); filter: blur(30px); z-index: -1; }
/* sky stickers: the supplied cutouts, each positioned by its own variables; they bob, follow the pointer by depth, and stay behind the copy */
.stickers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sticker { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; --px: 0px; --py: 0px; --depth: 1; --tilt: 0deg;
  transform: translate(calc(var(--px) * var(--depth)), calc(var(--py) * var(--depth))); rotate: var(--tilt);
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.55)); animation: sticker-bob 7s ease-in-out infinite alternate; }
.sticker--satellite { animation-duration: 9s; animation-delay: -3s; }
.sticker--astronaut { animation-duration: 11s; animation-delay: -5s; }
@keyframes sticker-bob { from { translate: 0 -8px; } to { translate: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .sticker { animation: none; } }
@media (max-width: 1100px) { .sticker { width: calc(var(--w) * 0.8); } }
@media (max-width: 760px) {
  .stage { height: auto; min-height: 0; max-height: none; }
  .stage__bg { background-image: url("assets/space/bg-mobile.webp"); }
  .stage__copy { padding-top: 10rem; }
  /* phones read the --mx / --my / --mw variables set on each sticker in index.html: around the headline, never over it */
  .sticker { left: var(--mx, var(--x)); top: var(--my, var(--y)); width: var(--mw, var(--w)); }
  .stage__sticker { white-space: normal; font-size: 2rem; }
  .stage__sub { font-size: 1rem; max-width: 22rem; }
  /* In flow under the buttons: phone viewports vary too much to place it by height. */
  .stage__case { position: relative; left: auto; top: auto; translate: none; width: 84vw; height: 118vw; margin-top: 2.5rem; overflow: clip; }
  .stage__case img { position: absolute; left: 0; top: 0; width: 100%; }
  .stage__actions .btn { padding: 0.75rem 1.25rem; }
}

/* --- product cards ------------------------------------------------------ */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.case { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-width: 0; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.case__img { position: relative; display: block; width: 100%; aspect-ratio: 5 / 4; background: var(--ground); }
/* Absolutely positioned so the cutout's intrinsic 1100px never sizes the card. */
.case__img img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 82%; width: auto; max-width: 90%; object-fit: contain; transition: opacity 200ms var(--ease); filter: drop-shadow(0 22px 22px rgba(20,30,50,0.18)); }
.case__body { padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.case__body h3 { font-size: var(--t-lg); line-height: 1.2; }
.case__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.case__price { font-family: var(--font-display); font-weight: 500; font-size: var(--t-base); margin-top: 0.25rem; }
.case__tag { position: absolute; top: 1rem; left: 1rem; font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: var(--r-pill); background: rgba(255,255,255,0.85); }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* colour swatches, shared by cards and product pages */
.swatches { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-left: -0.5rem; }
.swatch { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch__dot { display: block; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.35); transition: box-shadow 140ms var(--ease); }
.swatch:hover .swatch__dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14), 0 0 0 2px var(--canvas), 0 0 0 4px var(--hairline-strong); }
.swatch input:checked + .swatch__dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14), 0 0 0 2px var(--canvas), 0 0 0 4px var(--accent); }
.swatch input:focus-visible + .swatch__dot { outline: 2px solid var(--accent); outline-offset: 6px; }
.swatch--pill { width: auto; height: auto; display: block; }
.swatches:has(.swatch--pill) { margin-left: 0; gap: 0.5rem; }
.swatch--pill .swatch__dot { width: auto; height: auto; border-radius: var(--r-pill); padding: 0.625rem 1rem 0.625rem 0.625rem; background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-strong); display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: var(--t-sm); font-weight: 500; }
.swatch--pill .swatch__dot::before { content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.swatch--pill input:checked + .swatch__dot { box-shadow: inset 0 0 0 1.5px var(--ink); transform: none; background: rgba(18,20,23,0.04); }
/* sold out: the dot stays visible but greyed and struck through, and cannot be chosen */
.swatch--soldout { cursor: not-allowed; }
.swatch--soldout input { cursor: not-allowed; pointer-events: none; }   /* a disabled input swallows the tap; let it reach the swatch */
.swatch--soldout .swatch__dot { opacity: 0.45; position: relative; }
.swatch--soldout .swatch__dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 140%; height: 2px; background: #C0262B; translate: -50% -50%; rotate: -45deg; }
.swatch--soldout:hover .swatch__dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14); }
.soldout-tag { font-style: normal; font-weight: 500; font-size: var(--t-sm); color: #C0262B; margin-left: 0.5rem; }
.soldout-tag[hidden] { display: none; }
/* preview-only colour: choosable in the preview, but marked as not for sale */
.swatch--preview .swatch__dot { position: relative; }
.swatch--preview .swatch__dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 140%; height: 2px; background: #C0262B; translate: -50% -50%; rotate: -45deg; }
/* Gradient finishes: paint only the round dot, never the pill itself. */
.swatch:not(.swatch--pill) .swatch__dot--crimson, .swatch--pill .swatch__dot--crimson::before { background: linear-gradient(to bottom, #F3E4E8 0%, #C97A92 45%, #6E2440 100%); }
.swatch:not(.swatch--pill) .swatch__dot--pine, .swatch--pill .swatch__dot--pine::before { background: linear-gradient(to bottom, #E6F0EA 0%, #6FB59A 45%, #1E4F40 100%); }

/* --- intro ------------------------------------------------------------------- */
.intro { padding-bottom: calc(var(--section) * 0.75); }
.intro__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.intro__copy .lede { max-width: 52ch; }
.intro__links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.intro__links a { font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm); text-decoration: none; padding-bottom: 0.2rem; border-bottom: 1.5px solid var(--ink); }
.intro__links a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } }

/* --- trust strip ------------------------------------------------------------ */
.section .trustbar__list { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-block: 1.5rem; }
.section .trustbar__list li { align-items: flex-start; }
.trustbar__list li div { display: grid; gap: 0.25rem; }
.trustbar__list li b { font-weight: 600; }
.trustbar__list li span { font-family: var(--font-text); font-weight: 400; font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 960px) { .section .trustbar__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .section .trustbar__list { grid-template-columns: 1fr; } }
.trustbar__list { list-style: none; margin: 0; padding: 1.25rem 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.trustbar__list li { display: flex; align-items: center; gap: 0.875rem; font-family: var(--font-display); font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.trustbar__list .trust__icon { width: 2.25rem; height: 2.25rem; flex: 0 0 auto; margin-top: -0.125rem; }
@media (max-width: 760px) { .trustbar__list li { font-size: var(--t-sm); } .trustbar__list li span { font-size: var(--t-xs); } }

/* --- lifestyle grid ------------------------------------------------------- */
.life { display: grid; grid-template-columns: 1fr 1.6fr 1fr; grid-template-rows: auto; gap: 1rem; margin-top: 2.5rem; }
.life figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.life figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 40%); pointer-events: none; }
.life figcaption { z-index: 1; }
.life img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.life figure:nth-child(2) img { aspect-ratio: auto; height: 100%; }
.life figcaption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; font-family: var(--font-display); font-size: var(--t-sm); font-weight: 500; color: #fff; }
@media (max-width: 760px) { .life { grid-template-columns: 1fr 1fr; } .life figure:nth-child(2) { grid-column: 1 / -1; order: -1; } .life figure:nth-child(2) img { aspect-ratio: 16 / 10; } }

/* --- feature bands --------------------------------------------------------- */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band--flip > .band__media { order: 2; }
.band__media { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.band__media img { width: 100%; height: auto; }
.band__copy ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.band__copy li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; }
.band__copy li b { display: block; font-family: var(--font-display); font-weight: 500; }
.band__copy li span { color: var(--ink-soft); font-size: var(--t-base); }
.band + .band { margin-top: var(--section); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band--flip > .band__media { order: 0; } }

/* --- the stand ------------------------------------------------------------ */
.stand { background: var(--surface); }
.stand__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.stand__media { border-radius: var(--r-lg); overflow: hidden; background: var(--ground); aspect-ratio: 5 / 4; }
.stand__img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--ground); }
@media (max-width: 860px) { .stand__grid { grid-template-columns: 1fr; } }

/* --- why ------------------------------------------------------------------ */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.why > div { background: var(--surface); border-radius: var(--r-lg); padding: 1.5rem; display: grid; gap: 1rem; align-content: start; }
.why h3 { font-size: var(--t-lg); margin-top: 0.4rem; }
.why p { color: var(--ink-soft); font-size: var(--t-base); }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* --- fit strip ------------------------------------------------------------- */
.fit { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; padding: 1.5rem 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.fit b { font-family: var(--font-display); font-weight: 500; }

/* --- faq ------------------------------------------------------------------ */
.faq { margin-top: 2rem; border-top: 1px solid var(--hairline); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 500; font-size: var(--t-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-soft); font-size: 1.5rem; line-height: 1; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.2rem; max-width: 60ch; }

/* --- footer --------------------------------------------------------------- */
.foot { background: var(--surface); padding-block: 3.5rem 2rem; margin-top: var(--section); }
.foot__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.foot ul.foot__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot h4 { font-family: var(--font-display); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin: 0 0 0.8rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.foot a { text-decoration: none; color: var(--ink); }
.foot a:hover { text-decoration: underline; }
.foot__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); font-size: var(--t-xs); color: var(--ink-soft); }


/* --- product page ----------------------------------------------------------- */
.pdp { padding-top: 6rem; }

.crumbs { font-size: var(--t-sm); color: var(--ink-soft); display: flex; gap: 0.5rem; }
.crumbs[hidden] { display: none; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 1.5rem; align-items: center; }
.gallery { position: sticky; top: 5rem; display: grid; gap: 1rem; }
@media (min-width: 761px) {
  .gallery { position: sticky; }
  .thumbs { position: absolute; left: 1rem; top: 0; bottom: 0; margin: auto 0; height: fit-content; flex-direction: column; gap: 0.5rem; overflow: visible; z-index: 2; }
  .thumbs button { flex: 0 0 2.75rem; width: 2.75rem; box-shadow: 0 1px 2px rgba(20,30,50,0.08); }
  .album__count { display: none; }
}
/* the maker's wordmark, small and black, above the product image */
.maker { height: 0.875rem; width: auto; margin-bottom: 0.25rem; }
@media (max-width: 760px) { .maker { margin-bottom: 1rem; } }
.gallery__main { position: relative; height: min(calc(100svh - 9rem), 48rem); border-radius: var(--r-lg); overflow: hidden; background: var(--ground); }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 240ms var(--ease); }
.gallery__main img.is-cutout { object-fit: contain; padding: 8%; filter: drop-shadow(0 24px 24px rgba(20,30,50,0.18)); }
.thumbs { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0; }
.thumbs::-webkit-scrollbar { display: none; }
/* thumbs: small and quiet; the current one is the only one at full strength */
.thumbs button { flex: 0 0 3.25rem; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 0; background: var(--ground); padding: 0; opacity: 0.45; transition: opacity 160ms var(--ease); }
.thumbs button:hover { opacity: 0.8; }
.thumbs button { position: relative; }
.thumbs button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs button img.is-cutout { object-fit: contain; padding: 10%; }
.thumbs button[aria-current="true"] { opacity: 1; }
.buy { display: grid; gap: 1.5rem; align-content: start; }
/* model choice: two equal pills, the chosen one filled and ticked */
.models { border: 0; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.models__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; max-width: 24rem; }
.model { position: relative; display: block; cursor: pointer; }
.model input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.model__card { display: flex; align-items: center; justify-content: center; padding: 0.75rem 0.5rem; white-space: nowrap; border-radius: var(--r-pill); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--hairline-strong); font-family: var(--font-display); font-size: var(--t-sm); font-weight: 500; color: var(--ink); transition: background 140ms var(--ease), color 140ms var(--ease), box-shadow 140ms var(--ease); }
.model__card::after { content: ""; width: 0; height: 0.55em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; transition: opacity 140ms var(--ease), width 140ms var(--ease), margin 140ms var(--ease); }
.model:hover .model__card { box-shadow: inset 0 0 0 1px var(--ink); }
.model input:checked ~ .model__card { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.model input:checked ~ .model__card::after { opacity: 1; width: 0.35em; margin-left: 0.4rem; }
.model input:focus-visible ~ .model__card { outline: 2px solid var(--accent); outline-offset: 3px; }

/* the product name is set like the small caps line: one quiet line, the image and price do the talking */
.buy h1, .buy__head--phone h1 { font-family: var(--font-display); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.6; color: var(--ink); }
.buy__title { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; margin-top: 0.5rem; }
.buy__title h1 { margin: 0; }
.buy__price { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.buy__head .buy__seller { margin-top: 0.375rem; font-size: var(--t-sm); }
.buy fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.buy legend { padding: 0; font-family: var(--font-display); font-size: var(--t-base); font-weight: 600; margin-bottom: 0.1rem; }
.buy legend output { font-weight: 400; color: var(--ink-soft); }
/* buy-column accordions: the FAQ rows, one size down */
.faq--buy { margin-top: 0.5rem; max-width: none; border-top: 1px solid var(--hairline); }
.faq--buy summary { font-size: var(--t-sm); padding: 0.875rem 0; }
.faq--buy details p { font-size: var(--t-sm); padding-bottom: 1rem; }
.faq--buy details p a { font-family: var(--font-display); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 0.1rem; }
.facts { margin: 0 0 1rem; display: grid; gap: 0.5rem; font-size: var(--t-sm); max-width: 40rem; }
.facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.toast { font-size: var(--t-sm); color: var(--ink-soft); padding: 0.75rem 1rem; background: var(--surface); border-radius: var(--r-md); display: none; }
.toast.is-on { display: block; }
@media (max-width: 860px) { .pdp__grid { grid-template-columns: 1fr; } .gallery { position: static; } }

/* phone album: the thumbs row turns into a full-width swipe gallery with dots and a colour chip */
.album__dots, .buy__head--phone { display: none; }
@media (max-width: 760px) {
  .gallery { position: static; top: auto; gap: 0; }   /* the desktop sticky offset must not shift it on phones */
  .gallery__main { display: none; }
  .thumbs { gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: var(--r-lg); background: var(--ground); }
  .thumbs button { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; border: 0; border-radius: 0; background: transparent; }
  .thumbs button, .thumbs button[aria-current="true"] { opacity: 1; }
  .thumbs button img { object-fit: cover; }
  .thumbs button img.is-cutout { object-fit: contain; padding: 8%; filter: drop-shadow(0 24px 24px rgba(20,30,50,0.18)); }
  .album__dots { display: none; }
  .album__count { position: absolute; left: 0.75rem; bottom: 0.75rem; z-index: 2; font-family: var(--font-display); font-size: var(--t-xs); font-weight: 500; color: var(--ink); background: rgba(255,255,255,0.85); padding: 0.25rem 0.5rem; border-radius: var(--r-sm); pointer-events: none; }
  .gallery { position: relative; }
  .buy__head--phone { display: block; margin-bottom: 1.25rem; }
  .buy__head--phone .buy__title { display: grid; gap: 0.375rem; }
  .buy > .buy__head { display: none; }
  .pdp { padding-top: 5.5rem; }
  .pdp__grid { margin-top: 0; }
  .album__dots i { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--hairline-strong); transition: width 200ms var(--ease), background 200ms var(--ease); }
  .album__dots i.is-on { width: 1.25rem; background: var(--ink); }
}

/* sticky buy bar, all sizes: the one Add to Cart on the product page */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-top: 1px solid var(--hairline); }
.buybar__img { width: 2rem; height: 2.75rem; object-fit: contain; flex: 0 0 auto; }
.buybar__text { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.buybar__text strong { font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__text span { font-size: var(--t-xs); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { flex: 0 0 auto; }
body.has-buybar { padding-bottom: 5.5rem; }
@media (min-width: 761px) { .buybar { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); } .buybar .btn { padding: 0.75rem 1.75rem; } }

/* on your iPhone: phone-colour picker with the real phone backs as the choices */
.onphone { margin-top: var(--section); }
/* desktop: image left across both rows, intro and pickers right; phones: intro, image, pickers, so the preview sits right above the colour choice */
.onphone__grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: start; }
.onphone__media { grid-column: 1; grid-row: 1 / span 2; align-self: center; border-radius: var(--r-lg); overflow: hidden; background: var(--ground); aspect-ratio: 1; line-height: 0; }
.onphone__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 200ms var(--ease); }
.onphone__intro { grid-column: 2; grid-row: 1; display: grid; gap: 1rem; align-self: end; }
.onphone__intro h2 { margin-top: 0.25rem; }
.onphone__intro .soft { max-width: 40ch; }
.onphone__pick { grid-column: 2; grid-row: 2; display: grid; gap: 1rem; }
@media (max-width: 860px) { .onphone__grid { grid-template-columns: 1fr; grid-template-rows: auto; } .onphone__media, .onphone__intro, .onphone__pick { grid-column: 1; grid-row: auto; } .onphone__intro { order: 1; } .onphone__media { order: 2; } .onphone__pick { order: 3; } }
.phones { border: 0; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.75rem; }
.phones legend { padding: 0; font-family: var(--font-display); font-size: var(--t-base); font-weight: 600; margin-bottom: 0.25rem; }
.phones legend output { font-weight: 600; }
.phones__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; max-width: 26rem; }
.phone { position: relative; display: grid; gap: 0.5rem; justify-items: center; cursor: pointer; }
.phone input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.phone img { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--hairline); transition: box-shadow 140ms var(--ease), transform 140ms var(--ease); }
.phone span { font-family: var(--font-display); font-size: var(--t-sm); color: var(--ink-soft); }
.phone:hover img { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 3.5px var(--hairline-strong); }
.phone input:checked ~ img { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--accent); }
.phone input:checked ~ span { color: var(--ink); }
.phone input:focus-visible ~ img { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 860px) { .onphone__grid { grid-template-columns: 1fr; } }

.details { margin-top: var(--section); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.detail + .detail { margin-top: 6rem; }
@media (max-width: 860px) { .detail + .detail { margin-top: 3rem; } }
.detail:nth-child(even) > .detail__media { order: 2; }
.detail__media { border-radius: var(--r-lg); overflow: hidden; background: var(--ground); aspect-ratio: 5 / 4; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__media--fit img { object-fit: contain; background: var(--ground); }
.detail__media--box img { padding: 6%; }
.detail__media--fit.detail__media--left img { object-position: left center; }   /* renders that must not be cropped */
/* in the box: one quiet row under the heading */
.box__list { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 28rem; }
.box__list li { padding: 0.875rem 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: var(--t-base); }
.detail__copy .cap { display: block; margin-bottom: 0.7rem; }
.detail__copy p { margin-top: 0.9rem; color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail:nth-child(even) > .detail__media { order: 0; } }

.specs { margin: 1.5rem 0 0; border-top: 1px solid var(--hairline); max-width: 52rem; }
.buy .specs { margin-top: 0; }

/* case profile: three quiet rating cards under the gallery. Icon in its own fixed column, name + small rating on one row, five short segments, one-line description. */
.profile { margin-top: clamp(2rem, 4vw, 3rem); }
.profile__grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.profile__card { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 0.625rem; align-items: center; padding: 1.5rem 1.75rem 1.5rem 1.5rem; background: var(--surface); border-radius: var(--r-lg); }
.profile__card > img { width: 2rem; height: 2rem; justify-self: center; }
/* optical balance: the narrow and airy drawings need more pixels to weigh the same as the corner */
.profile__card[data-icon="slimness"] > img { width: 2.75rem; height: 2.75rem; }
.profile__card[data-icon="magnetic"] > img { width: 2.375rem; height: 2.375rem; }
.profile__body { min-width: 0; }
.profile__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.profile__card h3 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.profile__num { font-family: var(--font-display); font-size: var(--t-xs); font-weight: 500; color: var(--ink-soft); letter-spacing: 0.02em; white-space: nowrap; }
.profile__scale { display: flex; gap: 0.375rem; max-width: 10rem; margin: 0.75rem 0 0.625rem; }
.profile__scale i { flex: 1; height: 2px; border-radius: 1px; background: rgba(18, 20, 23, 0.16); }
.profile__scale i.is-on { background: var(--ink); }
.profile__card p { font-size: var(--t-sm); }
@media (max-width: 860px) { .profile__grid { grid-template-columns: 1fr; gap: 0.75rem; } .profile__card { padding: 1.25rem 1.5rem 1.25rem 1.25rem; column-gap: 0.5rem; } }
/* summary: the order at a glance, Apple-style, at the end of the page */
.summary { margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 4rem) 0; background: var(--surface); border-radius: var(--r-lg); overflow: clip; }
.summary__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.summary__hero .lede { margin-top: 0.75rem; }
.summary__img { display: block; width: min(60%, 260px); height: 20rem; object-fit: cover; object-position: top center; margin: 2rem auto 0; }
.summary__name { font-size: var(--t-base); line-height: 1.45; }
.summary__name b { font-family: var(--font-display); font-weight: 600; }
.summary__price { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 600; margin-top: 0.5rem; }
.summary__note { font-size: var(--t-sm); margin-top: 1.25rem; max-width: 30ch; }
.summary__note + .summary__note { margin-top: 0.5rem; }
.summary__rows { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.summary__rows li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--t-sm); }
.summary__rows img { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; margin-top: 0.1rem; }
.summary__rows b { display: block; font-family: var(--font-display); font-weight: 600; }
.summary__rows span { color: var(--ink-soft); }
.pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin-top: 0.875rem; }
.pay img { height: 1.5rem; width: auto; }
@media (max-width: 860px) {
  .summary__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .summary__hero { display: contents; }
  .summary__hero .stack { order: -2; }
  .summary__img { order: -1; width: min(66%, 240px); height: 17rem; object-fit: cover; object-position: top center; margin: 0 auto; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
  .summary { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
}
/* the sticky bar steps aside while the summary is on screen */
.buybar { transition: translate 300ms var(--ease), opacity 300ms var(--ease); }
.buybar.is-off { translate: 0 110%; opacity: 0; pointer-events: none; }
.specs div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--hairline); font-size: var(--t-sm); }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; }
@media (max-width: 520px) { .specs div { grid-template-columns: 1fr; gap: 0.25rem; } }

.also { margin-top: var(--section); }
.also .cases { grid-template-columns: minmax(0, 32rem); }

/* --- reveal on scroll (fires once) ---------------------------------------- */
[data-sc-in], [data-sc-stagger] > * { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
[data-sc-in].sc-in, [data-sc-stagger] > .sc-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-sc-in], [data-sc-stagger] > * { transform: none; transition-duration: 200ms; } }
