:root {
  color-scheme: light;
  --ink: #24302b;
  --muted: #66766f;
  --soft: #fff8ef;
  --paper: #eef3ee;
  --surface: #fffdf8;
  --line: #eadfce;
  --teal: #0f4a3f;
  --teal-dark: #0b3b33;
  --terracotta: #f47a50;
  --sage: #7d9567;
  --honey: #e4b857;
  --rose: #d8907f;
  --blue: #506c86;
  --shadow: 0 14px 34px rgba(64, 46, 31, 0.13);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #0f4a3f 0 38vh, var(--paper) 38vh 100%);
  color: var(--ink);
}

body.designer-page {
  background: var(--paper);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 2.42rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.52rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.42rem;
  line-height: 1.28;
  letter-spacing: 0;
}

h4 {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.4;
}

.app-shell {
  min-height: 100vh;
}

.screen {
  display: none;
}

.screen-active {
  display: block;
}

.intro-screen.screen-active {
  display: grid;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.brand-bar span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.intro-screen {
  align-content: start;
  gap: 22px;
  min-height: 100dvh;
  padding: 18px 18px 28px;
}

.intro-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 8px 0 10px;
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.planning-meta {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  border: 1px solid rgba(251, 187, 86, 0.34);
  border-radius: 999px;
  background: rgba(251, 187, 86, 0.12);
  color: #8a4f20;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.45;
}

.intro-screen .planning-meta {
  border-color: rgba(255, 253, 248, 0.34);
  background: rgba(255, 253, 248, 0.1);
  color: #fffdf8;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.outcome-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.outcome-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 253, 248, 0.84);
  font-weight: 900;
  line-height: 1.45;
}

.outcome-list span::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: var(--honey);
}

.intro-actions,
.planner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro-actions {
  margin-top: 22px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.option-button,
.region-button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 16px;
  font-weight: 900;
}

.primary-button {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 22px rgba(47, 111, 115, 0.22);
}

.primary-button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.text-link {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.intro-details a {
  color: var(--teal-dark);
  font-weight: 900;
}

.designer-hero {
  position: relative;
  overflow: hidden;
  background: var(--teal-dark);
  color: #fffdf8;
  padding: 18px 18px 34px;
}

.designer-hero::before,
.designer-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
}

.designer-hero::before {
  opacity: 0.22;
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 253, 248, 0.12) 1px, transparent 1px);
  background-size: 86px 86px;
  animation: signalDrift 18s linear infinite;
}

.designer-hero::after {
  background:
    linear-gradient(105deg, transparent 0 35%, rgba(244, 122, 80, 0.18) 48%, transparent 60%),
    linear-gradient(15deg, transparent 0 52%, rgba(228, 184, 87, 0.14) 62%, transparent 72%);
  mix-blend-mode: screen;
  animation: signalSweep 9s ease-in-out infinite alternate;
}

.signal-field {
  position: absolute;
  inset: 72px 0 0;
  pointer-events: none;
  opacity: 0.3;
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(255, 253, 248, 0.13) 119px 120px),
    linear-gradient(115deg, transparent 0 42%, rgba(244, 122, 80, 0.22) 42.2% 42.6%, transparent 43% 100%),
    linear-gradient(28deg, transparent 0 52%, rgba(228, 184, 87, 0.18) 52.2% 52.55%, transparent 53% 100%);
  transform: translate3d(0, 0, 0);
  animation: routeShift 12s ease-in-out infinite;
}

.designer-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto 34px;
}

.designer-nav div {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.designer-nav a {
  color: #fffdf8;
  font-weight: 900;
  text-decoration: none;
}

.designer-brand {
  font-size: 1.1rem;
}

.designer-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 0 22px;
}

.designer-title-block,
.designer-hero-copy {
  max-width: 820px;
}

.designer-page h1 {
  max-width: 860px;
  font-size: 2.2rem;
  line-height: 1.22;
}

.designer-page h1 span {
  display: block;
}

.animated-title span {
  opacity: 0;
  transform: translateY(18px);
  animation: titleLift 0.72s cubic-bezier(0.2, 0.78, 0.18, 1) forwards;
}

.animated-title span:nth-child(2) {
  animation-delay: 0.18s;
}

.animated-title span:last-child {
  position: relative;
  width: max-content;
  max-width: 100%;
}

.animated-title span:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 5px;
  background: linear-gradient(90deg, var(--terracotta), var(--honey), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: titleMark 0.86s ease 0.64s forwards;
}

.designer-page h2 {
  max-width: 780px;
  line-height: 1.32;
}

.designer-lead {
  max-width: 760px;
  color: rgba(255, 253, 248, 0.84);
  font-size: 1.08rem;
  line-height: 1.72;
}

.designer-support {
  max-width: 820px;
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-proof-strip span {
  border: 1px solid rgba(255, 253, 248, 0.26);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.08);
  padding: 8px 12px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 0.82rem;
  font-weight: 900;
}

.designer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.designer-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}

.designer-hero .secondary-button {
  background: rgba(255, 253, 248, 0.08);
  border-color: rgba(255, 253, 248, 0.28);
  color: #fffdf8;
}

