/* ============================================================
   EnVision: Landing / marketing / pricing / auth
   ============================================================ */

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding-block: var(--sp-8) var(--sp-7);
  overflow: visible;
  background:
    radial-gradient(900px 520px at 12% 0%, var(--tint-cool), transparent 62%),
    radial-gradient(760px 480px at 92% 18%, var(--tint-warm), transparent 58%),
    linear-gradient(180deg, var(--hero-grid-bg), color-mix(in srgb, var(--bg-2) 70%, var(--hero-grid-bg)));
}

:root:not([data-color-scheme="dark"]) .hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  background-color: var(--hero-grid-tone);
  -webkit-mask: url('../assets/grid background.svg?v=3') center / cover no-repeat;
  mask: url('../assets/grid background.svg?v=3') center / cover no-repeat;
}

[data-color-scheme="dark"] .hero::before {
  opacity: 0.1;
  background-color: var(--canvas-grid, var(--hero-grid-tone));
}

:root:not([data-color-scheme="dark"]) .hero::before {
  opacity: 0.1;
}

.hero .container-wide {
  position: relative;
  z-index: 2;
}

/* Hand-drawn hero annotations — hidden by default; only when side gutters exist */
.hero-doodles {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

@media (min-width: 1600px) {
  .hero-doodles {
    display: block;
  }
}

.hero-sketch-float {
  position: absolute;
  display: block;
  color: color-mix(in srgb, var(--text) 28%, transparent);
  opacity: 0.55;
}

[data-color-scheme="dark"] .hero-sketch-float {
  color: color-mix(in srgb, var(--accent-400) 30%, transparent);
  opacity: 0.55;
}

.hero-sketch-float--plan {
  left: max(8px, calc((100% - 1360px) / 2 - 168px));
  bottom: clamp(24px, 8%, 72px);
  width: min(160px, 14vw);
  transform: rotate(-4deg);
  animation: heroDriftLb 15s ease-in-out infinite;
}

.hero-sketch-float--dim {
  right: max(8px, calc((100% - 1360px) / 2 - 152px));
  top: clamp(20px, 9%, 80px);
  width: min(140px, 12vw);
  transform: rotate(3deg);
  animation: heroDriftRt 17s ease-in-out infinite;
}

.sketch-stroke {
  stroke-dasharray: var(--sd, 200);
  stroke-dashoffset: var(--sd, 200);
  animation: sketchDraw 14s ease-in-out infinite;
  animation-delay: var(--sd-delay, 0s);
}

.hero-annotation {
  position: absolute;
  font-family: var(--font-hand);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--wood-deep);
  padding: 8px 14px 10px;
  max-width: 12ch;
  background: color-mix(in srgb, var(--sand) 55%, white);
  border: 1.5px solid color-mix(in srgb, var(--wood-light) 45%, var(--line));
  border-radius: 3px 14px 10px 16px;
  box-shadow:
    0 2px 10px color-mix(in srgb, var(--wood) 12%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 70%, transparent);
  animation: heroAnnotationFloat 13s ease-in-out infinite;
}

.hero-annotation::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 14px;
  width: 32px;
  height: 11px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--warn) 22%, #f3e8c8);
  opacity: 0.85;
  transform: rotate(-3deg);
  box-shadow: 0 1px 2px color-mix(in srgb, black 8%, transparent);
}

[data-color-scheme="dark"] .hero-annotation {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-500) 10%, var(--surface-2));
  border-color: color-mix(in srgb, var(--accent-400) 35%, transparent);
  box-shadow: 0 2px 16px color-mix(in srgb, var(--accent-500) 18%, transparent);
  opacity: 0.9;
}

[data-color-scheme="dark"] .hero-annotation::before {
  display: block;
  background: color-mix(in srgb, var(--accent-300) 35%, var(--surface-3));
}

/* Keep notes in the side gutters outside the ~1360px content column */
.hero-annotation--1 {
  top: clamp(64px, 12%, 110px);
  left: max(10px, calc((100% - 1360px) / 2 - 132px));
  --note-rot: -7deg;
  transform: rotate(-7deg);
  animation-delay: 0s;
}

.hero-annotation--2 {
  top: clamp(210px, 42%, 280px);
  left: max(8px, calc((100% - 1360px) / 2 - 148px));
  --note-rot: 4deg;
  transform: rotate(4deg);
  animation-delay: 0.6s;
}

.hero-annotation--3 {
  top: clamp(56px, 10%, 100px);
  right: max(10px, calc((100% - 1360px) / 2 - 128px));
  max-width: 11ch;
  --note-rot: 5deg;
  transform: rotate(5deg);
  animation-delay: 1.1s;
}

.hero-annotation--4 {
  bottom: clamp(28px, 10%, 64px);
  right: max(12px, calc((100% - 1360px) / 2 - 136px));
  max-width: 12ch;
  --note-rot: -5deg;
  transform: rotate(-5deg);
  animation-delay: 1.7s;
}

@keyframes heroDriftLb {

  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg);
  }

  50% {
    transform: translate(7px, -9px) rotate(-1deg);
  }
}

@keyframes heroDriftRt {

  0%,
  100% {
    transform: translate(0, 0) rotate(3deg);
  }

  50% {
    transform: translate(-9px, 7px) rotate(5deg);
  }
}

@keyframes heroAnnotationFloat {

  0%,
  100% {
    transform: translateY(0) rotate(var(--note-rot, -5deg));
  }

  50% {
    transform: translateY(-4px) rotate(calc(var(--note-rot, -5deg) + 2deg));
  }
}

@keyframes sketchDraw {

  0%,
  6% {
    stroke-dashoffset: var(--sd, 200);
    opacity: 0;
  }

  18%,
  72% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  88%,
  100% {
    stroke-dashoffset: var(--sd, 200);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-sketch-float,
  .hero-annotation,
  .sketch-stroke {
    animation: none;
  }

  .sketch-stroke {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-7);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-avant);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.08;
  margin-block: var(--sp-3) var(--sp-4);
  text-transform: uppercase;
}

.hero h1 em {
  font-style: italic;
  color: var(--wood);
}

[data-color-scheme="dark"] .hero h1 em {
  color: var(--accent);
}

.hero h1 .hero-lead-line {
  display: block;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--text);
  max-width: 18ch;
}

.hero h1 .hero-kicker {
  display: block;
  margin-top: 0.18em;
  font-size: 1.15em;
  font-weight: 900;
  color: var(--accent-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
  -webkit-text-stroke: 1.2px currentColor;
  paint-order: stroke fill;
}

[data-color-scheme="dark"] .hero h1 .hero-kicker {
  color: var(--accent);
}

.hero .lead {
  margin-bottom: var(--sp-5);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--sp-5);
  color: var(--text-3);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.hero-trust .avatar-stack .avatar {
  --sz: 32px;
}

/* Organic blobs */
.blob {
  position: absolute;
  border-radius: 45% 55% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px);
  opacity: 0.5;
  z-index: -1;
}

