.cms-home-intro,
.cms-home-features,
.cms-home-preview {
  --cms-home-ink: #22332a;
  --cms-home-muted: #4c6056;
  --cms-home-accent: #715429;
  --cms-home-gold: #ecd1a0;
  --cms-home-rule: #24402d25;
  --cms-home-dark: #172a24;
  --cms-home-white: #fbf7ec;
}

.cms-home-intro,
.cms-home-features {
  padding-block: clamp(3.75rem, 8vw, 7rem);
  scroll-margin-top: 5.25rem;
}

.cms-home-intro {
  background: radial-gradient(ellipse at 88% 0, #dfe9de 0, transparent 57%), #f1ede3;
}

.cms-home-features {
  border-top: 1px solid var(--cms-home-rule);
  background:
    radial-gradient(ellipse at 5% 40%, #e8eddf 0, transparent 52%),
    #f7f3eb;
}

.cms-home-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr);
  align-items: end;
  gap: 1rem clamp(1.5rem, 6vw, 5.25rem);
  margin-bottom: clamp(1.8rem, 4vw, 3.25rem);
}

.cms-home-heading .section-kicker,
.cms-home-start .section-kicker { color: var(--cms-home-accent); }

.cms-home-heading h2 {
  max-width: 17ch;
  color: var(--cms-home-ink);
  font-size: clamp(2.7rem, 6.1vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.cms-home-intro .cms-home-heading h2 { max-width: none; }
.cms-home-subtitle {
  margin-top: .68rem;
  color: var(--cms-home-ink);
  font: 600 clamp(1.5rem, 2.55vw, 2.3rem)/1.07 var(--font-display);
}

.cms-home-lead,
.cms-home-lead p {
  color: var(--cms-home-muted);
  font-size: clamp(.98rem, 1.6vw, 1.12rem);
  line-height: 1.67;
}

.cms-home-lead p + p { margin-top: .65em; }

.cms-home-stage,
.cms-home-flow {
  border: 1px solid #192720;
  border-radius: clamp(14px, 2.4vw, 26px);
  background: radial-gradient(ellipse at 86% 0, #3e5646 0, transparent 58%),
    linear-gradient(137deg, #172921, #203831);
  color: var(--cms-home-white);
  box-shadow: 0 20px 48px #182b2124;
}

.cms-home-stage { padding: clamp(.8rem, 2.7vw, 1.8rem); }

.cms-home-stage__top,
.cms-home-stage__identity {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.cms-home-stage__top {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: clamp(.8rem, 2vw, 1.25rem);
}

.cms-home-stage__identity { font-weight: 600; font-size: clamp(.84rem, 1.4vw, 1.03rem); }
.cms-home-stage__identity > span span { color: var(--cms-home-gold); margin-inline: .1em; }
.cms-home-stage__identity img { flex: 0 0 auto; }

.cms-home-release {
  padding: .3rem .62rem;
  border: 1px solid #ecd1a05f;
  border-radius: 999px;
  color: var(--cms-home-gold);
  font-size: .74rem;
}

.cms-home-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.95rem, 2vw, 1.5rem);
}

.cms-home-screens figure { min-width: 0; }

.cms-home-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #eee3c55c;
  border-radius: 11px;
  background: #eeece4;
  transition: border-color .2s ease;
}

.cms-home-shot img { width: 100%; height: auto; }
.cms-home-shot:hover { border-color: var(--cms-home-gold); }

.cms-home-shot__zoom {
  position: absolute;
  right: .55rem;
  top: .55rem;
  padding: .29rem .65rem;
  border-radius: 999px;
  background: #172a24;
  color: #fff9ed;
  font-size: .74rem;
  font-weight: 600;
}

.cms-home-shot__zoom > span { color: var(--cms-home-gold); }

.cms-home-screens figcaption {
  display: grid;
  gap: .18rem;
  padding: .8rem .15rem 0;
  color: #e4ebe0;
  font-size: .9rem;
}

.cms-home-screens figcaption > span {
  color: var(--cms-home-gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cms-home-screens figcaption > strong {
  color: var(--cms-home-white);
  font: 600 clamp(1.42rem, 2.4vw, 1.95rem)/1.12 var(--font-display);
}

.cms-home-stage__note {
  margin-top: clamp(.9rem, 2vw, 1.3rem);
  padding-top: .7rem;
  border-top: 1px solid #fbf7ec29;
  color: #d5e1d4;
  font-size: .76rem;
}

.cms-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.5rem;
  margin-top: clamp(1.3rem, 2.6vw, 2rem);
}

.cms-home-link,
.cms-home-flow__copy a {
  color: #315d4a;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: .23em;
  text-decoration-color: #69917e;
}
.cms-home-link:hover { color: #183b2c; }

.cms-home-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(1.4rem, 5vw, 4.25rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  margin-bottom: clamp(1rem, 2.8vw, 2rem);
}

.cms-home-flow__copy .section-kicker { color: var(--cms-home-gold); }
.cms-home-flow__copy h3 {
  color: var(--cms-home-white);
  font-size: clamp(1.95rem, 4vw, 3.65rem);
  line-height: 1.02;
  text-wrap: balance;
}
.cms-home-flow__copy p:not(.section-kicker) {
  color: #e4ebe0;
  margin: .85rem 0;
  max-width: 48ch;
}
.cms-home-flow__copy a { color: var(--cms-home-gold); text-decoration-color: #e3c791b8; }
.cms-home-flow__copy a:hover { color: #fff4d7; }

.cms-home-flow__steps { display: grid; gap: .55rem; }
.cms-home-flow__steps li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  padding: .72rem .85rem;
  border: 1px solid #ffffff25;
  border-radius: 10px;
  background: #ffffff0c;
}

.cms-home-flow__steps li:last-child { border-color: #ecd1a074; }
.cms-home-flow__steps li > span {
  color: var(--cms-home-gold);
  font: 600 1.38rem/1 var(--font-display);
}
.cms-home-flow__steps small { display: block; color: #d6e3d7; font-size: .8rem; }

.cms-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.7rem, 1.8vw, 1.4rem);
}

.cms-home-feature {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .65rem;
  padding: clamp(1rem, 2.4vw, 1.7rem);
  border: 1px solid var(--cms-home-rule);
  border-radius: 15px;
  background: #fffcf5;
}

.cms-home-feature__label {
  color: var(--cms-home-accent);
  font-size: .71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cms-home-feature h3,
.cms-home-start h3 {
  color: var(--cms-home-ink);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.05;
}
.cms-home-feature p:not(.cms-home-feature__label) { color: var(--cms-home-muted); font-size: .94rem; }
.cms-home-feature .cms-home-link { margin-top: auto; padding-top: .28rem; }

.cms-home-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.15rem, 3vw, 2.5rem);
  border-radius: 15px;
  border: 1px solid var(--cms-home-rule);
  background: #e8ecdf;
}
.cms-home-start > div:first-child { flex: 1 1 24rem; }
.cms-home-start p:not(.section-kicker) { color: var(--cms-home-muted); margin-top: .48rem; max-width: 54ch; }
.cms-home-start .cms-home-actions { margin-top: 0; }

.cms-home-preview {
  width: min(1308px, calc(100% - 1.4rem));
  max-height: calc(100dvh - 1.4rem);
  margin: auto;
  padding: 0;
  border: 1px solid #edf4e62e;
  border-radius: 14px;
  color: var(--cms-home-white);
  background: var(--cms-home-dark);
}

.cms-home-preview::backdrop { background: #101b19df; }
.cms-home-preview__content { padding: clamp(.65rem, 2vw, 1.25rem); }
.cms-home-preview header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .65rem; }
.cms-home-preview h2 { color: inherit; font-size: clamp(1.25rem, 3vw, 2rem); overflow-wrap: anywhere; }
.cms-home-preview button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #ffffff58;
  border-radius: 8px;
  background: #ffffff17;
  color: var(--cms-home-white);
  font-size: 1.55rem;
  line-height: 1;
}
.cms-home-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
  border-radius: 6px;
  background: #101d19;
}
.cms-home-preview .cms-home-link { display: inline-block; color: var(--cms-home-gold); margin-top: .6rem; }
body:has(.cms-home-preview[open]) { overflow: hidden; }

@media (max-width: 960px) {
  .cms-home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cms-home-heading,
  .cms-home-screens,
  .cms-home-flow { grid-template-columns: minmax(0, 1fr); }
  .cms-home-heading h2 { text-wrap: wrap; }
  .cms-home-screens { gap: 1.3rem; }
  .cms-home-start .cms-home-actions { justify-content: flex-start; }
}
@media (max-width: 540px) {
  .cms-home-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .cms-home-actions { justify-content: center; }
  .cms-home-stage__identity img { width: 29px; height: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .cms-home-shot { transition: none; }
}
