@font-face {
  font-family: Bricolage;
  src: url("/assets/bricolage.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Atkinson;
  src: url("/assets/atkinson.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --cream: #f6f1e6;
  --cream-2: #fffcf4;
  --linen: #ede5d3;
  --ink: #1d2f26;
  --green: #24513c;
  --green-deep: #173628;
  --green-soft: #dfe7d6;
  --muted: #66716a;
  --line: #e3dac7;
  --coral: #e0806f;
  --coral-deep: #c9634f;
  --coral-soft: #f8d7cf;
  --gold: #e3b955;
  --leaf: #7aa05e;
  --wood: #c99a68;
  --heading: Bricolage, "Segoe UI", Arial, sans-serif;
  --body: Atkinson, "Segoe UI", Arial, sans-serif;
  --radius: 28px;
  --shadow-soft: 0 24px 60px -30px rgba(29, 47, 38, 0.35);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --linen-lines: repeating-linear-gradient(
      0deg,
      rgba(90, 70, 40, 0.045) 0 1px,
      transparent 1px 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(90, 70, 40, 0.045) 0 1px,
      transparent 1px 4px
    );
  --linen-lines-dark: repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 4px
    );
}

/* Atkinson has no Vietnamese glyphs; Bricolage covers the full alphabet. */
html[lang="vi"] {
  --body: Bricolage, "Segoe UI", Roboto, Arial, sans-serif;
}
html[lang="vi"] h1 {
  font-size: clamp(48px, 6.2vw, 86px);
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  margin: 0;
  background: var(--cream);
  background-image: var(--linen-lines);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body:has(dialog[open]) {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  color: var(--green-deep);
}
h2 {
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 780;
}
h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
p {
  color: var(--muted);
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
.section {
  padding-block: clamp(72px, 9vw, 120px);
}
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral-deep);
}
.eyebrow .icon {
  width: 18px;
  height: 18px;
}
.eyebrow.light {
  color: var(--gold);
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--green);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition:
    background 0.35s,
    box-shadow 0.35s,
    backdrop-filter 0.35s;
}
.header.is-scrolled {
  background: rgba(246, 241, 230, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(29, 47, 38, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-weight: 750;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  flex-shrink: 0;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(23, 54, 40, 0.25);
}
.desktop-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.desktop-nav a {
  position: relative;
  padding: 8px 0;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--coral) 0 6px,
    transparent 6px 10px
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.desktop-nav a:hover::after {
  transform: scaleX(1);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px 12px 22px;
  font-family: var(--heading);
  font-weight: 650;
  font-size: 15px;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}
.button .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(23, 54, 40, 0.7);
}
.button:hover .icon {
  transform: translateX(3px);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.mobile-nav {
  display: none;
}
.mobile-nav[hidden] {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-top: 130px;
  padding-bottom: 96px;
  min-height: 100svh;
  display: grid;
  align-items: center;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero::before {
  width: 640px;
  height: 640px;
  right: -140px;
  top: -80px;
  background: radial-gradient(
    closest-side,
    rgba(223, 231, 214, 0.9),
    transparent
  );
}
.hero::after {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -120px;
  background: radial-gradient(
    closest-side,
    rgba(248, 215, 207, 0.85),
    transparent
  );
}
.hero-threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.thread-line {
  fill: none;
  stroke: rgba(201, 99, 79, 0.32);
  stroke-width: 2;
  stroke-dasharray: 14 10;
  animation: thread-drift 22s linear infinite;
}
.thread-line-2 {
  stroke: rgba(36, 81, 60, 0.22);
  animation-duration: 30s;
  animation-direction: reverse;
}
@keyframes thread-drift {
  to {
    stroke-dashoffset: -480;
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
h1 {
  font-size: clamp(56px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-top: 22px;
}
.stitch-word {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
.stitch-text {
  color: transparent;
  background: repeating-linear-gradient(
    100deg,
    #c9634f 0 2px,
    #f2a697 2px 4px
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(90, 30, 20, 0.35));
}
.stitch-word.is-stitched .stitch-text {
  background: none;
  filter: none;
}
.hero-copy {
  position: relative;
}
.stitch-svg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.stitch-svg text {
  font-family: var(--heading);
  font-size: clamp(56px, 7.4vw, 104px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.baseline-probe {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}
.hero-lead {
  max-width: 460px;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 28px;
}
.store-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.store-buttons.centered {
  justify-content: center;
}
.store-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green-deep);
  color: #fbf7ec;
  border-radius: 16px;
  padding: 10px 22px 10px 18px;
  min-height: 62px;
  min-width: 178px;
  box-shadow: 0 14px 30px -14px rgba(23, 54, 40, 0.7);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s;
}
.store-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.store-button:hover::after {
  transform: translateX(120%);
}
.store-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px -16px rgba(23, 54, 40, 0.75);
}
.store-button span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-button small {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.store-button strong {
  font-family: var(--heading);
  font-size: 21px;
  font-weight: 650;
  margin-top: 3px;
  letter-spacing: -0.01em;
}
.store-icon {
  width: 26px;
  height: 28px;
  flex-shrink: 0;
}
.store-icon.apple {
  width: 30px;
  height: 32px;
}
.store-button.is-soon,
.dock-button.is-soon {
  cursor: default;
}
.store-button.is-soon:hover {
  transform: none;
  box-shadow: 0 14px 30px -14px rgba(23, 54, 40, 0.7);
}
.store-button.is-soon::after {
  display: none;
}
.store-button-light {
  background: var(--cream);
  color: var(--green-deep);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6);
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-top: 18px;
  color: var(--muted);
}
.hero-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

/* hero art */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}
.hoop-shadow {
  position: absolute;
  inset: 12% 6% -4%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(23, 54, 40, 0.32),
    transparent 74%
  );
  filter: blur(22px);
  transform: translateY(5%);
}
.hoop-wrap {
  position: relative;
  animation: hoop-float 9s ease-in-out infinite;
}
@keyframes hoop-float {
  50% {
    transform: translateY(-8px) rotate(0.4deg);
  }
}
.hoop-svg {
  width: 100%;
  height: auto;
  display: block;
}
.stitches {
  transition: opacity 0.5s;
}
.stitches.is-fading {
  opacity: 0;
}
.spool {
  transform-box: fill-box;
  transform: translate(
      calc(var(--x) + var(--mx, 0) * var(--depth, 1) * 14px),
      calc(var(--y) + var(--my, 0) * var(--depth, 1) * 14px)
    )
    rotate(var(--r));
  transition: transform 0.9s var(--ease-out);
}
.spool-thread {
  transition: fill 0.5s;
}
.thread-path {
  transition: stroke 0.5s;
}
.needle {
  filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, 0.35));
  transition: opacity 0.4s;
}
.needle.is-hidden,
.thread-path.is-hidden {
  opacity: 0;
}
.parallax {
  transform: translate(
    calc(var(--mx, 0) * var(--depth, 1) * 12px),
    calc(var(--my, 0) * var(--depth, 1) * 12px)
  );
  transition: transform 0.9s var(--ease-out);
}
.playback {
  position: absolute;
  left: 50%;
  bottom: -4%;
  transform: translateX(-50%);
  width: min(400px, 94%);
  background: rgba(255, 252, 244, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(29, 47, 38, 0.1);
  border-radius: 22px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.play-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition:
    transform 0.3s var(--ease-out),
    background 0.3s;
}
.play-toggle:hover {
  transform: scale(1.06);
  background: var(--green);
}
.play-toggle .icon {
  width: 22px;
  height: 22px;
}
.play-toggle[aria-pressed="true"] .icon-play,
.play-toggle[aria-pressed="false"] .icon-pause {
  display: none;
}
.playback-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.playback-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.playback-count strong {
  font-family: var(--heading);
  font-size: 24px;
  line-height: 1;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
  min-width: 3.4ch;
}
.playback-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  margin: 0;
  cursor: pointer;
}
.playback-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 8px,
    transparent 8px 12px
  );
}
.playback-range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 8px,
    transparent 8px 12px
  );
}
.playback-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.playback-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.threads {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.thread {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.thread i {
  width: 12px;
  height: 16px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    180deg,
    var(--c) 0 2px,
    color-mix(in srgb, var(--c), #000 22%) 2px 3px
  );
  box-shadow:
    0 -2px 0 0 var(--wood),
    0 2px 0 0 var(--wood);
}
.thread.is-active {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
  transform: translateY(-1px);
}
.thread.is-done {
  color: var(--ink);
  border-color: rgba(36, 81, 60, 0.35);
}
.file-tag {
  position: absolute;
  top: 3%;
  left: -3%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  color: var(--green);
}
.file-tag span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.file-tag strong {
  font-family: var(--heading);
  font-weight: 650;
  color: var(--green-deep);
}
.file-tag small {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- file formats: mini hoops on a thread ---------- */
.formats {
  position: relative;
  background: var(--green-soft);
  background-image: var(--linen-lines);
  padding-block: 64px 76px;
  border-block: 1px dashed rgba(36, 81, 60, 0.28);
  overflow: hidden;
}
.formats-heading {
  text-align: center;
  margin-bottom: 40px;
}
.formats-heading h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-top: 8px;
}
.formats-rail {
  position: relative;
}
.formats-line {
  position: absolute;
  left: -10vw;
  width: 120vw;
  top: 6px;
  height: 6px;
  pointer-events: none;
}
.formats-line path {
  fill: none;
  stroke: #b98455;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 7 5;
  stroke-linecap: round;
}
.format-list {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.format-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 122px;
}
.format-pin {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 24px;
  border-radius: 4px 4px 5px 5px;
  background: linear-gradient(#e9caa0, #c48f5c);
  box-shadow:
    inset 0 -6px 0 rgba(70, 45, 20, 0.12),
    0 0 0 1px rgba(70, 45, 20, 0.4),
    0 8px 12px -6px rgba(0, 0, 0, 0.45);
}
.format-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #8f99a3;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35);
}
.format-swing {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -4px;
  transform-origin: top center;
  transform: rotate(var(--tilt, 0deg));
  animation: sway var(--sway, 5.5s) ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.7s);
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(calc(var(--tilt, 0deg) - 2.2deg));
  }
  50% {
    transform: rotate(calc(var(--tilt, 0deg) + 2.2deg));
  }
}
.format-thread {
  width: 2px;
  height: 34px;
  background: linear-gradient(#b98455, var(--coral-deep));
  opacity: 0.85;
}
.format-hoop {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 7px solid transparent;
  background:
    radial-gradient(circle at 45% 38%, #fdf9ef, #efe6d2) padding-box,
    linear-gradient(135deg, #e6c48f, #c48f5c 55%, #dfb47c) border-box;
  box-shadow:
    inset 0 0 0 2px rgba(180, 127, 80, 0.85),
    0 0 0 1px rgba(70, 45, 20, 0.35),
    0 18px 28px -14px rgba(23, 54, 40, 0.55);
  display: grid;
  place-items: center;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s;
}
.format-hoop::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: var(--linen-lines);
  pointer-events: none;
}
.format-hoop::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 24px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: linear-gradient(#e6c48f, #c48f5c);
  box-shadow:
    0 0 0 1px rgba(70, 45, 20, 0.4),
    inset 0 -3px 0 rgba(70, 45, 20, 0.1);
}
.format-svg {
  position: relative;
  width: 84px;
  height: 84px;
  overflow: visible;
}
.format-svg text {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.format-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--coral-deep);
}
.format-hoop.is-stitched .format-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  inset: auto;
}
.format-item:hover .format-hoop {
  transform: scale(1.07);
  box-shadow:
    inset 0 0 0 2px rgba(180, 127, 80, 0.85),
    0 0 0 1px rgba(70, 45, 20, 0.35),
    0 26px 34px -14px rgba(23, 54, 40, 0.6);
}
.format-item:hover .format-swing {
  animation-play-state: paused;
}
.format-note {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}
.formats-footnote {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- good to know ---------- */
.faq {
  padding-top: 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.faq-grid details {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 22px;
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
.faq-grid details[open] {
  box-shadow: var(--shadow-soft);
  border-color: rgba(201, 99, 79, 0.45);
}
.faq-grid summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 18px 34px 18px 0;
  font-family: var(--heading);
  font-weight: 650;
  font-size: 17px;
  line-height: 1.3;
  color: var(--green-deep);
}
.faq-grid summary::-webkit-details-marker {
  display: none;
}
.faq-grid summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--coral-deep);
  border-bottom: 2px solid var(--coral-deep);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.faq-grid details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq-grid p {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}
.lang-link {
  padding: 3px 10px;
  border: 1px dashed var(--line);
  border-radius: 999px;
}
.lang-link:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

/* ---------- features ---------- */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-heading h2 {
  margin-top: 10px;
}
.section-lead {
  max-width: 300px;
  font-size: 16px;
  padding-bottom: 8px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: box-shadow 0.5s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(201, 99, 79, 0.5);
  border-radius: calc(var(--radius) - 10px);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover {
  --hover-y: -4px;
  box-shadow: var(--shadow-soft);
}
.card:hover::after {
  opacity: 1;
}
.card-copy {
  position: relative;
  z-index: 1;
  padding: 18px 24px 24px;
  margin-top: auto;
}
.card-copy p {
  font-size: 14px;
  margin-top: 4px;
}
.card-studio {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}
.card-lens {
  grid-column: 8 / 13;
  grid-row: 1;
}
.card-measure {
  grid-column: 8 / 13;
  grid-row: 2;
}
.card-library {
  grid-column: 1 / 5;
  grid-row: 3;
  background: var(--green-soft);
}
.card-private {
  grid-column: 5 / 9;
  grid-row: 3;
}
.card-pro {
  grid-column: 9 / 13;
  grid-row: 3;
}

/* studio */
.viewer {
  margin: 14px;
  border-radius: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.viewer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
}
.viewer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(122, 160, 94, 0.2);
}
.viewer-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.viewer-title strong {
  font-family: var(--heading);
  font-weight: 650;
  font-size: 16px;
  color: var(--green-deep);
}
.viewer-title small {
  font-size: 11px;
  color: var(--muted);
}
.zoom-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--green);
  transition:
    background 0.3s,
    color 0.3s;
}
.zoom-button .icon {
  width: 20px;
  height: 20px;
}
.zoom-button[aria-pressed="true"],
.zoom-button:hover {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.design-canvas {
  --fabric: #f4eee0;
  position: relative;
  flex: 1;
  min-height: 320px;
  background-color: var(--fabric);
  background-image: var(--linen-lines);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
  transition: background-color 0.6s;
  touch-action: pan-y;
}
.design-canvas[data-fabric="sage"] {
  --fabric: #dde6cf;
}
.design-canvas[data-fabric="rose"] {
  --fabric: #f3d8d0;
}
.design-canvas[data-fabric="sky"] {
  --fabric: #d3e3ee;
}
.design-canvas.is-zoomed {
  cursor: zoom-out;
}
.design-canvas img {
  --zoom: 1;
  width: min(84%, 440px);
  mix-blend-mode: multiply;
  /* brightness + contrast push the render's baked-in backdrop to white so
     only the threads multiply onto the chosen fabric */
  filter: brightness(1.04) contrast(1.06) hue-rotate(var(--hue, 0deg))
    saturate(var(--sat, 1));
  transform: scale(var(--zoom));
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition:
    transform 0.6s var(--ease-out),
    filter 0.7s,
    opacity 0.3s;
  will-change: transform;
}
.design-canvas.is-zoomed img {
  --zoom: 2.3;
}
.design-canvas img.is-swapping {
  --zoom: 0.94;
  opacity: 0;
}
.design-canvas[data-palette="sunset"] {
  --hue: 32deg;
  --sat: 1.15;
}
.design-canvas[data-palette="berry"] {
  --hue: -62deg;
  --sat: 1.05;
}
.design-canvas[data-palette="ocean"] {
  --hue: 168deg;
  --sat: 0.95;
}
.hoop-mark {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(36, 81, 60, 0.35);
  pointer-events: none;
}
.hoop-mark.tl {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 6px 0 0 0;
}
.hoop-mark.br {
  bottom: 14px;
  right: 14px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 6px 0;
}
.pro-flag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--gold);
  font-family: var(--heading);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s,
    transform 0.4s var(--ease-out);
  pointer-events: none;
}
.pro-flag .icon {
  width: 14px;
  height: 14px;
}
.design-canvas:not([data-palette="original"]) .pro-flag {
  opacity: 1;
  transform: none;
}
.viewer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  padding: 14px 16px;
  align-items: flex-end;
  border-top: 1px dashed var(--line);
}
.tool {
  display: grid;
  gap: 8px;
}
.tool-label {
  font-family: var(--heading);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pro-mini {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-deep);
}
.samples,
.swatches,
.palettes {
  display: flex;
  gap: 8px;
}
.sample {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f2ec;
  border: 1px solid var(--line);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}