.designer-visual {
  position: relative;
  margin: 0;
}

.designer-visual img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.designer-page img[src*="diagram-"] {
  background: #fffdf8;
  object-fit: contain;
}

.designer-visual img[src*="diagram-"] {
  max-height: 420px;
}

.scenario-visual img[src*="diagram-"] {
  max-height: 520px;
}

.scenario-visual::before,
.scenario-visual::after {
  display: none;
}

.designer-visual::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 253, 248, 0.3);
  border-radius: 8px;
  transform: translate3d(0, 0, 0);
  animation: framePulse 4.8s ease-in-out infinite;
}

.designer-visual::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(228, 184, 87, 0.86), transparent);
  transform-origin: left center;
  animation: scanLine 5.6s ease-in-out infinite;
}

.visual-route {
  position: absolute;
  inset: auto 14px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.visual-route span {
  border-top: 1px solid rgba(255, 253, 248, 0.42);
  padding-top: 7px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.designer-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 18px;
}

.designer-section h2 {
  max-width: 760px;
}

.section-lead {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.scenario-section {
  max-width: none;
  background: #fffdf8;
  padding-left: max(18px, calc((100vw - 1120px) / 2 + 18px));
  padding-right: max(18px, calc((100vw - 1120px) / 2 + 18px));
}

.scenario-gallery,
.engineering-gallery {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.scenario-gallery article,
.engineering-gallery article {
  overflow: hidden;
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 30px rgba(64, 46, 31, 0.07);
}

.scenario-gallery img,
.engineering-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  background: #fffdf8;
}

.scenario-gallery div,
.engineering-gallery article {
  padding: 16px;
}

.scenario-gallery span {
  display: block;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 900;
}

.scenario-gallery strong,
.engineering-gallery strong {
  display: block;
  margin-top: 7px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.scenario-gallery p,
.engineering-gallery p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.engineering-section {
  max-width: none;
  background: #eef3ee;
  padding-left: max(18px, calc((100vw - 1120px) / 2 + 18px));
  padding-right: max(18px, calc((100vw - 1120px) / 2 + 18px));
}

.engineering-gallery article {
  display: grid;
  padding: 0;
}

.engineering-gallery strong,
.engineering-gallery p {
  margin-left: 16px;
  margin-right: 16px;
}

.engineering-gallery p {
  margin-bottom: 18px;
}

.video-section {
  max-width: none;
  background: #fffdf8;
  padding-left: max(18px, calc((100vw - 1120px) / 2 + 18px));
  padding-right: max(18px, calc((100vw - 1120px) / 2 + 18px));
}

.video-copy {
  max-width: 860px;
}

.video-showcase {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.featured-video,
.video-list article {
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
  background: rgba(238, 243, 238, 0.52);
  padding: 10px;
  box-shadow: 0 12px 30px rgba(64, 46, 31, 0.08);
}

.featured-video strong,
.video-list strong {
  display: block;
  padding: 12px 4px 2px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #0b3b33;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-list {
  display: grid;
  gap: 14px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 900;
}

.designer-card-grid,
.designer-checklist,
.use-case-grid,
.visual-slide-grid,
.project-type-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.visual-slide-grid article,
.project-type-grid article,
.use-case-grid article,
.designer-card-grid article,
.designer-list p,
.designer-checklist span,
.faq-section details {
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(64, 46, 31, 0.06);
}

.visual-slide-grid article,
.project-type-grid article {
  overflow: hidden;
  padding: 0;
}

.visual-slide-grid img,
.project-type-grid img,
.brief-board img,
.system-map img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.visual-slide-grid img {
  aspect-ratio: 4 / 3;
}

.visual-slide-grid span,
.visual-slide-grid strong,
.visual-slide-grid p,
.project-type-grid strong,
.project-type-grid span {
  display: block;
  margin-left: 16px;
  margin-right: 16px;
}

.visual-slide-grid span {
  margin-top: 14px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 900;
}

.visual-slide-grid strong,
.project-type-grid strong {
  margin-top: 6px;
  font-size: 1.05rem;
}

.visual-slide-grid p {
  margin-top: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.58;
}

.system-map {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.system-map figure,
.brief-board figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--teal-dark);
  box-shadow: var(--shadow);
}

.system-map img {
  min-height: 300px;
  opacity: 0.86;
}

.system-map figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-left: 3px solid var(--honey);
  background: rgba(11, 59, 51, 0.76);
  color: #fffdf8;
  padding: 12px 14px;
  font-weight: 900;
  line-height: 1.45;
}

.map-points {
  display: grid;
  gap: 12px;
}

.builder-map {
  margin-top: 0;
}

.map-points div {
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  padding: 16px;
}

.map-points strong {
  display: block;
  margin-bottom: 8px;
}

.map-points span {
  color: var(--muted);
  line-height: 1.55;
}

.project-type-grid img {
  aspect-ratio: 16 / 10;
}

.project-type-grid strong {
  margin-top: 14px;
}

.project-type-grid span {
  margin-top: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.45;
}

.brief-board {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.brief-board img {
  min-height: 260px;
  opacity: 0.92;
}

.brief-board .designer-checklist {
  margin-top: 0;
}

.tool-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.tool-grid article {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 30px rgba(64, 46, 31, 0.07);
}

.tool-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tool-grid div {
  padding: 18px;
}

.tool-grid strong {
  display: block;
  margin-bottom: 9px;
  font-size: 1.15rem;
}

.tool-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.tool-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.use-case-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
}

.use-case-grid span {
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 900;
}

.use-case-grid strong {
  font-size: 1.02rem;
}

.use-case-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.designer-card-grid strong {
  display: block;
  margin-bottom: 9px;
}

.designer-card-grid p,
.designer-list p,
.faq-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.designer-band {
  display: grid;
  gap: 22px;
  max-width: none;
  background: #fffdf8;
  padding-left: max(18px, calc((100vw - 1120px) / 2 + 18px));
  padding-right: max(18px, calc((100vw - 1120px) / 2 + 18px));
}

.designer-list {
  display: grid;
  gap: 12px;
}

.designer-checklist span {
  display: block;
  font-weight: 900;
  line-height: 1.5;
}

.section-actions {
  margin-top: 24px;
}

.faq-section details + details {
  margin-top: 10px;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-section details p {
  margin-top: 12px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes signalDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 86px 0, 0 86px;
  }
}

@keyframes signalSweep {
  from {
    transform: translateX(-5%);
  }

  to {
    transform: translateX(5%);
  }
}

@keyframes routeShift {
  0%,
  100% {
    transform: translate3d(-18px, 0, 0);
  }

  50% {
    transform: translate3d(18px, -10px, 0);
  }
}

@keyframes titleLift {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleMark {
  to {
    transform: scaleX(1);
  }
}

@keyframes framePulse {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.76;
  }
}

@keyframes scanLine {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scaleX(0.32);
  }

  18%,
  72% {
    opacity: 1;
  }

  50% {
    transform: translateY(210px) scaleX(1);
  }
}

.home-visual {
  display: grid;
  place-items: center;
  min-height: 300px;
}

.living-room-illustration {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1.05;
  overflow: hidden;
  border: 1px solid rgba(64, 46, 31, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f8ddbc 0 46%, #d9b894 46% 48%, #f2dfc8 48% 100%);
  box-shadow: var(--shadow);
}

.living-room-illustration::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background:
    repeating-linear-gradient(90deg, rgba(139, 98, 62, 0.16) 0 2px, transparent 2px 46px),
    #d9b48c;
}

.window-shade {
  position: absolute;
  top: 34px;
  left: 34px;
  width: 122px;
  height: 112px;
  border: 8px solid #fff8ef;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0 48%, rgba(255, 244, 220, 0.82) 48% 52%, rgba(255, 255, 255, 0.54) 52% 100%),
    #a8c8c5;
  box-shadow: 0 8px 18px rgba(64, 46, 31, 0.12);
}

.sun-light {
  position: absolute;
  top: 56px;
  left: 116px;
  width: 96px;
  height: 150px;
  transform: skewX(-16deg);
  background: rgba(255, 235, 168, 0.42);
}

.floor-lamp {
  position: absolute;
  top: 70px;
  right: 52px;
  width: 54px;
  height: 152px;
}

.floor-lamp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7px;
  width: 42px;
  height: 36px;
  border-radius: 8px 8px 18px 18px;
  background: #ffe3a8;
  box-shadow: 0 0 22px rgba(255, 216, 119, 0.64);
}