.blob-1 {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -80px;
  background: radial-gradient(circle at 30% 30%, var(--medium-400), var(--medium-600) 42%, transparent 72%);
  opacity: 0.55;
}

.blob-2 {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -60px;
  background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--wood-light) 45%, transparent), var(--wood-deep) 38%, transparent 72%);
  opacity: 0.45;
}

:root:not([data-color-scheme="dark"]) .blob {
  opacity: 0.18;
  filter: blur(4px);
}

[data-color-scheme="dark"] .blob-1 {
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent-400) 55%, transparent), color-mix(in srgb, var(--accent-700) 35%, transparent) 42%, transparent 72%);
  opacity: 0.35;
}

[data-color-scheme="dark"] .blob-2 {
  background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--accent-300) 40%, transparent), color-mix(in srgb, var(--accent-600) 30%, transparent) 38%, transparent 72%);
  opacity: 0.28;
}

/* Hero 3D house — frameless floating model */
.hero-house-wrap {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Clip the oversized canvas so the plot never spills into the next section */
  overflow: hidden;
  isolation: isolate;
}

.hero-house {
  position: relative;
  width: 100%;
  height: clamp(440px, 58vw, 580px);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

[data-color-scheme="dark"] .hero-house {
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-house.is-dragging {
  cursor: grabbing;
}

/* The canvas is rendered 1.5x the hero box and centered on it, so a
   zoomed-in model overflows the box instead of being clipped by it (it only
   gets cut off by the oversized canvas / hero section). pointer-events:none
   keeps the overhang from blocking the hero copy; interactions stay on the
   .hero-house box itself. */
.hero-house-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 150% !important;
  height: 150% !important;
  max-width: none;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.hero-house-hint {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line-subtle);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0.85;
}

.hero-house-hint svg {
  width: 1em;
  height: 1em;
  color: var(--accent);
}

[data-color-scheme="dark"] .hero-house-hint {
  background: color-mix(in srgb, var(--surface-2) 75%, transparent);
  border-color: color-mix(in srgb, var(--accent-400) 25%, var(--line));
  color: var(--text);
}

/* Hero showcase panel (legacy window chrome — kept for other uses) */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-4);
  background: var(--surface);
  transform: rotate(0.6deg);
}

.hero-visual .hv-bar {
  flex: none;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  background: var(--surface-2);
  border-bottom: 1.5px solid var(--line);
}

.hv-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.hv-body {
  position: relative;
  flex: none;
  overflow: hidden;
  background: var(--bg-3);
  line-height: 0;
}

.hv-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.hv-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  vertical-align: top;
}

.hv-rail {
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  align-items: center;
}

.hv-rail i {
  width: 30px;
  height: 30px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  display: block;
}

.hv-rail i.on {
  background: var(--accent-soft);
}

.hv-canvas {
  position: relative;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0/22px 22px,
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0/22px 22px,
    var(--bg-3);
}

.hv-props {
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hv-props .row {
  height: 12px;
  border-radius: 6px;
  background: var(--surface-3);
}

.hv-props .row.a {
  width: 70%;
  background: var(--accent-soft);
}

.hv-swatches {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.hv-swatches span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
}

/* Floating sketchy annotation on hero visual */
.hv-note {
  position: absolute;
  font-family: var(--font-hand);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  font-size: 1.15rem;
  background: var(--elevated);
  padding: 4px 12px;
  border-radius: 14px 16px 12px 18px;
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-2);
  transform: rotate(-4deg);
}

.hv-note.n1 {
  top: 62px;
  right: -12px;
}

.hv-note.n2 {
  bottom: 26px;
  left: -14px;
  transform: rotate(3deg);
  color: var(--brand-accent);
}

/* Feature pills strip */
.section-feature-pills {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--line-subtle);
  padding-block: var(--sp-5);
  background: var(--bg-3, var(--bg));
}

.feature-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-subtle);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

:root:not([data-color-scheme="dark"]) .feature-pill {
  background: var(--cream);
}

[data-color-scheme="dark"] .feature-pill {
  background: linear-gradient(165deg, var(--surface-2), color-mix(in srgb, var(--accent-500) 8%, var(--surface-3)) 120%);
  border-color: var(--rim);
}

[data-color-scheme="dark"] .feature-pill svg {
  color: var(--accent);
}

[data-color-scheme="dark"] .feature-pill:hover {
  border-color: color-mix(in srgb, var(--accent-400) 45%, var(--line));
  box-shadow: var(--glow-accent);
}

.feature-pill svg {
  width: 1.1em;
  height: 1.1em;
  color: var(--olive);
  flex: none;
}

.feature-pill:hover {
  border-color: color-mix(in srgb, var(--wood-light) 45%, var(--line));
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* ---------------- Feature preview windows ---------------- */
.section-preview {
  padding-block: var(--sp-7) var(--sp-8);
}

[data-color-scheme="dark"] .section-preview {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-inset) 85%, var(--accent-600) 6%), var(--bg-inset));
}

.section-preview .preview-grid {
  margin-top: 0;
}

/* ---------------- Persona picker ---------------- */
.role-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  max-width: 1080px;
  margin-inline: auto;
}

.role-card {
  width: 100%;
  cursor: pointer;
  background: linear-gradient(180deg, var(--elevated), var(--surface-2));
  box-shadow: var(--shadow-1), var(--shadow-inset);
}

:root:not([data-color-scheme="dark"]) .role-card {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-1);
}

.role-card:hover {
  border-color: var(--wood-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-3), var(--glow-warm);
}

[data-color-scheme="dark"] .role-card:hover {
  border-color: color-mix(in srgb, var(--accent-400) 40%, var(--line));
  box-shadow: var(--shadow-3), var(--glow-accent);
}

:root:not([data-color-scheme="dark"]) .role-card:hover {
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--wood-light) 35%, var(--line));
}

.role-card.is-selected {
  border-color: var(--wood);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 65%, var(--elevated)), var(--surface-2));
  box-shadow: var(--glow-warm), var(--shadow-inset);
  transform: translateY(-2px);
}

:root:not([data-color-scheme="dark"]) .role-card.is-selected {
  background: color-mix(in srgb, var(--sand) 65%, var(--surface));
  box-shadow: var(--shadow-2);
  border-color: var(--wood);
}

.role-card.is-selected .ut-ic {
  color: var(--wood);
}

[data-color-scheme="dark"] .role-card.is-selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 80%, var(--elevated)), var(--surface-2));
  box-shadow: var(--glow-accent), var(--shadow-inset);
}

[data-color-scheme="dark"] .role-card.is-selected .ut-ic {
  color: var(--accent);
}

