/* ==========================================================================
   YourWebsite — design-system.css
   The single stylesheet for the site. Replaces the previous 14-file cascade.

   Everything is driven by the token block below. Light and dark are the same
   rules with a different token set, so a theme switch is instant and no
   component needs a dark-specific override.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — a navy ramp. The old design mixed pure black (#171719),
     near-black (#0f0f11) and navy (#081226) at the same time, which is why
     cards read as holes punched through the page. */
  --bg:          #080d1a;
  --bg-alt:      #0b1222;
  --surface:     #101a2f;
  --surface-2:   #16223c;
  --surface-3:   #1e2b48;

  /* Ink */
  --ink:         #eef3fb;
  --muted:       #a9b6cf;
  --faint:       #7e8ca8;

  /* Lines */
  --line:        rgba(150, 170, 210, 0.16);
  --line-2:      rgba(150, 170, 210, 0.32);

  /* One accent ramp. Previously there were four (--accent, --pro-accent,
     --rd-accent/-2/-3) ending in a blue→cyan→pink gradient that fought the
     navy. Now: indigo primary, cyan reserved for small highlights. */
  --accent:      #7f9cff;
  --accent-2:    #6fdcf0;
  --accent-ink:  #08101f;
  --accent-soft: rgba(127, 156, 255, 0.14);
  --accent-line: rgba(127, 156, 255, 0.40);

  --success:     #4fd39a;
  --danger:      #ff8080;

  /* Geometry */
  --r-sm:   10px;
  --r:      16px;
  --r-lg:   22px;
  --r-xl:   30px;
  --pill:   999px;

  /* Elevation — subtle in dark, soft in light */
  --shadow:    0 16px 44px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.52);
  --ring:      0 0 0 3px rgba(127, 156, 255, 0.35);

  /* Motion */
  --ease:  cubic-bezier(0.22, 0.9, 0.28, 1);
  --fast:  0.18s;
  --base:  0.32s;

  /* Fluid rhythm */
  --gutter:    clamp(20px, 4vw, 44px);
  --maxw:      1240px;
  --section-y: clamp(72px, 8.5vw, 128px);

  /* Fluid type */
  --fs-display: clamp(2.6rem, 6.2vw, 4.6rem);
  --fs-h1:      clamp(2.3rem, 5vw, 3.7rem);
  --fs-h2:      clamp(1.9rem, 3.6vw, 2.9rem);
  --fs-h3:      clamp(1.25rem, 1.7vw, 1.5rem);
  --fs-body:    clamp(0.95rem, 1.02vw, 1.02rem);
  --fs-sm:      0.875rem;
  --fs-xs:      0.8125rem;
  --fs-kicker:  0.6875rem;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:          #f6f7fb;
  --bg-alt:      #eef1f8;
  --surface:     #ffffff;
  --surface-2:   #f2f5fb;
  --surface-3:   #e6ecf7;

  --ink:         #0b1120;
  --muted:       #4d5972;
  --faint:       #6c7994;

  --line:        rgba(11, 17, 32, 0.12);
  --line-2:      rgba(11, 17, 32, 0.24);

  --accent:      #3d5ccc;
  --accent-2:    #0e7f9c;
  --accent-ink:  #ffffff;
  --accent-soft: rgba(61, 92, 204, 0.10);
  --accent-line: rgba(61, 92, 204, 0.38);

  --success:     #12855a;
  --danger:      #c62b2b;

  --shadow:    0 12px 34px rgba(14, 22, 45, 0.09);
  --shadow-lg: 0 22px 58px rgba(14, 22, 45, 0.15);
  --ring:      0 0 0 3px rgba(61, 92, 204, 0.24);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
h1 { font-size: var(--fs-display); max-width: 16ch; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visually hidden until focused. Uses clip-path rather than a large negative
   offset so the link cannot appear on screen if it is focused
   programmatically (headless browsers do this). */
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 200;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus,
.skip-link:focus-visible {
  width: auto; height: auto; padding: 12px 18px; overflow: visible;
  clip: auto; clip-path: none;
  top: 10px; left: 10px;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding: var(--section-y) 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
}
.section-head > p { color: var(--muted); max-width: 44ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--fs-kicker); font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 20px;
  padding: 6px 12px; border: 1px solid var(--line);
  border-radius: var(--pill); background: var(--surface);
}
.status-dot, .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}