.floor-lamp::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 27px;
  width: 5px;
  height: 108px;
  background: #7d6a58;
  box-shadow: -18px 108px 0 6px #7d6a58;
}

.sofa {
  position: absolute;
  left: 44px;
  right: 76px;
  bottom: 66px;
  height: 82px;
  border-radius: 8px 8px 18px 18px;
  background: var(--sage);
  box-shadow:
    -18px 22px 0 #668054,
    20px 22px 0 #668054,
    0 28px 0 #526f47;
}

.sofa::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 16px;
  width: 42px;
  height: 34px;
  border-radius: 8px;
  background: #f5c7ad;
  box-shadow: 56px 0 0 #f4dfa5;
}

.coffee-table {
  position: absolute;
  left: 110px;
  bottom: 30px;
  width: 118px;
  height: 20px;
  border-radius: 8px;
  background: #8b674e;
}

.coffee-table::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 18px;
  height: 30px;
  border-left: 5px solid #8b674e;
  border-right: 5px solid #8b674e;
}

.control-panel {
  position: absolute;
  top: 94px;
  right: 20px;
  width: 34px;
  height: 52px;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: inset 0 0 0 2px #d8c8b8, 0 8px 16px rgba(64, 46, 31, 0.12);
}

.control-panel::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 20px 0 var(--honey);
}

.intro-details,
.scene-strip {
  padding: 12px 18px 28px;
}

.intro-details p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-grid,
.scene-strip {
  display: grid;
  gap: 12px;
}