.sample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sample:hover {
  transform: translateY(-2px);
}
.sample.selected {
  box-shadow:
    0 0 0 2px var(--cream),
    0 0 0 4px var(--green);
}
.swatch {
  --c: #f4eee0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--c);
  background-image: var(--linen-lines);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}
.swatch[data-fabric="sage"] {
  --c: #dde6cf;
}
.swatch[data-fabric="rose"] {
  --c: #f3d8d0;
}
.swatch[data-fabric="sky"] {
  --c: #d3e3ee;
}
.swatch:hover {
  transform: scale(1.08);
}
.swatch.selected {
  box-shadow: 0 0 0 2px var(--green);
}
.spool-btn {
  --c1: #e0806f;
  --c2: #e3b955;
  --c3: #7aa05e;
  position: relative;
  width: 28px;
  height: 38px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    180deg,
    var(--c1) 0 3px,
    color-mix(in srgb, var(--c1), #000 20%) 3px 4px
  );
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}
.spool-btn::before,
.spool-btn::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(#e6c48f, #c48f5c);
  box-shadow: 0 1px 0 rgba(70, 45, 20, 0.4);
}
.spool-btn::before {
  top: -4px;
}
.spool-btn::after {
  bottom: -4px;
}
.spool-btn[data-palette="sunset"] {
  --c1: #e89a4a;
}
.spool-btn[data-palette="berry"] {
  --c1: #b45c9c;
}
.spool-btn[data-palette="ocean"] {
  --c1: #4c9bb3;
}
.spool-btn:hover {
  transform: translateY(-3px);
}
.spool-btn.selected {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--green);
}

