/* Chroma marketing site: design tokens from colorApp/src/theme */
:root {
  --ivory: #fbf7f3;
  --blush: #f7eae6;
  --rose-100: #f3dddc;
  --rose-300: #e4b8bc;
  --berry: #a85d72;
  --berry-deep: #8c4860;
  --berry-mid: #c77e92;
  --plum: #3e2f3b;
  --mauve: #94808a;
  --gold: #c69c7b;
  --sage: #a9b49a;
  --card: #ffffff;
  --line: rgba(62, 47, 59, 0.1);
  --grad-cta: linear-gradient(135deg, #c77e92 0%, #a85d72 60%, #8c4860 100%);
  --grad-hero: linear-gradient(180deg, #fbf7f3 0%, #f7e9e4 70%, #f3dddc 100%);
  --wheel: conic-gradient(
    from 210deg,
    #f5c6aa,
    #f1a7b5,
    #d9a0c7,
    #b7a8e0,
    #9fbce8,
    #9ccdba,
    #d8d9a5,
    #f5dca9,
    #f5c6aa
  );
  --shadow-card: 0 10px 30px rgba(62, 47, 56, 0.08);
  --shadow-cta: 0 12px 28px rgba(168, 93, 114, 0.35);
  --shadow-hover: 0 16px 40px rgba(62, 47, 56, 0.12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-h: 72px;
  --max-w: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-full: 999px;
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--plum);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

.section-intro {
  text-align: center;
  margin-bottom: 48px;
}

.section-intro .section-desc {
  margin-inline: auto;
  margin-bottom: 0;
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 247, 243, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: 0 4px 24px rgba(62, 47, 56, 0.06);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.82;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mauve);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--plum);
}

.nav-links .btn-primary {
  color: #fff;
}

.nav-links .btn-primary:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(168, 93, 114, 0.42);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--plum);
}

.btn-ghost:hover {
  border-color: rgba(168, 93, 114, 0.35);
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--plum);
}

.nav-toggle:hover {
  background: rgba(168, 93, 114, 0.08);
}

/* ── Hero ── */
.hero {
  padding: calc(var(--nav-h) + 56px) 0 80px;
  background: var(--grad-hero);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--wheel);
  opacity: 0.18;
  filter: blur(40px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  text-align: left;
}

.hero-copy {
  max-width: none;
}

.hero-editorial .hero-lead {
  margin-inline: 0;
}

.hero-editorial .hero-actions {
  justify-content: flex-start;
}

.hero-editorial .hero-rating {
  justify-content: flex-start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--berry);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--berry);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--mauve);
  max-width: 520px;
  margin-bottom: 20px;
  line-height: 1.65;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.hero-points li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--plum);
  line-height: 1.45;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--berry);
  transform: translateY(-50%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.app-store-badge {
  display: inline-block;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.app-store-badge img {
  height: 52px;
  width: auto;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--mauve);
}

.stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-visual-caption {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--berry);
  margin: 0 0 12px;
  width: min(100%, 380px);
}

.phone-mock {
  width: min(100%, 300px);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #fff 0%, var(--blush) 100%);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform var(--transition);
}

.phone-mock:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.phone-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}

.palette-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
}

.palette-preview span {
  aspect-ratio: 1;
  border-radius: 8px;
  transition: transform var(--transition);
}

.palette-preview span:hover {
  transform: scale(1.08);
  z-index: 1;
}

.season-badge {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(168, 93, 114, 0.1);
  color: var(--berry-deep);
  font-size: 0.8125rem;
  font-weight: 600;
}

.season-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 12px 0 6px;
}

.season-sub {
  font-size: 0.8125rem;
  color: var(--mauve);
  margin-bottom: 16px;
}

/* ── Sections ── */
section {
  padding: 88px 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--mauve);
  max-width: 620px;
  font-size: 1.05rem;
}

.faq-list {
  margin-inline: auto;
}

.section-alt {
  background: var(--blush);
}

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(168, 93, 114, 0.22);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(168, 93, 114, 0.1);
  color: var(--berry);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 18px;
}

.step-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--mauve);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Comparison ── */
.compare-legend {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mauve);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.compare-legend-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.compare-legend-item.is-chroma {
  color: var(--berry-deep);
}

.compare-legend-item.is-chroma::before {
  background: var(--berry);
  box-shadow: 0 0 0 3px rgba(168, 93, 114, 0.18);
}

.compare-legend-sep {
  color: rgba(148, 128, 138, 0.45);
  font-weight: 400;
}