.detail-grid {
  margin-top: 18px;
}

.detail-grid article,
.scene-strip article,
.summary-card {
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(64, 46, 31, 0.06);
}

.detail-grid strong,
.detail-grid span,
.scene-strip strong,
.scene-strip span,
.summary-card span {
  display: block;
}

.detail-grid strong,
.scene-strip strong {
  margin: 8px 0 7px;
  font-size: 1rem;
}

.detail-grid span,
.scene-strip span,
.summary-card span {
  color: var(--muted);
  line-height: 1.62;
}

.mini-illustration,
.scene-icon,
.option-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
}

.mini-illustration {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #f8dfc2;
}

.mini-illustration::before,
.mini-illustration::after,
.scene-icon::before,
.scene-icon::after,
.option-icon::before,
.option-icon::after {
  content: "";
  position: absolute;
}

.mini-family::before {
  width: 13px;
  height: 13px;
  top: 12px;
  left: 10px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 15px 8px 0 var(--terracotta), 30px 0 0 var(--sage);
}

.mini-family::after {
  left: 8px;
  right: 8px;
  bottom: 12px;
  height: 14px;
  border-radius: 8px;
  background: #fff8ef;
}

.mini-scene {
  background: #e7f0dc;
}

.mini-scene::before {
  top: 11px;
  left: 14px;
  width: 26px;
  height: 20px;
  border-radius: 8px;
  background: var(--honey);
  box-shadow: 0 16px 0 var(--teal);
}

.mini-scene::after {
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 4px;
  border-radius: 8px;
  background: var(--terracotta);
}

.mini-plan {
  background: #e4edf0;
}

.mini-plan::before {
  top: 12px;
  left: 13px;
  width: 26px;
  height: 6px;
  border-radius: 8px;
  background: var(--teal);
  box-shadow: 0 12px 0 var(--sage), 0 24px 0 var(--honey);
}

.mini-plan::after {
  right: 10px;
  bottom: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--terracotta);
}

.scene-strip {
  grid-auto-flow: column;
  grid-auto-columns: minmax(178px, 72%);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 34px;
}

.scene-strip article {
  scroll-snap-align: start;
}

.scene-icon {
  width: 70px;
  height: 56px;
  border-radius: 8px;
  background: #f4d8b6;
}

.scene-morning::before {
  top: 10px;
  left: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--honey);
}

.scene-morning::after {
  right: 12px;
  bottom: 10px;
  width: 22px;
  height: 32px;
  background: #fff8ef;
}

.scene-home {
  background: #dcebd8;
}

.scene-home::before {
  left: 17px;
  top: 19px;
  width: 36px;
  height: 28px;
  background: var(--sage);
}

.scene-home::after {
  left: 22px;
  top: 9px;
  width: 26px;
  height: 26px;
  transform: rotate(45deg);
  background: var(--terracotta);
}

.scene-dinner {
  background: #f5dfc7;
}

.scene-dinner::before {
  left: 18px;
  top: 18px;
  width: 34px;
  height: 24px;
  border-radius: 0 0 18px 18px;
  background: var(--rose);
}

.scene-dinner::after {
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 5px;
  border-radius: 8px;
  background: #8b674e;
}

.scene-night {
  background: #dfe7ed;
}

.scene-night::before {
  top: 11px;
  left: 22px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff8c8;
  box-shadow: inset -8px 0 0 #dfe7ed;
}

.scene-night::after {
  left: 16px;
  bottom: 11px;
  width: 40px;
  height: 10px;
  border-radius: 8px;
  background: var(--blue);
}

.planner-screen.screen-active {
  display: grid;
}

.planner-screen {
  min-height: 100dvh;
  padding: 12px;
}

.progress-panel,
.question-panel,
.summary-screen {
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 26px rgba(64, 46, 31, 0.08);
}

.progress-panel {
  padding: 12px 12px 10px;
  margin-bottom: 12px;
}

.progress-panel .eyebrow,
.progress-panel h2 {
  display: none;
}

.step-list {
  display: flex;
  gap: 8px;
  padding: 0 2px 4px;
  margin: 0;
  overflow-x: auto;
  list-style: none;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.step-list span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #efe4d3;
  color: var(--muted);
  font-size: 0.78rem;
}

.step-list .active,
.step-list .done {
  color: var(--ink);
}

.step-list .active span {
  background: var(--teal);
  color: #fff;
}

.step-list .done span {
  background: var(--honey);
  color: #3b2b13;
}

.question-panel {
  padding: 18px 16px 104px;
}

.question-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.mobile-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.step-count,
.mobile-step-title {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.step-count {
  background: #e7f0dc;
  color: var(--teal-dark);
}

.mobile-step-title {
  background: #f7e1c8;
  color: #784429;
}

.question-body {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
  margin-top: 18px;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.option-button,
.region-button {
  background: #fffaf2;
  border-color: var(--line);
  color: var(--ink);
}

.option-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  line-height: 1.42;
}

.option-button:hover,
.region-button:hover,
.option-button.selected,
.region-button.selected {
  border-color: var(--teal);
  background: #eef7f2;
}

.option-button.selected,
.region-button.selected {
  box-shadow: inset 0 0 0 1px var(--teal);
}

.option-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f3dcc3;
}

