/* N3 Drift storefront — design system.
   Dark, silent and still: Midnight ground, Deep Azure rising from the bottom
   of "water" sections, Mist text, Haze as the single accent (the dot, the
   hairline, the primary button). Outfit 200 / 300 / 400.
   Glass pill bar + cursor highlight per the Spectra site template guide §1. */

:root {
  --midnight: #02070a;
  --azure: #0b4a9e;
  --mist: #e6eaf2;
  --haze: #9aa5e0;
  --text-2: #b9c6e0;
  --text-3: #9fb0cc;
  --line: #1b2c4a;
  --panel: #0a1428;
  --field-line: rgba(159, 176, 204, 0.45);
  --glass-rim: rgba(255, 255, 255, 0.14);
  --mx: 50%;
  --font: "Outfit", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --gutter: clamp(20px, 5vw, 48px);
  --slow: 0.6s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--midnight); }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--midnight); color: var(--mist); font: 300 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--font); font-weight: 200; letter-spacing: -0.005em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 8.2vw, 104px); }
h2 { font-size: clamp(30px, 4.4vw, 54px); }
h3 { font-size: 20px; font-weight: 300; }
p { margin: 0; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--haze); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.kicker { font: 400 12px/1.2 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 52ch; }
.fine { font-size: 14px; color: var(--text-3); }
.section { padding: clamp(88px, 13vw, 176px) 0; position: relative; }
.section--quiet { padding: clamp(96px, 15vw, 208px) 0; }
.page-top { padding-top: clamp(150px, 18vw, 200px); }

/* Deep Azure rising from the bottom of a section, like looking down into still water. */
.water { background: radial-gradient(130% 78% at 50% 122%, rgba(11, 74, 158, 0.55) 0%, rgba(11, 74, 158, 0.24) 40%, rgba(11, 74, 158, 0) 72%); }

/* The signature device: one hairline, one glowing dot resting on it. */
.horizon { position: relative; height: 1px; width: min(220px, 60%); margin: 0 auto; background: rgba(154, 165, 224, 0.55); }
.horizon i { position: absolute; left: 50%; top: 0; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -100%); background: var(--haze); box-shadow: 0 0 14px 5px rgba(154, 165, 224, 0.35); }

/* ---------- glass pill bar (template guide §1.1, §1.2) ---------- */
.bar { position: fixed; z-index: 30; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); height: 58px; padding: 0 8px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 999px; isolation: isolate; color: var(--mist);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 55%, rgba(255, 255, 255, 0.06) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-rim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 1px rgba(255, 255, 255, 0.06), inset 0 0 24px rgba(255, 255, 255, 0.04), 0 12px 40px rgba(0, 0, 0, 0.55); }
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(160px 60px at var(--mx) 0%, rgba(255, 255, 255, 0.22), transparent 70%), radial-gradient(260px 80px at var(--mx) 120%, rgba(255, 255, 255, 0.06), transparent 70%);
  transition: opacity 0.3s; }
.bar__logo { display: inline-flex; align-items: center; flex: none; }
.logo { height: 34px; width: auto; }
.logo--lg { height: 58px; }
.bar__nav { display: flex; gap: 2px; }
.bar__nav a { padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 300; font-size: 15px; color: var(--text-2); transition: color var(--slow), background var(--slow); }
.bar__nav a:hover { color: var(--mist); background: rgba(255, 255, 255, 0.06); }
.bar__nav a.is-active { background: var(--mist); color: #0a0a0b; font-weight: 400; }
.bar__tools { display: flex; align-items: center; gap: 6px; }
.bar__region { appearance: none; -webkit-appearance: none; height: 42px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 300; letter-spacing: 0.04em; cursor: pointer; }
.bar__region:hover { background: rgba(255, 255, 255, 0.06); color: var(--mist); }
.bar__region option { background: var(--panel); color: var(--mist); }
.bar__bag, .bar__menu { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.08); color: var(--mist); font-weight: 300; font-size: 15px; transition: background var(--slow); }
.bar__bag:hover, .bar__menu:hover { background: rgba(255, 255, 255, 0.16); }
.bar__bag svg, .bar__menu svg { width: 19px; height: 19px; }
.bar__bag b { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--haze); color: var(--midnight); font-size: 12px; font-weight: 400; }
.bar__bag b.is-empty { background: rgba(255, 255, 255, 0.1); color: var(--text-2); }
.bar__menu { display: none; padding: 0 12px; }
.menu-sheet { position: fixed; z-index: 29; top: 84px; left: 16px; right: 16px; padding: 10px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: grid; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.menu-sheet[hidden] { display: none; }
.menu-sheet a { padding: 15px 16px; color: var(--mist); text-decoration: none; border-radius: 14px; }
.menu-sheet a:hover, .menu-sheet a.is-active { background: rgba(255, 255, 255, 0.06); }

/* ---------- buttons ---------- */
/* The primary button is the one place Haze fills a shape. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 34px; border-radius: 999px;
  border: 1px solid var(--haze); background: var(--haze); color: var(--midnight); font: 400 16px/1 var(--font); letter-spacing: 0.02em; text-decoration: none;
  box-shadow: 0 0 44px rgba(154, 165, 224, 0.18); transition: box-shadow var(--slow), background var(--slow), border-color var(--slow); }
.btn:hover { box-shadow: 0 0 64px rgba(154, 165, 224, 0.36); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn--quiet { background: transparent; color: var(--mist); border-color: rgba(230, 234, 242, 0.32); box-shadow: none; font-weight: 300; }
.btn--quiet:hover { border-color: var(--mist); box-shadow: none; }
.btn--block { width: 100%; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 999px; transition: background var(--slow); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.icon-btn svg { width: 20px; height: 20px; }
.text-link { color: var(--text-2); }
.text-link:hover { color: var(--mist); }

/* ---------- images ---------- */
.shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--panel); aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.concept-tag { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(2, 7, 10, 0.72); color: var(--text-2); font: 400 10.5px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; }
.concept-note { font-size: 14px; color: var(--text-2); }

