/* ===== Font: SF Pro on Apple devices (built into the system, never hosted: Apple's licence forbids it),
   and Inter elsewhere, the closest free font (OFL licence), hosted on the site itself ===== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ===== Variables ===== */
/* Opalin palette, 60/30/10: white and light greys (60%), black and charcoal (30%), the logo's pink (10%) */
:root {
  --color-bg: #fafafa;
  --color-text: #111111;
  --color-muted: #6b6b70;
  --color-primary: #111111;
  --color-primary-dark: #0a0a0b;
  --color-accent: #ff5fdc;
  --color-accent-dark: #c2189f;
  --color-surface: #ffffff;
  --color-border: #e7e7e9;
  --color-dark: #0a0a0b;
  --color-header: #111111;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --max-width: 1100px;
  --radius: 12px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Anything marked "hidden" stays hidden, whatever its other styles say */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-text);
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}


.muted {
  color: var(--color-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page {
  padding-block: 7.5rem 3rem; /* room for the floating menu */
}

.section {
  padding-block: 5rem;
}

.section-alt {
  background: #f2f2f3;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 2.5rem;
}

/* ===== Header / Nav: floating pill ===== */
.site-header {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 20;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  pointer-events: none; /* only the pill itself is clickable */
}

/* Liquid glass recipe: a tinted, blurred layer + a light rim + a highlight along the top edge */
:root {
  --glass-tint-dark: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)), rgba(18, 18, 20, 0.74);
  --glass-tint-light: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8));
  --glass-blur: blur(20px) saturate(180%);
  --glass-rim: rgba(255, 255, 255, 0.22);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 1px rgba(255, 255, 255, 0.08), inset 0 0 14px rgba(255, 255, 255, 0.06);
}

.nav-pill {
  position: relative;
  pointer-events: auto;
  max-width: 1040px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  color: #f5f5f7;
}

/* The glass lives on a pseudo-element, so the mobile dropdown can have its own blur */
.nav-pill::before,
.nav-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.nav-pill::before {
  z-index: -1;
  background: var(--glass-tint-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-highlight), 0 12px 40px rgba(0, 0, 0, 0.28);
}

/* Soft light reflection in the top-left of the glass */
.nav-pill::after {
  background: radial-gradient(90% 140% at 18% -40%, rgba(255, 255, 255, 0.28), transparent 55%);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-main {
  margin-inline: auto;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #cfcfd4;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #f5f5f7;
  cursor: pointer;
  transition: background 0.2s ease;
}

.icon-btn:hover,
.icon-btn.active {
  background: rgba(255, 255, 255, 0.1);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Small green dot on the account icon when logged in */
.account-link.is-logged-in::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 0 2px var(--color-header);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.68rem;
  font-weight: 700;
}

.cart-count[hidden] {
  display: none;
}

.nav-divider {
  width: 1px;
  height: 22px;
  margin: 0 0.4rem;
  background: rgba(255, 255, 255, 0.15);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-cta {
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f3 100%);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.25);
}

.nav-cta:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e6e6e9 100%);
}

.nav-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-cta:hover svg {
  transform: translateX(3px);
}

.nav-toggle {
  display: none;
}

.cart-count.bump {
  animation: bump 0.3s ease;
}

@keyframes bump {
  50% { transform: scale(1.3); background: var(--color-accent); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 8.5rem 5rem; /* room for the floating menu */
  background: radial-gradient(circle at 75% 45%, #2c2c2f 0%, #111111 45%, var(--color-dark) 100%);
  color: #f5f5f7;
}

/* Soft glows behind the hero, so the glass has something to refract */
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(28% 32% at 76% 42%, rgba(255, 95, 220, 0.2), transparent 70%),
    radial-gradient(22% 26% at 62% 72%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(30% 30% at 12% 85%, rgba(255, 255, 255, 0.05), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-logo {
  width: min(420px, 80%);
  height: auto;
  margin: 0 0 1.25rem -0.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin: 0 0 1.25rem;
}

.lead {
  color: #c9c9ce;
  font-size: 1.15rem;
  max-width: 32rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  color: #9d9da3;
  font-size: 0.9rem;
}

.hero-points li::before {
  content: "\2713  ";
  color: var(--color-accent);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2.25rem;
}

/* Frosted glass plate the mouse pad floats on */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 60%);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--glass-highlight), 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* ===== Mouse pad illustration ===== */
/* --pad-ratio is width / height: 2.25 for XL (90 x 40 cm), 1.125 for M (45 x 40 cm) */
.pad {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 340px;
  aspect-ratio: var(--pad-ratio, 2.25);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  transition: background 0.4s ease;
}

/* Stitched edge */
.pad::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  z-index: 2;
}

/* Pearly sheen */
.pad::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.4) 42%, transparent 58%);
  mix-blend-mode: soft-light;
}

