/* ==========================================================================
   Glowforge Studio landing page
   Dark opening with a layered product scene, a benefits accordion, a dark feature
   tour, a project showcase, the tools list, FAQ, a closing CTA and the footer.
   ========================================================================== */

/* Atkinson Hyperlegible Next, the base Glowforge brand font: one self-hosted
   variable face (weight range 200 800, swap). OFL license alongside the file. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/AtkinsonHyperlegibleNext-Variable.abde1ad5cf78b9ac.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Glowforge source tokens */
  --magic-dark: #0a3036;
  --magic-button: #1e93a5;
  --magic-selected: #0f7484;
  --magic-base: #26b8ce;
  --magic-light: #a6e1eb;
  --logo-teal: #27b8ce; /* glowforge-logo.svg fill */
  --maple-light-original: #fdf5e9;
  /* the warm surface mix (≈ #FEFBF6) */
  --maple-light: color-mix(in srgb, var(--maple-light-original) 40%, #ffffff 60%);
  --slate-950: #050607;
  --slate-900: #12151a;
  --slate-700: #424448;
  --slate-500: #73777f;
  --slate-300: #d8dadd;
  --slate-200: #e8eaed;
  --slate-100: #f5f5f5;
  --white: #ffffff;
  /* Sunburst: the secondary yellow, used for the CTA and active chapter */
  --sunburst-base: #ffe56e;
  --sunburst-soft: color-mix(in srgb, var(--sunburst-base) 32%, var(--white) 68%);

  /* Roles */
  --surface: var(--white);
  --canvas: var(--slate-100);
  --border: var(--slate-200);
  --border-strong: var(--slate-300);
  --ink: var(--slate-900);
  --ink-soft: var(--slate-700);
  --label: color-mix(in srgb, var(--slate-500) 50%, var(--slate-700) 50%);
  --shadow-sm: 0 1px 2px rgba(5, 6, 7, 0.06), 0 1px 3px rgba(5, 6, 7, 0.04);
  --shadow-lg: 0 12px 40px rgba(5, 6, 7, 0.12), 0 0 0 1px rgba(5, 6, 7, 0.04);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --font-body: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --motion: 150ms ease; 

  /* Frame: 64px header, 1272px content rail */
  --bar-h: 64px;
  --rail: 1272px;
  --rail-pad: clamp(20px, 2.4vw, 32px);
}

:root { color-scheme: light; }
[hidden]:not([hidden="until-found" i]) { display: none !important; }
img { max-width: 100%; }
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-h) + 76px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: calc(var(--rail) + 2 * var(--rail-pad));
  margin-inline: auto;
  padding-inline: var(--rail-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 40;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transform: translateY(-300%);
}
.skip-link:focus-visible { transform: none; box-shadow: var(--shadow-lg); }

/* ---------- Controls ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: 500 14px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--motion), border-color var(--motion), color var(--motion);
}
.btn .arrow { font-size: 15px; }
.btn-tall { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-primary.btn-tall { height: 60px; padding: 0 32px; font-size: 18px; }

/* ---- Primary CTA ---------------------------------------------------------
   A flat, solid body with no gradient and no blur. Motion is crisp: a precise
   1px press and one sheen on hover or focus. Reduced motion: no travel at all. */
/* Every move is one precise, eased stroke that holds while hovered. The label
   is 16px (18px on the tall CTAs). */
.btn-primary {
  position: relative;
  isolation: isolate;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  /* The CTA takes the Sunburst yellow with the deep ink label (16:1), set in
   capitals with a little tracking */
  background: var(--sunburst-base);
  color: #04161a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* One soft band of light crosses the button left to right on hover or focus
   and leaves. overflow clips at the padding edge, so the primary drops the base
   1px transparent border: the clip then matches the visible rounded edge. The
   fill colour never changes. */
.btn-primary { overflow: hidden; border: 0; }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-72%);
  pointer-events: none;
}
.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  transform: translateX(100%);
  transition: transform 650ms cubic-bezier(0.33, 1, 0.68, 1);
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--border-strong); background: var(--surface); }
.btn-ghost:hover { background: var(--slate-100); }
.btn-outline { border-color: var(--border-strong); background: var(--surface); }
.btn-outline:hover { border-color: var(--magic-button); color: var(--magic-selected); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--magic-base);
  outline-offset: 2px;
}

.kicker {
  font: 600 12px/1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}
.text-link {
  font: 500 14px/1.3 var(--font-body);
  color: var(--magic-selected);
}
.section-head {
  font: 600 clamp(30px, 2.6vw, 46px)/1.12 var(--font-body);
  letter-spacing: -0.02em;
}
.section-lead {
  font: 400 clamp(16px, 1.05vw, 18px)/1.6 var(--font-body);
  color: var(--ink-soft);
  max-width: 460px;
}

/* ---------- Top bar ------------------------------------------------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 44px);
  padding: 0 var(--rail-pad);
  background: var(--canvas);
}
.logo { display: inline-flex; align-items: center; }
.topbar .logo img { height: 24px; width: auto; }
.topbar-nav { display: flex; align-items: center; gap: clamp(4px, 0.6vw, 10px); }
.topbar-nav a {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font: 500 14px/1 var(--font-body);
  text-decoration: none;
  color: var(--ink-soft);
  transition: background var(--motion), color var(--motion);
}
.topbar-nav a:hover { background: var(--slate-200); color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topbar .btn { height: 40px; white-space: nowrap; }
.menu-button { display: none; }

.site-menu {
  position: absolute;
  top: calc(var(--bar-h) - 6px);
  right: var(--rail-pad);
  display: flex;
  flex-direction: column;
  min-width: 240px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.site-menu[hidden] { display: none; }
.site-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font: 500 15px/1.2 var(--font-body);
  text-decoration: none;
}
.site-menu a:hover { background: var(--slate-100); }

/* ---------- Hero: centered opening ------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--bar-h) + clamp(48px, 6vh, 96px));
  /* clip sideways only: the screenshot's shadow may fall below the hero
     onto the light page instead of being cut off in a hard line */
  overflow-x: clip;
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding-inline: var(--rail-pad);
}
/* The product name reads at H2 scale, boxless, with the Glowforge mark leading
   it (a styled paragraph so the H1 stays first) */