.card-kicker {
  font-size: var(--fs-kicker); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 10px;
}
.lead { font-size: clamp(1rem, 1.2vw, 1.15rem); color: var(--muted); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--pill);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
  transition: transform var(--fast) var(--ease),
              background var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-dark {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 26px var(--accent-soft);
}
.button-dark:hover { box-shadow: 0 16px 40px var(--accent-soft); }

.button-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line-2);
}
.button-ghost:hover { background: var(--surface-2); border-color: var(--accent-line); }

.button.full { width: 100%; }
.button:disabled,
.button[disabled] {
  opacity: 0.45; cursor: not-allowed;
  transform: none; box-shadow: none;
  filter: grayscale(0.3);
}

/* Text link with arrow */
.text-link, .read-more, .journal-read-button {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 26px;
  color: var(--accent); font-size: var(--fs-sm); font-weight: 600;
  transition: gap var(--fast) var(--ease);
}
.text-link:hover, .read-more:hover, .journal-read-button:hover { gap: 11px; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex; align-items: center; gap: 20px;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 800;
}

.nav-links { display: flex; align-items: center; gap: 26px; margin: 0 auto; font-size: var(--fs-sm); }
/* Nav links render at 23px tall as bare inline text, under the WCAG 2.2
   minimum 24x24 target size. Inline-flex + min-height makes the hit area
   compliant without changing the visual weight. */
.nav-links a {
  display: inline-flex; align-items: center;
  min-height: 26px;
  color: var(--muted);
  transition: color var(--fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: var(--pill);
  background: var(--surface); color: var(--ink);
  font-size: var(--fs-sm); font-weight: 600;
  transition: background var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.cart-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--surface); color: var(--ink);
  font-size: var(--fs-sm); font-weight: 600;
}
.cart-trigger-count {
  display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--pill); background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700;
}

.theme-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink);
  font-size: 15px; line-height: 1;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--line-2); }

.menu-toggle { display: none; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(132px, 15vw, 190px) 0 var(--section-y);
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: 40px; right: -140px;
  width: 620px; height: 620px; pointer-events: none;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-copy h1 { max-width: 15ch; }
.hero-sub { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 1.1vw, 1.1rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-proof {
  display: flex; align-items: center; gap: 14px;
  margin-top: clamp(32px, 4vw, 52px); padding: 16px 20px;
  max-width: 460px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
}
.hero-proof > span { color: var(--faint); font-size: var(--fs-xs); font-weight: 700; }
.hero-proof strong { display: block; font-size: var(--fs-sm); }
.hero-proof small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }

/* Accent phrase in headings — one colour, no gradient */
h1 em, h2 em, h3 em, .shop-intro h1 em, .preview-content h2 i {
  font-style: italic; font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Browser mock */
.hero-card {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface-2); padding: 10px;
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; color: var(--faint);
}
.browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.browser-bar small { margin-inline: auto; font-size: 10px; }

.site-preview {
  position: relative; height: 420px; overflow: hidden;
  border-radius: calc(var(--r-xl) - 8px);
  background: var(--bg); padding: 24px;
}
.preview-nav {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--muted);
}
.preview-nav b { font-size: 14px; color: var(--ink); }
.preview-content { position: absolute; z-index: 2; left: 40px; bottom: 40px; max-width: 320px; }
.preview-content small { font-size: 8px; letter-spacing: 0.16em; color: var(--faint); }
.preview-content h2 { font-size: clamp(32px, 4vw, 48px); line-height: 0.98; margin: 12px 0; letter-spacing: -0.05em; }
.preview-content p { color: var(--muted); font-size: 11px; max-width: 230px; }
.preview-pill {
  display: inline-flex; gap: 30px; margin-top: 6px;
  padding: 9px 14px; border-radius: var(--pill);
  background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 600;
}
.preview-orb {
  position: absolute; top: 70px; right: -90px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent), #2c3a68 48%, var(--bg) 74%);
}

/* --------------------------------------------------------------------------
   7. Marquee
   -------------------------------------------------------------------------- */