.icon-couple::before,
.icon-kids::before,
.icon-three::before,
.icon-elder::before,
.icon-solo::before,
.icon-pet::before {
  width: 12px;
  height: 12px;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 14px 3px 0 var(--terracotta);
}

.icon-kids::after,
.icon-three::after,
.icon-elder::after,
.icon-solo::after,
.icon-pet::after {
  left: 7px;
  right: 7px;
  bottom: 8px;
  height: 11px;
  border-radius: 8px;
  background: #fff8ef;
}

.icon-three::before {
  box-shadow: 12px 6px 0 var(--terracotta), 22px 0 0 var(--sage);
}

.icon-elder::before {
  background: var(--sage);
}

.icon-solo::before {
  left: 13px;
  box-shadow: none;
}

.icon-pet::before {
  width: 14px;
  height: 10px;
  top: 15px;
  left: 12px;
  border-radius: 8px;
  background: var(--terracotta);
  box-shadow: 13px -4px 0 0 var(--terracotta);
}

.icon-switch::before,
.icon-dimming::before {
  left: 9px;
  top: 8px;
  width: 20px;
  height: 22px;
  border-radius: 8px;
  background: #fff8ef;
  box-shadow: inset 0 0 0 2px var(--honey);
}

.icon-dimming::after {
  top: 5px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--honey);
}

.icon-remote::before,
.icon-comfort::before {
  left: 10px;
  top: 7px;
  width: 18px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue);
}

.icon-remote::after,
.icon-comfort::after {
  top: 12px;
  left: 16px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff8ef;
}

.icon-living::before,
.icon-bed::before,
.icon-home::before {
  left: 8px;
  bottom: 9px;
  width: 23px;
  height: 14px;
  border-radius: 8px;
  background: var(--sage);
}

.icon-bed::before {
  background: var(--blue);
}

.icon-home::after {
  left: 11px;
  top: 8px;
  width: 17px;
  height: 17px;
  transform: rotate(45deg);
  background: var(--terracotta);
}

.icon-moon::before,
.icon-night::before {
  left: 12px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff3a8;
  box-shadow: inset -6px 0 0 #f3dcc3;
}

.icon-away::before,
.icon-wifi::before,
.icon-wire::before,
.icon-help::before,
.icon-pause::before {
  left: 9px;
  top: 16px;
  width: 20px;
  height: 5px;
  border-radius: 8px;
  background: var(--teal);
}

.icon-wifi::before {
  top: 18px;
  height: 14px;
  border: 4px solid var(--teal);
  border-bottom: 0;
  background: transparent;
  border-radius: 18px 18px 0 0;
}

.icon-wire::before {
  top: 9px;
  height: 20px;
  border: 3px solid var(--blue);
  background: transparent;
}

.icon-help::before {
  top: 7px;
  left: 13px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--terracotta);
  box-shadow: 0 18px 0 -4px var(--terracotta);
}

.icon-pause::before {
  left: 11px;
  width: 5px;
  height: 18px;
  top: 10px;
  box-shadow: 11px 0 0 var(--teal);
}

.example-panel,
.recommendation,
.step-completion,
.region-panel,
.custom-answer-panel,
.contact-panel {
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
}

.example-panel {
  display: grid;
  gap: 13px;
  padding: 14px;
  background: #fff1dc;
}

.example-panel strong {
  display: block;
  margin-bottom: 6px;
}

.example-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.example-visual {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4d5b3;
}

.example-visual::before,
.example-visual::after {
  content: "";
  position: absolute;
}