.hero-product {
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  color: var(--ink);
}
.hero-product img { height: 0.95em; width: auto; }
.display {
  font: 600 clamp(38px, 3.5vw, 64px)/1.08 var(--font-body);
  letter-spacing: -0.03em;
  max-width: 14em;
}
.hero-copy .lead {
  /* wide enough that each sentence renders as its own line on desktop; phones wrap naturally */
  max-width: 820px;
  font: 400 clamp(16px, 1.1vw, 19px)/1.6 var(--font-body);
  color: var(--ink-soft);
}
.lead-line { display: block; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* A near-black stage, a soft light cone from above, and a teal glow pooled
   behind the product scene. */
.hero {
  color: var(--white);
  background:
    radial-gradient(ellipse 34% 70% at 50% -8%, rgba(255, 255, 255, 0.09), transparent 72%),
    /* A bottom spotlight in logo teal. A hot core sits on the hero's bottom edge
   just under the product frame, a wider bloom rises behind the frame's lower
   half, and the corners stay near-black so the light reads as a pool, not a
   band. The headline area is untouched. */
    radial-gradient(ellipse 38% 16% at 50% 100%, rgba(39, 184, 206, 0.62), rgba(39, 184, 206, 0.22) 48%, transparent 78%),
    radial-gradient(ellipse 66% 34% at 50% 100%, rgba(39, 184, 206, 0.30), rgba(15, 116, 132, 0.12) 50%, transparent 78%),
    radial-gradient(ellipse 58% 42% at 50% 74%, rgba(38, 184, 206, 0.20), rgba(15, 116, 132, 0.08) 45%, transparent 75%),
    radial-gradient(ellipse 120% 60% at 50% 100%, rgba(10, 48, 54, 0.85), transparent 70%),
    linear-gradient(180deg, #0b0e12 0%, var(--slate-950) 48%, #04161a 100%);
}
/* The screenshot bridges dark and light. The light pools as a dome centred
   under the screenshot, its crown behind the lower third of the frame (--seam). */
.hero {
  --shot: min(100vw - 2 * var(--rail-pad), 1180px);
  --seam: calc(var(--shot) * 0.625 * 0.32);
  --fade: calc(var(--seam) + var(--peek, 40px) + 120px);
  /* The pool is at least 90vw wide, so its bottom edge reaches both sides of the
   screen as near-solid page colour */
  --pool: max(calc(var(--shot) * 0.66), 90vw) calc(var(--seam) * 1.6 + var(--peek, 40px) + 120px);
  padding-bottom: var(--peek, 40px);
  background-image:
    linear-gradient(180deg,
      transparent,
      color-mix(in srgb, var(--canvas) 5%, transparent) 22%,
      color-mix(in srgb, var(--canvas) 18%, transparent) 42%,
      color-mix(in srgb, var(--canvas) 42%, transparent) 62%,
      color-mix(in srgb, var(--canvas) 72%, transparent) 80%,
      color-mix(in srgb, var(--canvas) 92%, transparent) 92%,
      var(--canvas)),
    radial-gradient(var(--pool) at 50% 100%,
      var(--canvas) 45%,
      color-mix(in srgb, var(--canvas) 80%, transparent) 60%,
      color-mix(in srgb, var(--canvas) 48%, transparent) 74%,
      color-mix(in srgb, var(--canvas) 20%, transparent) 87%,
      transparent 100%),
    radial-gradient(max(calc(var(--shot) * 0.74), 100vw) calc(var(--seam) * 1.9 + var(--peek, 40px) + 150px) at 50% 100%, rgba(39, 184, 206, 0.30) 55%, rgba(39, 184, 206, 0.12) 80%, transparent 100%),
    radial-gradient(ellipse 34% 70% at 50% -8%, rgba(255, 255, 255, 0.09), transparent 72%),
    radial-gradient(ellipse 38% 16% at 50% 100%, rgba(39, 184, 206, 0.62), rgba(39, 184, 206, 0.22) 48%, transparent 78%),
    radial-gradient(ellipse 66% 34% at 50% 100%, rgba(39, 184, 206, 0.30), rgba(15, 116, 132, 0.12) 50%, transparent 78%),
    radial-gradient(ellipse 58% 42% at 50% 74%, rgba(38, 184, 206, 0.20), rgba(15, 116, 132, 0.08) 45%, transparent 75%),
    radial-gradient(ellipse 120% 60% at 50% 100%, rgba(10, 48, 54, 0.85), transparent 70%),
    linear-gradient(180deg, #0b0e12 0%, var(--slate-950) 48%, #04161a 100%);
  background-color: var(--canvas);
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 100% var(--fade), 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}
/* Cover both sides of the fade's fractional bottom edge. A one-pixel cover
   ending at that same edge can round differently from the gradient at fractional
   display scales, exposing the dark stage beneath it. The overlap stays under
   the scene so its shadow still falls across the transition. */
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--canvas);
}
/* The mark and the product name take the logo's own teal (#27b8ce) */
.hero-product { color: var(--logo-teal); font-family: var(--font-body); }
.hero .display {
  background: linear-gradient(180deg, var(--white) 30%, #b9c4c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lead { color: rgba(255, 255, 255, 0.70); }
.hero .studio-ui {
  border-color: rgba(255, 255, 255, 0.10);
  /* lighter than on the all-dark stage: the lower third now sits on the
     light page, where a heavy black shadow read as a grey haze */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 120px -40px rgba(38, 184, 206, 0.40),
    0 30px 60px -24px rgba(4, 22, 26, 0.45);
}
/* the fixed header goes dark while it sits over the stage */
.topbar { transition: background var(--motion); }
.topbar.on-dark { background: rgba(5, 6, 7, 0.82); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.topbar.on-dark .topbar-nav a { color: rgba(255, 255, 255, 0.76); }
.topbar.on-dark .topbar-nav a:hover { background: rgba(255, 255, 255, 0.10); color: var(--white); }
.topbar.on-dark .menu-button { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: var(--white); }

/* ---------- The product scene (layered parallax) ------------------------ */
/* As you scroll, the hero's layers separate and tilt in 3D. The workspace
   screenshot is the base; the Cut layers card and the mandala's four cut layers
   sit over it in one preserve-3d stack. JS drives the tilt (rotateX on
   .scene-tilt) and the lift (--lift for the card, --rise and --sep for the
   mandala layers) from scroll position; at rest every value is 0, so the stack
   reads as one flat screenshot. */
.scene-stage {
  /* The camera distance scales with the scene (about two scene-widths, 2400px at
     1180px wide). A fixed 2400px left phones about seven scene-widths away,
     which flattened the tilt and the lift */
  perspective: calc(var(--shot) * 2.03);
  perspective-origin: 50% 40%;
  margin-top: clamp(32px, 4vh, 64px);
  padding-inline: var(--rail-pad);
  /* the screenshot's lower third now sits on the light page (--seam on
     .hero), so no dark band runs under it */
  padding-bottom: 0;
}
.scene-tilt {
  position: relative;
  width: min(100%, 1180px);
  margin-inline: auto;
  transform-style: preserve-3d;
  transform-origin: top center;
  /* no will-change: a promoted layer keeps the raster from its tilted pose, which
   leaves the upright screenshot soft; without it the browser re-rasters the
   image sharp at rest */
}
/* the card sits where the capture placed it on the cherry board
   (x 441, y 161, 800 x 587 on the 1440 x 900 base) */
.scene-card {
  position: absolute;
  left: 30.625%;
  top: 17.889%;
  width: 55.556%;
  height: auto;
  border-radius: 2% / 2.726%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.40);
  transform: translateZ(var(--lift, 0px));
}
/* The four cut layers, assembled in the card's (blanked) 3D preview, rise and
   fan apart: back to front, each a --sep step above the last. As they lift, each
   turns from its layer colour into wood: the wood is clipped to the layer's own
   cut shape and crossfades in over the first 40% of the lift. */
.scene-mandala {
  position: absolute;
  left: 48.33%;
  top: 24.94%;
  width: 20.14%;
  aspect-ratio: 290.263 / 287.281;
  transform-style: preserve-3d;
}
.scene-mandala .ml {
  position: absolute;
  inset: 0;
  /* each piece grows 15% as it lifts out */
  transform: translateZ(calc(var(--rise, 0px) + var(--sep, 0px) * var(--i))) scale(calc(1 + 0.15 * var(--p, 0)));
  filter: drop-shadow(0 calc(var(--p, 0) * 10px) calc(var(--p, 0) * 14px) rgba(0, 0, 0, calc(var(--p, 0) * 0.45)));
}
.scene-mandala .ml img,
.scene-mandala .ml::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-mandala .ml::after {
  content: "";
  background: var(--wood) center / cover;
  -webkit-mask: var(--shape) center / 100% 100% no-repeat;
  mask: var(--shape) center / 100% 100% no-repeat;
  opacity: var(--wood-in);
}
.scene-mandala .ml { --wood-in: min(1, calc(var(--p, 0) * 2.5)); }
.scene-mandala .ml img { opacity: calc(1 - var(--wood-in)); }
/* back to front: cherry, maple, walnut, maple */
.scene-mandala .ml:nth-child(1) { --i: 0; --shape: url(../assets/hero-layers/mandala-layer-1-back.bc52ee0b43c6a2da.svg); --wood: url(../assets/hero-layers/wood-cherry.54c68803d30bff3a.webp); }
.scene-mandala .ml:nth-child(2) { --i: 1; --shape: url(../assets/hero-layers/mandala-layer-2-middle.4d3b79f490026689.svg); --wood: url(../assets/hero-layers/wood-maple.29f08f77a236e66d.webp); }
.scene-mandala .ml:nth-child(3) { --i: 2; --shape: url(../assets/hero-layers/mandala-layer-3-middle.21b103c1dc04dbc1.svg); --wood: url(../assets/hero-layers/wood-walnut.642e59de4aa8eec9.webp); }
.scene-mandala .ml:nth-child(4) { --i: 3; --shape: url(../assets/hero-layers/mandala-layer-4-front-petals.06c163cba57b7626.svg); --wood: url(../assets/hero-layers/wood-maple.29f08f77a236e66d.webp); }
/* <picture> only swaps the source: display: contents keeps each image a direct
   child of the preserve-3d stack */
.scene-tilt picture { display: contents; }
.scene-phone-workspace, .scene-phone-sheet, .scene-phone-title { display: none; }
/* Phones: Studio's mobile layout, 390 x 667. The enlarged card stays centred
   and slightly overlaps the Images sheet at y 491. Its mandala scales with the
   card so it remains centred in the blank preview. */
@media (max-width: 499px) {
  .hero {
    --seam: calc(var(--shot) * 667 / 390 * 0.32);
  }
  /* The scene is much taller than on desktop, and tilting swings its bottom edge
     towards the camera. From here that edge stays on screen, about as much wider
     than the top as on desktop. */
  .scene-stage { perspective: calc(var(--shot) * 5.7); }
  .scene-tilt .studio-shot { aspect-ratio: 390 / 667; }
  .scene-phone-workspace {
    display: block;
    position: absolute;
    inset: 8.396% 1px 1px;
    background: url(../assets/hero-layers/wood-cherry.54c68803d30bff3a.webp) center / cover;
    border-radius: 0 0 15px 15px;
  }
  .scene-phone-sheet {
    display: block;
    position: absolute;
    inset: 73.613% 1px 1px;
    border-radius: 8% 8% 15px 15px / 18% 18% 15px 15px;
    background: url(../assets/hero-layers/workspace-mobile@2x.b1594e4553283045.webp) center bottom / 100% auto no-repeat;
  }
  .scene-phone-title {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 32%;
    right: 21%;
    height: 8.396%;
    color: #fff;
    font-size: clamp(10px, 3vw, 14px);
    font-weight: 600;
    white-space: nowrap;
  }
  .scene-card {
    left: 10%;
    top: 11%;
    width: 80%;
    border-radius: 4.3% / 3.07%;
  }
  .scene-mandala {
    left: 24.36%;
    top: 17.973%;
    width: 51.28%;
  }
}
/* The product frame rounds, borders and lifts the Studio screenshot (16:10, except
   the phone hero above, which sets its own) */
.studio-ui {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
  background: #1c2328;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ---------- Benefits: pinned, scroll-linked section ------------------------ */
/* The heading sits above a two-column grid. The right column holds one 4:3 card
   per benefit. js/landing.js derives every position from native scroll. */
.benefits {
  /* a short run in from the screenshot above, much shorter than out to the next section */
  padding: clamp(32px, 3vw, 48px) 0 clamp(72px, 7vw, 128px);
  /* clip (not hidden) keeps the 200px card drift from widening the page without creating a scroll container, so the sticky list still pins */
  overflow-x: clip;
}

/* The product name in the brand teal. The logo teal #27b8ce is only 2.2:1 on
   this light page, so it uses the deeper brand teal #0f7484 (5:1) to stay legible */
.benefits-head .kicker { text-transform: none; letter-spacing: 0.01em; font-size: clamp(17px, 1.3vw, 20px); color: var(--magic-selected); }
/* the byline runs the full width of the section */
.benefits-head .section-lead { max-width: none; }
.benefits-head {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}
/* the image column reads in proportion to the list, 480 | 620 pushed to the container edges */
.benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 620px);
  justify-content: space-between;
  gap: 64px;
  align-items: start;
}
.benefits-copy {
  position: sticky;
  top: calc(var(--bar-h) + 64px);
}
.benefit-list { display: grid; }
.benefit {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--motion);
}
.benefit:first-child { padding-top: 0; }
.benefit:last-child { border-bottom: 0; }
.benefit h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 clamp(20px, 1.75vw, 25px)/1.3 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 480px;
}
/* a plain stroke glyph per benefit, deliberately boxless so it reads as an emblem, not a numbered step or a control */
.benefit-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; color: var(--magic-selected); }
.benefit-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.benefit p {
  margin: 10px 0 0 42px;
  font: 400 clamp(15px, 1.2vw, 17.5px)/1.55 var(--font-body);
  color: var(--ink-soft);
  max-width: 438px;
  max-height: 8em;
  overflow: hidden;
}
/* Live state: all four rows stay open at full strength; a teal highlight fades
   onto a row at its card's scroll-derived opacity (--hl, set by JS). The row
   bleeds 20px left so its text stays on the heading's edge. */