.compare-wrap {
  overflow-x: auto;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(168, 93, 114, 0.14);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(251, 247, 243, 0.92) 100%
  );
  box-shadow:
    0 18px 48px rgba(62, 47, 56, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.compare-col-chroma {
  width: 22%;
}

.compare-col-feature {
  width: 34%;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.compare-table th:first-child,
.compare-table td:first-child,
.compare-table tbody th {
  text-align: left;
  font-weight: 600;
}

.compare-table tbody th {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--plum);
}

.compare-table thead th {
  background: rgba(247, 234, 230, 0.55);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  vertical-align: middle;
}

.compare-table thead th.highlight {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.compare-col-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-col-head img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(62, 47, 56, 0.18);
}

.compare-col-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--berry-deep);
  background: rgba(255, 255, 255, 0.92);
}

.compare-table tbody td.highlight {
  background: linear-gradient(
    180deg,
    rgba(168, 93, 114, 0.1) 0%,
    rgba(247, 234, 230, 0.42) 100%
  );
  box-shadow: inset 2px 0 0 rgba(168, 93, 114, 0.22);
}

.compare-table tbody tr:hover td:not(.highlight) {
  background: rgba(251, 247, 243, 0.75);
}

.compare-table tbody tr:hover td.highlight {
  background: linear-gradient(
    180deg,
    rgba(168, 93, 114, 0.14) 0%,
    rgba(247, 234, 230, 0.55) 100%
  );
}

@media (min-width: 641px) {
  .compare-table tbody tr:last-child td,
  .compare-table tbody tr:last-child th {
    border-bottom: none;
  }
}

.compare-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.compare-val-yes {
  width: 30px;
  height: 30px;
  min-width: 30px;
  max-width: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.875rem;
  background: var(--grad-cta);
  box-shadow: 0 4px 12px rgba(168, 93, 114, 0.28);
  box-sizing: border-box;
}

.compare-val-no {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b5a5c;
  background: rgba(243, 221, 220, 0.65);
  border: 1px solid rgba(168, 93, 114, 0.12);
}

.compare-val-partial {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mauve);
  background: rgba(251, 247, 243, 0.95);
  border: 1px solid var(--line);
}

.check {
  color: var(--berry);
  font-weight: 700;
}

.dash {
  color: var(--mauve);
  font-size: 0.875rem;
}

.compare-cards {
  display: none;
  gap: 16px;
}

.compare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.compare-card.featured {
  border-color: rgba(168, 93, 114, 0.35);
  background: linear-gradient(180deg, #fff 0%, rgba(247, 234, 230, 0.4) 100%);
}

.compare-card h3 {
  font-family: var(--serif);
  margin-bottom: 8px;
}

.compare-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--berry);
  margin-bottom: 16px;
}

.compare-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.compare-card li {
  font-size: 0.9375rem;
  color: var(--mauve);
  padding-left: 22px;
  position: relative;
}

.compare-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--berry);
  font-weight: 700;
}

/* ── Results ── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.result-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.result-meta {
  font-size: 0.8125rem;
  color: var(--mauve);
}

.result-stars {
  color: var(--gold);
  font-size: 0.875rem;
}

.result-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(168, 93, 114, 0.08);
  color: var(--berry-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.result-card p {
  color: var(--mauve);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── FAQ ── */
.faq-list {
  max-width: 760px;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(168, 93, 114, 0.25);
}

.faq-item.open {
  border-color: rgba(168, 93, 114, 0.35);
  box-shadow: var(--shadow-card);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--plum);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--berry-deep);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(168, 93, 114, 0.1);
  display: grid;
  place-items: center;
  color: var(--berry);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 22px 20px;
  color: var(--mauve);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── CTA ── */
.cta-section {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--blush) 100%);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}

.cta-section p {
  color: var(--mauve);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--plum);
  color: rgba(251, 247, 243, 0.85);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.footer-tagline {
  color: rgba(251, 247, 243, 0.6);
  font-size: 0.9375rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-subscribe {
  margin-top: 24px;
}

.footer-subscribe > p {
  font-size: 0.875rem;
  color: rgba(251, 247, 243, 0.6);
  margin-bottom: 12px;
  max-width: 320px;
  line-height: 1.55;
}

.footer-subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 340px;
}

.footer-subscribe-form input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 247, 243, 0.2);
  background: rgba(251, 247, 243, 0.08);
  color: #fff;
  font: inherit;
}