/* Marquee
   The track holds FOUR identical .marquee-content blocks and the animation
   shifts by exactly one block (-25%).

   Two things were wrong before:
   1. Spacing lived on the track as `gap`, so the track was 2C + gap wide and
      translating -50% overshot by half the gap, leaving a dead space on every
      loop. Spacing now lives inside each block as gap + matching padding-right.
   2. Two blocks were only ~1670px in total. On a wide monitor the track was
      narrower than the viewport, so everything to the right of it was blank.
      Four blocks give ~3350px of coverage, so the strip always spans the
      screen. If you change the number of blocks, update the -25% below. */
.marquee {
  overflow: hidden; padding: 20px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 44s linear infinite;
  will-change: transform;
}
.marquee-content {
  display: flex; align-items: center; gap: 30px;
  flex: none; padding-right: 30px;
}
.marquee-content span {
  color: var(--faint);
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.marquee-content b { color: var(--accent); font-size: 13px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-25%, 0, 0); }
}

/* --------------------------------------------------------------------------
   8. Feature cards
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 22px);
}
.feature-grid + .feature-grid { margin-top: clamp(16px, 1.6vw, 22px); }

.feature-card {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform var(--base) var(--ease),
              border-color var(--base) var(--ease),
              background var(--base) var(--ease),
              box-shadow var(--base) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.feature-card.large { background: var(--surface-2); }

.feature-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 18px;
}
.feature-card h3 { font-size: var(--fs-h3); margin: 0 0 10px; }
.feature-card > p:not(.card-kicker) { color: var(--muted); font-size: var(--fs-sm); }
.feature-card a {
  align-self: flex-start; margin-top: 22px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border: 1px solid var(--line-2); border-radius: var(--pill);
  font-size: var(--fs-xs); font-weight: 600;
  transition: background var(--fast) var(--ease),
              border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.feature-card a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   9. Shop
   -------------------------------------------------------------------------- */
.shop-hero { padding: clamp(120px, 13vw, 170px) 0 clamp(24px, 3vw, 40px); }
.shop-intro {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.shop-intro h1 { max-width: 16ch; }
.shop-intro > p { color: var(--muted); max-width: 46ch; }
.shop-trust {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.shop-trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-sm); }
.shop-trust span::before { content: "✓"; color: var(--success); font-weight: 700; }

/* .studio-index is a wrapper around a kicker, a heading and a note — styling
   it as if it were the kicker made the h2 inherit uppercase + wide tracking. */
.studio-index { display: grid; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); }
.studio-caption {
  margin: 0; color: var(--faint);
  font-size: var(--fs-kicker); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.studio-index h2 {
  margin: 0; color: var(--ink);
  font-size: var(--fs-h2); letter-spacing: -0.035em; text-transform: none;
}
.studio-index h2 span { color: var(--accent); }
.studio-note { color: var(--muted); max-width: 62ch; margin: 0; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 22px); }

.product-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  transition: transform var(--base) var(--ease),
              border-color var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.product-card-featured { border-color: var(--accent-line); }