.benefits.is-live .benefit {
  position: relative;
  isolation: isolate;
  margin-left: -20px;
  padding: clamp(8px, calc(3.6vh - 14px), 18px) 20px;
}
/* the pinned list has to fit one screen with all four bylines open, so its
   type and spacing also scale with the window height (unchanged at 900px
   tall and up); JS unpins the section if it still does not fit. JS measures
   that in the frame the class goes on, so none of this spacing may transition */
.benefits.is-live .benefit h3 { font-size: clamp(18px, min(1.75vw, 3.1vh), 25px); }
.benefits.is-live .benefit p { margin-top: clamp(4px, 0.9vh, 10px); font-size: clamp(14px, min(1.2vw, 2.2vh), 17.5px); }
.benefits.is-live .benefit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* the full brand light teal; body text (slate-700) holds 6.8:1 on it */
  background: var(--magic-light);
  opacity: var(--hl, 0);
}
/* inline per-benefit media: the stacked mobile treatment only */
.benefit-media { display: none; margin: 20px 0 0; }
.benefit-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
/* the card column: one card per benefit. Static (no JS, reduced motion,
   short viewports) it is a plain column of cards; JS writes the track,
   card and image transforms while .is-live */
.benefit-stage { min-width: 0; }
.benefit-track {
  display: grid;
  gap: 96px;
}
.benefit-stage figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.benefit-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Live, the section is a scroll track as tall as the card travel plus one
   screen. Its content pins under the top bar for exactly that travel, and the
   cards ride through a clipped window beside the list at native scroll speed
   (1px of scroll moves the track 1px), so there is no blank run before or after
   them. */
