:root {
  --primary: #2f5d50;
  --primary-strong: #234a3f;
  --primary-soft: #e5eee9;
  --accent: #b9835a;
  --accent-soft: #f5ece3;
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #1d2421;
  --ink-2: #4a5450;
  --ink-3: #76807c;
  --line: #e3dfd7;
  --danger: #b1432e;
  --danger-soft: #fbece8;
  --warn: #9a6410;
  --warn-soft: #fbf1df;
  --grade-a: #2d7a4e;
  --grade-b: #3a6aa3;
  --grade-c: #9a6410;
  --grade-d: #b1432e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(29, 36, 33, 0.05), 0 10px 30px rgba(29, 36, 33, 0.06);
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  --tap: 56px;
  --dock-space: calc(96px + env(safe-area-inset-bottom));
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

#preview-section,
#cost,
#colors-title {
  scroll-margin-top: 72px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 50;
}

.skip-link:focus {
  top: 12px;
}

.muted {
  color: var(--ink-3);
}

/* Layout */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(227, 223, 215, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 20px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f2ede3 0 48%, var(--primary) 48% 52%, var(--accent) 52%);
  box-shadow: inset 0 0 0 2px var(--primary);
  flex: none;
}

.brand-text b {
  font-weight: 700;
}

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

.app {
  padding-bottom: var(--dock-space);
}

.footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px calc(var(--dock-space) + 8px);
  color: var(--ink-3);
  font-size: 13px;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  color: var(--ink-2);
  font-weight: 700;
}

