/* CutReady — Minimalist optical studio with tactile spring micro-interactions.
   Generous breathing room, crisp ceramic surfaces, deep teal optical inspection plate. */

:root {
  --canvas: #f4f7f7;
  --canvas-2: #fafcfc;
  --surface: #ffffff;
  --ink: #0f2430;
  --ink-2: #3b5561;
  --muted: #647b84;
  --hair: rgba(15, 36, 48, 0.085);
  --hair-strong: rgba(15, 36, 48, 0.14);
  --deep: #102e40;
  --body: #1e5568;
  --spill: #52b7c2;
  --pale: #aff7e9;
  --ice: #eafcf7;
  --ok: #139b72;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 2.4 -1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
}

:focus-visible {
  outline: 2px solid #1e7f8f;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* ---------- Environment (soft airy porcelain light) ---------- */
.env {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 42% at 76% 18%, rgba(82, 183, 194, 0.09), rgba(82, 183, 194, 0) 70%),
    radial-gradient(34% 36% at 8% 88%, rgba(82, 183, 194, 0.06), rgba(82, 183, 194, 0) 70%),
    linear-gradient(180deg, var(--canvas-2) 0%, var(--canvas) 100%);
}

/* ---------- Optical material (hero plate + studio export dock) ---------- */
.optical {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(62% 48% at 80% 104%, rgba(175, 247, 233, 0.72) 0%, rgba(175, 247, 233, 0) 72%),
    radial-gradient(78% 64% at 56% 96%, rgba(82, 183, 194, 0.78) 0%, rgba(82, 183, 194, 0) 70%),
    radial-gradient(44% 52% at 104% 34%, rgba(132, 112, 178, 0.24) 0%, rgba(132, 112, 178, 0) 72%),
    radial-gradient(70% 60% at 14% 6%, rgba(30, 85, 104, 0.65) 0%, rgba(30, 85, 104, 0) 72%),
    linear-gradient(168deg, #0f2b3c 0%, #123548 46%, #1b4d60 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 22px 44px -26px rgba(255, 255, 255, 0.28),
    inset 0 -34px 60px -34px rgba(175, 247, 233, 0.48),
    0 36px 72px -40px rgba(16, 58, 72, 0.52),
    0 12px 24px -16px rgba(16, 46, 64, 0.34);
}

.optical::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: 0.08;
  border-radius: inherit;
}

.optical::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.06) 28%, rgba(255, 255, 255, 0) 58%, rgba(175, 247, 233, 0.44) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.optical > * {
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn-white,
.btn-ink,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 22px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.28s var(--spring), box-shadow 0.28s var(--ease), background 0.25s;
}

.btn-white:active,
.btn-ink:active,
.btn-soft:active {
  transform: scale(0.97);
}

.btn-white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 20px -10px rgba(10, 40, 54, 0.3), 0 1px 2px rgba(10, 40, 54, 0.08);
}

.btn-white:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 1px 0 #fff inset, 0 14px 26px -12px rgba(10, 40, 54, 0.36), 0 1px 2px rgba(10, 40, 54, 0.1);
}

.btn-ink {
  background: linear-gradient(180deg, #163b4b, #0e2836);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px -12px rgba(14, 40, 54, 0.55);
}

.btn-ink:hover {
  transform: translateY(-1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 28px -12px rgba(14, 40, 54, 0.65);
}

.btn-soft {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair-strong), 0 4px 12px -8px rgba(15, 36, 48, 0.2);
  cursor: pointer;
}

.btn-soft:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(15, 36, 48, 0.22), 0 8px 18px -10px rgba(15, 36, 48, 0.25);
}

.btn-soft input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

