.reforma-page {
  background: var(--surface-page);
}

.reforma-page .section {
  overflow: hidden;
}

.reforma-page .section:nth-of-type(even) {
  background: rgb(251 250 246 / 52%);
}

.reforma-page h2,
.reforma-page h3 {
  color: var(--color-garden);
}

.reforma-breadcrumbs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.reforma-breadcrumbs span:last-child {
  color: var(--color-graphite);
  font-weight: 600;
}

.reforma-hero {
  padding-top: var(--space-7);
}

.reforma-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(22.5rem, 5fr);
  gap: var(--space-6);
  align-items: end;
}

.reforma-hero__copy,
.reforma-hero__media,
.reforma-cycle__intro,
.reforma-plan__intro,
.reforma-comparison__intro,
.reforma-areas__intro,
.reforma-tips__intro,
.reforma-story__copy,
.reforma-faq__inner,
.reforma-next__inner {
  min-width: 0;
}

.reforma-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.reforma-hero__copy > * {
  margin: 0;
}

.reforma-hero__copy h1 {
  max-width: 18ch;
}

.reforma-hero__lead {
  max-width: 62ch;
  font-size: var(--text-lg);
  line-height: 1.58;
}

.reforma-hero__note {
  max-width: 48ch;
  border-inline-start: 3px solid var(--color-flower);
  padding-inline-start: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.reforma-hero__detail {
  max-width: 60ch;
}

.reforma-hero__path {
  display: flex;
  width: 100%;
  max-width: 30rem;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-garden);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
}

.reforma-hero__path i {
  display: block;
  min-width: 1.5rem;
  border-top: 1px dashed var(--color-moss-line);
}

.reforma-hero__media,
.reforma-story__media {
  width: 100%;
  margin: 0;
}

.reforma-hero__media img,
.reforma-story__media img {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  object-fit: cover;
}

.reforma-hero__media img {
  aspect-ratio: 4 / 5;
}

.reforma-cycle__intro {
  width: 58.333%;
  max-width: 60ch;
}

.reforma-cycle__diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.reforma-cycle__diagram::before {
  position: absolute;
  z-index: 0;
  top: 3rem;
  right: 8%;
  left: 8%;
  height: 1px;
  border-top: 2px dashed var(--color-moss-line);
  content: "";
  opacity: 0.7;
  transform-origin: left;
}

.reforma-cycle__node {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.reforma-cycle__node > * {
  margin: 0;
}

.reforma-cycle__number {
  display: grid;
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--surface-flower);
  color: var(--color-graphite);
  font-family: var(--font-data);
  font-weight: 600;
}

.reforma-cycle__node h3,
.reforma-plan__card h3,
.reforma-areas__card h3,
.reforma-tips__card h3 {
  font-size: var(--text-xl);
}

.reforma-cycle__links {
  max-width: 60ch;
  margin-top: var(--space-6);
}

.reforma-plan {
  background: var(--surface-sage) !important;
}

.reforma-plan__intro {
  width: 50%;
  max-width: 58ch;
}

.reforma-plan__cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.reforma-plan__cards::before {
  position: absolute;
  top: 4.15rem;
  right: 8%;
  left: 8%;
  border-top: 1px dashed var(--color-moss-line);
  content: "";
  opacity: 0.6;
}

.reforma-plan__card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-green-light);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.reforma-plan__card > * {
  margin: 0;
}

.reforma-plan__card--repair {
  border-top-color: var(--color-terracotta);
}

.reforma-plan__card--decorate {
  border-top-color: var(--color-rose);
}

.reforma-plan__card--unlock {
  border-top-color: var(--color-sky);
  background: var(--surface-sky);
}

.reforma-plan__card-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.reforma-plan__icon {
  display: grid;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-sage);
  color: var(--color-garden);
  font-size: 1.35rem;
}

.reforma-plan__card--repair .reforma-plan__icon {
  background: var(--surface-terracotta);
}

.reforma-plan__card--decorate .reforma-plan__icon {
  background: var(--surface-rose);
}

.reforma-plan__card--unlock .reforma-plan__icon {
  background: var(--surface-raised);
}

.reforma-plan__sample {
  width: fit-content;
  border-radius: var(--radius-pill);
  background: var(--surface-rose);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-label);
  font-size: var(--text-xs);
}

.reforma-plan__stamp {
  width: fit-content;
  margin-top: auto;
  border: 2px solid var(--color-terracotta);
  color: var(--color-terracotta);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-2);
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.reforma-plan__card:hover,
.reforma-areas__card:hover,
.reforma-tips__card:hover {
  border-color: var(--color-garden);
}

.reforma-comparison__intro {
  width: 58.333%;
  max-width: 56ch;
}

.reforma-comparison__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.reforma-comparison__visual,
.reforma-comparison__copy {
  min-width: 0;
}