.benefits.is-live {
  padding: 0;
  height: calc(100vh - var(--bar-h) + var(--travel, 0px));
}
.benefits.is-live > .container {
  position: sticky;
  top: var(--bar-h);
  height: calc(100vh - var(--bar-h));
  display: flex;
  flex-direction: column;
  /* The image window is only as tall as a card plus its edge fades, and the
   heading and window sit as one group centred in the pinned screen */
  justify-content: center;
  padding-top: clamp(16px, calc(9vh - 36px), 64px);
  padding-bottom: clamp(16px, 3vh, 32px);
}
.benefits.is-live .benefits-head { flex: none; margin-bottom: clamp(20px, 3vh, 40px); }
.benefits.is-live .benefits-grid { flex: 0 1 520px; min-height: 0; align-items: stretch; }
/* the list is centred on the same line as the centred card */
.benefits.is-live .benefits-copy { position: static; align-self: center; }
.benefits.is-live .benefit-stage {
  overflow: hidden;
  /* the window reaches 200px past the column so a drifting card is not cut
     square; the section's overflow-x: clip still keeps the page width */
  margin-right: -200px;
  padding-right: 200px;
  /* a hard crop at the window edges */
}
.benefits.is-live .benefit-track { margin-left: auto; gap: 48px; will-change: transform; }
.benefits.is-live .benefit-stage figure { will-change: transform; }
.benefits.is-live .benefit-stage img { will-change: transform; }
/* below 900px: stacked rows, each with its own inline image; the list no
   longer pins and every row stays open */