.product-image {
  position: relative; height: 180px; overflow: hidden;
  background: linear-gradient(150deg, var(--surface-3), var(--bg-alt));
}
.product-card:nth-child(2) .product-image { background: linear-gradient(150deg, #24345c, #0c1425); }
.product-card:nth-child(3) .product-image { background: linear-gradient(150deg, #1e2e4f, #0a1120); }
.product-image .number {
  position: absolute; top: 16px; left: 18px; z-index: 3;
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink); opacity: 0.7;
}
.package-tag {
  position: absolute; top: 15px; right: 15px; z-index: 4;
  padding: 6px 10px; border-radius: var(--pill);
  background: var(--surface-3); color: var(--ink);
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.package-visual {
  position: absolute; left: 13%; right: 13%; bottom: 22px; z-index: 2;
  display: flex; flex-direction: column; gap: 9px; justify-content: center;
  height: 108px; padding: 18px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}
.product-card:nth-child(2) .package-visual { background: rgba(0, 0, 0, 0.30); }
.package-visual span { display: block; height: 8px; width: 75%; border-radius: var(--pill); background: rgba(255, 255, 255, 0.22); }
.package-visual span:nth-child(2) { width: 52%; }
.package-visual span:nth-child(3) { width: 88%; }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.product-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.product-body h3 { font-size: 1.55rem; margin: 0 0 4px; letter-spacing: -0.03em; }
.price { font-size: 1.05rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.product-body > p:not(.card-kicker) { color: var(--muted); font-size: var(--fs-sm); margin: 10px 0 18px; }

.package-features { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.package-features li {
  position: relative; padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: var(--fs-xs);
}
.package-features li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  color: var(--success); font-weight: 700;
}

.add-cart {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 46px; margin-top: auto; padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--fs-sm); font-weight: 600;
  transition: filter var(--fast) var(--ease);
}
.add-cart:hover { filter: brightness(1.08); }

.shop-help {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: clamp(24px, 3vw, 36px); padding: 24px 28px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.shop-help strong { display: block; font-size: var(--fs-body); }
.shop-help span { color: var(--muted); font-size: var(--fs-sm); }

.demo-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--pill);
  background: var(--accent-soft); color: var(--accent);
  font-size: var(--fs-kicker); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. Cart drawer
   -------------------------------------------------------------------------- */
.cart-drawer { position: fixed; inset: 0; z-index: 120; display: none; }
.cart-drawer.open { display: block; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 14, 0.6); backdrop-filter: blur(3px); }
.cart-drawer-panel {
  position: absolute; inset: 0 0 0 auto;
  display: flex; flex-direction: column;
  width: min(430px, 100%); padding: 28px;
  background: var(--bg-alt); border-left: 1px solid var(--line);
}
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.cart-drawer-head h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0; }
.cart-drawer-close {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 18px;
}
.drawer-items { flex: 1; overflow-y: auto; }
.drawer-item {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.drawer-item-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.drawer-item-name { font-weight: 600; }
.drawer-item-unit { color: var(--faint); font-size: var(--fs-xs); }
.drawer-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.drawer-item-side strong { font-size: var(--fs-body); }
.qty-stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: var(--pill); padding: 2px; }
.qty-btn {
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 14px; line-height: 1;
}
.qty-btn:hover { background: var(--surface-3); }
.qty-value { min-width: 26px; text-align: center; font-size: var(--fs-xs); font-weight: 600; }
/* Was --faint, which read as a disabled control rather than an action. */
.drawer-remove {
  color: var(--muted); font-size: var(--fs-xs); font-weight: 600;
  padding: 4px 8px; margin: -4px -8px;
  border: 1px solid transparent; border-radius: var(--pill);
  transition: color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.drawer-remove:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.drawer-empty { color: var(--muted); padding: 24px 0; }
.drawer-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 1.1rem; }
.drawer-total strong { font-size: 1.35rem; }

/* --------------------------------------------------------------------------
   11. Checkout + modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 130;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 14, 0.66); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(520px, 100%);
  max-height: 88vh; overflow-y: auto;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow-lg);
  animation: modalIn var(--base) var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 20px;
}
.modal-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 0 0 10px; }
.modal-card p { color: var(--muted); font-size: var(--fs-sm); }

.success-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success); font-size: 22px;
}

.checkout-wrap { display: grid; gap: 18px; }
/* The header holds a badge, a heading and a note. Laid out as a row they
   collide on narrow screens, so stack them and let each keep its own size. */
.checkout-header { display: grid; gap: 8px; margin-bottom: 4px; }
.checkout-header .eyebrow { justify-self: start; margin: 0; }
.checkout-header h2 { font-size: clamp(1.25rem, 2.1vw, 1.65rem); margin: 0; }
.checkout-header p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.checkout-fields { display: grid; gap: 12px; }
.checkout-field { display: block; }
.checkout-field label, .checkout-fields label { color: var(--muted); font-size: var(--fs-xs); }
.checkout-fields input, .checkout-field input {
  display: block; width: 100%; margin-top: 6px;
  min-height: 46px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.checkout-fields input:focus, .checkout-field input:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--ring);
}
.checkout-field.invalid input { border-color: var(--danger); }
.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: var(--fs-xs); }
.card-row, .checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-summary {
  display: grid; gap: 8px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
}
.checkout-line { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--fs-sm); }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; padding-top: 8px; border-top: 1px solid var(--line); }
.checkout-demo-note, .appointment-disclaimer { color: var(--faint); font-size: var(--fs-xs); text-align: center; }
.checkout-success { display: grid; gap: 14px; justify-items: center; text-align: center; }
.confirmation-mark { width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); display: grid; place-items: center; font-size: 22px; }
.confirmation-card { display: grid; gap: 10px; text-align: center; }