.footer-subscribe-form input::placeholder {
  color: rgba(251, 247, 243, 0.45);
}

.footer-subscribe-form input:focus {
  outline: 2px solid rgba(168, 93, 114, 0.55);
  outline-offset: 2px;
}

.footer-subscribe-form button {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--grad-cta);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.footer-subscribe-form button:hover {
  opacity: 0.9;
}

.footer-subscribe-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.footer-subscribe-note {
  font-size: 0.8125rem;
  color: rgba(251, 247, 243, 0.72);
  margin-top: 10px;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.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;
}

.footer-col h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251, 247, 243, 0.5);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: rgba(251, 247, 243, 0.78);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(251, 247, 243, 0.12);
  font-size: 0.8125rem;
  color: rgba(251, 247, 243, 0.5);
}

.footer-bottom a {
  color: rgba(251, 247, 243, 0.65);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: #fff;
}

.ios-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 247, 243, 0.08);
  font-size: 0.75rem;
  color: rgba(251, 247, 243, 0.7);
  margin-top: 8px;
}

/* ── Blog page ── */
.page-hero {
  padding: calc(var(--nav-h) + 48px) 0 48px;
  background: var(--grad-hero);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--mauve);
  max-width: 560px;
}

.blog-grid {
  display: grid;
  gap: 24px;
  padding: 48px 0 88px;
}

.blog-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(168, 93, 114, 0.22);
}

.blog-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--berry);
  white-space: nowrap;
}

.blog-card h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.blog-card h2 a:hover {
  color: var(--berry);
}

.blog-excerpt {
  color: var(--mauve);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--berry);
  transition: opacity var(--transition);
}

.read-more:hover {
  opacity: 0.75;
}

.article {
  padding: 48px 0 88px;
}

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 36px 0 12px;
}

.article-content p,
.article-content li {
  color: var(--mauve);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.section-intro-left {
  text-align: left;
  margin-bottom: 40px;
}

.section-intro-left .section-desc {
  margin-inline: 0;
}

/* ── Drape hero ── */
.drape-panel {
  width: min(100%, 380px);
  margin-inline: auto;
}

.drape-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.drape-atmosphere {
  position: absolute;
  inset: 0;
  background: rgba(139, 111, 92, 0.35);
  transition: background 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.drape-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.drape-fabric {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: #8b6f5c;
  opacity: 0.72;
  mix-blend-mode: multiply;
  transition: background 0.7s ease;
  z-index: 2;
  mask-image: linear-gradient(to top, black 55%, transparent);
  -webkit-mask-image: linear-gradient(to top, black 55%, transparent);
}

.drape-match {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  color: var(--plum);
}

.drape-match.is-poor {
  color: #8b5a5c;
}
.drape-match.is-weak {
  color: #94808a;
}
.drape-match.is-good {
  color: var(--berry-deep);
}
.drape-match.is-best {
  background: var(--grad-cta);
  color: #fff;
}

.drape-label {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 14px 0 6px;
}

.drape-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--mauve);
  margin: 0 0 12px;
}

.drape-swatches {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.drape-swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    border-color var(--transition);
}

.drape-swatch:hover,
.drape-swatch.is-active {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--plum);
}

.drape-swatch.is-best.is-active {
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(168, 93, 114, 0.25);
}

.drape-palette {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  min-height: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.drape-palette.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drape-palette span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-icon {
  transition: transform 0.8s ease;
}

.brand:hover .brand-icon {
  transform: rotate(8deg);
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 18px 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--berry-deep);
}

.trust-strip-inner span::before {
  content: "✓ ";
  color: var(--berry);
}

.compare-section {
  padding: 88px 0;
}

.compare-slider-frame {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4 / 5;
  container-type: inline-size;
}

.compare-base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) hue-rotate(18deg) brightness(1.08);
}

.compare-clip {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #fff;
}

.compare-good {
  width: 100cqw;
  height: 100%;
  object-fit: cover;
  max-width: none;
  filter: saturate(1.05) contrast(1.02);
}

.compare-badge {
  position: absolute;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
}

.compare-badge-bad {
  left: 16px;
  color: #8b5a5c;
}
.compare-badge-good {
  right: 16px;
  color: var(--berry-deep);
}

.compare-range {
  display: block;
  width: min(100%, 420px);
  margin: 20px auto 0;
  accent-color: var(--berry);
}