@media (max-width: 899px) {
  .benefits-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .benefits-copy { position: static; }
  .benefits-head { margin-bottom: 20px; }
  .benefit-stage { display: none; }
  .benefit-media { display: block; }
  .benefit, .benefit:first-child { padding: 32px 0; }
}

/* ---------- Workspace tour: sticky tabs + pinned panels ----------------- */
/* The tour is its own band with hairline edges; the sticky chapter line carries
   the same tint so it stays seamless while pinned. */
.workspace {
  --tour-bg: color-mix(in srgb, var(--magic-light) 40%, var(--white) 60%);
  padding: clamp(56px, 5.5vw, 100px) 0 clamp(40px, 4vw, 72px);
  background: var(--tour-bg);
  border-block: 1px solid color-mix(in srgb, var(--magic-light) 70%, var(--white) 30%);
}
.ws-intro {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: clamp(28px, 3vw, 48px);
}
.ws-intro .section-lead { max-width: 560px; }
/* The sticky chapter line. Plain type on a hairline (no control box, no pill):
   numbered chapter anchors spread across the rail, and a flat teal progress fill
   that travels the hairline as the tour scrolls. The active marker is the
   secondary Sunburst under dark ink. */
.ws-line {
  position: sticky;
  top: var(--bar-h);
  z-index: 20;
  background: var(--tour-bg, var(--canvas));
  padding-top: 6px;
}
/* zero the browser's 40px list indent so the labels run flush end to end */
.chapters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chapters li { display: contents; }
.chapters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 2px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-xs);
}
/* names scale to 20px at 1440 wide, numbers to 16px; phones keep their own compact size below */
.ch-n {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  padding: 4px 6px;
  border-radius: 4px;
  font: 600 clamp(13px, 1.1vw, 16px)/1 var(--font-body);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--magic-selected);
  transition: background var(--motion), color var(--motion);
}
.ch-name {
  font: 600 clamp(15px, 1.4vw, 21px)/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color var(--motion);
}
.chapters a:hover .ch-name { color: var(--ink); }
.chapters a.active .ch-n { background: var(--sunburst-base); color: var(--magic-dark); }
.chapters a.active .ch-name { color: var(--ink); }
.ws-track {
  position: relative;
  height: 2px;
  margin-top: 2px;
  background: var(--border);
  border-radius: 1px;
}
.ws-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--magic-button), var(--magic-base));
}
.ws-tip {
  position: absolute;
  top: 50%; right: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--white);
  box-shadow: 0 0 0 2px var(--sunburst-base);
  opacity: 0;
}
.ws-line.is-live .ws-tip { opacity: 1; }
/* On screens with the room, the intro and the chapter line pin together as one
   block, and the Studio panels pin below it, sized so they never run off the
   bottom. JS measures the block into --ws-pin-h. Smaller screens keep only the
   chapter line pinned (the wrapper drops out of the box tree). */
.ws-pin { display: contents; }
@media (min-width: 900px) and (min-height: 700px) {
  .ws-pin {
    display: block;
    position: sticky;
    top: var(--bar-h);
    z-index: 20;
    padding-top: 12px;
    background: var(--tour-bg);
  }
  .ws-pin .ws-intro { margin-bottom: clamp(14px, 2.2vh, 28px); }
  .ws-pin .ws-line { position: static; padding-top: 0; }
  .ws-ui { top: calc(var(--bar-h) + var(--ws-pin-h, 200px) + 24px); }
  .ws-ui .ws-video {
    width: min(100%, calc((100vh - var(--bar-h) - var(--ws-pin-h, 200px) - 48px) * 3 / 2));
    margin-left: auto;
  }
  /* chapter links land below the pinned block (html already pads 76px) */
  .ws-item { scroll-margin-top: calc(var(--ws-pin-h, 200px) - 56px); }
}

/* Each area opens with an editorial chapter head: an oversized outlined
   numeral beside the chapter kicker, on its own hairline with a short
   laser accent — the same line language as the progress track. */
.ch-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: clamp(24px, 3vh, 40px);
}
.ch-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 72px; height: 3px;
  border-radius: 1.5px;
  background: linear-gradient(90deg, var(--magic-button), var(--magic-base));
}
.ch-num {
  font: 600 clamp(30px, 2.6vw, 44px)/0.95 var(--font-body);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--magic-light);
}
@supports ((-webkit-text-stroke: 1px black) or (text-stroke: 1px black)) {
  .ch-num { color: transparent; -webkit-text-stroke: 1.5px var(--magic-button); }
}
/* the chapter name scales up to a real chapter title */
.ch-head .kicker { font-size: clamp(18px, 1.6vw, 26px); letter-spacing: 0.06em; color: var(--ink); }

/* each block sizes to its own content (chapter head + panel) */
.ws-item {
  padding-top: clamp(20px, 2.6vh, 44px);
  padding-bottom: clamp(20px, 2.6vh, 44px);
}
.mobile-section-cta { display: none; }
.ws-cols {
  display: grid;
  /* a larger panel column, tighter gaps and a shorter pinned span, while the sticky panel still pins through its copy */
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(36px, 4vw, 64px);
  align-items: start;
}
.ws-copy { display: grid; gap: 16px; justify-items: start; max-width: 520px; }
.ws-head { font: 600 clamp(28px, 2.3vw, 40px)/1.14 var(--font-body); letter-spacing: -0.02em; }
.ws-lead { font: 400 16px/1.6 var(--font-body); color: var(--ink-soft); }
.ws-feats { display: grid; gap: 24px; margin-top: 14px; }
.ws-feats li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; align-items: start; }
.feat-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--magic-selected);
}
.feat-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* larger feature headlines and descriptions beside the panel */
.ws-feats h4 { font: 600 18px/1.4 var(--font-body); }
.ws-feats p { margin-top: 4px; font: 400 16px/1.6 var(--font-body); color: var(--ink-soft); }