[data-color-scheme="dark"] .role-detail {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-500) 8%, var(--elevated)), var(--surface-2));
  border-color: color-mix(in srgb, var(--accent-400) 30%, var(--line));
  box-shadow: var(--glow-accent), var(--shadow-2), var(--shadow-inset);
}

.role-detail-wrap {
  max-width: 1080px;
  margin: var(--sp-5) auto 0;
}

.role-detail-wrap[hidden] {
  display: none;
}

.role-detail {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sand) 45%, var(--elevated)), var(--surface-2));
  border: 1.5px solid color-mix(in srgb, var(--wood-light) 40%, var(--line));
  box-shadow: var(--glow-warm), var(--shadow-2), var(--shadow-inset);
  animation: roleDetailIn 0.38s var(--ease) both;
}

:root:not([data-color-scheme="dark"]) .role-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

@keyframes roleDetailIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.role-detail-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: var(--sp-4);
}

.role-detail-head .ut-ic {
  margin: 0;
  color: var(--accent);
  flex: none;
}

.role-detail-head h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.role-detail-intro {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 58ch;
}

.role-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.role-detail-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.role-tool-list,
.role-example-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.role-tool-list li,
.role-example-list li {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--line-subtle);
}

.role-tool-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.role-tool-ic {
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

.role-tool-ic svg {
  width: 1.25em;
  height: 1.25em;
}

.role-tool-list strong,
.role-example-list strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.role-tool-list span,
.role-example-list span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-2);
}

/* ---------------- Preview band ---------------- */

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.preview-window {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(180deg, var(--elevated), var(--surface-2));
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-2), var(--shadow-inset);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

:root:not([data-color-scheme="dark"]) .preview-window {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-2);
}

.preview-window:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3), var(--glow-warm);
}

:root:not([data-color-scheme="dark"]) .preview-window:hover {
  box-shadow: var(--shadow-3);
  border-color: color-mix(in srgb, var(--wood-light) 30%, var(--line));
}

.pw-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding-inline: 12px;
  background: var(--surface-2);
  border-bottom: 1.5px solid var(--line);
}

.pw-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.pw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.pw-dot.r {
  background: #e0715a;
}

.pw-dot.y {
  background: #e6b34d;
}

.pw-dot.g {
  background: #7fae74;
}

/* macOS: traffic lights left, title centered like a real macOS toolbar. */
.pw-chrome.os-mac .pw-title {
  flex: 1;
  justify-content: center;
  margin-right: 44px; /* optical balance for the traffic lights */
}

/* Windows 10/11 + GNOME: title left, caption controls on the right. */
.pw-chrome.os-win11,
.pw-chrome.os-win10,
.pw-chrome.os-gnome {
  justify-content: space-between;
  padding-right: 0;
}

.pw-chrome.os-gnome {
  padding-right: 8px;
}

.pw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.pw-btn svg {
  width: 12px;
  height: 12px;
}

/* Windows caption buttons: wide flat hit areas spanning the whole bar. */
.pw-chrome.os-win11 .pw-controls,
.pw-chrome.os-win10 .pw-controls {
  gap: 0;
  height: 100%;
  align-self: stretch;
}

.pw-chrome.os-win11 .pw-btn,
.pw-chrome.os-win10 .pw-btn {
  width: 44px;
  height: 100%;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.pw-chrome.os-win11 .pw-btn:hover,
.pw-chrome.os-win10 .pw-btn:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.pw-chrome.os-win11 .pw-btn.close:hover,
.pw-chrome.os-win10 .pw-btn.close:hover {
  background: #c42b1c;
  color: #fff;
}

/* Windows 11 softens the corner over the rounded window edge. */
.pw-chrome.os-win11 .pw-btn.close {
  border-top-right-radius: calc(var(--r-xl) - 2px);
}

/* GNOME (Ubuntu / Linux): circular controls, Yaru-style orange close. */
.pw-chrome.os-gnome .pw-controls {
  gap: 6px;
}

.pw-chrome.os-gnome .pw-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--text-2);
}

.pw-chrome.os-gnome .pw-btn svg {
  width: 10px;
  height: 10px;
}

.pw-chrome.os-gnome .pw-btn.close {
  background: #e95420;
  color: #fff;
}

.pw-title {
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pw-title svg {
  width: 1em;
  height: 1em;
  opacity: 0.75;
}

.pw-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-3);
  overflow: hidden;
  border-bottom: 1.5px solid var(--line);
}

.pw-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.pw-screen .pw-canvas,
.pw-screen .pw-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pw-screen:not(.has-video) .pw-video {
  display: none;
}

.pw-screen.has-video .pw-canvas {
  display: none;
}

.pw-live {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-md);
  background: rgba(20, 16, 12, .55);
  color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
}

.pw-screen.has-video .pw-live {
  display: none;
}

.pw-copy {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: var(--sp-4);
}

.pw-ic {
  display: flex;
  align-items: flex-start;
  flex: none;
  color: var(--pw-accent, var(--accent));
}

.pw-ic svg {
  width: 1.65em;
  height: 1.65em;
}

.pw-copy h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.pw-copy p {
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ---------------- Feature cards ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.features-grid-rich {
  gap: var(--sp-3);
}

.section:has(.features-grid-rich),
.section:has(.feature-landing-overview) {
  padding-block: var(--sp-7);
}

[data-color-scheme="dark"] .section:has(.features-grid-rich),
[data-color-scheme="dark"] .section-features-page {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-inset) 85%, var(--accent-600) 5%), var(--bg-inset));
}

.section:has(.features-grid-rich) h2,
.section:has(.feature-landing-overview) h2 {
  margin-bottom: 20px !important;
}

.feature-landing-overview {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.feature-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.feature-spotlight .feature-visual {
  height: 120px;
}

.feature-name-overview {
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1.5px solid var(--line-subtle);
  box-shadow: var(--shadow-1);
  text-align: center;
}

:root:not([data-color-scheme="dark"]) .feature-name-overview {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-2);
}

.feature-name-overview-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--sp-4);
}

.feature-name-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  max-width: 1080px;
  margin-inline: auto;
}

.feature-name-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-lg);
  background: var(--elevated);
  border: 1.5px solid var(--line);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.feature-name-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: color-mix(in srgb, var(--accent-400) 40%, var(--line));
}

:root:not([data-color-scheme="dark"]) .feature-name-item:hover {
  box-shadow: var(--shadow-3), 0 0 0 1px color-mix(in srgb, var(--accent-300) 25%, transparent);
}

.feature-name-ic {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-name-ic svg {
  width: 1.85em;
  height: 1.85em;
}

.feature {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1.5px solid var(--line);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-rich {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(180deg, var(--elevated), var(--surface-2));
  box-shadow: var(--shadow-1), var(--shadow-inset);
}

:root:not([data-color-scheme="dark"]) .feature-rich {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-2);
}

.feature-rich:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3), var(--glow-warm);
  border-color: var(--line-strong);
}