.walkthrough {
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

/* ── Color wheel atmospheres ── */
.color-wheel-bg {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: var(--wheel);
  opacity: 0.14;
  filter: blur(60px);
}

.color-wheel-bg.is-animating {
  animation: wheelDrift 24s linear infinite;
}

.color-wheel-bg-hero {
  width: 520px;
  height: 520px;
  top: -80px;
  right: -120px;
}

.color-wheel-bg-soft {
  width: 440px;
  height: 440px;
  top: 50%;
  left: -160px;
  transform: translateY(-50%);
  opacity: 0.1;
}

.color-wheel-bg-results {
  width: 380px;
  height: 380px;
  bottom: -60px;
  right: -80px;
  opacity: 0.12;
}

.color-wheel-bg-cta {
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.16;
}

@keyframes wheelDrift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.color-wheel-bg-soft.is-animating {
  animation: wheelDriftSoft 28s linear infinite;
}

@keyframes wheelDriftSoft {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.color-wheel-bg-cta.is-animating {
  animation: wheelDriftCta 32s linear infinite;
}

@keyframes wheelDriftCta {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ── Step showcase (animated, no scroll) ── */
.step-showcase {
  position: relative;
  z-index: 1;
}

.step-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: center;
  max-width: 960px;
  margin-inline: auto;
}

.step-rail {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  --step-rail-track: 52px;
  --step-rail-btn-pad: 10px;
}

.step-rail::before {
  content: "";
  position: absolute;
  left: calc(var(--step-rail-btn-pad) + var(--step-rail-track) / 2);
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: rgba(168, 93, 114, 0.14);
  border-radius: 1px;
  transform: translateX(-50%);
  z-index: 0;
}

.step-rail-item {
  position: relative;
  z-index: 1;
}

.step-rail-btn {
  display: grid;
  grid-template-columns: var(--step-rail-track) 1fr;
  align-items: start;
  gap: 14px;
  width: 100%;
  padding: var(--step-rail-btn-pad) 12px;
  border-radius: var(--radius-sm);
  text-align: left;
  transition:
    background var(--transition),
    transform var(--transition);
}

.step-rail-btn:hover {
  background: rgba(255, 255, 255, 0.55);
}

.step-rail-item.is-active .step-rail-btn {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.step-rail-num {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-inline: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mauve);
  background: var(--ivory);
  border: 2px solid rgba(168, 93, 114, 0.2);
  box-shadow: 0 0 0 3px var(--ivory);
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.step-rail-item.is-active .step-rail-num {
  color: #fff;
  background: var(--berry);
  border-color: var(--berry);
  box-shadow:
    0 0 0 3px var(--ivory),
    0 4px 14px rgba(168, 93, 114, 0.35);
}

.step-rail-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-top: 4px;
}

.step-rail-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--plum);
  opacity: 0.5;
  transition:
    opacity var(--transition),
    font-size var(--transition);
}

.step-rail-item.is-active .step-rail-title {
  opacity: 1;
  font-size: 1.12rem;
}

.step-rail-desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--mauve);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.35s ease,
    margin 0.35s ease;
}

.step-rail-item.is-active .step-rail-desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 2px;
}

.step-showcase-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.step-progress-track {
  width: 100%;
  max-width: 300px;
  height: 3px;
  background: rgba(168, 93, 114, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}

/* Phone device frame */
.phone-device {
  position: relative;
  width: 300px;
  aspect-ratio: 1 / 1;
}

.phone-frame-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.phone-screen-area {
  position: absolute;
  z-index: 1;
  top: 9%;
  left: 10%;
  right: 10%;
  bottom: 9%;
  border-radius: 7%;
  overflow: hidden;
  background: var(--ivory);
}

.walk-phone {
  position: relative;
  width: 100%;
  height: 100%;
}

.walk-phone .walk-screen {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 6px 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--mauve);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s;
}

.walk-phone[data-screen="selfie"] .walk-screen-selfie,
.walk-phone[data-screen="analyze"] .walk-screen-analyze,
.walk-phone[data-screen="season"] .walk-screen-season,
.walk-phone[data-screen="palette"] .walk-screen-palette,
.walk-phone[data-screen="shop"] .walk-screen-shop {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.step-progress-fill {
  height: 100%;
  width: 20%;
  background: var(--grad-cta);
  border-radius: var(--radius-full);
  transition: width 0.55s ease;
}

/* Camera UI (selfie step) */
.cam-ui {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cam-viewfinder {
  position: relative;
  width: 100%;
  height: 152px;
  border-radius: 14px;
  background: linear-gradient(165deg, #fff 0%, var(--blush) 100%);
  overflow: hidden;
}

.cam-brackets {
  position: absolute;
  inset: 14px;
  pointer-events: none;
}

.cam-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(168, 93, 114, 0.45);
}

.cam-corner-tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
}
.cam-corner-tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-radius: 0 4px 0 0;
}
.cam-corner-bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 4px;
}
.cam-corner-br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
}