.toast {
  position: fixed; z-index: 140; right: 20px; bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 18px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--surface-3); color: var(--ink);
  font-size: var(--fs-sm);
  transform: translateY(140%); opacity: 0;
  transition: transform var(--base) var(--ease), opacity var(--base) var(--ease);
}
.toast.show { transform: none; opacity: 1; }

/* --------------------------------------------------------------------------
   12. Legal consent
   -------------------------------------------------------------------------- */
.legal-consent-backdrop {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: 20px;
  background: rgba(3, 6, 14, 0.55);
}
.legal-consent-backdrop[hidden] { display: none; }
.legal-consent-card {
  position: relative; width: min(480px, 100%);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.legal-consent-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
}
.legal-consent-kicker { color: var(--faint); font-size: var(--fs-kicker); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 8px; }
.legal-consent-card h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0 0 10px; }
.legal-consent-copy { color: var(--muted); font-size: var(--fs-sm); }
.legal-consent-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.legal-consent-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--pill);
  font-size: var(--fs-xs); font-weight: 600;
}
.legal-consent-links a:hover { border-color: var(--accent-line); color: var(--accent); }
.legal-consent-check { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; color: var(--muted); font-size: var(--fs-sm); }
.legal-consent-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.legal-consent-continue { width: 100%; }
.legal-consent-continue[disabled] { opacity: 0.45; cursor: not-allowed; }
.legal-consent-error { color: var(--danger); font-size: var(--fs-xs); }
.legal-consent-note { color: var(--faint); font-size: var(--fs-xs); text-align: center; margin: 14px 0 0; }
.legal-consent-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 18px; }

/* --------------------------------------------------------------------------
   13. Booking
   -------------------------------------------------------------------------- */
.booking-section { background: var(--bg-alt); }
.booking-copy h1 { max-width: 16ch; }
.booking-copy > p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }
.booking-note { color: var(--muted); font-size: var(--fs-sm); }
.appointment-app { display: grid; gap: 20px; }

.appointment-stepbar { display: flex; gap: 8px; margin-bottom: 24px; }
.appointment-step {
  flex: 1; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--faint);
  font-size: var(--fs-xs); font-weight: 600; text-align: left;
}
.appointment-step.active { border-color: var(--accent); color: var(--ink); }
.appointment-step.done { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }

.appointment-step-panel { display: none; }
.appointment-step-panel.active { display: block; }