/* The pinned panel: a video of Studio doing what the chapter describes. The box
   keeps the video's 3:2 from the first paint, so the poster and the video fill
   the same space */
.ws-ui {
  position: sticky;
  top: max(calc(var(--bar-h) + 48px), calc(50vh - 280px));
}
.ws-video { position: relative; margin: 0; }
.ws-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(56px, 6vw, 80px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.ws-play[hidden] { display: none; }
.ws-play svg { width: 100%; height: 100%; opacity: 0.65; }
.ws-play circle { fill: var(--magic-dark); fill-opacity: 0.18; stroke: currentColor; stroke-width: 1.5; }
.ws-play path { fill: currentColor; }
.ws-play:hover svg, .ws-play:focus-visible svg { opacity: 1; }
.ws-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--magic-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
/* The tour sits on the brand's Magic Dark teal (#0A3036), for a dark, light,
   dark, light rhythm down the page. */
.workspace {
  --tour-bg: var(--magic-dark);
  --tour-ink-soft: rgba(255, 255, 255, 0.70);
  --tour-line: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-block-color: rgba(255, 255, 255, 0.06);
}
.workspace .section-head {
  background: linear-gradient(180deg, var(--white) 30%, #b9c4c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.workspace .section-lead,
.workspace .ws-lead,
.workspace .ws-feats p { color: var(--tour-ink-soft); }
.workspace .ch-n { color: var(--magic-base); }
.workspace .ch-name { color: rgba(255, 255, 255, 0.62); }
.workspace .chapters a:hover .ch-name,
.workspace .chapters a.active .ch-name { color: var(--white); }
.workspace .ws-track { background: var(--tour-line); }
.workspace .ch-head { border-bottom-color: var(--tour-line); }
.workspace .ch-head .kicker { color: var(--white); }
@supports ((-webkit-text-stroke: 1px black) or (text-stroke: 1px black)) {
  .workspace .ch-num { -webkit-text-stroke-color: var(--magic-base); }
}
.workspace .feat-icon {
  background: rgba(38, 184, 206, 0.14);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--magic-base);
}

/* ---------- Made with it: community showcase ---------------------------- */
.made { padding: clamp(56px, 5.5vw, 100px) 0; }
.made .kicker { margin-bottom: 10px; }
/* An even grid of community project photos on a warm maple band: three
   across, every tile the same size. Flat cards, no lift or glow. */
.gallery {
  margin-top: clamp(24px, 2.4vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  padding: clamp(14px, 1.8vw, 28px);
  background: var(--maple-light);
  border: 1px solid color-mix(in srgb, var(--maple-light-original) 70%, var(--slate-300) 30%);
  border-radius: 24px;
}
.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tile figure { aspect-ratio: 4 / 3; overflow: hidden; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-copy { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 18px 16px; }
.tile-head { font: 600 clamp(16px, 1.25vw, 19px)/1.3 var(--font-body); letter-spacing: -0.01em; color: var(--ink); }
.tile-byline { font: 400 15px/1.45 var(--font-body); color: var(--ink-soft); }
/* the maker's credit sits at the foot of every card, so the row lines up */
.tile-credit {
  margin-top: auto;
  padding-top: 4px;
  font: 600 14px/1.4 var(--font-body);
  color: var(--magic-selected);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.tile-credit:hover { text-decoration: underline; }
.gallery-controls { display: none; align-items: center; gap: 12px; margin-top: 14px; }
.gallery-progress { flex: 1; max-width: 120px; height: 3px; border-radius: 3px; background: var(--slate-300); overflow: hidden; }
.gallery-progress span { display: block; height: 100%; background: var(--magic-selected); border-radius: inherit; }
.gallery-count { margin-left: auto; white-space: nowrap; font: 400 12px/1.4 var(--font-body); font-variant-numeric: tabular-nums; color: var(--label); }
.gallery-arrows { display: flex; gap: 8px; }
.gallery-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.gallery-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gallery-arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.gallery-arrow:not([aria-disabled="true"]):hover { background: var(--surface); }

/* ---------- Tools: the grouped feature index ----------------------------- */
/* The Tools section has its own colour band, a lighter tint of the tour's teal, with matching hairline edges */
.tools {
  --tools-rule: color-mix(in srgb, var(--magic-light) 55%, var(--white) 45%);
  padding: clamp(72px, 7vw, 128px) 0;
  background: color-mix(in srgb, var(--magic-light) 22%, var(--white) 78%);
  border-block: 1px solid var(--tools-rule);
}
.tools-grid { display: grid; gap: clamp(28px, 3vw, 48px); }
/* The kicker, heading and byline stack on the left, and the CTA sits on the
   right edge, centred on the heading and byline together */
.tools-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "kicker kicker" "head actions" "lead actions";
  gap: 14px clamp(32px, 5vw, 96px);
}
.tools-head .kicker { grid-area: kicker; }
.tools-head .section-head { grid-area: head; }
.tools-head .section-lead { grid-area: lead; max-width: 560px; }
/* the toolset CTA takes the tall 60px size and sits on the right edge */
.tools-actions { grid-area: actions; display: flex; justify-content: flex-end; align-self: center; }
/* The full inventory on one white sheet. Each category is a band: a narrow
   column with its photo and, beneath it, its header, beside one column of every
   feature as a row (its own icon, bold name, short description). Nothing is
   collapsed: the length is the point. */
.feature-list {
  display: grid;
  padding: 0 clamp(20px, 3vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tool-group {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "media list" "head list";
  gap: 18px clamp(32px, 5vw, 88px);
  padding: clamp(36px, 3.4vw, 56px) 0;
}
.tool-group + .tool-group { border-top: 1px solid var(--border); }
/* the category photo, in the showcase gallery's tile treatment */
.group-media {
  grid-area: media;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slate-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.group-media img { width: 100%; height: 100%; object-fit: cover; }
.group-media--photo { position: relative; background: #fff; }
.photo-print {
  position: absolute;
  left: 5%;
  bottom: 3%;
  width: 44%;
  padding: 1.8% 1.8% 3.6%;
  background: #fffdf8;
  transform: rotate(-6deg);
  box-shadow: 1px 2px 3px rgb(0 0 0 / 18%), 4px 8px 12px rgb(0 0 0 / 24%);
}
.group-media .photo-print img { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.group-head {
  grid-area: head;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-self: start;
}
.tool-glyph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature-list h3 { font: 600 20px/1.3 var(--font-body); letter-spacing: -0.01em; color: var(--ink); }
/* one column of hairline rows, one row per feature */
.tool-names {
  grid-area: list;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tool-names li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  font: 400 16px/1.45 var(--font-body);
  color: var(--ink);
}
.tool-names li + li { border-top: 1px solid var(--border); }
.tool-names li:first-child { padding-top: 0; }
.tool-glyph {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--magic-light) 22%, var(--white) 78%);
  color: var(--magic-selected);
}
.tool-glyph svg { width: 20px; height: 20px; }
/* the feature's name, bold, then its short description one step quieter */
.tool-title { font-weight: 600; color: var(--ink); }
.tool-detail { color: var(--ink-soft); }

/* ---------- FAQ ----------------------------------------------------------- */
.faq { padding: clamp(56px, 6vw, 110px) 0 clamp(72px, 7vw, 128px); }
/* one centred list of collapsed questions that expand in place */
.faq-grid { max-width: 880px; }
/* a visible centred heading */
.faq-head { text-align: center; margin-bottom: clamp(24px, 2.6vw, 40px); }
.faq-list { display: grid; }
.faq-list details { border-top: 1px solid var(--border-strong); }
.faq-list details:last-child { border-bottom: 1px solid var(--border-strong); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 6px;
  font: 600 16px/1.4 var(--font-body);
  border-radius: var(--radius-xs);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font: 400 22px/1 var(--font-body);
  color: var(--label);
  flex: none;
}
/* a true minus sign (U+2212) — a toggle glyph, not a dash in copy */
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  padding: 0 6px 24px;
  font: 400 16px/1.6 var(--font-body);
  color: var(--ink-soft);
  max-width: 560px;
}
.faq-list details p a { color: var(--magic-selected); }
/* an expanded answer sits on a soft card */
.faq-list details[open] {
  background: var(--maple-light);
  border-top-color: transparent;
  border-radius: var(--radius-md);
}
.faq-list details[open] + details { border-top-color: transparent; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: var(--surface); padding: clamp(48px, 4.4vw, 72px) 0 32px; border-top: 1px solid var(--border); }
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 32px clamp(24px, 3vw, 56px);
  padding-bottom: clamp(32px, 3vw, 48px);
  border-bottom: 1px solid var(--border-strong);
}
.footer-col { display: grid; align-content: start; gap: 10px; font: 400 14px/1.55 var(--font-body); color: var(--ink-soft); }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { text-decoration: none; color: var(--ink); }
.footer-col a:hover { color: var(--magic-selected); }
.footer-label { font: 600 14px/1.4 var(--font-body); color: var(--label); }
.footer-contact .footer-label + p, .footer-contact p + .footer-label { margin-top: 4px; }
.footer-contact p { max-width: 260px; }
.footer-col a.footer-accent { color: var(--magic-selected); }
.footer-social { display: flex !important; flex-wrap: wrap; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); }
.footer-social svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.footer-signup {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-top: 12px;
  padding: 0 22px;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--magic-selected);
  font: 600 14px/1 var(--font-body);
  color: var(--white) !important;
}
.footer-signup:hover { background: var(--magic-dark); }
.footer-base {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px 24px;
  padding-top: 28px;
}
.footer-base .logo img { height: 24px; width: auto; }
.footer-made { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font: 400 14px/1.4 var(--font-body); color: var(--ink-soft); }
.footer-heart { width: 15px; height: 14px; fill: var(--magic-base); }
.footer-copy { font: 400 12px/1.5 var(--font-body); color: var(--label); }
.footer-legal { justify-self: end; display: flex; flex-wrap: wrap; gap: 4px 0; font: 400 12px/1.5 var(--font-body); }
.footer-legal a { color: var(--label); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--ink); }
.footer-legal a + a::before { content: "|"; display: inline-block; margin: 0 8px; color: var(--border-strong); text-decoration: none; }

/* ---------- Closing CTA: the hero's dark stage, reprised ----------------- */
.closing {
  position: relative;
  padding: clamp(88px, 9vw, 160px) 0;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(ellipse 34% 80% at 50% -10%, rgba(255, 255, 255, 0.08), transparent 72%),
    radial-gradient(ellipse 50% 60% at 50% 62%, rgba(38, 184, 206, 0.26), rgba(15, 116, 132, 0.08) 50%, transparent 78%),
    linear-gradient(180deg, #0b0e12 0%, var(--slate-950) 55%, #04161a 100%);
}
.closing-in { display: grid; justify-items: center; gap: 22px; }
.closing-mark { width: auto; height: clamp(40px, 3.4vw, 56px); }
.closing-head {
  font-size: clamp(34px, 3.4vw, 60px);
  background: linear-gradient(180deg, var(--white) 30%, #b9c4c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.closing-lead { max-width: 680px; font: 400 clamp(16px, 1.1vw, 19px)/1.6 var(--font-body); color: rgba(255, 255, 255, 0.70); }
.closing .hero-actions { margin-top: 6px; }

/* ---------- Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .scene-tilt { transform: none; }
  .btn, .topbar-nav a, .chapters a, .ch-n, .ch-name { transition: none; }
  .benefit { transition: none; }
  /* the CTA stops moving: no sheen sweep, no arrow nudge, no press travel;
     hover answers instantly with a lighter flat fill instead */
  .btn-primary, .btn-primary::before { transition: none; animation: none; }
  .ws-tip { display: none; }
  .btn-primary::before { display: none; }
  .btn-primary:hover,
  .btn-primary:focus-visible { background: color-mix(in srgb, var(--sunburst-base) 70%, var(--white) 30%); }
  .btn-primary:active { transform: none; }
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1099px) {
  .topbar-nav { display: none; }
  .menu-button { display: inline-flex; }
  .tool-group { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-item {
    padding-top: clamp(28px, 4vh, 48px);
    padding-bottom: clamp(28px, 4vh, 48px);
  }
  .ws-cols { grid-template-columns: minmax(0, 1fr); }
  .ws-ui { position: static; }
}
@media (max-width: 759px) {
  .mobile-section-cta { display: flex; justify-content: center; position: relative; margin: 32px var(--rail-pad) 0; }
  .ws-deck {
    --tour-card-width: calc(100vw - 72px);
    --tour-gutter: 12px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--tour-card-width);
    gap: 12px;
    padding: 12px var(--tour-gutter) 20px;
    padding-inline-end: calc(100vw - var(--tour-card-width) - var(--tour-gutter));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--tour-gutter);
    scrollbar-width: none;
  }
  .ws-deck::-webkit-scrollbar { display: none; }
  .ws-deck .ws-item {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 20px;
    border: 1px solid rgba(38, 184, 206, 0.45);
    border-radius: var(--radius-lg);
    background: rgb(0 0 0 / 10%);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-width: 0;
  }
  .ws-deck .ch-head { margin-bottom: 20px; }
  .ws-deck .ws-cols { flex: 1; grid-template-rows: 1fr auto; gap: 24px; }
  /* Let the demo reach the card edges while keeping the copy inset. */
  .ws-deck .ws-ui { margin: 0 -20px -20px; }
  .ws-deck .ws-video {
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .ws-deck .ws-video video {
    /* Crop the 56px side framing recorded into each 864px-wide video.
       Keep its full height and original proportions as the demo plays. */
    width: calc(100% * 864 / 752);
    max-width: none;
    margin-inline: calc(-100% * 56 / 752);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ws-deck .ws-head { font-size: 24px; }
  .ws-deck .ws-feats { gap: 18px; margin-top: 4px; }
  .ws-deck .ws-feats li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .ws-deck .feat-icon { width: 28px; height: 28px; }
  .ws-deck .ws-feats h4 { font-size: 16px; }
  .ws-deck .ws-feats p { font-size: 14px; line-height: 1.5; }
  /* phones: a 24px side gutter, with the primary CTA kept in the compact header */
  :root { --rail-pad: 24px; --mobile-reel-card-width: min(308px, calc(100vw - 82px)); }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar .btn-primary { padding: 0 14px; }
  .site-menu { left: 16px; right: 16px; }
  .display { font-size: clamp(32px, 9.6vw, 40px); }
  /* calm the section headings on phones */
  .section-head { font-size: 26px; }
  .hero-actions { gap: 16px; }
  .gallery {
    --community-card-width: var(--mobile-reel-card-width);
    position: relative;
    width: calc(100% + 2 * var(--rail-pad));
    margin-inline: calc(-1 * var(--rail-pad));
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: var(--community-card-width);
    gap: 12px;
    padding: 12px var(--rail-pad);
    /* Leave room for the final card to reach the same inset as the first. */
    padding-inline-end: calc(100vw - var(--community-card-width) - var(--rail-pad));
    border-inline: 0;
    border-radius: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--rail-pad);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .tile { scroll-snap-align: start; }
  .gallery .tile figure { position: relative; flex-shrink: 0; }
  .gallery .tile img { position: absolute; inset: 0; }
  .gallery .tile-copy { min-height: 181px; padding: 14px 16px 16px; }
  .gallery .tile-head { font-size: 17px; }
  .gallery-controls { display: flex; }
  .tools-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kicker" "head" "lead" "actions"; }
  .tools-actions { justify-content: flex-start; }
  /* The row keeps the base flex space-between: content-sized labels, first flush
   left, last flush right, equal gaps between. The numeral chips stay a
   desktop/tablet flourish. */
  .ch-n { display: none; }
  .ch-name { font-size: 10.5px; letter-spacing: 0.04em; }
  .chapters { gap: 4px; }
  .chapters a { gap: 0; padding: 4px 0; }
  /* the sunburst marker moves onto the name at phone widths */
  .chapters a.active .ch-name { background: var(--sunburst-base); color: var(--magic-dark); padding: 4px 5px; margin: -4px -5px; border-radius: 4px; }
  .workspace .chapters a.active .ch-name { color: var(--magic-dark); }
  .ch-head { gap: 10px; }
  /* phones: each band stacks, photo then header over its one column of features */
  .feature-list { padding: 0 18px; }
  .tool-group { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "media" "head" "list"; padding: 28px 0; }
  .group-media { aspect-ratio: 16 / 9; }
  .group-media--project img { object-fit: contain; }
  .group-media--photo .photo-print { width: 34%; }
  .feature-list h3 { font-size: 18px; }
  .tool-names li { align-items: start; }
  .tool-glyph { margin-top: -6px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { grid-template-columns: minmax(0, 1fr); }
  .footer-made, .footer-legal { justify-self: start; }
  .footer-contact, .footer-col:last-child { grid-column: 1 / -1; }
  .footer-legal { gap: 6px 16px; }
  .footer-legal a + a::before { content: none; }
}
/* narrow phones: the header row needs about 390px at its normal spacing, so
   tighten the gaps and button padding to keep the logo at full size */
@media (min-width: 360px) and (max-width: 399px) {
  .topbar, .topbar-right { gap: 8px; }
  .topbar .btn-primary, .topbar .menu-button { padding: 0 11px; }
}
/* tightest phones: drop the header CTA rather than overflow the topbar */
@media (max-width: 359px) {
  .topbar .btn-primary { display: none; }
}