.fine {
  font-size: 12px;
  color: var(--ink-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease, opacity 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  min-height: var(--tap);
  font-size: 17px;
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  min-height: 44px;
  padding: 8px 10px;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.link-button {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-camera {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
}

.icon-image {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E");
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 72%, rgba(247, 245, 241, 0));
}

.dock > * {
  max-width: 520px;
  margin: 0 auto;
}

.dock-row {
  display: flex;
  gap: 10px;
}

.dock-row .btn-lg {
  flex: 1;
}

/* Landing */
.landing {
  padding: 28px 0 12px;
  display: grid;
  gap: 18px;
}

.badge {
  justify-self: start;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
}

.landing h1 {
  font-size: clamp(30px, 8.4vw, 38px);
  font-weight: 800;
}

.lead {
  font-size: 17px;
  color: var(--ink-2);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ede7dc, #e3dccf);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-cabinet {
  position: absolute;
  inset: 12% 8% 8%;
  display: grid;
  grid-template-rows: 38% 7% 1fr;
  gap: 6%;
}

.hero-upper,
.hero-lower {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3%;
}

.hero-upper i,
.hero-lower i {
  border-radius: 4px;
  background: linear-gradient(90deg, #8d6b4f 0 50%, #f2ede3 50%);
  position: relative;
}

.hero-upper i::after,
.hero-lower i::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 44%;
  width: 3px;
  height: 18%;
  border-radius: 2px;
  background: rgba(29, 36, 33, 0.45);
}

.hero-upper {
  background-size: 200% 100%;
}

.hero-counter {
  border-radius: 3px;
  background: #cfc7b9;
}

.hero-visual .hero-cabinet {
  --split: 50%;
}

.hero-upper i,
.hero-lower i {
  background: #8d6b4f;
}

.hero-upper i:nth-child(n + 2),
.hero-lower i:nth-child(n + 2) {
  background: #f2ede3;
  box-shadow: inset 0 0 0 1px rgba(29, 36, 33, 0.08);
}

.hero-upper i:nth-child(2),
.hero-lower i:nth-child(2) {
  background: linear-gradient(90deg, #8d6b4f 0 50%, #f2ede3 50%);
}

.hero-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(29, 36, 33, 0.08);
}

.hero-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(29, 36, 33, 0.2);
}

.hero-tag {
  position: absolute;
  top: 10px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(29, 36, 33, 0.62);
  color: #fff;
}

.hero-tag-before {
  left: 10px;
}

.hero-tag-after {
  right: 10px;
  background: var(--primary);
}

.cta-stack {
  display: grid;
  gap: 10px;
}

.photo-guide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.benefits li {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefits li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232f5d50' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.intro {
  color: var(--ink-2);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  align-items: center;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.steps span {
  color: var(--ink-3);
  font-size: 14px;
}

.examples {
  display: grid;
  gap: 12px;
}

.examples h2 {
  font-size: 20px;
}

.example-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.example figcaption {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 6px;
}

.scope-note {
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  padding: 4px 0 8px;
}

/* Flow views */
.view {
  padding: 18px 0 8px;
  display: grid;
  gap: 16px;
  animation: enter 0.22s ease-out;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.view-head {
  display: grid;
  gap: 6px;
}

.view-head h2 {
  font-size: 25px;
  font-weight: 800;
}

.view-head h2:focus {
  outline: none;
}

.step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.hint {
  color: var(--ink-3);
  font-size: 15px;
}

.back-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
}

.card-note {
  font-size: 14px;
  color: var(--ink-3);
}

.notice {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.notice-error {
  background: var(--danger-soft);
  color: #7c2e1f;
}

.notice-warn {
  background: var(--warn-soft);
  color: #6d470b;
}

.notice-info {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.notice .btn {
  justify-self: start;
}

/* Photo */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e3da;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.photo-frame img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.photo-frame .overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
  font-weight: 700;
  display: grid;
  gap: 8px;
}

.photo-frame .progress {
  background: rgba(255, 255, 255, 0.35);
}

.photo-frame .progress > span {
  background: #fff;
}

.photo-thumb {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

/* Questions */
.options {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 14px 16px;
  text-align: left;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--surface);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option::after {
  content: "";
  margin-left: auto;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.option.multi::after {
  border-radius: 6px;
}

.option[aria-pressed="true"],
.option[aria-checked="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.option[aria-pressed="true"]::after,
.option[aria-checked="true"]::after {
  border-color: var(--primary);
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(29, 36, 33, 0.14);
  background: var(--bg);
}

.swatch-auto {
  background: conic-gradient(#f2ede3 0 25%, #ddcbb0 0 50%, #bdbdb9 0 75%, #b68a5f 0);
}

/* Analyzing */
.stages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.stage {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-weight: 700;
}

.stage::before {
  content: "";
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.stage.active {
  color: var(--ink);
}

.stage.active::before {
  border-color: var(--primary-soft);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

.stage.done {
  color: var(--ink-2);
}

.stage.done::before {
  border-color: var(--primary);
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

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

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
}

/* Result */
.score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.score-ring {
  position: relative;
  width: 108px;
  height: 108px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 10;
}

.score-ring .track {
  stroke: var(--line);
}

.score-ring .value {
  stroke: var(--grade-color, var(--primary));
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.score-ring .score-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
}

.score-text b {
  font-size: 32px;
  font-weight: 800;
}

.score-text small {
  font-size: 12px;
  color: var(--ink-3);
}

.score-label {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 700;
}

.grade-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.grade-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  background: var(--grade-color, var(--primary));
}

.grade-title {
  font-size: 20px;
  font-weight: 800;
}

.grade-A {
  --grade-color: var(--grade-a);
}

.grade-B {
  --grade-color: var(--grade-b);
}

.grade-C {
  --grade-color: var(--grade-c);
}

.grade-D {
  --grade-color: var(--grade-d);
}

.score-summary {
  grid-column: 1 / -1;
  color: var(--ink-2);
}

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

.bullets li {
  position: relative;
  padding-left: 18px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.warnings li::before {
  background: var(--accent);
}

.warning-detail {
  display: block;
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 2px;
}

.section-title {
  font-size: 21px;
  font-weight: 800;
  padding-top: 8px;
}

.colors {
  display: grid;
  gap: 10px;
}

.color-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px 14px;
  align-items: start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

.color-card.selected {
  border-color: var(--primary);
}

.color-card .swatch {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.color-rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.color-title {
  font-size: 18px;
  font-weight: 800;
}

.color-reason {
  font-size: 15px;
  color: var(--ink-2);
}

.color-card .btn {
  grid-column: 1 / -1;
}

.preview-box {
  display: grid;
  gap: 12px;
}

.compare {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e3da;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  --pos: 50%;
}

.compare img {
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.compare .after {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 0 var(--pos));
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2421' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.compare-label {
  position: absolute;
  top: 10px;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(29, 36, 33, 0.62);
  color: #fff;
  pointer-events: none;
}

.compare-label.before {
  left: 10px;
}

.compare-label.after-label {
  right: 10px;
  background: var(--primary);
}

.compare-range {
  width: 100%;
  accent-color: var(--primary);
  min-height: 32px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.segmented .btn {
  min-height: 44px;
  font-size: 15px;
}

.preview-loading {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.preview-loading img {
  width: 100%;
  filter: saturate(0.6) brightness(0.8);
}

.preview-loading .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  padding: 20px;
  background: linear-gradient(110deg, rgba(29, 36, 33, 0.35) 30%, rgba(29, 36, 33, 0.15) 50%, rgba(29, 36, 33, 0.35) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.8s linear infinite;
}

.preview-loading .overlay small {
  font-weight: 500;
  opacity: 0.9;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
}

.color-chip .swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.color-chip[aria-pressed="true"] {
  border-color: var(--primary);
}

.color-chip[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cost-card .cost {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cost-card .cost small {
  font-size: 17px;
  color: var(--ink-3);
  font-weight: 700;
}

.lead-cta {
  background: var(--primary);
  color: #fff;
}

.lead-cta p {
  color: rgba(255, 255, 255, 0.86);
}

.lead-cta .btn {
  background: #fff;
  color: var(--primary-strong);
}

.consent-toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
}

.consent-toggle input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--primary);
  flex: none;
}

.disclaimer {
  font-size: 13px;
  color: var(--ink-3);
  display: grid;
  gap: 6px;
  padding: 4px 2px;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  min-height: 40px;
  display: flex;
  align-items: center;
}

/* Lead form */
.form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > label,
.field > .label {
  font-weight: 700;
  font-size: 16px;
}

.field .optional {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 14px;
}

.input {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  padding: 12px 14px;
  font-size: 17px;
}

.input:focus {
  border-color: var(--primary);
  outline: none;
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-grid.wide {
  grid-template-columns: repeat(2, 1fr);
}

.choice {
  min-height: 48px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.choice[aria-checked="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.consent-box {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.consent-box table,
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.consent-box th,
.consent-box td,
.doc th,
.doc td {
  border-top: 1px solid var(--line);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}

.consent-box th,
.doc th {
  width: 30%;
  color: var(--ink-3);
  font-weight: 700;
}

.done-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 40px no-repeat;
  justify-self: center;
}

.center {
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15px;
  max-width: calc(100% - 40px);
  box-shadow: var(--shadow);
}

/* Static documents */
.doc {
  padding-top: 24px;
  padding-bottom: 32px;
  display: grid;
  gap: 12px;
}

.doc h1 {
  font-size: 28px;
}

.doc h2 {
  font-size: 19px;
  margin-top: 14px;
}

.doc ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.doc table {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.simple-page {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 16px;
}

@media (min-width: 720px) {
  .landing {
    padding-top: 48px;
  }
}

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