/* lens */
.lens-stage {
  position: relative;
  margin: 14px;
  border-radius: 22px;
  overflow: hidden;
  background: #f4f2ec;
  aspect-ratio: 1;
  cursor: none;
  touch-action: none;
  flex-shrink: 0;
}
.lens-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
}
.lens {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #f4f2ec no-repeat;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    inset 0 0 30px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.35s var(--ease-out);
}
.lens::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(255, 255, 255, 0.35),
    transparent 45%
  );
}
.lens-stage.is-active .lens {
  transform: translate(-50%, -50%) scale(1);
}

/* measure */
.measure-stage {
  margin: 14px 14px 0;
  border-radius: 22px;
  background: var(--cream);
  background-image: var(--linen-lines);
  border: 1px solid var(--line);
  padding: 8px;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 210px;
}
.measure-svg {
  width: 100%;
  height: auto;
  max-height: 260px;
  overflow: visible;
}
.measure-svg .dim {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.2s var(--ease-out) 0.35s;
}
.measure-svg .dim-label {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 15px;
  fill: var(--green-deep);
  opacity: 0;
  transition: opacity 0.6s 1.2s;
}
.card-measure.is-visible .dim,
html:not(.js-reveal) .measure-svg .dim {
  stroke-dashoffset: 0;
}
.card-measure.is-visible .dim-label,
html:not(.js-reveal) .measure-svg .dim-label {
  opacity: 1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 14px 24px 0;
}
.stats li {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.stats strong {
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 750;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}
.stats span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* library */
.card-library {
  perspective: 1200px;
}
.phone {
  width: 58%;
  max-width: 230px;
  margin: 30px auto 0;
  aspect-ratio: 9 / 15;
  border-radius: 34px;
  border: 8px solid #1d2f26;
  background: #1d2f26;
  overflow: hidden;
  box-shadow:
    0 30px 50px -20px rgba(23, 54, 40, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-16deg) rotateX(6deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
  animation: phone-float 7s ease-in-out infinite;
}
@keyframes phone-float {
  50% {
    translate: 0 -6px;
  }
}
.phone img {
  width: 100%;
  border-radius: 26px;
}
.card-library:hover .phone {
  transform: rotateY(0) rotateX(0);
}
.card-library .card-copy {
  background: linear-gradient(transparent, var(--green-soft) 40%);
  padding-top: 40px;
  margin-top: -50px;
}

/* private */
.card-private {
  background: var(--green-deep);
  background-image: var(--linen-lines-dark);
  color: var(--cream);
  border-color: var(--green-deep);
}
.card-private h3 {
  color: var(--cream);
}
.card-private p {
  color: rgba(246, 241, 230, 0.7);
}
.private-art {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 160px;
  position: relative;
}
.private-art::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px dashed rgba(246, 241, 230, 0.35);
  animation: spin 40s linear infinite;
}
.private-art .icon {
  width: 64px;
  height: 64px;
  color: var(--gold);
  stroke-width: 1.3;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* pro */
.card-pro {
  background: linear-gradient(160deg, #fbf3dc, #f5e4bd);
  border-color: #eed9a8;
}
.pro-pill {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--gold);
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pro-pill .icon {
  width: 14px;
  height: 14px;
}
.card-pro .card-copy {
  padding-top: 70px;
}
.pro-art {
  position: absolute;
  top: 22px;
  right: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-end;
}
.deco-spool {
  --c1: #e0806f;
  position: relative;
  width: 30px;
  height: 46px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    180deg,
    var(--c1) 0 3px,
    color-mix(in srgb, var(--c1), #000 20%) 3px 4px
  );
  box-shadow: 0 10px 18px -10px rgba(23, 54, 40, 0.6);
  transform: rotate(var(--tilt, 0deg));
  animation: spool-bob 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.deco-spool::before,
.deco-spool::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(#e6c48f, #c48f5c);
  box-shadow: 0 1px 0 rgba(70, 45, 20, 0.4);
}
.deco-spool::before {
  top: -5px;
}
.deco-spool::after {
  bottom: -5px;
}
@keyframes spool-bob {
  50% {
    transform: rotate(var(--tilt, 0deg)) translateY(-6px);
  }
}
.pro-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.pro-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}
.pro-list .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  background: var(--cream-2);
  color: var(--green);
}

/* ---------- download ---------- */
.download {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  background-image: var(--linen-lines-dark);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(90px, 10vw, 140px);
}
.download::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(224, 128, 111, 0.18),
    transparent 70%
  );
  pointer-events: none;
}
.download-inner {
  position: relative;
}
.download h2 {
  color: var(--cream);
  margin-top: 12px;
}
.download-hoop {
  position: relative;
  width: 200px;
  margin: 0 auto 24px;
}
.download-ring {
  width: 100%;
  height: auto;
}
.download-dash {
  transform-origin: 50% 50%;
  animation: spin 30s linear infinite;
}
.download-hoop img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 24px;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.6);
  animation: icon-float 6s ease-in-out infinite;
}
@keyframes icon-float {
  50% {
    transform: translate(-50%, -56%);
  }
}
.download .store-buttons {
  margin-top: 34px;
}
.badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(246, 241, 230, 0.35);
  font-size: 13px;
  color: rgba(246, 241, 230, 0.85);
}
.badges .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.fineprint {
  margin-top: 22px;
  font-size: 12px;
  color: rgba(246, 241, 230, 0.5);
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
  font-size: 13px;
  color: var(--muted);
}
.footer .brand {
  font-size: 18px;
}
.footer .brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.footer nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.footer nav button:hover {
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
}