.pad-logo {
  position: absolute;
  right: 6%;
  bottom: 9%;
  width: 22%;
  min-width: 64px;
  z-index: 3;
  opacity: 0.95;
}

.pad[data-design="rose"] {
  background: radial-gradient(circle at 20% 25%, #fff2fb 0%, transparent 35%),
    linear-gradient(135deg, #ffd6f4 0%, #ff8fe4 35%, #ff4fd8 62%, #ffc7f1 100%);
}

.pad[data-design="blanc"] {
  background: radial-gradient(circle at 75% 30%, #e3f6f4 0%, transparent 40%),
    linear-gradient(135deg, #ffffff 0%, #f3eefe 35%, #fde8f6 65%, #ffffff 100%);
}

.pad[data-design="blanc"]::before {
  border-color: rgba(194, 24, 159, 0.25);
}

.pad[data-design="noir"] {
  background: radial-gradient(circle at 25% 30%, rgba(255, 95, 220, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 80% 75%, rgba(120, 220, 255, 0.18) 0%, transparent 35%),
    linear-gradient(135deg, #0d0d0e 0%, #111111 45%, #2a2a2d 65%, #050505 100%);
}

.pad-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-10px) rotate(-1.5deg); }
}

/* Design colors, reused for swatches and the cart */
.swatch-rose {
  background: linear-gradient(135deg, #ffd6f4, #ff4fd8);
}

.swatch-blanc {
  background: linear-gradient(135deg, #ffffff, #f3eefe 50%, #fde8f6);
}

.swatch-noir {
  background: linear-gradient(135deg, #2a2a2d, #0d0d0e);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--color-primary-dark);
}

.btn:active {
  transform: scale(0.98);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn-accent:hover {
  background: #ff85e5;
}

.btn-ghost {
  background: transparent;
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Glass bubble button on the dark hero */
.hero .btn-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-rim);
  box-shadow: var(--glass-highlight);
}

.hero .btn-ghost:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.feature-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.feature h3 {
  margin: 0.5rem 0;
}

.feature p {
  margin: 0;
  color: var(--color-muted);
}

/* ===== Specs ===== */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.specs-grid .section-title {
  margin-bottom: 0.75rem;
}

.specs {
  margin: 0;
}

.specs div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.specs dt {
  color: var(--color-muted);
}

.specs dd {
  margin: 0;
  font-weight: 500;
}

/* ===== Reviews ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.review {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stars {
  color: var(--color-accent);
  letter-spacing: 0.15em;
}

.review blockquote {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
}

.review figcaption {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ===== Buy ===== */
.buy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.buy-visual {
  display: grid;
  place-items: center;
  min-height: 320px;
  background: linear-gradient(160deg, #f6f6f7, #ececee);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}

.buy-box h2 {
  font-size: 2rem;
  margin: 0;
}

.price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.25rem 0 1.5rem;
}

.price .muted {
  font-size: 1rem;
  font-weight: 400;
}

.colors {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.colors legend {
  padding: 0;
  margin-bottom: 0.75rem;
}

.swatch {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.18);
  cursor: pointer;
}

/* Size choice */
.sizes {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sizes legend {
  padding: 0;
  margin-bottom: 0.75rem;
}

.size-option {
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.size-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.size-option:has(input:checked) {
  border-color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-text);
}

.size-option:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.size-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.size-dim,
.size-price {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.swatch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.swatch:has(input:checked) {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.swatch:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.qty {
  margin-bottom: 1.5rem;
}

.qty label {
  display: block;
  margin-bottom: 0.5rem;
}

.qty-control {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.qty-btn {
  width: 2.75rem;
  background: var(--color-bg);
  border: none;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-text);
}

.qty-btn:hover {
  background: var(--color-border);
}

.qty-control input {
  width: 3.5rem;
  border: none;
  text-align: center;
  font: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  -moz-appearance: textfield;
}

.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.buy-notes {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.buy-notes li::before {
  content: "\2713  ";
  color: var(--color-accent-dark);
}

/* ===== FAQ ===== */
.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--color-border);
  padding-block: 1.1rem;
}

.faq summary {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-muted);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
}

/* ===== Contact form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 520px;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: var(--color-surface);
}

.contact-form .btn {
  align-self: flex-start;
}

.form-status {
  color: var(--color-muted);
}

/* ===== Account ===== */
.auth-card {
  max-width: 440px;
  margin: 1rem auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.auth-card h1 {
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
}

.auth-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 1.75rem;
  background: var(--color-bg);
  border-radius: 999px;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-form[hidden] {
  display: none;
}

.auth-form input {
  font: inherit;
  padding: 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.auth-form input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.auth-form small {
  margin: -0.4rem 0 0.6rem;
}

.auth-form .btn {
  margin-top: 0.5rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-error {
  color: #c2410c;
  margin: 0.5rem 0 0;
}

.auth-hint {
  margin: -0.5rem 0 1rem;
  font-size: 0.95rem;
}

.code-input {
  font-size: 1.5rem !important;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.remember {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.remember input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--color-text);
  flex-shrink: 0;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.name-form {
  margin-bottom: 1.25rem;
}

.danger-zone {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.danger-zone .link-btn {
  color: var(--color-muted);
}

.danger-zone p {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
}

.btn-danger {
  background: #b42318;
}

.btn-danger:hover {
  background: #8f1c13;
}

.btn-quiet {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-quiet:hover {
  background: var(--color-bg);
}

#server-warning {
  margin: 0 0 1.25rem;
}

code {
  background: var(--color-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.small {
  font-size: 0.85rem;
}

/* ===== Cart ===== */
.cart-empty {
  padding-block: 2rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: start;
  gap: 2rem;
  margin-top: 1.5rem;
}

.cart-layout[hidden] {
  display: none;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.cart-item + .cart-item {
  border-top: 1px solid var(--color-border);
}

.cart-swatch {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item .qty-control {
  height: 2.5rem;
}

.cart-line-total {
  font-weight: 600;
  min-width: 5rem;
  text-align: right;
}

.cart-remove {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.cart-remove:hover {
  color: var(--color-text);
}

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding-block: 0.4rem;
}

.summary-total {
  border-top: 1px solid var(--color-border);
  margin: 0.5rem 0 1.25rem;
  padding-top: 0.9rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.pay-methods {
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
  margin: 0.9rem 0 0;
}

/* ===== Order confirmation ===== */
.success-card {
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 1.75rem;
}

.order-lines {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  text-align: left;
}

.success-card .summary-total {
  text-align: left;
}

/* ===== My orders (account page) ===== */
.orders-title {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.orders-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.order div {
  display: flex;
  flex-direction: column;
}

.order-total {
  font-weight: 600;
}

@media (max-width: 760px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: auto 1fr auto;
  }

  .cart-item .qty-control {
    grid-column: 2;
    justify-self: start;
  }

  .cart-line-total {
    grid-column: 3;
    grid-row: 2;
  }
}

/* ===== Product page ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1rem;
}

.product-stage {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 2.5rem;
  border-radius: 24px;
  background: radial-gradient(60% 60% at 70% 30%, #ffffff 0%, transparent 70%), linear-gradient(160deg, #f4f4f5, #e9e9eb);
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.thumb {
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumb .pad {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.thumb .pad::before {
  inset: 3px;
  border-width: 1px;
  border-radius: 5px;
}

.thumb:hover {
  border-color: #c9c9ce;
}

.thumb.is-active {
  border-color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-text);
}

.product-kicker {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.product-info h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.25rem 0 0.25rem;
}

.product-info .price {
  margin: 0 0 1rem;
}

.product-lead {
  color: var(--color-muted);
  margin: 0 0 1.75rem;
}

.product-perks {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.product-perks li {
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  position: relative;
  font-size: 0.92rem;
}

.product-perks li::before {
  content: "\2713";
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
}

.product-perks span {
  color: var(--color-muted);
  font-size: 0.86rem;
}

.product-details {
  max-width: none;
}

.product-details .specs div {
  grid-template-columns: 8rem 1fr;
}

/* ===== Product card (home page) ===== */
.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

.product-card-visual {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(160deg, #f4f4f5, #e9e9eb);
}

.product-card-body {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
  padding-right: 1rem;
}

.product-card-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-card-text {
  color: var(--color-muted);
}

.product-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-visual {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 860px) {
  .product-grid,
  .product-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-gallery {
    position: static;
  }

  .product-stage {
    min-height: 280px;
    padding: 1.5rem;
  }

  .product-card-body {
    padding: 0 0.5rem 0.5rem;
  }
}

/* ===== Cookie notice ===== */
.cookie-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--glass-tint-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 #ffffff, 0 14px 40px rgba(0, 0, 0, 0.16);
  font-size: 0.92rem;
}

.cookie-notice p {
  margin: 0;
  flex: 1;
}

.cookie-notice .btn {
  flex-shrink: 0;
  padding: 0.6rem 1.1rem;
}

@media (max-width: 480px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Legal pages ===== */
.legal-page {
  max-width: 820px;
}

.legal-page h2 {
  margin-top: 2rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.site-footer a {
  color: inherit;
}

/* ===== Footer (charcoal band with the newsletter) ===== */
.site-footer {
  margin-top: 2rem;
  background: #111111;
  color: #c9c9ce;
  font-size: 0.92rem;
}

.site-footer a {
  color: #e7e7ea;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  padding-block: 3.5rem 2.5rem;
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-brand p {
  margin: 0;
  color: #9d9da3;
}

.footer-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-text {
  margin: 0 0 1rem;
  color: #9d9da3;
}

.newsletter-row {
  display: flex;
  gap: 0.5rem;
}

.newsletter-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.newsletter-row input::placeholder {
  color: #8a8a90;
}

.newsletter-row input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.newsletter-row .btn {
  flex-shrink: 0;
}

.newsletter-legal {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #8a8a90;
}

.newsletter-status {
  margin: 0.75rem 0 0;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(110, 231, 168, 0.12);
  color: #b9f5d3;
  font-size: 0.9rem;
}

.newsletter-status.is-error {
  background: rgba(255, 120, 120, 0.12);
  color: #ffc4c4;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-links div {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-links a {
  color: #c9c9ce;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-heading {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a90;
}

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a8a90;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* ===== Newsletter page ===== */
.newsletter-page {
  max-width: 880px;
}

.newsletter-hero {
  padding: 3rem;
  border-radius: 28px;
  background: radial-gradient(40% 60% at 85% 20%, rgba(255, 95, 220, 0.25), transparent 70%), #111111;
  color: #f5f5f7;
}

.newsletter-hero h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.newsletter-hero .product-kicker {
  color: #9d9da3;
}

.lead-text {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: #c9c9ce;
}

.newsletter-form-large {
  max-width: 34rem;
}

.newsletter-message {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(110, 231, 168, 0.12);
  color: #b9f5d3;
}

.newsletter-message.is-error {
  background: rgba(255, 120, 120, 0.12);
  color: #ffc4c4;
}

.newsletter-unsubscribe {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.newsletter-unsubscribe p {
  margin: 0;
}

.newsletter-unsubscribe .btn {
  background: #ffffff;
  color: #111111;
}

.newsletter-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.newsletter-point {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
}

.newsletter-point h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.newsletter-point p {
  margin: 0;
  color: var(--color-muted);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .newsletter-info {
    grid-template-columns: minmax(0, 1fr);
  }

  .newsletter-hero {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .newsletter-row {
    flex-direction: column;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pad-float {
    animation: none;
  }
}

/* ===== Tablet ===== */
@media (max-width: 860px) {
  .hero-grid,
  .buy-grid,
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding-inline: 1rem;
  }

  .specs-grid {
    gap: 1rem;
  }
}

/* ===== Menu collapses into a dropdown under the pill ===== */
@media (max-width: 900px) {
  .nav-pill {
    gap: 0.5rem;
    padding: 0 6px 0 18px;
  }

  .nav-main {
    margin: 0;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    border-radius: 24px;
    background: var(--glass-tint-dark);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim);
    box-shadow: var(--glass-highlight), 0 12px 40px rgba(0, 0, 0, 0.28);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .nav-divider,
  .nav-cta span {
    display: none;
  }

  .nav-cta {
    padding: 0.7rem;
  }

  .section {
    padding-block: 3.5rem;
  }

  .hero {
    padding-block: 6.5rem 3rem;
  }

  .specs div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* ===== Browsers without backdrop blur: keep the glass readable ===== */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-pill::before,
  .nav-links {
    background: rgba(20, 20, 22, 0.94);
  }

  .cookie-notice {
    background: #ffffff;
  }
}

/* ===== Glacier theme: white hero with frosted blue and light clouds (replaces the black hero) ===== */
:root {
  --glacier-clouds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' viewBox='0 0 1600 1000' preserveAspectRatio='none'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.006' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.89 0 0 0 0 0.98 1.7 0 0 0 -0.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --glacier-bg:
    radial-gradient(55% 60% at 82% 28%, rgba(186, 222, 248, 0.6), transparent 70%),
    radial-gradient(45% 55% at 8% 92%, rgba(205, 232, 251, 0.7), transparent 70%),
    var(--glacier-clouds) center / cover no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f2f8fd 100%);
}

.hero {
  background: var(--glacier-bg);
  color: var(--color-text);
}

.hero::before {
  background:
    radial-gradient(28% 32% at 76% 42%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(24% 28% at 60% 75%, rgba(170, 214, 246, 0.35), transparent 70%);
}

.hero-logo {
  filter: drop-shadow(0 8px 22px rgba(70, 110, 160, 0.28));
}

.hero .lead {
  color: #4a5563;
}

.hero-points {
  color: #5d6875;
}

.hero .btn-ghost {
  color: var(--color-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 18px rgba(70, 110, 160, 0.15);
}

.hero .btn-ghost:hover {
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.65));
}

/* Frosted ice plate under the mouse pad */
.hero-visual::before {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(225, 240, 252, 0.35) 60%);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 1px rgba(150, 190, 225, 0.25), 0 30px 60px rgba(70, 110, 160, 0.18);
}

.pad {
  box-shadow: 0 24px 50px rgba(50, 80, 120, 0.25);
}

/* Newsletter page band, same glacier look */
.newsletter-hero {
  background: var(--glacier-bg);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(70, 110, 160, 0.12);
}

.newsletter-hero .product-kicker {
  color: #5d6875;
}

.newsletter-hero .lead-text {
  color: #4a5563;
}

.newsletter-hero .newsletter-row input {
  background: rgba(255, 255, 255, 0.85);
  border-color: #d5e3ef;
  color: var(--color-text);
}

.newsletter-hero .newsletter-row input::placeholder {
  color: #8592a0;
}

.newsletter-hero .newsletter-status,
.newsletter-message {
  background: #e7f7ee;
  color: #1d6b40;
}

.newsletter-hero .newsletter-status.is-error,
.newsletter-message.is-error {
  background: #fdecec;
  color: #a12b2b;
}

.newsletter-unsubscribe .btn {
  background: var(--color-primary);
  color: #ffffff;
}