:root:not([data-color-scheme="dark"]) .feature-rich:hover {
  box-shadow: var(--shadow-3);
  border-color: color-mix(in srgb, var(--wood-light) 28%, var(--line));
}

.feature-visual {
  position: relative;
  height: 96px;
  overflow: hidden;
  background:
    linear-gradient(200deg, color-mix(in srgb, var(--fv-accent, var(--accent)) 22%, var(--bg-3)), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--fv-accent, var(--accent)) 10%, var(--bg-2)), var(--bg-4));
  border-bottom: 1.5px solid var(--line-subtle);
}

.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, white 14%, transparent), transparent 38%, color-mix(in srgb, var(--main-900) 5%, transparent));
  pointer-events: none;
}

.feature-visual.fv-scene svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-visual.fv-image {
  height: 132px;
}

.feature-visual.fv-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-spotlight .feature-visual.fv-image {
  height: 200px;
}

.features-grid-rich .feature-visual.fv-image {
  height: 112px;
}

.fv-plan {
  position: absolute;
  inset: 18px 22px;
  border: 1.5px dashed color-mix(in srgb, var(--line-strong) 80%, transparent);
  border-radius: 8px;
}

.fv-plan .fv-wall {
  position: absolute;
  background: #2f2a24;
  border-radius: 2px;
}

.fv-plan .w1 {
  left: 12%;
  top: 18%;
  width: 56%;
  height: 3px;
}

.fv-plan .w2 {
  left: 12%;
  top: 18%;
  width: 3px;
  height: 58%;
}

.fv-plan .w3 {
  left: 12%;
  top: 52%;
  width: 38%;
  height: 3px;
}

.fv-plan .fv-room {
  position: absolute;
  right: 14%;
  bottom: 16%;
  width: 34%;
  height: 38%;
  background: color-mix(in srgb, var(--fv-accent) 22%, transparent);
  border-radius: 6px;
}

.fv-plan .fv-dim {
  position: absolute;
  left: 18%;
  bottom: 10%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-deep);
}

.fv-walk {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a1816, #2a241f);
}

.fv-walk .fv-cross {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.fv-walk .fv-cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.fv-walk .fv-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

.fv-walk .fv-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(194, 101, 63, .25));
  transform: perspective(120px) rotateX(52deg);
  transform-origin: bottom;
}

.fv-swatches {
  position: absolute;
  inset: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.fv-swatches span {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  box-shadow: var(--shadow-1);
  transform: rotate(-4deg);
}

.fv-swatches span:nth-child(even) {
  transform: rotate(3deg);
  margin-top: 8px;
}

.fv-budget {
  position: absolute;
  inset: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.fv-budget .fv-bar {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fv-accent) 70%, #fff);
  opacity: 0.85;
}

.fv-budget .b2 {
  opacity: 0.55;
}

.fv-budget .b3 {
  opacity: 0.95;
}

.fv-budget .fv-total {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.fv-review {
  position: absolute;
  inset: 16px 20px;
  background: var(--surface);
  border-radius: 12px;
  border: 1.5px solid var(--line);
}

.fv-review .fv-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
}

.fv-review .p1 {
  top: 22px;
  left: 28px;
}

.fv-review .p2 {
  top: 48px;
  right: 36px;
  background: var(--teal);
}

.fv-review .fv-comment {
  position: absolute;
  left: 44px;
  bottom: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-2);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.fv-export {
  position: absolute;
  inset: 18px 24px;
}

.fv-export .fv-sheet {
  position: absolute;
  left: 8%;
  top: 10%;
  width: 58%;
  height: 72%;
  background: #fff;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-2);
  transform: rotate(-3deg);
}

.fv-export .s2 {
  left: 28%;
  top: 18%;
  width: 58%;
  height: 72%;
  opacity: 0.92;
  transform: rotate(2deg);
}

.fv-export .fv-label {
  position: absolute;
  bottom: 8px;
  left: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.fv-planting {
  position: absolute;
  inset: 18px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding-bottom: 8px;
}

.fv-planting .fv-sprout {
  width: 8px;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--fv-accent) 75%, #5a6b3a);
}

.fv-planting .s1 {
  height: 28px;
}

.fv-planting .s2 {
  height: 42px;
}

.fv-planting .s3 {
  height: 22px;
  opacity: 0.75;
}

.fv-planting .fv-sprout::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 12px;
  margin-left: -5px;
  margin-top: -10px;
  border-radius: 50% 50% 40% 40%;
  background: color-mix(in srgb, var(--fv-accent) 55%, #8faa5c);
}

.fv-planting .fv-sprout {
  position: relative;
}

.fv-planting .fv-season {
  position: absolute;
  top: 6px;
  left: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.fv-animals {
  position: absolute;
  inset: 16px 22px;
}

.fv-animals .fv-run {
  position: absolute;
  left: 8%;
  bottom: 18%;
  width: 72%;
  height: 38%;
  border: 2px dashed color-mix(in srgb, var(--fv-accent) 65%, var(--line));
  border-radius: 12px;
}

.fv-animals .fv-shelter {
  position: absolute;
  right: 14%;
  top: 22%;
  width: 28%;
  height: 34%;
  background: color-mix(in srgb, var(--fv-accent) 35%, var(--surface));
  border-radius: 8px 8px 4px 4px;
  border: 1.5px solid var(--line);
}

.fv-animals .fv-zone {
  position: absolute;
  left: 0;
  bottom: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.fv-portfolio {
  position: absolute;
  inset: 16px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
}

.fv-portfolio .fv-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--fv-accent) 40%, var(--surface)), var(--bg-3));
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-1);
}

.fv-portfolio .t2 {
  transform: translateY(-6px);
}

.fv-portfolio .t3 {
  transform: translateY(-12px);
}

.feature-body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}

.feature-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: linear-gradient(180deg, var(--accent-muted), var(--accent-soft));
  padding: 4px 10px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.feature-rich h3 {
  font-family: var(--font-avant);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin-bottom: 8px;
}

.feature-pitch {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0;
  flex: 1;
}

.feature-bullets li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.32;
}

.feature-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-outcome {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-deep);
  transition: gap var(--dur-fast) var(--ease);
}

.feature-link:hover {
  gap: 10px;
  color: var(--accent);
}

.feature-link svg {
  width: 1em;
  height: 1em;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: var(--line-strong);
}

.feature .f-ic {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-2);
  flex: none;
}

.feature-rich .f-ic {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  margin-bottom: 0;
}

.feature .f-ic svg {
  width: 1.5em;
  height: 1.5em;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.92rem;
}