.reforma-comparison__visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.reforma-comparison__controls {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.reforma-comparison__toggle {
  min-height: 2.75rem;
  min-width: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  padding: var(--space-2) var(--space-3);
  color: var(--color-garden);
  font-size: var(--text-sm);
  font-weight: 700;
}

.reforma-comparison__toggle.is-active {
  background: var(--color-garden);
  color: var(--color-white);
}

.reforma-comparison__figure {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.reforma-comparison__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter var(--transition-base), opacity var(--transition-base);
}

.reforma-comparison__visual[data-highlight="before"] .reforma-comparison__figure img {
  filter: saturate(0.82) brightness(0.94);
}

.reforma-comparison__visual[data-highlight="after"] .reforma-comparison__figure img {
  filter: saturate(1.08) brightness(1.03);
}

.reforma-comparison__label {
  position: absolute;
  top: var(--space-3);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  color: var(--color-graphite);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reforma-comparison__label--before {
  left: var(--space-3);
  background: var(--surface-terracotta);
}

.reforma-comparison__label--after {
  right: var(--space-3);
  background: var(--surface-sage);
}

.reforma-comparison__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.reforma-comparison__copy article,
.reforma-comparison__callout {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
}

.reforma-comparison__copy article > *,
.reforma-comparison__callout > * {
  margin: 0;
}

.reforma-comparison__copy article p:not(.label) {
  max-width: 34ch;
}

.reforma-comparison__callout {
  max-width: 48ch;
  border-inline-start: 4px solid var(--color-flower);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface-flower);
  padding: var(--space-4);
}

.reforma-areas__intro,
.reforma-tips__intro {
  width: 66.666%;
  max-width: 60ch;
}

.reforma-areas__cards,
.reforma-tips__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.reforma-areas__card,
.reforma-tips__card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.reforma-areas__card > *,
.reforma-tips__card > * {
  margin: 0;
}

.reforma-areas__card p:not(.label),
.reforma-tips__card p:not(.label) {
  max-width: 38ch;
}

.reforma-areas__footer {
  max-width: 60ch;
  margin-top: var(--space-6);
}

.reforma-choices {
  background: var(--surface-sage) !important;
}

.reforma-choices__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-6);
  margin-left: 8.333%;
}

.reforma-choices__main,
.reforma-choices__side {
  min-width: 0;
}

.reforma-choices__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-inline-start: 4px solid var(--color-garden);
  padding: var(--space-5);
  background: rgb(251 250 246 / 58%);
}

.reforma-choices__main > * {
  margin: 0;
}

.reforma-choices__main p:last-child {
  max-width: 56ch;
}

.reforma-choices__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}

.reforma-choices__callout {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-inline-start: 4px solid var(--color-sky);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface-sky);
  padding: var(--space-5);
}

.reforma-choices__callout > * {
  margin: 0;
}

.reforma-choices__callout p:last-child {
  max-width: 50ch;
}

.reforma-choices__swatches {
  display: flex;
  min-width: 0;
  gap: var(--space-2);
}

.reforma-choices__swatches span {
  display: block;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: opacity var(--transition-fast);
}

.reforma-choices__swatches span:nth-child(1) { background: var(--color-rose); }
.reforma-choices__swatches span:nth-child(2) { background: var(--color-flower); }
.reforma-choices__swatches span:nth-child(3) { background: var(--color-sky); }
.reforma-choices__swatches span:nth-child(4) { background: var(--color-green-light); }
.reforma-choices__swatches:hover span:not(:hover) { opacity: 0.58; }

.reforma-choices__closing {
  max-width: 56ch;
  margin-top: var(--space-6);
  margin-left: 8.333%;
}

.reforma-tips__icon {
  display: grid;
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-flower);
  color: var(--color-garden);
  font-size: 1.25rem;
}

.reforma-story__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-6);
  align-items: center;
}

.reforma-story__media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.reforma-story__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.reforma-story__copy > * {
  margin: 0;
}

.reforma-story__copy > p:not(.eyebrow) {
  max-width: 58ch;
}

.reforma-story__copy blockquote {
  max-width: 38ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
}

.reforma-story__people {
  display: flex;
  max-width: 42ch;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--surface-raised);
  padding: var(--space-4);
}

.reforma-story__people > * {
  margin: 0;
}

.reforma-faq__inner {
  width: 66.666%;
  margin-left: 8.333%;
}

.reforma-faq__intro {
  max-width: 54ch;
}

.reforma-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.reforma-faq__item {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.reforma-faq__item h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
}

.reforma-faq__item button {
  display: flex;
  width: 100%;
  min-height: 3.5rem;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  padding: var(--space-3) var(--space-4);
  color: var(--color-garden);
  font-weight: 700;
  text-align: left;
}

.reforma-faq__item button span {
  min-width: 0;
}

.reforma-faq__item button b {
  display: grid;
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-flower);
  color: var(--color-graphite);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--transition-base);
}

.reforma-faq__item button[aria-expanded="true"] b {
  transform: rotate(45deg);
}

.reforma-faq__answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 var(--space-4);
  transition: max-height var(--transition-base), opacity var(--transition-base), padding var(--transition-base);
}