.visual-family {
  background: linear-gradient(180deg, #f4d5b3 0 58%, #e4c29b 58% 100%);
}

.visual-family::before {
  left: 24px;
  bottom: 52px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 40px 14px 0 var(--terracotta), 84px 0 0 var(--sage);
}

.visual-family::after {
  left: 18px;
  right: 18px;
  bottom: 25px;
  height: 30px;
  border-radius: 8px;
  background: #fff8ef;
}

.visual-lighting {
  background: linear-gradient(180deg, #d4e8e0 0 52%, #f0d8b8 52% 100%);
}

.visual-lighting::before {
  top: 24px;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #ffe4a3;
  box-shadow: 0 0 0 18px rgba(255, 228, 163, 0.34);
}

.visual-lighting::after {
  left: 22px;
  right: 22px;
  bottom: 24px;
  height: 32px;
  border-radius: 8px;
  background: var(--sage);
  box-shadow: 0 -42px 0 -8px #fff8ef;
}

.visual-ac {
  background: linear-gradient(180deg, #dce9ee 0 58%, #e9d1b0 58% 100%);
}

.visual-ac::before {
  top: 22px;
  left: 24px;
  right: 24px;
  height: 32px;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: inset 0 -6px 0 #d7e1e8;
}

.visual-ac::after {
  left: 42px;
  right: 42px;
  bottom: 34px;
  height: 42px;
  border-top: 4px solid rgba(80, 108, 134, 0.76);
  border-bottom: 4px solid rgba(80, 108, 134, 0.46);
}

.visual-curtain {
  background: linear-gradient(180deg, #bfd9d2 0 58%, #e8cba9 58% 100%);
}

.visual-curtain::before {
  top: 20px;
  bottom: 28px;
  left: 26px;
  width: 50px;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 58px 0 0 rgba(255, 253, 248, 0.62);
}

.visual-curtain::after {
  top: 18px;
  left: 20px;
  right: 20px;
  height: 6px;
  border-radius: 8px;
  background: #8b674e;
}

.visual-scene {
  background: linear-gradient(180deg, #ead4c7 0 56%, #d2b390 56% 100%);
}

.visual-scene::before {
  top: 24px;
  left: 28px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--honey);
  box-shadow: 52px 10px 0 var(--teal), 26px 58px 0 var(--sage);
}

.visual-scene::after {
  left: 22px;
  right: 22px;
  bottom: 24px;
  height: 7px;
  border-radius: 8px;
  background: #8b674e;
}

.visual-network {
  background: linear-gradient(180deg, #d9e8ec 0 56%, #e8cba9 56% 100%);
}

.visual-network::before {
  left: 50%;
  top: 34px;
  width: 26px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--teal);
}

.visual-network::after {
  left: 36px;
  right: 36px;
  bottom: 34px;
  height: 56px;
  border: 4px solid rgba(47, 111, 115, 0.54);
  border-bottom: 0;
  border-radius: 70px 70px 0 0;
}

.visual-summary {
  background: linear-gradient(180deg, #f1d8bb 0 58%, #e4c29b 58% 100%);
}

.visual-summary::before {
  top: 28px;
  left: 24px;
  right: 24px;
  height: 72px;
  border-radius: 8px;
  background: #fffdf8;
}

.visual-summary::after {
  left: 44px;
  right: 44px;
  top: 48px;
  height: 6px;
  border-radius: 8px;
  background: var(--teal);
  box-shadow: 0 18px 0 var(--sage), 0 36px 0 var(--honey);
}

.recommendation {
  margin-top: 16px;
  padding: 16px;
  background: #eef7f2;
  color: #254b3f;
  font-weight: 800;
  line-height: 1.72;
}

.step-completion {
  margin-top: 12px;
  padding: 14px 16px;
  background: #fff7e8;
  color: #62462d;
  font-weight: 800;
  line-height: 1.68;
}

.region-panel,
.custom-answer-panel,
.contact-panel {
  margin-top: 16px;
  padding: 16px;
  background: #fffaf2;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.region-button {
  text-align: center;
}

.contact-panel {
  display: grid;
  gap: 14px;
}

.contact-note,
.privacy-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.field-hint {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}

.privacy-note {
  padding-top: 2px;
  font-size: 0.9rem;
}

.custom-answer-row {
  display: grid;
  gap: 10px;
}

.custom-answer-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fffdf8;
  color: var(--ink);
}

.custom-answer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.custom-answer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 10px 8px 12px;
  background: #e8f2eb;
  color: #123f35;
  font-weight: 900;
}

.custom-answer-chip button {
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15, 74, 63, 0.12);
  color: #123f35;
  font-size: 0.78rem;
  font-weight: 900;
}

.contact-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.contact-preference {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(64, 46, 31, 0.1);
  border-radius: 8px;
  margin: 0;
  padding: 12px;
  background: #fffdf8;
}

.contact-preference legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 900;
}

.contact-preference label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--ink);
}

.contact-preference input {
  width: auto;
  min-width: 18px;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fffdf8;
  color: var(--ink);
}

.contact-panel input[aria-invalid="true"] {
  border-color: rgba(244, 122, 80, 0.82);
  background: #fff7f1;
  box-shadow: 0 0 0 3px rgba(244, 122, 80, 0.12);
}

.contact-preference input[type="radio"] {
  width: auto;
  min-width: 18px;
  padding: 0;
}

.form-error {
  margin: 0;
  border: 1px solid rgba(244, 122, 80, 0.32);
  border-radius: 8px;
  background: #fff4ee;
  color: #8a3d25;
  padding: 12px 14px;
  font-weight: 900;
  line-height: 1.55;
}

.planner-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 248, 239, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.summary-screen {
  width: calc(100% - 24px);
  margin: 12px auto 96px;
  padding: 20px 16px;
}

.summary-header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.summary-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.summary-section {
  margin-top: 18px;
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
  background: #fffdf8;
  padding: 16px;
}

.summary-highlight {
  border-color: rgba(15, 74, 63, 0.2);
  background: linear-gradient(135deg, #eef8ef 0%, #fff8ea 100%);
}

.summary-highlight h3 {
  color: var(--teal-dark);
}

.summary-section h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.summary-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

.summary-section.needs-attention {
  border-color: rgba(244, 122, 80, 0.3);
  background: #fff8f1;
}

.summary-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.summary-list.compact {
  margin-top: 14px;
}

.summary-list li {
  display: grid;
  gap: 4px;
  line-height: 1.65;
}

.summary-list strong {
  color: var(--teal-dark);
}

.summary-list span {
  color: var(--muted);
}

.summary-details {
  margin-top: 18px;
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
  background: #fffdf8;
  padding: 14px 16px;
}

.summary-details summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 900;
}