/* ---------------- How it works ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
  padding: var(--sp-3);
}

.step .step-n {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent-deep);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-1);
}

.step h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
}

.step p {
  font-size: 0.8rem;
  margin-top: 3px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 7%;
  right: 7%;
  height: 2.5px;
  z-index: 0;
  background: no-repeat center/100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='6' viewBox='0 0 800 6'><path d='M1 3 C 120 0, 240 6, 400 3 S 680 0, 799 3' fill='none' stroke='%23cf9f7f' stroke-width='2.5' stroke-dasharray='2 8' stroke-linecap='round'/></svg>");
}

/* ---------------- User types ---------------- */
.usertypes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
}

.usertype {
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1.5px solid var(--line);
  text-align: center;
  transition: all var(--dur) var(--ease);
}

.usertype:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.usertype .ut-ic {
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.usertype .ut-ic svg {
  width: 1.65em;
  height: 1.65em;
}

.usertype h4 {
  font-family: var(--font-body);
  font-size: 0.98rem;
}

.usertype p {
  font-size: 0.82rem;
  margin-top: 2px;
}

/* ---------------- Pricing ---------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  transition: all var(--dur) var(--ease);
  position: relative;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}

.price-card.is-featured {
  border-color: var(--wood);
  box-shadow: var(--glow-warm), var(--shadow-2);
  background: #fff;
}

[data-color-scheme="dark"] .price-card {
  background: linear-gradient(165deg, var(--surface-2), color-mix(in srgb, var(--accent-500) 6%, var(--surface-3)) 120%);
  border-color: var(--rim);
  box-shadow: var(--shadow-2), var(--shadow-inset);
}

[data-color-scheme="dark"] .price-card:hover {
  border-color: color-mix(in srgb, var(--accent-400) 35%, var(--line));
  box-shadow: var(--shadow-3), var(--glow-accent);
}

[data-color-scheme="dark"] .price-card.is-featured {
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent-500) 12%, var(--surface-2)), color-mix(in srgb, var(--accent-600) 10%, var(--surface-3)) 120%);
  border-color: var(--accent-400);
  box-shadow: var(--glow-accent), var(--shadow-3), var(--shadow-inset);
}

.price-card .plan-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.price-card .plan-desc {
  font-size: 0.85rem;
  color: var(--text-3);
  min-height: 2.4em;
  margin-top: 2px;
}

.price-card .plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-block: var(--sp-4) 4px;
}

.price-card .plan-price .amt {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.price-card .plan-price .per {
  color: var(--text-3);
  font-size: 0.9rem;
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block: var(--sp-4);
  flex: 1 1 auto;
}

.price-card li {
  display: flex;
  gap: 0.6em;
  font-size: 0.9rem;
  color: var(--text-2);
  align-items: flex-start;
}

.price-card li.feature-heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-1);
  list-style: none;
}

.price-card li svg {
  width: 1.15em;
  height: 1.15em;
  color: var(--ok);
  flex: none;
  margin-top: 0.1em;
}

.price-card li.off {
  color: var(--text-3);
  opacity: 0.7;
}

.price-card li.off svg {
  color: var(--text-3);
}

/* ---------------- Testimonials carousel ---------------- */
.testimonials-carousel {
  position: relative;
  padding-inline: 44px;
}

.testimonials-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 4px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.testimonials-viewport::-webkit-scrollbar {
  display: none;
}

.testimonials-track {
  display: flex;
  gap: var(--sp-4);
  --tc-per: 3;
}

@media (max-width: 1000px) {
  .testimonials-track { --tc-per: 2; }
}

@media (max-width: 640px) {
  .testimonials-track { --tc-per: 1; }
}

.testimonial-card {
  flex: 0 0 calc((100% - (var(--tc-per, 3) - 1) * var(--sp-4)) / var(--tc-per, 3));
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

:root:not([data-color-scheme="dark"]) .testimonial-card {
  background: #fff;
  box-shadow: var(--shadow-2);
}

[data-color-scheme="dark"] .testimonial-card {
  background: linear-gradient(165deg, var(--surface-2), color-mix(in srgb, var(--accent-500) 5%, var(--surface-3)) 120%);
  border-color: var(--rim);
  box-shadow: var(--shadow-2), var(--shadow-inset);
}

[data-color-scheme="dark"] .testimonial-mark {
  opacity: 0.65;
  color: var(--accent);
}

.testimonial-mark {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.45;
  user-select: none;
}

.testimonial-quote {
  margin: var(--sp-3) 0 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--text);
  flex: 1 1 auto;
}

.testimonial-quote em {
  font-style: italic;
  color: var(--text);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-subtle);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  flex: none;
  box-shadow: 0 2px 8px color-mix(in srgb, black 18%, transparent);
}

.testimonial-role {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  font-style: normal;
  color: var(--text-2);
}

.testimonial-org {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--wood);
  letter-spacing: 0.02em;
  margin-top: 1px;
}

[data-color-scheme="dark"] .testimonial-org {
  color: var(--accent);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--sp-5);
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--line-strong);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.testimonials-dot.is-active {
  background: var(--wood);
  transform: scale(1.3);
}

[data-color-scheme="dark"] .testimonials-dot.is-active {
  background: var(--accent);
}

.testimonials-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.testimonials-nav svg {
  width: 18px;
  height: 18px;
}

.testimonials-nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonials-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.testimonials-nav--prev {
  left: 0;
}

.testimonials-nav--next {
  right: 0;
}

@media (max-width: 640px) {
  .testimonials-carousel {
    padding-inline: 0;
  }

  .testimonials-nav {
    display: none;
  }
}

/* Pricing compare table */
.table-compare th,
.table-compare td {
  vertical-align: middle;
}

.table-compare th:not(:first-child),
.table-compare td:not(:first-child) {
  text-align: center;
}

.table-yes {
  text-align: center;
}

.table-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.table-check svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* Marketing subpages */
.section-page-head {
  padding-block: var(--sp-8) var(--sp-6);
  border-bottom: 1px solid var(--line-subtle);
}

.section-features-page {
  padding-block: var(--sp-6) var(--sp-8);
}

.about-story {
  text-align: center;
}

.about-story-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-6);
  align-items: center;
}

.about-story-copy .lead {
  max-width: none;
  margin: 0;
  text-align: left;
}

.about-story-media {
  margin: 0;
}

.about-story-media img {
  width: 100%;
  min-height: 280px;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-2);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.about-values h3 {
  font-size: 1.08rem;
}

.about-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.about-person {
  text-align: center;
}

.careers-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 720px;
  margin-inline: auto;
}

.career-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.career-card h3 {
  font-size: 1.15rem;
}

.career-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-3);
}

.career-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.career-benefit-ic {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 12px;
}

.career-benefit-ic svg {
  width: 1.75em;
  height: 1.75em;
}