.cam-oval-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 118px;
  margin: -59px 0 0 -48px;
  border: 2px dashed rgba(168, 93, 114, 0.45);
  border-radius: 50%;
  transition:
    border-color 0.3s ease,
    border-style 0.3s ease,
    box-shadow 0.3s ease;
}

.cam-face-photo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(calc(-50% + 14px), calc(-50% + 10px));
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(62, 47, 56, 0.12);
}

.cam-ui.is-animating .cam-face-photo {
  transition:
    transform 0.75s ease,
    opacity 0.25s ease;
}

.cam-ui[data-cam-phase="align"] .cam-face-photo,
.cam-ui[data-cam-phase="locked"] .cam-face-photo,
.cam-ui[data-cam-phase="capture"] .cam-face-photo {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.cam-ui[data-cam-phase="captured"] .cam-face-photo,
.cam-ui[data-cam-phase="done"] .cam-face-photo {
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cam-face-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cam-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.cam-ui[data-cam-phase="capture"] .cam-flash {
  opacity: 0.95;
}

.cam-captured {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(251, 247, 243, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cam-ui[data-cam-phase="captured"] .cam-captured,
.cam-ui[data-cam-phase="done"] .cam-captured {
  opacity: 1;
  background: var(--ivory);
}

.cam-ui[data-cam-phase="captured"] .cam-oval-guide,
.cam-ui[data-cam-phase="done"] .cam-oval-guide {
  border-color: rgba(168, 93, 114, 0.25);
  opacity: 0.35;
}

.cam-ui[data-cam-phase="done"] .cam-face-photo,
.cam-ui[data-cam-phase="done"] .cam-oval-guide,
.cam-ui[data-cam-phase="done"] .cam-captured,
.cam-ui[data-cam-phase="done"] .cam-flash {
  transition: none;
}

.cam-ui[data-cam-phase="enter"] .cam-oval-guide {
  border-color: rgba(168, 93, 114, 0.35);
  border-style: dashed;
  opacity: 1;
}

.cam-ui[data-cam-phase="align"] .cam-oval-guide {
  border-color: rgba(168, 93, 114, 0.7);
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(168, 93, 114, 0.08);
  opacity: 1;
}

.cam-ui[data-cam-phase="locked"] .cam-oval-guide,
.cam-ui[data-cam-phase="capture"] .cam-oval-guide {
  border-color: #4a7c59;
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.15);
  opacity: 1;
}

.cam-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(74, 124, 89, 0.15);
  color: #4a7c59;
  font-weight: 700;
  font-size: 1.25rem;
}

.cam-status {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--berry-deep);
  min-height: 1.2em;
}

/* Analyze UI */
.analyze-ui {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.analyze-face-wrap {
  position: relative;
  width: 100px;
  height: 100px;
}

.analyze-face-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(62, 47, 56, 0.1);
}

.analyze-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--berry), transparent);
  top: 0;
  animation: analyzeScan 2s ease-in-out infinite;
}

@keyframes analyzeScan {
  0%,
  100% {
    top: 0;
    opacity: 0.4;
  }
  50% {
    top: calc(100% - 3px);
    opacity: 1;
  }
}

.analyze-metrics {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.analyze-metric {
  padding: 5px 8px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--mauve);
  background: rgba(168, 93, 114, 0.08);
  white-space: nowrap;
  animation: analyzeMetricPulse 2.4s ease-in-out infinite;
}

.analyze-metric:nth-child(2) {
  animation-delay: 0.4s;
}
.analyze-metric:nth-child(3) {
  animation-delay: 0.8s;
}

.analyze-metric.is-active {
  background: rgba(168, 93, 114, 0.18);
  color: var(--berry-deep);
}

@keyframes analyzeMetricPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.analyze-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--berry-deep);
}

/* Season result (step 3) */
.walk-screen-season {
  justify-content: center;
  align-items: center;
  padding: 8px 4px;
}

.season-result {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 22px 20px;
  border-radius: 14px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(247, 234, 230, 0.9) 100%
  );
  border: 1px solid rgba(168, 93, 114, 0.15);
  overflow: hidden;
}