.summary-details .summary-grid {
  margin-top: 16px;
}

.summary-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.summary-card p {
  margin-bottom: 8px;
  font-weight: 900;
  line-height: 1.5;
}

.summary-card.wide {
  margin-top: 12px;
}

.submit-status {
  min-height: 48px;
  margin: 18px 0 96px;
  border: 1px solid rgba(64, 46, 31, 0.11);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--teal-dark);
  padding: 13px 14px;
  font-weight: 900;
  line-height: 1.55;
}

.submit-status:empty {
  display: none;
}

.submit-status[data-type="info"] {
  border-color: rgba(15, 74, 63, 0.18);
  background: #eef7f1;
  color: var(--teal-dark);
}

.submit-status[data-type="success"] {
  border-color: rgba(125, 149, 103, 0.32);
  background: #eef7e8;
  color: #325329;
}

.submit-status[data-type="error"] {
  border-color: rgba(244, 122, 80, 0.32);
  background: #fff4ee;
  color: #8a3d25;
}

.intro-screen {
  background: var(--teal-dark);
  color: #fffdf8;
}

.brand-bar {
  color: #fffdf8;
}

.brand-bar strong {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 7px 14px;
  background: #fffdf8;
  color: #079747;
  font-size: 1.35rem;
  line-height: 1;
}

.brand-bar span,
.intro-screen .lead {
  color: rgba(255, 253, 248, 0.78);
}

.intro-screen .eyebrow {
  color: #a9c3b6;
}

.intro-screen h1 {
  color: #fffdf8;
  font-size: 2.28rem;
  line-height: 1.18;
}

.intro-screen .primary-button {
  background: var(--terracotta);
  box-shadow: 0 14px 26px rgba(244, 122, 80, 0.24);
}

.intro-screen .primary-button:hover {
  background: #e7663f;
}

.intro-screen .text-link {
  color: #f3d16b;
}

.home-visual {
  position: relative;
  margin: 0;
  min-height: 0;
}