.career-benefit h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.career-benefit p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-2);
}

.career-role-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: var(--sp-5);
}

.career-role-back:hover {
  color: var(--accent);
}

.career-role-back svg {
  width: 1.1em;
  height: 1.1em;
}

.career-role-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-6);
  align-items: start;
}

.career-role-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.career-role-apply h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.career-role-apply p {
  color: var(--text-2);
  line-height: 1.5;
}

.career-role-apply .btn {
  width: 100%;
  justify-content: center;
}

.career-role-apply-note {
  font-size: 0.85rem;
  line-height: 1.45;
}

.career-role-body {
  max-width: 760px;
}

.career-role-block {
  margin-bottom: var(--sp-6);
}

.career-role-block h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.career-role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.career-role-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2);
  line-height: 1.5;
  font-size: 0.98rem;
}

.career-role-cta {
  text-align: center;
  margin-top: var(--sp-4);
}

.career-role-cta h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.career-role-cta p {
  color: var(--text-2);
}

.contact-extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.contact-extra h3 {
  font-size: 1.1rem;
}

.contact-extra .btn {
  width: 100%;
  justify-content: center;
}

/* ---------------- EnVision Mode page ---------------- */
.env-page-hero {
  position: relative;
  padding-block: var(--sp-8) var(--sp-7);
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 8% 0%, var(--tint-cool), transparent 62%),
    radial-gradient(760px 480px at 95% 20%, var(--tint-warm), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

.env-page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-7);
  align-items: center;
}

.env-page-hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  max-width: 14ch;
}

.env-page-hero-copy h1 em {
  font-style: italic;
  color: var(--accent-deep);
}

[data-color-scheme="dark"] .env-page-hero-copy h1 em {
  color: var(--accent);
}

.env-page-hero-copy .lead {
  margin-bottom: var(--sp-5);
  max-width: 42ch;
}

.env-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.env-mock-caption {
  font-size: 0.88rem;
  color: var(--text-3);
  text-align: center;
  margin: 0;
}

.env-mock-screen {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-3);
  aspect-ratio: 16 / 11;
  background: #1a1814;
}

.env-mock-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.env-mock-screen--sm {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
}

.env-mock-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .35) 100%);
}

.env-mock-crosshair {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
}

.env-mock-crosshair span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.env-mock-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.env-mock-brand,
.env-mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(20, 16, 12, .55);
  color: #fff;
  backdrop-filter: blur(8px);
}

.env-mock-brand svg {
  width: 1em;
  height: 1em;
}

.env-mock-prompt {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: rgba(20, 16, 12, .7);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  z-index: 3;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background 0.45s ease;
}

button.env-mock-prompt:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

button.env-mock-prompt:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.env-mock-prompt.is-hot {
  background: color-mix(in srgb, var(--accent) 75%, #111);
}

.env-mock--interact.is-night .env-mock-prompt.is-hot {
  background: color-mix(in srgb, #ffb060 55%, #1a1208);
}

.env-mock-prompt kbd,
.env-mock-hud kbd,
.env-control-keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.5em;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  font-family: inherit;
  font-size: 0.78em;
  font-weight: 700;
}

.env-mock--interact .env-mock-screen {
  cursor: pointer;
}

.env-mock--interact .env-lights-day,
.env-mock--interact .env-lights-night {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.85s ease;
}

.env-mock--interact .env-lights-day {
  position: relative;
  opacity: 1;
  z-index: 1;
}

.env-mock--interact .env-lights-night {
  opacity: 0;
  z-index: 1;
}

.env-mock--interact.is-night .env-lights-day {
  opacity: 0;
}

.env-mock--interact.is-night .env-lights-night {
  opacity: 1;
}

.env-mock--interact .env-mock-vignette {
  z-index: 2;
}

.env-mock-hud {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, .9);
  font-size: 0.72rem;
  font-weight: 600;
}

.env-mock-hud span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(20, 16, 12, .5);
}

.env-mock-map {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  background:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 12px 12px,
    rgba(20, 16, 12, .65);
  color: rgba(255, 255, 255, .75);
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: end start;
  padding: 6px;
}

.env-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.env-step {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1.5px solid var(--line-subtle);
}

.env-step-n {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.env-step h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.env-step p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

.env-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}

.env-split--vr {
  grid-template-columns: 1.05fr 0.95fr;
}

.env-split-copy h2 {
  margin: 12px 0 16px;
  max-width: 18ch;
}

.env-split-copy .lead {
  margin-bottom: var(--sp-5);
  max-width: 46ch;
}

.env-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.env-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2);
  line-height: 1.45;
  font-size: 0.95rem;
}

.env-feature-list li svg {
  width: 1.15em;
  height: 1.15em;
  color: var(--accent);
  flex: none;
  margin-top: 0.2em;
}

.env-feature-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.env-controls-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-3);
  max-width: 1100px;
  margin-inline: auto;
}

.env-control-card {
  text-align: center;
}

.env-control-keys {
  margin-bottom: 10px;
}

.env-control-keys kbd {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
  min-width: 2.2em;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.env-control-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 600;
}

.section-env-vr {
  background:
    radial-gradient(700px 420px at 90% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%),
    var(--bg-2);
}

.env-vr-note {
  margin-top: var(--sp-5);
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 48ch;
}

.env-vr-device {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.env-vr-headset {
  position: relative;
  z-index: 2;
  width: min(100%, 320px);
}

.env-vr-visor {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  padding: 22px 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, #2a2723, #141210);
  border: 2px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-3);
}

.env-vr-lens {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .25), transparent 40%),
    radial-gradient(circle at 50% 50%, #3ecfc2 0%, #0a5f5a 45%, #0b1c1b 75%);
  border: 3px solid #3a3530;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .45);
}

.env-vr-strap {
  width: 70%;
  height: 18px;
  margin: -8px auto 0;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(180deg, #3a3530, #1c1916);
}

.env-vr-preview {
  position: absolute;
  inset: auto 8% 8% 8%;
  z-index: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 10;
  opacity: 0.92;
}

.env-vr-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.env-vr-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 85%, #111);
  color: #fff;
}

.env-vr-badge svg {
  width: 1em;
  height: 1em;
}

.env-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.env-gallery-card figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.4;
}

.env-page-cta {
  text-align: center;
}

.env-page-cta-kicker {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

.env-page-cta h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
}

/* ---------------- Community ---------------- */
.community-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.community-stat-v {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-deep);
}

.community-stat-l {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.community-banner {
  margin: 0;
}

.community-banner img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-2);
}

.community-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.community-channel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.community-channel-ic {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 12px;
}

.community-channel-ic svg {
  width: 1.75em;
  height: 1.75em;
}

.community-channel h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.community-channel p {
  flex: 1 1 auto;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 10px;
}

.community-channel-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
}