.appointment-main, .appointment-panel, .appointment-confirm, .slot-panel {
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.appointment-date-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.appointment-title { font-size: var(--fs-h3); margin: 0 0 4px; }
.appointment-subtitle, .slot-label, .appointment-month { color: var(--muted); font-size: var(--fs-sm); }
.appointment-month { color: var(--ink); font-weight: 600; }

.appointment-calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.appointment-nav {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink);
}
.appointment-nav:hover { border-color: var(--line-2); background: var(--surface-2); }
.appointment-next-month, .appointment-prev { display: grid; place-items: center; }
.appointment-weekdays, .appointment-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.appointment-weekdays span { padding: 6px 0; color: var(--faint); font-size: 10px; text-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: 0.06em; }
.appointment-days button {
  aspect-ratio: 1; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font-size: var(--fs-xs); font-weight: 600;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.appointment-days button:hover:not(:disabled) { background: var(--surface-2); }
.appointment-days button.today { box-shadow: inset 0 0 0 1px var(--accent); }
.appointment-days button.selected { background: var(--accent); color: var(--accent-ink); }
.appointment-days button:disabled { color: var(--faint); opacity: 0.35; cursor: not-allowed; }

.slot-selected-date { color: var(--faint); font-weight: 400; }
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot {
  min-height: 42px; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink); font-size: var(--fs-xs); font-weight: 600;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.slot:hover:not(:disabled) { border-color: var(--accent-line); }
.slot.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot:disabled { opacity: 0.4; cursor: not-allowed; }

.service-options { display: grid; gap: 10px; }
.service-option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 16px 18px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-2); color: var(--ink);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.service-option:hover { border-color: var(--line-2); }
.service-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.service-option strong { display: block; font-size: var(--fs-body); }
.service-meta { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.service-price { font-weight: 700; color: var(--accent); white-space: nowrap; }

.appointment-summary { display: grid; gap: 12px; }
.summary-eyebrow { color: var(--faint); font-size: var(--fs-kicker); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.summary-title { margin: 0; font-size: var(--fs-h3); }
.summary-content { display: grid; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.summary-row strong { color: var(--ink); }
.summary-empty { color: var(--muted); font-size: var(--fs-sm); }

.appointment-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.appointment-back { order: -1; }
.appointment-next { margin-left: auto; }
.appointment-form { display: grid; gap: 14px; }
/* Name and email share a row on wider screens. */
.appointment-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.appointment-form label { display: block; color: var(--muted); font-size: var(--fs-xs); }
.appointment-form input,
.appointment-form textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 46px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  font-family: inherit; font-size: var(--fs-body);
}
/* The notes textarea is nested inside its <label>, so it needs to be forced
   onto its own line — otherwise it renders inline, collapsed to a few
   characters wide, sitting beside its own label text. */
.appointment-form textarea { min-height: 110px; resize: vertical; }
.appointment-form input:focus,
.appointment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.appointment-form .has-error input,
.appointment-form .has-error textarea { border-color: var(--danger); }
.appointment-field-error { display: block; margin-top: 6px; color: var(--danger); font-size: var(--fs-xs); }
.has-error input { border-color: var(--danger); }
.appointment-confirmed { display: grid; gap: 12px; justify-items: center; text-align: center; }

/* --------------------------------------------------------------------------
   14. Journal
   -------------------------------------------------------------------------- */
.journal { background: var(--bg-alt); }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 22px); }
.journal-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px);
  align-items: center; margin-bottom: clamp(24px, 3vw, 40px);
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.journal-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; transition: transform var(--base) var(--ease), border-color var(--base) var(--ease); }
.journal-card:hover { transform: translateY(-4px); border-color: var(--line-2); }

.journal-feature-copy h2 { font-size: var(--fs-h2); margin: 0 0 12px; }
.journal-feature-copy p { color: var(--muted); font-size: var(--fs-sm); }

/* Card titles are <h2> in the markup, so they need an explicit h3-scale size
   or they inherit the page-level h2 and dwarf everything around them. */
.journal-card h2 {
  font-size: var(--fs-h3); line-height: 1.22;
  margin: 10px 20px; letter-spacing: -0.02em; color: var(--ink);
}
.journal-card p { margin: 0 20px; color: var(--muted); font-size: var(--fs-sm); }

/* Art panels: number at the top, label at the bottom. As a flex row these
   jammed "01" against "FIRST / IMPRESSIONS". */