.season-result-glow {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
  background: var(--wheel);
  opacity: 0.2;
  filter: blur(24px);
  pointer-events: none;
}

.season-result-label {
  position: relative;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--berry);
}

.season-result-title {
  position: relative;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--plum);
  line-height: 1.2;
  white-space: nowrap;
}

.season-result-traits {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.season-result-traits span {
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--berry-deep);
  background: rgba(168, 93, 114, 0.1);
  white-space: nowrap;
}

.season-result-swatches {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
}

.season-result-swatches span {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(62, 47, 56, 0.1);
}

/* Palette screen (step 4) */
.walk-screen-palette {
  justify-content: stretch;
  padding: 8px 6px;
}

.palette-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
}

.palette-screen-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry);
  text-align: center;
  flex-shrink: 0;
}

.palette-screen-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.palette-screen-group {
  text-align: left;
}

.palette-screen-group-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 6px;
}

.palette-screen-swatches {
  display: flex;
  gap: 5px;
}

.palette-screen-swatches span {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  min-width: 0;
}

.palette-count {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--mauve);
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
  padding-top: 4px;
}

/* Shop UI (step 5) */
.walk-screen-shop {
  justify-content: center;
}

.shop-ui {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.shop-viewfinder {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 14px;
  background: linear-gradient(165deg, #fff 0%, var(--blush) 100%);
  overflow: hidden;
}

.shop-brackets {
  position: absolute;
  inset: 10px;
  pointer-events: none;
}

.shop-item {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.shop-item svg {
  width: 72px;
  height: 72px;
}

.shop-item-shirt path {
  fill: #c4a882;
}

.shop-item-trouser path {
  fill: #6b8fa8;
}

.shop-item.is-visible {
  opacity: 1;
  transform: scale(1);
}

.shop-scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--berry), transparent);
  top: 0;
  opacity: 0;
}

.shop-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.shop-feedback {
  width: 100%;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.shop-result {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.shop-result.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.shop-result-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
}

.shop-result-pill.is-good {
  background: rgba(74, 124, 89, 0.15);
  color: #4a7c59;
}

.shop-result-pill.is-bad {
  background: rgba(139, 90, 92, 0.15);
  color: #8b5a5c;
}

.shop-status {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--berry-deep);
  min-height: 2.6em;
  text-align: center;
  line-height: 1.35;
  width: 100%;
}

.shop-ui.is-animating[data-shop-phase="capture-shirt"] .shop-flash,
.shop-ui.is-animating[data-shop-phase="capture-trouser"] .shop-flash {
  animation: shopFlash 0.35s ease forwards;
}

.shop-ui.is-animating[data-shop-phase="scan-shirt"] .shop-scan-line,
.shop-ui.is-animating[data-shop-phase="scan-trouser"] .shop-scan-line {
  animation: shopScan 1s ease-in-out infinite;
}

@keyframes shopFlash {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

@keyframes shopScan {
  0%,
  100% {
    top: 12%;
    opacity: 0.5;
  }
  50% {
    top: 82%;
    opacity: 1;
  }
}

/* ── Palette features section ── */
.palette-features {
  position: relative;
  overflow: hidden;
}

.palette-features .container {
  position: relative;
  z-index: 1;
}

.color-wheel-bg-features {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -180px;
  opacity: 0.1;
}

.palette-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.palette-hero-card {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(168, 93, 114, 0.18);
  background: linear-gradient(
    135deg,
    #fff 0%,
    rgba(247, 234, 230, 0.65) 55%,
    rgba(243, 221, 220, 0.5) 100%
  );
  box-shadow: var(--shadow-hover);
}

.palette-hero-glow {
  position: absolute;
  inset: -20% auto auto -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--wheel);
  opacity: 0.18;
  filter: blur(40px);
  pointer-events: none;
}

.palette-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.palette-hero-icon img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.palette-hero-copy h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 8px;
}

.palette-hero-copy p {
  color: var(--mauve);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 480px;
}

.palette-hero-swatches {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 10px 8px;
}

.palette-icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--chip-color);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(62, 47, 56, 0.08);
  animation: swatchFloat 4s ease-in-out infinite;
}

.palette-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.palette-icon-chip svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.palette-icon-chip:nth-child(odd) {
  animation-delay: 0.3s;
}