.community-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.community-events,
.community-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.community-event h4,
.community-highlight h4 {
  font-size: 1.02rem;
  line-height: 1.35;
}

.community-event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-3);
}

.community-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.community-highlight-meta {
  font-size: 0.85rem;
  color: var(--text-3);
}

.section-community-nav {
  padding-block: 0 var(--sp-4);
  /* Same band as page head + content — skip torn edges so strips don't stack */
}

.section-community-nav::before,
.section-community-nav::after,
.section-community-nav+.section::before,
.section-community-nav+.section::after {
  content: none !important;
  display: none;
}

.community-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line-subtle);
}

:root:not([data-color-scheme="dark"]) .community-subnav {
  background: color-mix(in srgb, var(--sand) 45%, white);
}

.community-subnav-link {
  padding: 0.55em 1em;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.community-subnav-link:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--wood-light) 12%, transparent);
}

[data-color-scheme="dark"] .community-subnav-link:hover {
  background: color-mix(in srgb, var(--accent-400) 12%, transparent);
}

.community-subnav-link.is-active {
  color: var(--olive-deep);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

[data-color-scheme="dark"] .community-subnav-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--glow-accent);
}

.community-contests {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.community-contest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-contest h3 {
  font-size: 1.15rem;
}

.community-contest-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-2);
}

.community-contest-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-designers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.community-designer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.community-designer .avatar {
  margin-inline: auto;
}

.community-open-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ok) 32%, transparent);
}

[data-color-scheme="dark"] .community-open-tag {
  background: color-mix(in srgb, var(--ok) 16%, var(--surface-2));
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
}

.community-designer:not(:has(.community-open-tag))>h3 {
  margin-top: 12px;
}

.community-work-type {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

.community-designer>.btn {
  margin-top: auto;
  align-self: stretch;
}

.community-designer-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-3);
  text-align: left;
  width: 100%;
  margin-bottom: var(--sp-4);
}

.community-designer-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.designer-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
}

.designer-back:hover {
  color: var(--accent);
}

.designer-profile-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: var(--sp-5);
  align-items: start;
}

.designer-profile-side {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: calc(var(--nav-h, 64px) + var(--sp-4));
}

.designer-profile-side .avatar {
  margin-inline: auto;
}

.designer-profile-name {
  font-size: 1.6rem;
  margin-top: var(--sp-3);
}

.designer-profile-role {
  color: var(--text-3);
  font-size: 0.95rem;
  margin-top: 4px;
}

.designer-profile-about h2,
.designer-profile-contact h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.designer-profile-about p {
  color: var(--text-2);
  line-height: 1.6;
}

.designer-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.designer-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.designer-contact-hint {
  font-size: 0.8rem;
  margin-top: 6px;
}

.designer-contact-form .btn {
  width: 100%;
}

.community-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.community-project {
  overflow: hidden;
  padding: 0;
}

.community-project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-3);
}

.community-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-project h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}

.community-project-stats {
  display: flex;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-3);
}

.community-project-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  font-family: var(--font-hand);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: var(--accent-text, #fff);
  padding: 3px 14px;
  border-radius: var(--r-md);
  transform: rotate(3deg);
  box-shadow: var(--shadow-2);
  font-size: 1rem;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.pricing-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4) var(--sp-5);
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.save-tag {
  font-family: var(--font-hand);
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transform: rotate(-2deg);
}

/* ---------------- Contact ---------------- */
.section-contact {
  border-top: 1px solid var(--line-subtle);
}

[data-color-scheme="dark"] .section-contact {
  background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-inset) 90%, var(--accent-600) 6%));
}

.contact-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  max-width: 920px;
}

.contact-teaser-copy h2 {
  margin: 12px 0 14px;
  max-width: 20ch;
}

.contact-teaser-copy .lead {
  margin-bottom: var(--sp-5);
  max-width: 42ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--sp-7);
  align-items: start;
}

.contact-intro h2 {
  margin: 12px 0 16px;
  max-width: 18ch;
}

.contact-intro .lead {
  margin-bottom: var(--sp-5);
  max-width: 42ch;
}

.contact-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-2);
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--line);
}

.contact-note a {
  color: inherit;
  font-weight: 600;
}

.contact-note a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact-fields {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact-form-note {
  font-size: 0.88rem;
  margin: 0;
}

.contact-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-side-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.45;
}

.contact-side-list li svg {
  width: 1.15em;
  height: 1.15em;
  color: var(--accent);
  flex: none;
  margin-top: 0.2em;
}

.contact-side-list strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-side-list a {
  color: var(--accent-deep);
  font-weight: 600;
}

.contact-side-list a:hover {
  text-decoration: underline;
}

[data-color-scheme="dark"] .contact-side-list a {
  color: var(--accent);
}

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  max-width: 960px;
  margin-inline: auto;
}

.contact-channel {
  text-align: left;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.contact-channel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}

.contact-channel h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.contact-channel-detail {
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

[data-color-scheme="dark"] .contact-channel-detail {
  color: var(--accent);
}

.contact-channel p:last-child {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--line-strong);
  color: var(--cream);
}

:root:not([data-color-scheme="dark"]) .cta-banner {
  background:
    radial-gradient(ellipse 90% 130% at 100% -10%, color-mix(in srgb, var(--accent-300) 42%, transparent), transparent 52%),
    radial-gradient(ellipse 80% 110% at -5% 110%, color-mix(in srgb, var(--accent-400) 30%, transparent), transparent 48%),
    linear-gradient(135deg, var(--accent-900) 0%, var(--accent-800) 32%, var(--accent-500) 68%, var(--accent-700) 100%);
  border-color: color-mix(in srgb, var(--accent-300) 40%, transparent);
  box-shadow: 0 20px 48px -16px color-mix(in srgb, var(--accent-500) 45%, transparent);
}

[data-color-scheme="dark"] .cta-banner {
  background:
    radial-gradient(ellipse 85% 120% at 92% 0%, color-mix(in srgb, var(--accent-300) 32%, transparent), transparent 50%),
    radial-gradient(ellipse 75% 100% at 0% 100%, color-mix(in srgb, var(--accent-500) 24%, transparent), transparent 46%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-900) 32%, black) 0%, color-mix(in srgb, var(--accent-800) 52%, black) 30%, var(--accent-700) 58%, var(--accent-400) 100%);
  border-color: color-mix(in srgb, var(--accent-400) 48%, transparent);
  box-shadow: var(--glow-accent);
}

.cta-banner .blob-1 {
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent-200) 50%, transparent), color-mix(in srgb, var(--accent-500) 25%, transparent) 45%, transparent 72%);
  opacity: 0.22;
  filter: blur(3px);
}