button:disabled {
  opacity: 0.52;
  cursor: progress;
  transform: none !important;
}

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 40px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.wordmark-glyph {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 6px 14px -6px rgba(16, 46, 64, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.02em;
  color: #166a73;
  background: rgba(82, 183, 194, 0.14);
  box-shadow: inset 0 0 0 1px rgba(22, 106, 115, 0.14);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

body[data-state='studio'] .nav-cta {
  visibility: hidden;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(44px, 5.5vw, 88px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px 64px;
}

.hero-copy {
  padding-bottom: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 13px;
  border-radius: 999px;
  font: 500 12.5px/1.2 var(--sans);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px var(--hair), 0 4px 12px -8px rgba(15, 36, 48, 0.18);
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ea682;
  box-shadow: 0 0 0 3px rgba(30, 166, 130, 0.18);
}

h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(46px, 4.6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.048em;
  color: var(--ink);
}

.lede {
  margin: 26px 0 36px;
  max-width: 29em;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Minimal ceramic upload pill with tactile spring drop feedback */
.tray {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 472px;
  padding: 10px 10px 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  background: #ffffff;
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px var(--hair-strong),
    0 20px 40px -24px rgba(15, 36, 48, 0.28),
    0 2px 6px -2px rgba(15, 36, 48, 0.06);
  transition: transform 0.34s var(--spring), box-shadow 0.3s var(--ease), background 0.25s;
}

.tray:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1.5px rgba(30, 127, 143, 0.38),
    0 26px 46px -24px rgba(15, 56, 70, 0.34),
    0 4px 10px -4px rgba(15, 36, 48, 0.08);
}

.tray:active {
  transform: scale(0.985);
}

.tray.dragover {
  transform: scale(1.015) translateY(-2px);
  background: #f2fbfb;
  box-shadow:
    inset 0 0 0 2px #2697a4,
    0 0 0 6px rgba(82, 183, 194, 0.16),
    0 26px 46px -22px rgba(15, 56, 70, 0.36);
}

.tray input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tray:focus-within {
  outline: 2px solid #1e7f8f;
  outline-offset: 4px;
}

.tray-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(82, 183, 194, 0.13);
  color: #165e6b;
  transition: transform 0.35s var(--spring), background 0.25s;
}

.tray:hover .tray-icon,
.tray.dragover .tray-icon {
  transform: translateY(-1.5px) scale(1.05);
  background: rgba(82, 183, 194, 0.22);
}

.tray-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tray-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tray-text strong {
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.tray-text span {
  font-size: 13px;
  color: var(--muted);
}

kbd {
  display: inline-block;
  padding: 0 5px;
  border-radius: 5px;
  font: 500 11px/18px var(--mono);
  color: var(--ink-2);
  background: #eff4f5;
  box-shadow: inset 0 0 0 1px var(--hair-strong);
}

.tray-btn {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #163b4b, #0e2836);
  color: #fff;
  font-weight: 500;
  font-size: 14.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px -10px rgba(14, 40, 54, 0.6);
  transition: transform 0.3s var(--spring);
}

.tray:hover .tray-btn {
  transform: scale(1.02);
}

.hero-note {
  margin: 18px 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-note b {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Plate (dominant optical object) ---------- */
.hero-visual {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.plate {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 42px;
  height: clamp(490px, 62vh, 600px);
}

.plate > .view {
  position: absolute;
  inset: 0;
  padding: 96px 40px 120px;
}

.plate-head,
.plate-foot {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.plate-head > *,
.plate-foot .dots {
  pointer-events: auto;
}

.plate-head {
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 0 34px;
}

.plate-title {
  display: grid;
  gap: 3px;
}

.plate-title strong {
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.plate-title span {
  font-size: 13px;
  color: rgba(234, 252, 247, 0.72);
}

.orb {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: radial-gradient(80% 80% at 30% 20%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 10px 20px -12px rgba(0, 0, 0, 0.45);
  transition: background 0.25s, transform 0.34s var(--spring);
}

.orb svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orb:hover {
  transform: translateY(-1.5px) scale(1.04);
  background: radial-gradient(80% 80% at 30% 20%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
}

.orb:active {
  transform: scale(0.94);
}

.view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: crosshair;
}

.view[data-mode='sheets'],
.view[data-mode='cut'] {
  cursor: default;
}

.view:focus-visible {
  outline: 1px solid rgba(234, 252, 247, 0.6);
  outline-offset: -8px;
  border-radius: 28px;
}

.plate-foot {
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 4px 24px 24px;
}

.plate-hint {
  margin: 0;
  font-size: 13px;
  color: rgba(234, 252, 247, 0.84);
  text-align: center;
}

/* sample selector: glass rings with tactile spring pop */
.dots {
  display: flex;
  gap: 10px;
}

.dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(234, 252, 247, 0.28);
  transition: background 0.25s, box-shadow 0.25s, transform 0.34s var(--spring);
}

.dot-art {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
}

.dot .art-line {
  --edge-w: 0.7px;
}

.dot:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.12);
}

.dot:active {
  transform: scale(0.93);
}

.dot[aria-pressed='true'] {
  background: #fff;
  transform: scale(1.04);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45), inset 0 -2px 4px rgba(16, 46, 64, 0.08);
}

.dot[aria-pressed='true'] .art-line {
  --edge: var(--ink);
}

/* ---------- Line rendering of real vectors ---------- */
.art {
  position: absolute;
}

.art svg,
.lz-in svg,
.art-line svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.art-body,
.art-line {
  position: absolute;
  inset: 0;
  --body: rgba(175, 247, 233, 0.1);
  --band: rgba(175, 247, 233, 0.2);
  --edge: rgba(234, 252, 247, 0.94);
  --edge-w: 1.1px;
}

.art-body.zoom,
.art-line.zoom {
  --body: rgba(175, 247, 233, 0.2);
  --band: rgba(175, 247, 233, 0.3);
  --edge: #fff;
  --edge-w: 1.4px;
}

.versus-draw .art-body,
.versus-draw .art-line {
  --body: rgba(30, 85, 104, 0.09);
  --band: rgba(30, 85, 104, 0.14);
  --edge: rgba(14, 36, 48, 0.82);
  --edge-w: 1px;
}

.art-body :is(path, circle, ellipse, rect, polygon, polyline, line) {
  fill: var(--body) !important;
  stroke: none !important;
}

.art-body g[fill='none'] :is(path, circle, ellipse, rect, polygon, polyline, line),
.art-body [fill='none'] {
  fill: none !important;
  stroke: var(--band) !important;
}

.art-line :is(path, circle, ellipse, rect, polygon, polyline, line) {
  fill: none !important;
  stroke: var(--edge) !important;
  stroke-width: var(--edge-w) !important;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.lz-in > .art-body,
.lz-in > .art-line {
  z-index: 0;
}

/* ---------- Loupe ---------- */
.loupe {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  overflow: hidden;
  will-change: transform;
  pointer-events: auto;
  touch-action: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 22px 40px -14px rgba(2, 16, 24, 0.7),
    0 0 0 6px rgba(255, 255, 255, 0.05);
}

.lz {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.lz-px {
  clip-path: inset(0 50% 0 0);
  background: #eef3f2;
}

.lz-vec {
  clip-path: inset(0 0 0 50%);
  background: radial-gradient(90% 90% at 70% 80%, #1f5a6b, #0f2c3c 80%);
}

.lz-in {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.lz-in img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.lz-in > .art-line,
.lz-in > .anchors {
  position: absolute;
  inset: 0;
}

.anchors circle {
  fill: #fff;
  stroke: #52b7c2;
  stroke-width: 1.4px;
  vector-effect: non-scaling-stroke;
}

.lz-split {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 18%, rgba(255, 255, 255, 0.9) 82%, rgba(255, 255, 255, 0));
}

.lz-cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 2.6px, rgba(16, 46, 64, 0.35) 3.2px, transparent 4px),
    linear-gradient(90deg, transparent calc(50% - 30px), rgba(82, 183, 194, 0.85) calc(50% - 30px), rgba(82, 183, 194, 0.85) calc(50% - 12px), transparent calc(50% - 12px), transparent calc(50% + 12px), rgba(82, 183, 194, 0.85) calc(50% + 12px), rgba(82, 183, 194, 0.85) calc(50% + 30px), transparent calc(50% + 30px)) center / 100% 1px no-repeat;
}

.lz-glint {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(60% 34% at 34% 10%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 70%),
    radial-gradient(closest-side, transparent 86%, rgba(175, 247, 233, 0.22) 94%, rgba(255, 255, 255, 0.5) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.75),
    inset 0 -3px 8px rgba(82, 183, 194, 0.45),
    inset 3px 0 6px rgba(255, 196, 220, 0.18),
    inset -3px 0 6px rgba(160, 200, 255, 0.2),
    inset 0 0 22px rgba(2, 20, 30, 0.28);
}

.lz-tag {
  position: absolute;
  bottom: 20px;
  padding: 3px 5px;
  border-radius: 5px;
  font: 500 9.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.lz-tag-l {
  right: calc(50% + 7px);
  color: rgba(14, 36, 48, 0.8);
  background: rgba(255, 255, 255, 0.72);
}

.lz-tag-r {
  left: calc(50% + 7px);
  color: #fff;
  background: rgba(8, 30, 42, 0.55);
}

.loupe-read {
  position: absolute;
  left: 0;
  top: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font: 500 11.5px/14px var(--mono);
  color: var(--ice);
  background: rgba(8, 28, 40, 0.46);
  box-shadow: inset 0 0 0 1px rgba(234, 252, 247, 0.2);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Layered sheets ---------- */
.stack-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1500px;
}

.stack {
  position: relative;
  transform-style: preserve-3d;
  transform: translateY(-4%) rotateX(56deg) rotateZ(-34deg);
}

.sheet {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 8%;
  background: linear-gradient(150deg, rgba(240, 250, 249, 0.34), rgba(190, 228, 230, 0.16));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 28px -14px rgba(2, 18, 28, 0.45);
  transition: transform 0.45s var(--ease);
}

.sheet svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sheet-tag {
  position: absolute;
  left: 100%;
  top: 6%;
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px/1 var(--mono);
  color: var(--ice);
  white-space: nowrap;
}

.sheet-tag i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.spread {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  font-size: 13px;
  color: rgba(234, 252, 247, 0.86);
  white-space: nowrap;
}

/* ---------- Cut path ---------- */
.mat-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(234, 252, 247, 0.22) 0.9px, transparent 1.2px);
  -webkit-mask: radial-gradient(70% 70% at 50% 50%, #000 40%, transparent 100%);
  mask: radial-gradient(70% 70% at 50% 50%, #000 40%, transparent 100%);
}

.cut {
  position: absolute;
  left: 50%;
  top: 50%;
}

.cut > div {
  position: absolute;
  inset: 0;
}

.cut svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cut-path path,
.cut-path circle,
.cut-path rect,
.cut-path polygon,
.cut-path polyline,
.cut-path line {
  fill: rgba(175, 247, 233, 0.05) !important;
  stroke: var(--pale) !important;
  stroke-width: 1.1px !important;
  vector-effect: non-scaling-stroke;
}

.cut-problems path {
  filter: drop-shadow(0 0 3px rgba(255, 170, 120, 0.8));
}

.cut-cap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font: 500 12px/1 var(--mono);
  color: rgba(234, 252, 247, 0.82);
  white-space: nowrap;
}

/* ---------- Minimal ceramic view capsules below hero plate ---------- */
.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 76px;
  padding: 0 20px;
  border: 0;
  border-radius: 24px;
  text-align: left;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: transform 0.34s var(--spring), background 0.25s, box-shadow 0.25s, color 0.2s;
}

.cap:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair-strong), 0 14px 26px -18px rgba(15, 36, 48, 0.3);
}

.cap:active {
  transform: scale(0.97);
}

.cap[aria-selected='true'] {
  color: var(--ink);
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1.5px rgba(22, 94, 107, 0.28),
    0 18px 34px -22px rgba(16, 58, 72, 0.38),
    0 2px 4px rgba(16, 46, 64, 0.05);
}

.cap-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cap-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.cap-teal .cap-label i {
  background: #2298a5;
}

.cap-violet .cap-label i {
  background: #6167d2;
}

.cap-warm .cap-label i {
  background: #d27756;
}

.cap-fig {
  display: grid;
  justify-items: end;
  line-height: 1;
}

.cap-fig b {
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cap-fig small {
  white-space: nowrap;
  margin-top: 4px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---------- Studio ---------- */
.studio {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 80px;
  animation: rise 0.55s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.studio-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 4px 0 22px;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 8px 12px 8px 6px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--spring);
}

.link-back svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--spring);
}

.link-back:hover {
  color: var(--ink);
  background: rgba(15, 36, 48, 0.05);
}

.link-back:hover svg {
  transform: translateX(-2px);
}

.studio-file {
  display: grid;
  min-width: 0;
}

.studio-file strong {
  font-weight: 500;
  font-size: 16.5px;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-file span {
  font-size: 13px;
  color: var(--muted);
}

.studio-head .btn-soft {
  position: relative;
  margin-left: auto;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 378px;
  gap: 28px;
  align-items: start;
}

.studio-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.plate-studio {
  height: clamp(520px, 68vh, 680px);
  border-radius: 38px;
}

.plate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 22px 0;
}

.plate-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  gap: 2px;
}

.seg button {
  min-height: 35px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.24s var(--ease), color 0.2s, box-shadow 0.24s, transform 0.25s var(--spring);
}

.seg button:active {
  transform: scale(0.95);
}

.seg-glass {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(234, 252, 247, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.seg-glass button {
  color: rgba(234, 252, 247, 0.84);
}

.seg-glass button:hover {
  color: #fff;
}

.seg-glass button[aria-selected='true'],
.seg-glass button[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.55);
}

.seg-sm button {
  min-height: 31px;
  padding: 0 11px;
  font-size: 12.5px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(234, 252, 247, 0.82);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(234, 252, 247, 0.16);
  transition: transform 0.25s var(--spring), background 0.2s, color 0.2s;
}

.chip:active {
  transform: scale(0.95);
}

.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(234, 252, 247, 0.6);
  transition: background 0.25s, box-shadow 0.25s;
}

.chip[aria-pressed='true'] {
  color: #fff;
}

.chip[aria-pressed='true'] i {
  background: var(--pale);
  box-shadow: 0 0 8px rgba(175, 247, 233, 0.8);
}

.plate-studio[data-view='sheets'] [data-zoom],
.plate-studio[data-view='sheets'] #anchor-toggle,
.plate-studio[data-view='cut'] #anchor-toggle {
  opacity: 0.42;
}