.reforma-faq__answer.is-open {
  max-height: 24rem;
  opacity: 1;
  padding: 0 var(--space-4) var(--space-4);
}

.reforma-faq__answer p {
  max-width: 60ch;
  margin: 0;
}

.reforma-next {
  padding-top: var(--space-7);
}

.reforma-next__panel {
  border-radius: var(--radius-lg);
  background: var(--color-garden);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
}

.reforma-next__inner {
  display: flex;
  width: 58.333%;
  margin-inline: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  color: var(--color-white);
}

.reforma-next__inner > * {
  margin: 0;
}

.reforma-next__inner .eyebrow {
  background: var(--surface-flower);
}

.reforma-next__inner h2 {
  color: var(--color-white);
}

.reforma-next__inner > p {
  max-width: 56ch;
}

.reforma-next__actions {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.reforma-next__links {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.reforma-next__links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
}

.reforma-next__play {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-garden);
}

.reforma-next__play:hover {
  border-color: var(--surface-flower);
  background: var(--surface-flower);
  color: var(--color-garden-dark);
}

.reforma-reveal,
.reforma-reveal-group > * {
  opacity: 1;
  transform: none;
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .reforma-cycle__intro,
  .reforma-comparison__intro,
  .reforma-areas__intro,
  .reforma-tips__intro { width: 100%; }

  .reforma-plan__intro { width: 66.666%; }

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

  .reforma-cycle__diagram::before {
    display: none;
  }

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

  .reforma-plan__cards::before { display: none; }
}

@media (max-width: 63.9375rem) {
  .reforma-hero__grid,
  .reforma-comparison__layout,
  .reforma-choices__layout,
  .reforma-story__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .reforma-hero__media { max-width: 38rem; }

  .reforma-comparison__visual { order: -1; }

  .reforma-choices__layout,
  .reforma-choices__closing {
    margin-left: 0;
  }

  .reforma-choices__side {
    align-items: flex-start;
  }

  .reforma-story__copy { order: -1; }
}

@media (max-width: 58.75rem) {
  .reforma-areas__cards,
  .reforma-tips__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .reforma-areas__card,
  .reforma-tips__card {
    width: 100%;
  }

  .reforma-faq__inner {
    width: 100%;
    margin-left: 0;
  }

  .reforma-next__inner { width: 75%; }
}

@media (max-width: 47.9375rem) {
  .reforma-hero { padding-top: var(--space-6); }

  .reforma-hero__grid,
  .reforma-comparison__layout,
  .reforma-story__layout { gap: var(--space-5); }

  .reforma-hero__copy h1 { max-width: 16ch; }

  .reforma-hero__lead,
  .reforma-hero__detail,
  .reforma-cycle__intro,
  .reforma-plan__intro,
  .reforma-comparison__intro,
  .reforma-areas__intro,
  .reforma-tips__intro,
  .reforma-faq__intro { width: 100%; max-width: 38ch; }

  .reforma-cycle__diagram,
  .reforma-plan__cards { grid-template-columns: minmax(0, 1fr); }

  .reforma-cycle__diagram { gap: var(--space-4); }

  .reforma-cycle__diagram::before,
  .reforma-plan__cards::before { display: none; }

  .reforma-cycle__node,
  .reforma-plan__card { width: 100%; }

  .reforma-cycle__node h3,
  .reforma-plan__card h3,
  .reforma-areas__card h3,
  .reforma-tips__card h3 { font-size: var(--text-xl); }

  .reforma-comparison__controls { width: 100%; }

  .reforma-comparison__toggle { flex: 1 1 10rem; }

  .reforma-comparison__copy article p:not(.label),
  .reforma-comparison__callout,
  .reforma-areas__card p:not(.label),
  .reforma-tips__card p:not(.label),
  .reforma-story__copy > p:not(.eyebrow),
  .reforma-story__people,
  .reforma-choices__main p:last-child,
  .reforma-choices__callout p:last-child,
  .reforma-choices__closing { max-width: 38ch; }

  .reforma-choices__main,
  .reforma-choices__callout { padding: var(--space-4); }

  .reforma-story__copy h2 { font-size: clamp(1.75rem, 8vw, 2rem); }

  .reforma-faq__item button { min-height: 3.75rem; }

  .reforma-next__panel { padding: var(--space-5); }

  .reforma-next__inner { width: 100%; }

  .reforma-next__actions,
  .reforma-next__links { flex-direction: column; align-items: stretch; }

  .reforma-next__links a { min-height: 2.75rem; }

  .reforma-next__play { width: 100%; min-height: 3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .reforma-reveal,
  .reforma-reveal-group > * {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 420ms ease, transform 420ms ease;
  }

  .reforma-reveal.is-visible,
  .reforma-reveal-group > *.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reforma-path-draw.is-visible::before {
    animation: reforma-path-line 700ms ease-out both;
  }

  @keyframes reforma-path-line {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 0.7; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reforma-faq__answer { transition: none; }
}