[data-color-scheme="dark"] .cta-banner .blob-1 {
  opacity: 0.28;
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: color-mix(in srgb, #fff 82%, transparent);
}

.cta-banner .blob {
  opacity: 0.25;
}

/* High-contrast CTA on the accent banner — white fill + dark ink on every theme */
.cta-banner-btn {
  --btn-bg: #fff;
  --btn-fg: #111;
  background: #fff !important;
  color: #111 !important;
  border: 1px solid color-mix(in srgb, #111 8%, transparent) !important;
  box-shadow: 0 8px 24px -10px color-mix(in srgb, black 45%, transparent) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.cta-banner-btn:hover {
  background: #f4f4f4 !important;
  color: #111 !important;
  border-color: color-mix(in srgb, #111 14%, transparent) !important;
  box-shadow: 0 12px 28px -10px color-mix(in srgb, black 50%, transparent) !important;
}
.cta-banner-btn:active {
  background: #ebebeb !important;
  color: #111 !important;
}

.cta-banner-btn-secondary {
  --btn-bg: transparent;
  --btn-fg: #fff;
  background: transparent !important;
  color: #fff !important;
  border: 1px solid color-mix(in srgb, #fff 45%, transparent) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.cta-banner-btn-secondary:hover {
  background: color-mix(in srgb, #fff 12%, transparent) !important;
  color: #fff !important;
  border-color: color-mix(in srgb, #fff 70%, transparent) !important;
}

/* ---------------- FAQ ---------------- */
.section-faq {
  padding-block: var(--sp-7);
}

.section-faq .container-wide>div:first-child {
  margin-bottom: var(--sp-4) !important;
}

.faq {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 14px;
}

.faq summary {
  cursor: pointer;
  padding: 11px 0;
  font-weight: 600;
  font-size: 0.94rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--wood);
  transition: transform var(--dur) var(--ease);
  flex: none;
}

[data-color-scheme="dark"] .faq summary::after {
  color: var(--accent);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  padding-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------------- Auth ---------------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-aside {
  position: relative;
  overflow: hidden;
  padding: var(--sp-7);
  background: linear-gradient(160deg, var(--main), var(--clay-deep));
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-aside .brand {
  color: #fff;
}

.auth-aside .brand-logo-wrap .brand-logo--light {
  display: none;
}

.auth-aside .brand-logo-wrap .brand-logo--dark {
  display: block;
}

.auth-aside blockquote {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.3;
  font-style: italic;
}

.auth-aside .quote-by {
  margin-top: 14px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-testimonials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: var(--sp-6);
}

.auth-card {
  width: min(420px, 100%);
}

.auth-card .u-row > .field {
  flex: 1 1 0;
  min-width: 0;
}

.auth-card .brand--compact .brand-logo-wrap--mark {
  width: 48px;
  height: 48px;
}

.auth-card h1 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-social--stack {
  grid-template-columns: 1fr;
}

.auth-social .btn {
  justify-content: center;
}

.auth-social .btn.is-unconfigured {
  opacity: 0.5;
}

.auth-social .ic-brand {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-3);
  font-size: 0.85rem;
  margin-block: var(--sp-4);
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--line);
}

.auth-error {
  min-height: 1.2em;
  color: #d64545;
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-switch-link {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

/* Floating switch between the two sign-in designs (temporary, until one wins) */
.version-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-hand);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.version-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.version-fab .ic {
  width: 1.05em;
  height: 1.05em;
}

.aside-art {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  z-index: 0;
}

@media (max-width: 1000px) {
  .hero {
    padding-block: var(--sp-6) var(--sp-5);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .hero-house-wrap {
    min-height: 300px;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .hero-house {
    height: clamp(280px, 68vw, 420px);
  }

  .hero-house-hint {
    font-size: 0.72rem;
    padding: 6px 10px;
    bottom: 4px;
  }

  .hero-visual {
    max-width: 560px;
  }

  .hero-cta {
    gap: 10px;
  }

  .hero-cta .btn {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    text-align: center;
  }

  .feature-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps::before {
    display: none;
  }

  .usertypes {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-picker {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-detail-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }

  .price-card {
    padding: var(--sp-4);
  }

  .price-card .plan-price .amt {
    font-size: 2.2rem;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .about-story-split {
    grid-template-columns: 1fr;
  }

  .about-story-copy .lead {
    text-align: center;
  }

  .career-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .career-role-hero {
    grid-template-columns: 1fr;
  }

  .about-team {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-channels {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-contests {
    grid-template-columns: 1fr;
  }

  .community-designers {
    grid-template-columns: repeat(2, 1fr);
  }

  .designer-profile-grid {
    grid-template-columns: 1fr;
  }

  .designer-profile-side {
    position: static;
  }

  .community-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-split {
    grid-template-columns: 1fr;
  }

  .community-stats {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .contact-channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-extra {
    grid-template-columns: 1fr;
  }

  .env-page-hero-grid,
  .env-split,
  .env-split--vr {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .env-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .env-controls-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .env-gallery {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .cta-banner {
    padding: var(--sp-6) var(--sp-4);
  }

  .cta-banner h2 {
    font-size: clamp(1.5rem, 5vw, 2.1rem);
  }

  .feature-pills {
    gap: 8px;
  }

  .feature-pill {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .billing-toggle {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.92rem;
  }

  .section-page-head {
    padding-block: var(--sp-6) var(--sp-4);
  }
}

@media (max-width: 620px) {
  .hero {
    padding-block: var(--sp-5) var(--sp-4);
  }

  .hero-grid {
    gap: var(--sp-4);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .hero-trust {
    gap: 10px;
    font-size: 0.82rem;
  }

  .hero-house-wrap {
    min-height: 240px;
  }

  .hero-house {
    height: min(300px, 88vw);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .usertypes {
    grid-template-columns: 1fr;
  }

  .role-picker {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .price-card .plan-desc {
    min-height: 0;
  }

  .price-card .plan-price .amt {
    font-size: 2.4rem;
  }

  .career-benefits {
    grid-template-columns: 1fr;
  }

  .about-team {
    grid-template-columns: 1fr;
  }

  .community-channels {
    grid-template-columns: 1fr;
  }

  .contact-channel-grid {
    grid-template-columns: 1fr;
  }

  .env-steps {
    grid-template-columns: 1fr;
  }

  .env-controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-designers {
    grid-template-columns: 1fr;
  }

  .community-project-grid {
    grid-template-columns: 1fr;
  }

  .community-subnav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .community-subnav::-webkit-scrollbar {
    display: none;
  }

  .community-subnav-link {
    flex: none;
    white-space: nowrap;
  }

  .feature-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .feature-pills::-webkit-scrollbar {
    display: none;
  }

  .feature-pill {
    flex: none;
  }

  .pw-copy {
    flex-direction: column;
    gap: 10px;
  }

  .cta-banner .hero-cta {
    flex-direction: column;
  }

  .table-compare {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}