.journal-feature-art,
.journal-card-art {
  display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 16 / 10; padding: 22px;
  border-radius: var(--r);
  background: linear-gradient(150deg, #23325a, #0b1120);
  color: var(--ink);
}
.journal-feature-art span,
.journal-card-art span {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.18em; color: var(--faint);
}
.journal-feature-art strong {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.02; letter-spacing: -0.035em; color: var(--ink);
}
.journal-card-art { margin: 10px 10px 0; justify-content: flex-end; }
.journal-card-art span {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800; letter-spacing: -0.05em; color: var(--ink);
}
.article-meta { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 0; color: var(--faint); font-size: var(--fs-kicker); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.article-note { color: var(--muted); font-size: var(--fs-sm); }
.journal-read-button { padding: 0 20px 20px; }
.journal-card .journal-read-button { margin-top: 16px; }
.journal-feature-copy .journal-read-button { margin-top: 18px; }

.journal-post-header { padding: clamp(120px, 13vw, 170px) 0 0; }
.journal-post-hero { padding: 28px 0; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.journal-post-hero-label { color: var(--faint); font-size: var(--fs-kicker); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.journal-post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; color: var(--muted); font-size: var(--fs-sm); }
.journal-post-shell { max-width: 68ch; }
.journal-article { color: var(--muted); }
.journal-article h2 { margin: clamp(32px, 4vw, 48px) 0 14px; color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.journal-article h3 { margin: 28px 0 10px; color: var(--ink); }
.journal-article p, .journal-article li { line-height: 1.8; }
.journal-article ul { padding-left: 1.3em; }
.journal-article li::marker { color: var(--accent); }
.journal-article strong { color: var(--ink); }
.journal-post-back { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; color: var(--accent); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 24px; }
.journal-post-back:hover { gap: 12px; }
.journal-post-header .journal-post-back { margin-bottom: 0; }
.journal-post-footer, .legal-footer { margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.contact-copy h1 { max-width: 14ch; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); max-width: 42ch; }
.contact-links { display: grid; gap: 10px; margin-top: 28px; }
.contact-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: var(--fs-sm); font-weight: 600;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.contact-links a:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateX(3px); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  font-size: var(--fs-xs); font-weight: 700;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.contact-form, .demo-form {
  display: grid; gap: 16px;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.contact-form label, .demo-form label { display: block; color: var(--muted); font-size: var(--fs-xs); }
.contact-form input, .contact-form select, .contact-form textarea, .demo-form input, .demo-form textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 46px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.contact-form textarea, .demo-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
.demo-form input:focus, .demo-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--ring);
}
.contact-form .button, .demo-form .button { justify-self: start; }

/* --------------------------------------------------------------------------
   16. Legal page
   -------------------------------------------------------------------------- */
.legal-page { padding: clamp(120px, 13vw, 170px) 0 0; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 3vw, 56px); align-items: start; }
.legal-nav {
  position: sticky; top: 96px;
  display: grid; gap: 8px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.legal-nav strong { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.legal-nav a { padding: 8px 10px; border-radius: var(--r-sm); color: var(--muted); font-size: var(--fs-sm); transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.legal-nav a:hover { background: var(--surface-2); color: var(--ink); }
.legal-content { padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.legal-content h1 { max-width: 20ch; }
.legal-content h2 { margin: clamp(32px, 4vw, 48px) 0 14px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.legal-content h3 { margin: 24px 0 8px; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.8; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { color: var(--faint); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
footer { padding: clamp(40px, 5vw, 64px) 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; }
.footer-inner p { margin: 0; color: var(--faint); font-size: var(--fs-xs); }
.footer-inner > span { color: var(--faint); font-size: var(--fs-xs); white-space: nowrap; }

/* --------------------------------------------------------------------------
   18. Motion
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }

.dynamic-region { transition: opacity 0.3s var(--ease); }
.dynamic-updated { opacity: 0.55; }
.dynamic-empty { opacity: 0.6; }

.magnetic { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .feature-grid, .product-grid, .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 620px; }
  .site-preview { height: 360px; }
  .appointment-date-layout { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}

@media (max-width: 860px) {
  .section-head.split, .shop-intro, .contact-grid, .journal-feature { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { height: 66px; gap: 10px; }
  .nav-links {
    position: absolute; inset: 66px 0 auto 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 12px var(--gutter) 18px;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .menu-toggle {
    display: grid; place-items: center; gap: 5px;
    width: 40px; height: 40px; margin-left: auto;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  }
  .menu-toggle span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink); }
  .nav-cta { display: none; }
  .cart-trigger { display: none; }

  .feature-grid, .product-grid, .journal-grid { grid-template-columns: 1fr; }
  .site-preview { height: 300px; }
  .preview-content { left: 24px; bottom: 26px; }
  .hero-actions .button { flex: 1 1 auto; }
  .slot-grid { grid-template-columns: 1fr; }
  .card-row, .checkout-row { grid-template-columns: 1fr; }
  .shop-help { flex-direction: column; align-items: flex-start; }
  .shop-help .button { width: 100%; }
  .appointment-actions { flex-wrap: wrap; }
  .appointment-next { margin-left: auto; }
  .cart-drawer-panel { width: 100%; padding: 22px; }
}

@media (max-width: 420px) {
  .hero-actions .button { min-width: 0; padding: 0 16px; font-size: var(--fs-xs); }
  .theme-toggle { width: 36px; height: 36px; }
}