/* ---------- dock (mobile) ---------- */
.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  background: rgba(23, 54, 40, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cream);
  border-radius: 18px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.6);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease-out);
}
.dock.is-visible {
  transform: none;
}
.dock img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.dock-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1;
}
.dock-text strong {
  font-family: var(--heading);
  font-weight: 650;
}
.dock-text small {
  font-size: 11px;
  opacity: 0.7;
}
.dock-button {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--cream);
  color: var(--green-deep);
  display: grid;
  place-items: center;
}
.dock-button .icon {
  width: 22px;
  height: 22px;
}
.dock-button + .dock-button {
  margin-left: 6px;
}

/* ---------- dialogs ---------- */
dialog {
  width: min(560px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  background: var(--cream-2);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}
dialog::backdrop {
  background: rgba(23, 54, 40, 0.55);
  backdrop-filter: blur(6px);
}
dialog h2 {
  font-size: 30px;
  margin: 8px 0 16px;
}
dialog p {
  margin-bottom: 12px;
  font-size: 15px;
}
dialog a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
}
.dialog-close:hover {
  background: var(--cream);
  color: var(--green-deep);
}

/* ---------- reveal ---------- */
.reveal {
  --reveal-y: 0px;
  transform: translateY(calc(var(--reveal-y) + var(--hover-y, 0px)));
  transition: transform 0.4s var(--ease-out);
}
.js-reveal .reveal {
  --reveal-y: 34px;
  opacity: 0;
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js-reveal .reveal.is-visible {
  --reveal-y: 0px;
  opacity: 1;
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .formats-line,
  .format-pin {
    display: none;
  }
  .format-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 12px;
  }
  .format-swing {
    margin-top: 0;
  }
  .format-thread {
    height: 22px;
  }
}
@media (max-width: 1100px) {
  .card-studio {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .card-lens {
    grid-column: 1 / 7;
    grid-row: auto;
  }
  .card-measure {
    grid-column: 7 / -1;
    grid-row: auto;
  }
  .card-library {
    grid-column: 1 / 5;
    grid-row: auto;
  }
  .card-private {
    grid-column: 5 / 9;
    grid-row: auto;
  }
  .card-pro {
    grid-column: 9 / -1;
    grid-row: auto;
  }
}
@media (max-width: 900px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .store-buttons {
    justify-content: center;
  }
  .hero-art {
    max-width: 520px;
    padding-bottom: 70px;
  }
  .file-tag {
    left: 0;
  }
  .card-library,
  .card-private,
  .card-pro {
    grid-column: span 4;
  }
  .card-library {
    grid-column: 1 / 7;
  }
  .card-private {
    grid-column: 7 / -1;
  }
  .card-pro {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .card-pro .card-copy {
    padding-top: 74px;
  }
  .pro-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .container {
    width: min(1200px, 100% - 32px);
  }
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
  .header-inner {
    min-height: 68px;
  }
  .mobile-nav:not([hidden]) {
    display: grid;
    gap: 4px;
    padding: 8px 16px 16px;
    background: rgba(246, 241, 230, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav a {
    padding: 14px 8px;
    font-family: var(--heading);
    font-weight: 650;
    font-size: 20px;
    border-bottom: 1px dashed var(--line);
  }
  .hero {
    padding-top: 96px;
  }
  .hero-note {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-art {
    padding-bottom: 0;
  }
  .formats {
    padding-block: 52px 60px;
  }
  .format-item {
    width: 30%;
  }
  .format-hoop {
    width: 96px;
    height: 96px;
    border-width: 6px;
  }
  .format-svg {
    width: 72px;
    height: 72px;
  }
  .format-label {
    font-size: 22px;
  }
  .format-note {
    margin-top: 12px;
    font-size: 11px;
  }
  .playback {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 14px;
  }
  .file-tag {
    display: none;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .bento {
    gap: 14px;
  }
  .card-studio,
  .card-lens,
  .card-measure,
  .card-library,
  .card-private,
  .card-pro {
    grid-column: 1 / -1;
  }
  .card {
    min-height: 0;
  }
  .card-copy {
    padding: 16px 20px 22px;
  }
  .viewer-tools {
    gap: 12px 18px;
  }
  .design-canvas {
    min-height: 280px;
  }
  .pro-list {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .dock {
    display: flex;
  }
  body {
    padding-bottom: 76px;
  }
  .footer {
    flex-wrap: wrap;
    gap: 14px;
  }
  .footer nav {
    margin-left: 0;
  }
  .footer-copy {
    width: 100%;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: clamp(46px, 14vw, 60px);
  }
  .store-button {
    min-width: 0;
    flex: 1 1 150px;
    padding: 10px 14px;
    gap: 10px;
    min-height: 58px;
  }
  .store-button strong {
    font-size: 17px;
    white-space: nowrap;
  }
  .store-icon {
    width: 24px;
    height: 26px;
  }
  .store-icon.apple {
    width: 27px;
    height: 29px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 6px;
  }
  .lens {
    width: 120px;
    height: 120px;
  }
  dialog {
    padding: 28px 22px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js-reveal .reveal {
    opacity: 1;
    --reveal-y: 0px;
  }
  .format-swing {
    transform: none;
  }
  .measure-svg .dim {
    stroke-dashoffset: 0;
  }
  .measure-svg .dim-label {
    opacity: 1;
  }
}