.plate-studio > .view {
  position: relative;
  inset: auto;
  padding: 14px;
}

.view-studio {
  padding: 14px;
  margin: 8px 8px 14px;
  border-radius: 28px;
}

/* Circular orbital loader */
.loading-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ice);
  background: rgba(10, 34, 46, 0.56);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.loading-ring {
  width: 38px;
  height: 38px;
  animation: spin 1.15s linear infinite;
}

.loading-ring circle {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.loading-track {
  stroke: rgba(234, 252, 247, 0.18);
}

.loading-arc {
  stroke: var(--pale);
  stroke-dasharray: 56 88;
  stroke-dashoffset: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.spec {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.spec label,
.spec-label {
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
}

.spec output,
.spec-static {
  white-space: nowrap;
  font: 500 12.5px/1.45 var(--mono);
  color: var(--ink);
}

.spec-static {
  white-space: normal;
  line-height: 1.4;
}

.seg-light {
  background: #edf2f3;
  box-shadow: inset 0 0 0 1px var(--hair);
  justify-self: start;
}

.seg-light button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.seg-light button[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 10px -6px rgba(16, 46, 64, 0.45);
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(15, 36, 48, 0.16);
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 36, 48, 0.16), 0 4px 10px -3px rgba(16, 46, 64, 0.4);
  transition: transform 0.2s var(--spring);
}

input[type='range']::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

input[type='range']::-moz-range-track {
  height: 2px;
  background: rgba(15, 36, 48, 0.16);
}

input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 36, 48, 0.16), 0 4px 10px -3px rgba(16, 46, 64, 0.4);
}