@keyframes swatchFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-cta);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(168, 93, 114, 0.22);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(168, 93, 114, 0.1);
  color: var(--berry);
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 6px;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--mauve);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.feature-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.feature-chip-good {
  background: rgba(74, 124, 89, 0.12);
  color: #4a7c59;
}

.feature-swatches {
  display: flex;
  gap: 6px;
}

.feature-swatches span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.feature-gradient-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #3e2f2b, #8b6f5c, #c4a882, #d4b896);
}

.feature-recipe-preview {
  display: flex;
  gap: 4px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.feature-recipe-preview span {
  flex: 1;
}

.compare-section-open {
  margin-top: 48px;
  padding: 40px 28px 36px;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(168, 93, 114, 0.08) 0%,
      transparent 70%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(251, 247, 243, 0.45) 100%
    );
  border: 1px solid rgba(168, 93, 114, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.compare-section-open .compare-wrap {
  display: block;
  width: 100%;
}

/* Tablet: keep table, tighten columns */
@media (max-width: 960px) and (min-width: 641px) {
  .compare-section-open {
    padding: 32px 20px 28px;
  }

  .compare-wrap {
    overflow-x: visible;
  }

  .compare-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .compare-col-feature {
    width: 38%;
  }

  .compare-col-chroma {
    width: 20%;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 8px;
    font-size: 0.8125rem;
  }

  .compare-table tbody th {
    font-size: clamp(0.6875rem, 1.55vw, 0.8125rem);
    line-height: 1.35;
    padding-right: 6px;
    hyphens: auto;
  }

  .compare-table thead th {
    font-size: 0.8125rem;
    line-height: 1.25;
    padding: 10px 6px;
  }

  .compare-table thead th:nth-child(3),
  .compare-table thead th:nth-child(4) {
    font-size: 0.6875rem;
  }

  .compare-col-head {
    flex-direction: column;
    gap: 4px;
  }

  .compare-col-head img {
    width: 20px;
    height: 20px;
  }

  .compare-col-badge {
    font-size: 0.5625rem;
    padding: 2px 6px;
  }

  .compare-val-yes {
    width: 26px;
    height: 26px;
    min-width: 26px;
    max-width: 26px;
    font-size: 0.75rem;
  }

  .compare-val-no,
  .compare-val-partial {
    padding: 4px 7px;
    font-size: 0.625rem;
  }
}

/* Phone: stacked feature cards */
@media (max-width: 640px) {
  .compare-section-open {
    padding: 28px 16px 24px;
  }

  .compare-legend {
    display: flex;
    flex-wrap: wrap;
  }

  .compare-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    width: 100%;
  }

  .compare-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .compare-table tbody {
    display: grid;
    gap: 14px;
    width: 100%;
  }

  .compare-table tbody tr {
    display: block;
    width: 100%;
    background: var(--card);
    border: 1px solid rgba(168, 93, 114, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(62, 47, 56, 0.07);
    overflow: hidden;
  }

  .compare-table tbody tr:hover td,
  .compare-table tbody tr:hover th {
    background: transparent;
  }

  .compare-table tbody th {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px 12px;
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--plum);
    background: linear-gradient(
      90deg,
      rgba(168, 93, 114, 0.12) 0%,
      rgba(247, 234, 230, 0.45) 42%,
      rgba(255, 255, 255, 0.95) 100%
    );
    border-bottom: 1px solid var(--line);
  }

  .compare-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    text-align: right;
    font-size: 0.9375rem;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
  }

  .compare-table tbody td .compare-val {
    flex-shrink: 0;
  }

  .compare-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--mauve);
    text-align: left;
    flex: 1;
  }

  .compare-table tbody td.highlight {
    background: linear-gradient(
      90deg,
      rgba(168, 93, 114, 0.14) 0%,
      rgba(247, 234, 230, 0.35) 100%
    );
    border-left: 3px solid var(--berry);
  }

  .compare-table tbody td.highlight::before {
    color: var(--berry-deep);
    font-weight: 700;
  }

  .compare-table tbody tr td:last-child {
    border-bottom: none;
  }
}

/* ── People grid (replaces carousel) ── */
#results {
  position: relative;
  overflow: hidden;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.person-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
}

.person-card.is-spotlight {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(168, 93, 114, 0.28);
}

.person-card:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
}

.people-grid:has(.person-card.is-spotlight) .person-card:not(.is-spotlight) {
  opacity: 0.72;
  transform: scale(0.98);
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.person-card-body {
  padding: 18px;
}

.person-season {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--berry);
  margin-bottom: 8px;
}