/* ---------- home ---------- */
.hero { min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 150px 0 clamp(96px, 14vw, 160px); }
.hero__inner { display: grid; justify-items: center; gap: 28px; animation: surface 1.8s ease both; }
.hero .kicker { margin: 0; }
.hero .horizon { margin-block: 8px; }
.hero__tagline { font-size: clamp(19px, 2vw, 24px); font-weight: 200; color: var(--text-2); letter-spacing: 0.02em; }
.hero__cta { display: grid; justify-items: center; gap: 18px; margin-top: 18px; }
.hero__note { font-size: 14px; color: var(--text-3); max-width: 44ch; }
@keyframes surface { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.statement { display: grid; gap: clamp(36px, 6vw, 72px); justify-items: center; text-align: center; }
.statement .shot { width: 100%; }
.statement__text { font-size: clamp(24px, 3.2vw, 40px); font-weight: 200; line-height: 1.32; max-width: 24ch; text-wrap: balance; }
.statement__aside { color: var(--text-3); font-size: clamp(17px, 1.6vw, 20px); }
.parts { display: grid; gap: clamp(88px, 12vw, 160px); }
.part { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.part--flip .shot { order: 2; }
.part__copy { display: grid; gap: 14px; justify-items: start; }
.part__copy .kicker { margin: 0; }
.part__what { color: var(--text-3); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; margin-bottom: 8px; }
.parts + .fine { margin-top: clamp(40px, 6vw, 72px); text-align: center; }
.quiet { display: grid; gap: 44px; justify-items: center; text-align: center; }
.quiet .horizon { width: min(220px, 60%); }
.quiet__line { font-size: clamp(28px, 4.6vw, 60px); font-weight: 200; line-height: 1.15; text-wrap: balance; }
.claims { list-style: none; margin: 0; padding: 0; display: grid; }
.claims li { padding: 22px 0; border-top: 1px solid var(--line); font-size: clamp(18px, 1.7vw, 22px); font-weight: 200; line-height: 1.4; }
.claims li:last-child { border-bottom: 1px solid var(--line); color: var(--text-2); }
.research { max-width: 760px; margin-inline: auto; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.offer__copy { display: grid; gap: 18px; justify-items: start; }
.offer__price { font-size: clamp(26px, 3vw, 36px); font-weight: 200; }
.box-list { list-style: none; margin: 0; padding: 0; display: grid; }
.box-list li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.box-list li:last-child { border-bottom: 1px solid var(--line); }
.preorder-note { font-size: 14.5px; line-height: 1.6; color: var(--text-2); padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); max-width: 56ch; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(120px, 12vw, 150px) 0 clamp(48px, 7vw, 88px); }
.gallery { position: sticky; top: 96px; display: grid; gap: 14px; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.gallery__thumbs button { flex: 0 0 84px; height: 63px; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); opacity: 0.6; transition: opacity var(--slow), border-color var(--slow); }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--haze); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: grid; gap: 22px; justify-items: start; }
.buy h1 { font-size: clamp(40px, 5vw, 68px); }
.buy__summary { color: var(--text-2); margin-top: 14px; }
.buy__price { font-size: clamp(28px, 3vw, 38px); font-weight: 200; }
.buy__aside { color: var(--text-3); }
.qty { display: flex; align-items: center; gap: 18px; }
.qty__label { font: 400 12px/1.2 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); }
.qty__box { display: inline-flex; align-items: center; border: 1px solid var(--field-line); border-radius: 999px; }
.qty__box button { width: 48px; height: 48px; border: 0; background: transparent; border-radius: 999px; font-size: 20px; font-weight: 200; }
.qty__box button:hover:not([disabled]) { background: rgba(255, 255, 255, 0.06); }
.qty__box button[disabled] { opacity: 0.35; cursor: not-allowed; }
.qty__box b { min-width: 34px; text-align: center; font-weight: 300; }
.buy__cta { width: 100%; }
.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--text-2); }
.spec { width: 100%; border-collapse: collapse; margin-top: 14px; }
.spec th, .spec td { text-align: left; padding: 14px 0; border-top: 1px solid var(--line); vertical-align: top; font-size: 15.5px; font-weight: 300; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--line); }
.spec th { width: 34%; color: var(--text-3); padding-right: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.sticky-buy { display: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table.grid { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 420px; }
table.grid th, table.grid td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 300; }
table.grid thead th { font: 400 12px/1.2 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
table.grid tbody tr:last-child td, table.grid tbody tr:last-child th { border-bottom: 0; }

/* ---------- bag drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; transition: visibility 0s 0.5s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(2, 7, 10, 0.72); opacity: 0; transition: opacity 0.5s ease; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.5s ease; outline: 0; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 26px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 22px; display: grid; gap: 20px; align-content: start; }
.drawer__body .preorder-note { background: transparent; }
.drawer__foot { padding: 20px 22px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer__foot:empty { display: none; }
.drawer__empty { display: grid; gap: 20px; justify-items: start; padding: 24px 0; color: var(--text-2); }
.line { display: grid; grid-template-columns: 92px 1fr; gap: 16px; }
.line__img { width: 92px; height: 69px; border-radius: 12px; overflow: hidden; background: var(--midnight); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__top { display: flex; justify-content: space-between; gap: 10px; }
.line__top a { text-decoration: none; }
.line__meta { color: var(--text-3); font-size: 14px; margin: 2px 0 10px; }
.line__qty { display: flex; align-items: center; gap: 4px; }
.line__qty button { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--field-line); background: transparent; }
.line__qty button[disabled] { opacity: 0.35; cursor: not-allowed; }
.line__qty b { min-width: 30px; text-align: center; font-weight: 300; }
.line__qty .line__remove { width: auto; border: 0; margin-left: 10px; font-size: 14px; color: var(--text-3); text-decoration: underline; text-underline-offset: 4px; }
.totals { display: flex; justify-content: space-between; font-size: 18px; }
.totals b { font-weight: 300; }
.totals__note { font-size: 14px; color: var(--text-3); }

/* ---------- forms and checkout ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; color: var(--text-2); }
.field input, .field select, .field textarea { height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--field-line); background: rgba(10, 20, 40, 0.6); color: var(--mist); width: 100%; transition: border-color var(--slow); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--haze); outline: 0; }
.field select option { background: var(--panel); color: var(--mist); }
.field textarea { height: auto; padding: 14px 16px; min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--text-2); margin: 4px 0 20px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--haze); }
.form-done { font-size: 14px; margin-top: 12px; color: var(--text-2); }
.checkout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 80px); align-items: start; padding-bottom: 120px; }
.checkout h2 { font-size: 24px; margin: 34px 0 18px; }
.checkout form > h2:first-child { margin-top: 0; }
.summary { position: sticky; top: 96px; padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 18px; }
.summary h2 { margin: 0; }
.summary--locked .line__qty { opacity: 0.4; pointer-events: none; }
.summary__rows { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--text-2); }
.summary__rows div { display: flex; justify-content: space-between; gap: 16px; }
.summary__rows .grand { font-size: 21px; color: var(--mist); padding-top: 12px; border-top: 1px solid var(--line); }
.pay-note { font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.pay-state { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.pay-state--error { background: rgba(10, 20, 40, 0.9); border: 1px solid var(--haze); color: var(--mist); }
#dropIn { background: var(--mist); border-radius: var(--radius); padding: 16px; color: #0a0a0b; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(2, 7, 10, 0.3); border-top-color: var(--midnight); display: inline-block; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.prose { max-width: 66ch; display: grid; gap: 16px; color: var(--text-2); }
.prose h1 { font-size: clamp(38px, 5.4vw, 64px); color: var(--mist); margin-bottom: 8px; }
.prose h2 { font-size: 28px; margin-top: 30px; color: var(--mist); }
.prose .kicker { margin: 0; }
.prose .btn { margin-top: 12px; justify-self: start; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); color: var(--text-2); padding: clamp(64px, 9vw, 112px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 0.7fr 0.9fr; gap: 40px; }
.footer h3 { font: 400 12px/1 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer__grid a { display: block; text-decoration: none; padding: 5px 0; font-size: 15.5px; transition: color var(--slow); }
.footer a:hover { color: var(--mist); }
.footer__brand p { margin-top: 10px; font-weight: 200; font-size: 18px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .part, .offer, .pdp, .checkout, .two-col { grid-template-columns: 1fr; }
  .part--flip .shot { order: 0; }
  .gallery, .summary { position: static; }
  .summary { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .bar__nav { display: none; }
  .bar__menu { display: inline-flex; }
  .bar { padding-left: 18px; gap: 6px; }
  .bar__tools { gap: 4px; }
  .bar__region { padding: 0 8px; }
  .bar__bag { padding: 0 12px; }
  .bar__bag span { display: none; }
  .logo { height: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .has-sticky-buy { padding-bottom: 88px; }
  .sticky-buy { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(10, 20, 40, 0.94); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateY(110%); transition: transform 0.5s ease; }
  .sticky-buy.is-shown { transform: none; }
  .sticky-buy__info { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-3); line-height: 1.3; }
  .sticky-buy__info b { display: block; color: var(--mist); font-size: 15.5px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy .btn { min-height: 48px; padding: 0 22px; flex: none; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