.spread input[type='range'] {
  width: 150px;
}

.spread input[type='range']::-webkit-slider-runnable-track {
  background: rgba(234, 252, 247, 0.35);
}

/* ---------- Inspector: calm pure ceramic panel ---------- */
.inspector {
  display: grid;
  gap: 18px;
  padding: 24px 20px 20px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--hair), 0 28px 54px -38px rgba(16, 58, 72, 0.3);
}

.insp-title {
  margin: 0 4px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.mode-list {
  display: grid;
  gap: 3px;
}

.mode-btn {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 11px;
  row-gap: 3px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  transition: background 0.22s, box-shadow 0.22s, transform 0.25s var(--spring);
}

.mode-btn:hover {
  background: #f4f8f8;
}

.mode-btn:active {
  transform: scale(0.985);
}

.mode-btn .radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(15, 36, 48, 0.26);
  transition: transform 0.3s var(--spring), box-shadow 0.2s;
}

.mode-btn strong {
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.mode-btn small {
  grid-column: 2;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.mode-btn[aria-checked='true'] {
  background: #f2f8f9;
  box-shadow: inset 0 0 0 1px rgba(22, 106, 115, 0.16);
}

.mode-btn[aria-checked='true'] .radio {
  transform: scale(1.06);
  background: radial-gradient(circle, #fff 0 3px, transparent 3.5px), radial-gradient(80% 80% at 70% 90%, #52b7c2, #102e40);
  box-shadow: 0 2px 6px -1px rgba(16, 46, 64, 0.45);
}

.readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 2px 0;
  border-top: 1px solid var(--hair);
}

.figure {
  display: grid;
  gap: 3px;
  padding: 0 9px;
  min-width: 0;
}

.figure + .figure {
  border-left: 1px solid var(--hair);
}

.figure strong {
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.figure span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.sheet-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 136px;
  overflow: auto;
}

.sheet-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.sheet-list code {
  font: 500 11.5px/1 var(--mono);
  color: var(--ink);
}

.sheet-list span {
  margin-left: auto;
}

.swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 36, 48, 0.16);
}