.person-quote {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.person-swatches {
  display: flex;
  gap: 6px;
}

.person-swatches span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.hero-editorial {
  position: relative;
  overflow: hidden;
}

.hero-editorial .container {
  position: relative;
  z-index: 1;
}

.walk-match-pill {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(74, 124, 89, 0.15);
  color: #4a7c59;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.value-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.value-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--mauve);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.blog-thumb {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
}

.blog-thumb-palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
}

.blog-thumb-palette span {
  min-height: 40px;
}

/* ── Legal pages ── */
.legal-main {
  padding-bottom: 96px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 64px;
  background: var(--grad-hero);
}

.legal-hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--wheel);
  opacity: 0.15;
  content: "";
  filter: blur(34px);
  pointer-events: none;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.legal-hero h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.legal-hero > .container > p:not(.section-label):not(.legal-updated) {
  max-width: 620px;
  color: var(--mauve);
  font-size: 1.1rem;
}

.legal-updated {
  margin-top: 24px;
  color: var(--berry);
  font-size: 0.875rem;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 720px);
  justify-content: center;
  gap: 56px;
  padding-top: 64px;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
}

.legal-toc p {
  margin-bottom: 10px;
  color: var(--plum);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--mauve);
  font-size: 0.875rem;
  line-height: 1.35;
}

.legal-toc a:hover {
  color: var(--berry);
}

.legal-content {
  min-width: 0;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.legal-content .legal-intro {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  color: var(--plum);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
}

.legal-content section + section {
  margin-top: 40px;
}

.legal-content h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-content h3 {
  margin: 24px 0 8px;
  color: var(--plum);
  font-size: 1rem;
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: var(--mauve);
  font-size: 0.975rem;
  line-height: 1.75;
}

.legal-content p + p {
  margin-top: 14px;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-content a {
  color: var(--berry);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(168, 93, 114, 0.35);
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--berry-deep);
}

.legal-content address {
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .drape-atmosphere,
  .drape-fabric,
  .drape-swatch,
  .person-card,
  .feature-card,
  .brand-icon,
  .walk-phone .walk-screen {
    transition: none !important;
  }
  .drape-palette {
    transition: none !important;
  }
  .shop-result {
    transition: none !important;
  }
  .color-wheel-bg.is-animating,
  .cam-ui.is-animating .cam-face-photo,
  .cam-ui .cam-oval-guide,
  .cam-ui .cam-flash,
  .cam-ui .cam-captured,
  .analyze-scan-line,
  .analyze-metric,
  .palette-icon-chip,
  .shop-ui.is-animating .shop-flash,
  .shop-ui.is-animating .shop-scan-line {
    animation: none;
    transition: none !important;
  }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: minmax(0, 720px);
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .legal-toc p {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-editorial .hero-lead,
  .hero-editorial .hero-actions,
  .hero-editorial .hero-rating {
    margin-inline: auto;
  }

  .hero-editorial .hero-actions,
  .hero-editorial .hero-rating {
    justify-content: center;
  }

  .section-intro-left {
    text-align: center;
  }

  .section-intro-left .section-desc {
    margin-inline: auto;
  }

  .step-showcase-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: none;
  }

  .step-showcase-stage {
    order: -1;
  }

  .step-rail {
    max-width: 420px;
    margin-inline: auto;
  }

  .step-rail-desc {
    max-height: none;
    opacity: 0.75;
  }

  .step-rail-item:not(.is-active) .step-rail-desc {
    display: none;
  }

  .phone-device {
    width: min(300px, 78vw);
  }

  .step-progress-track {
    max-width: min(300px, 78vw);
  }

  .palette-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .palette-hero-icon {
    margin-inline: auto;
  }

  .palette-hero-swatches {
    justify-content: center;
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .value-cards {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 721px) {
  .nav-cta-mobile {
    display: none;
  }
}

@media (max-width: 720px) {
  .legal-main {
    padding-bottom: 56px;
  }

  .legal-hero {
    padding: calc(var(--nav-h) + 44px) 0 44px;
  }

  .legal-layout {
    gap: 28px;
    padding-top: 36px;
  }

  .legal-toc {
    padding: 14px;
  }

  .nav-links,
  .nav-cta-desktop {
    display: none;
  }

  .nav-links.open .nav-cta-mobile {
    display: list-item;
    margin-top: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 auto;
    background: rgba(251, 247, 243, 0.97);
    backdrop-filter: blur(14px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 32px rgba(62, 47, 56, 0.08);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }
}