.home-visual img {
  display: block;
  width: 100%;
  min-height: 310px;
  max-height: 54vh;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.intro-details {
  background: var(--paper);
}

.detail-grid article,
.scene-strip article,
.summary-card,
.question-panel,
.progress-panel,
.summary-screen {
  background: #fffdf8;
}

.mini-illustration,
.scene-icon {
  background-size: cover;
  background-position: center;
}

.mini-illustration::before,
.mini-illustration::after,
.scene-icon::before,
.scene-icon::after {
  display: none;
}

.mini-family {
  background-image: linear-gradient(rgba(15, 74, 63, 0.2), rgba(15, 74, 63, 0.2)), url("./assets/scene-family.jpg");
}

.mini-scene {
  background-image: linear-gradient(rgba(15, 74, 63, 0.2), rgba(15, 74, 63, 0.2)), url("./assets/scene-automation.jpg");
}

.mini-plan {
  background-image: linear-gradient(rgba(15, 74, 63, 0.2), rgba(15, 74, 63, 0.2)), url("./assets/scene-network.jpg");
}

.scene-icon {
  width: 100%;
  height: 168px;
  border-radius: 8px;
  background-color: #153f36;
  box-shadow: inset 0 -60px 70px rgba(15, 74, 63, 0.2);
}

.scene-morning {
  background-image: url("./assets/scene-curtain.jpg");
}

.scene-home {
  background-image: url("./assets/hero-home.jpg");
  background-position: center 48%;
}

.scene-away {
  background-image: url("./assets/scene-away.jpg");
  background-position: center 46%;
}

.scene-rest,
.scene-dinner {
  background-image: url("./assets/scene-dinner.jpg");
  background-position: center 58%;
}

.scene-night {
  background-image: url("./assets/scene-sleep.jpg");
  background-position: center 52%;
}

.scene-strip article {
  padding: 0;
  overflow: hidden;
}

.scene-strip strong,
.scene-strip span {
  padding-left: 14px;
  padding-right: 14px;
}

.scene-strip strong {
  margin-top: 12px;
}

.scene-strip span {
  padding-bottom: 16px;
}

.progress-panel {
  background: var(--teal-dark);
  border-color: rgba(255, 253, 248, 0.1);
}

.progress-panel h2 {
  color: #fffdf8;
}

.step-list li {
  color: rgba(255, 253, 248, 0.68);
}

.step-list .active,
.step-list .done {
  color: #fffdf8;
}

.step-list span {
  background: rgba(255, 253, 248, 0.13);
  color: rgba(255, 253, 248, 0.74);
}

.step-list .active span {
  background: var(--terracotta);
}

.step-list .done span {
  background: var(--honey);
}

.question-panel {
  overflow: hidden;
}

.example-panel {
  padding: 0;
  overflow: hidden;
  background: #fffdf8;
}

.example-panel > div:last-child {
  padding: 0 14px 15px;
}

.example-visual {
  min-height: 210px;
  border-radius: 0;
  background-size: cover;
  background-position: center;
}

.example-visual::before,
.example-visual::after {
  display: none;
}

.visual-family {
  background-image: linear-gradient(rgba(15, 74, 63, 0.1), rgba(15, 74, 63, 0.18)), url("./assets/scene-family.jpg");
}

.visual-lighting,
.visual-lighting-ac {
  background-image: linear-gradient(rgba(15, 74, 63, 0.08), rgba(15, 74, 63, 0.18)), url("./assets/scene-lighting-ac.jpg");
}

.visual-curtain {
  background-image: linear-gradient(rgba(15, 74, 63, 0.08), rgba(15, 74, 63, 0.18)), url("./assets/scene-curtain.jpg");
}

.visual-scene {
  background-image: linear-gradient(rgba(15, 74, 63, 0.08), rgba(15, 74, 63, 0.18)), url("./assets/scene-automation.jpg");
}

.visual-network,
.visual-summary {
  background-image: linear-gradient(rgba(15, 74, 63, 0.08), rgba(15, 74, 63, 0.18)), url("./assets/scene-network.jpg");
}

.option-button {
  min-height: 58px;
  border-color: #d9e2d9;
  background: #f8fbf7;
}

.option-button span {
  display: block;
}

.option-button.selected {
  border-color: var(--teal);
  background: #e8f2eb;
}

.recommendation {
  border-color: rgba(15, 74, 63, 0.16);
  background: #e8f2eb;
  color: #123f35;
}

.planner-actions {
  background: rgba(15, 74, 63, 0.96);
  border-top-color: rgba(255, 253, 248, 0.12);
}

.planner-actions .secondary-button {
  background: rgba(255, 253, 248, 0.1);
  border-color: rgba(255, 253, 248, 0.24);
  color: #fffdf8;
}

.planner-actions .primary-button {
  background: var(--terracotta);
}

@media (min-width: 720px) {
  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  h3 {
    font-size: 1.7rem;
  }

  .intro-screen {
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.88fr);
    align-items: center;
    gap: 36px;
    min-height: 82vh;
    padding: 28px clamp(32px, 6vw, 88px) 24px;
  }

  .brand-bar {
    grid-column: 1 / -1;
  }

  .home-visual {
    min-height: 430px;
  }

  .living-room-illustration {
    width: min(100%, 480px);
  }

  .intro-details {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 28px;
    padding: 28px clamp(32px, 6vw, 88px);
  }

  .detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .scene-strip {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding: 4px clamp(32px, 6vw, 88px) 54px;
  }

  .planner-screen {
    grid-template-columns: 278px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
  }

  .progress-panel {
    position: sticky;
    top: 24px;
    align-self: start;
    padding: 20px;
    margin-bottom: 0;
  }

  .progress-panel .eyebrow,
  .progress-panel h2 {
    display: block;
  }

  .step-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    overflow: visible;
  }

  .question-panel {
    min-height: calc(100dvh - 48px);
    padding: 32px 32px 96px;
  }

  .question-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.82fr);
    gap: 20px;
  }

  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .example-panel {
    align-content: start;
  }

  .region-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .custom-answer-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .planner-actions {
    left: auto;
    width: min(100%, 560px);
    margin-left: auto;
    border-left: 1px solid var(--line);
    border-radius: 8px 0 0 0;
  }

  .summary-screen {
    width: min(1040px, calc(100% - 48px));
    margin: 24px auto 110px;
    padding: 34px;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .designer-page h1 {
    font-size: 2.72rem;
  }

  .designer-page h2 {
    font-size: 1.72rem;
  }

  .use-case-grid,
  .designer-checklist,
  .visual-slide-grid,
  .project-type-grid,
  .tool-grid,
  .scenario-gallery,
  .engineering-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .designer-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-showcase {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
    align-items: start;
  }

  .system-map,
  .brief-board {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
    align-items: stretch;
  }

  .system-map.builder-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .builder-map .map-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-map figure,
  .brief-board figure {
    min-height: 100%;
  }

  .designer-band {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .intro-screen {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 0.8fr);
  }

  .planner-screen {
    grid-template-columns: 300px minmax(0, 1fr);
    padding: 28px;
  }

  .question-panel {
    padding: 42px 44px 110px;
  }

  .example-visual {
    min-height: 190px;
  }

  .designer-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    grid-template-areas:
      "title visual"
      "copy visual";
    align-items: center;
  }

  .designer-title-block {
    grid-area: title;
    align-self: end;
  }

  .designer-hero-copy {
    grid-area: copy;
    align-self: start;
  }

  .scenario-visual {
    grid-area: visual;
  }

  .designer-page h1 {
    font-size: 3.05rem;
  }

  .use-case-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .visual-slide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .engineering-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-grid-single {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .animated-title span {
    opacity: 1;
    transform: none;
  }

  .animated-title span:last-child::after {
    transform: scaleX(1);
  }
}