.preflight {
  border-top: 1px solid var(--hair);
  padding-top: 12px;
}

.preflight summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px;
}

.preflight summary::-webkit-details-marker {
  display: none;
}

.preflight summary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8aa1a8;
}

.preflight[data-state='ok'] summary::before {
  background: #1ea682;
  box-shadow: 0 0 0 4px rgba(30, 166, 130, 0.14);
}

.preflight[data-state='warn'] summary::before {
  background: #d98a4e;
  box-shadow: 0 0 0 4px rgba(217, 138, 78, 0.15);
}

.preflight summary::after {
  content: '+';
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
}

.preflight[open] summary::after {
  content: '–';
}

.preflight-list {
  display: grid;
  gap: 7px;
  padding: 8px 4px 4px;
}

.check-item {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.thin-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 4px 2px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.thin-toggle input {
  accent-color: #1e5568;
}

/* ---------- Free Beta Export Dock + Ring-to-Checkmark Physics ---------- */
.export {
  display: grid;
  gap: 9px;
  padding: 15px;
  border-radius: 26px;
  background:
    radial-gradient(70% 60% at 92% 0%, rgba(175, 247, 233, 0.36), rgba(175, 247, 233, 0) 70%),
    radial-gradient(80% 70% at 20% 110%, rgba(82, 183, 194, 0.36), rgba(82, 183, 194, 0) 70%),
    linear-gradient(168deg, #0f2b3c 0%, #143a4e 100%);
}

.export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 4px;
}

.export-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.03em;
  color: var(--pale);
}

.export-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4de3b2;
  box-shadow: 0 0 8px rgba(77, 227, 178, 0.9);
}

.export-sub {
  font-size: 11.5px;
  color: rgba(234, 252, 247, 0.68);
}

.dl-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 14px;
  border: 0;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  text-align: left;
  transition: transform 0.3s var(--spring), background 0.25s, box-shadow 0.25s, color 0.25s;
}

.dl-btn:hover {
  transform: translateY(-1px);
}

.dl-btn:active {
  transform: scale(0.975);
}

.dl-primary {
  min-height: 50px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 22px -12px rgba(4, 20, 30, 0.55), inset 0 1px 0 #fff;
}

.dl-secondary {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(234, 252, 247, 0.26);
}

.dl-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dl-ghost {
  min-height: 40px;
  background: transparent;
  color: rgba(234, 252, 247, 0.86);
  box-shadow: inset 0 0 0 1px rgba(234, 252, 247, 0.18);
  font-size: 13.5px;
}

.dl-ghost:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(234, 252, 247, 0.42);
}

/* State morphing: idle → ring progress → spring checkmark */
.dl-glyph {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.dl-glyph svg {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.2s var(--ease), transform 0.34s var(--spring);
}

.dl-ring {
  transform: rotate(-90deg) scale(0.7);
  opacity: 0;
}

.dl-ring-bg {
  stroke: currentColor;
  opacity: 0.2;
}

.dl-ring-fg {
  stroke: currentColor;
  stroke-dasharray: 53.4;
  stroke-dashoffset: 53.4;
}

.dl-check {
  opacity: 0;
  transform: scale(0.45);
}

.dl-check path {
  stroke-width: 2.3;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
}

.dl-btn[data-state='busy'] {
  transform: scale(0.985);
}

.dl-btn[data-state='busy'] .dl-arrow {
  opacity: 0;
  transform: translateY(4px) scale(0.7);
}

.dl-btn[data-state='busy'] .dl-ring {
  opacity: 1;
  transform: rotate(-90deg) scale(1);
}

.dl-btn[data-state='busy'] .dl-ring-fg {
  animation: dlSweep 0.44s cubic-bezier(0.32, 0.72, 0.2, 1) forwards;
}

@keyframes dlSweep {
  from {
    stroke-dashoffset: 53.4;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.dl-btn[data-state='done'] {
  transform: scale(1.01);
}

.dl-primary[data-state='done'] {
  background: #eafcf4;
  color: #0d694b;
  box-shadow: inset 0 0 0 1px rgba(19, 155, 114, 0.28), 0 10px 22px -12px rgba(4, 20, 30, 0.45);
}

.dl-secondary[data-state='done'],
.dl-ghost[data-state='done'] {
  background: rgba(77, 227, 178, 0.22);
  color: #d8ffef;
  box-shadow: inset 0 0 0 1px rgba(77, 227, 178, 0.52);
}

.dl-btn[data-state='done'] .dl-arrow,
.dl-btn[data-state='done'] .dl-ring {
  opacity: 0;
  transform: scale(0.6);
}

.dl-btn[data-state='done'] .dl-check {
  opacity: 1;
  transform: scale(1.08);
  animation: checkPop 0.4s var(--spring) forwards;
}

.dl-btn[data-state='done'] .dl-check path {
  animation: checkDraw 0.32s 0.04s var(--ease) forwards;
}

@keyframes checkPop {
  0% {
    transform: scale(0.45);
  }
  65% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes checkDraw {
  from {
    stroke-dashoffset: 22;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.dl-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-ext {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  font: 500 10.5px/1.3 var(--mono);
  opacity: 0.68;
  background: rgba(128, 128, 128, 0.14);
}

.dl-primary .dl-ext {
  background: rgba(15, 36, 48, 0.07);
}

.pack-note {
  margin: 3px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: rgba(234, 252, 247, 0.72);
}

/* ---------- Lightweight post-download satisfaction check ---------- */
.feedback-card {
  padding: 14px 16px;
  border-radius: 20px;
  background: #f5f9f9;
  box-shadow: inset 0 0 0 1px var(--hair);
  animation: fbReveal 0.42s var(--spring) both;
}

@keyframes fbReveal {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

.fb-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fb-q {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.fb-actions {
  display: inline-flex;
  gap: 6px;
}

.fb-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: #ffffff;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  transition: transform 0.28s var(--spring), background 0.2s, color 0.2s, box-shadow 0.2s;
}

.fb-pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fb-pill:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.fb-pill:active {
  transform: scale(0.94);
}

.fb-yes:hover {
  background: #eafcf4;
  color: #0d694b;
  box-shadow: inset 0 0 0 1px rgba(19, 155, 114, 0.32);
}

.fb-reasons {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
  animation: fbReveal 0.3s var(--ease) both;
}

.fb-sub {
  font-size: 12px;
  color: var(--muted);
}

.fb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fb-tag {
  border: 0;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  background: #fff;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  transition: transform 0.25s var(--spring), background 0.2s, color 0.2s;
}

.fb-tag:hover {
  background: #0f2430;
  color: #fff;
  transform: translateY(-1px);
}

.fb-done {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  animation: fbReveal 0.35s var(--spring) both;
}

.fb-done-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(19, 155, 114, 0.14);
  color: #0d7a57;
}

.fb-done-dot svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Editorial strip ---------- */
.strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 40px 48px;
}

body[data-state='studio'] .strip {
  padding-top: 44px;
}

.strip-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hair);
}

.strip-head h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.strip-head h2 span {
  color: #367d8a;
}

.strip-head p {
  margin: 0;
  max-width: 34em;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 0;
  padding: 64px 0 44px;
}

.versus-art {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.versus-draw {
  position: relative;
  width: min(100%, 290px);
  aspect-ratio: 1;
}

.versus-draw > * {
  position: absolute;
  inset: 0;
}

.versus-draw svg {
  display: block;
  width: 100%;
  height: 100%;
}

.versus-draw .anchors circle {
  fill: var(--canvas);
  stroke: #1e7f8f;
  stroke-width: 1.2px;
}

.versus figcaption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 15px;
  color: var(--ink-2);
}

.versus figcaption b {
  font-weight: 300;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.versus figcaption span {
  width: 100%;
  text-align: center;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts {
  max-width: 44em;
  margin: 0 auto;
  padding: 0 0 88px;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--ink-2);
}

.facts b {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Free Beta Exports Band ---------- */
.included {
  padding-top: 76px;
  border-top: 1px solid var(--hair);
  scroll-margin-top: 24px;
}

.inc-head {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 44px;
  text-align: center;
}

.inc-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font: 500 11.5px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #166a73;
  background: rgba(82, 183, 194, 0.13);
}

.buy-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-align: center;
}

.inc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.inc-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 26px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--hair), 0 20px 44px -34px rgba(15, 36, 48, 0.28);
  transition: transform 0.34s var(--spring), box-shadow 0.3s var(--ease);
}

.inc-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--hair-strong), 0 28px 50px -34px rgba(15, 36, 48, 0.34);
}

.inc-tag {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.05em;
  color: #1d7580;
}

.inc-card h3 {
  margin: 0;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.inc-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-2);
}

.inc-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.opens-in {
  margin: 26px auto 0;
  max-width: 44em;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 48px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 338px;
  }
  .cap {
    padding: 0 16px;
  }
  .cap-fig b {
    font-size: 22px;
  }
}

@media (max-width: 960px) {
  .nav {
    padding: 18px 22px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 10px 22px 56px;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .studio {
    padding: 0 22px 56px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .specs {
    grid-template-columns: 1fr 1fr;
  }
  .strip {
    padding: 60px 22px 32px;
  }
  .strip-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .inc-grid {
    grid-template-columns: 1fr;
  }
  .foot {
    padding: 28px 22px 36px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
  h1 {
    font-size: 42px;
  }
  .lede {
    margin: 18px 0 26px;
    font-size: 16px;
  }
  .tray {
    padding: 8px 8px 8px 12px;
    gap: 10px;
  }
  .tray-icon {
    width: 36px;
    height: 36px;
  }
  .tray-text strong {
    font-size: 14.5px;
  }
  .tray-text span {
    font-size: 12px;
  }
  .tray-paste {
    display: none;
  }
  .tray-btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13.5px;
  }
  .hero-note {
    margin-left: 4px;
    font-size: 13px;
  }
  .plate {
    height: 460px;
    border-radius: 34px;
  }
  .plate > .view {
    padding: 82px 14px 114px;
  }
  .plate-head {
    padding: 20px 18px 0 22px;
  }
  .plate-title strong {
    font-size: 17.5px;
  }
  .orb {
    width: 44px;
    height: 44px;
  }
  .dots {
    gap: 8px;
  }
  .dot {
    width: 42px;
    height: 42px;
  }
  .plate-foot {
    padding: 2px 14px 18px;
  }
  .caps {
    gap: 8px;
  }
  .cap {
    height: auto;
    min-height: 70px;
    padding: 11px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    text-align: center;
  }
  .cap-label {
    font-size: 11px;
    gap: 5px;
  }
  .cap-fig {
    justify-items: center;
  }
  .cap-fig b {
    font-size: 20px;
  }
  .cap-fig small {
    display: none;
  }
  .plate-studio {
    height: 560px;
    border-radius: 30px;
  }
  .plate-studio > .view {
    padding: 8px;
  }
  .seg-sm button {
    padding: 0 9px;
  }
  .chip {
    font-size: 12px;
    min-height: 35px;
    padding: 0 10px;
  }
  .plate-bar {
    padding: 14px 14px 0;
  }
  .seg button {
    padding: 0 11px;
    font-size: 12.5px;
  }
  .specs {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .studio-head {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .studio-file {
    order: 3;
    width: 100%;
  }
  .versus {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 40px 0 28px;
  }
  .versus figcaption b {
    font-size: 26px;
  }
  .facts {
    padding-bottom: 56px;
  }
  .sheet-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
