:root {
  --ink: #193452;
  --ink-soft: #52677c;
  --blue: #3976d3;
  --blue-dark: #285da9;
  --blue-pale: #edf4ff;
  --cream: #fffaf1;
  --yellow: #f7d962;
  --green: #8fbd90;
  --line: #dbe3eb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  background: #20334a;
  color: var(--ink);
  font-family: "Nunito", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.editor-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #dbe2e9;
}

.editor-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(18, 42, 70, 0.66), rgba(18, 42, 70, 0.48));
  backdrop-filter: blur(2px) saturate(0.72);
}

.editor-backdrop iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: saturate(0.76) brightness(0.9);
  transform: scale(1.01);
}

.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(18px, 3vw, 42px);
  cursor: pointer;
  scrollbar-color: rgba(255, 255, 255, 0.64) transparent;
}

.landing-card {
  width: min(1080px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 90px rgba(8, 27, 49, 0.34);
  cursor: default;
}

.landing-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(24px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img,
.landing-footer img {
  display: block;
  width: 148px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(20%) sepia(29%) saturate(1415%) hue-rotate(172deg) brightness(91%) contrast(91%);
}

.header-cta {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-cta span,
.primary-button span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 150ms ease;
}

.header-cta:hover span,
.primary-button:hover span {
  transform: translateX(3px);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(38px, 6vw, 74px) clamp(24px, 6vw, 76px);
  background: radial-gradient(circle at 82% 12%, rgba(247, 217, 98, 0.3), transparent 29%), linear-gradient(145deg, #fff 0%, var(--cream) 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Copse", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 660px;
  margin-bottom: 20px;
  color: #173a62;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 0.99;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.08;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(57, 118, 211, 0.22);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.primary-button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(40, 93, 169, 0.28);
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.header-cta:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(57, 118, 211, 0.32);
  outline-offset: 3px;
}

.text-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 13px;
  list-style: none;
}

.hero-points li::before {
  content: "✓";
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  place-items: center;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.hero-art {
  position: relative;
  min-height: 465px;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(390px, 90%);
  height: min(390px, 90%);
  border-radius: 50%;
  background: #dfeaff;
  box-shadow: inset 0 0 0 1px rgba(57, 118, 211, 0.12);
}

.sample-poster {
  position: relative;
  z-index: 2;
  width: 255px;
  margin: 0;
  padding: 10px;
  border: 15px solid transparent;
  border-image: url("/images/oak-frame-trimmed.png") 65 / 15px / 0 stretch;
  background: #f8f4eb;
  box-shadow: 0 20px 40px rgba(31, 58, 86, 0.28), 0 0 0 1px #c7ad80;
  transform: rotate(2deg);
}

.sample-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.place-tag {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #d6dfeb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 58, 86, 0.18);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.place-tag img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.place-tag-home {
  top: 72px;
  left: 0;
  transform: rotate(-4deg);
}

.place-tag-park {
  right: -6px;
  bottom: 82px;
  transform: rotate(3deg);
}

.art-caption {
  position: absolute;
  right: 8px;
  bottom: 17px;
  z-index: 3;
  margin: 0;
  color: var(--ink);
  font-family: "Copse", Georgia, serif;
  font-size: 16px;
  transform: rotate(-2deg);
}

.art-spark {
  position: absolute;
  z-index: 1;
  color: var(--yellow);
  font-size: 30px;
}

.art-spark-one {
  top: 44px;
  right: 44px;
}

.art-spark-two {
  bottom: 36px;
  left: 44px;
  color: var(--green);
}

.benefits-section,
.story-section {
  padding: clamp(42px, 6vw, 74px) clamp(24px, 6vw, 76px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  column-gap: 54px;
  align-items: end;
}

.section-heading .eyebrow,
.section-heading h2 {
  grid-column: 1;
}

.section-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-bottom: 17px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.benefit-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.benefit-card:nth-child(2) {
  background: var(--blue-pale);
}

.benefit-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.benefit-card h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.benefit-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  background: var(--cream);
}

.story-copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.story-steps {
  display: grid;
  gap: 16px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.story-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.story-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.story-steps strong,
.story-steps small {
  display: block;
}

.story-steps strong {
  margin-bottom: 2px;
  font-size: 14px;
}

.story-steps small {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.theme-showcase {
  position: relative;
  min-height: 420px;
}

.theme-showcase::before {
  content: "Pick their world";
  position: absolute;
  top: 0;
  right: 10px;
  color: var(--blue-dark);
  font-family: "Copse", Georgia, serif;
  font-size: 18px;
  transform: rotate(3deg);
}

.theme-card {
  position: absolute;
  width: 190px;
  padding: 8px;
  border: 13px solid transparent;
  border-image: url("/images/oak-frame-trimmed.png") 65 / 13px / 0 stretch;
  background: #f8f4eb;
  box-shadow: 0 17px 34px rgba(43, 58, 76, 0.24), 0 0 0 1px rgba(126, 91, 47, 0.25);
}

.theme-map-crop {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f2eee6;
}

.theme-map-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(2);
}

.theme-card-left {
  top: 58px;
  left: 0;
  z-index: 2;
  transform: rotate(-7deg);
}

.theme-card-front {
  top: 39px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%) rotate(2deg);
}

.theme-card-right {
  top: 78px;
  right: 0;
  z-index: 1;
  transform: rotate(8deg);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px clamp(24px, 6vw, 76px);
  background: var(--ink);
  color: #fff;
}

.final-cta .eyebrow {
  color: #a9c7f5;
}

.final-cta h2 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
}

.primary-button-light {
  flex: 0 0 auto;
  border-color: #fff;
  background: #fff;
  box-shadow: none;
  color: var(--ink);
}

.primary-button-light:hover {
  border-color: var(--blue-pale);
  background: var(--blue-pale);
  color: var(--ink);
}

.landing-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px clamp(24px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
}

.landing-footer p {
  margin: 0;
}

.landing-footer a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero-section,
  .story-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 440px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p:last-child {
    max-width: 660px;
    margin-bottom: 0;
  }

  .theme-showcase {
    width: min(540px, 100%);
    margin: 0 auto;
  }

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

  .landing-footer p {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    overflow: auto;
  }

  .editor-backdrop {
    display: none;
  }

  .landing-overlay {
    position: relative;
    padding: 0;
    overflow: visible;
  }

  .landing-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .landing-header {
    min-height: 66px;
    padding: 13px 20px;
  }

  .brand img,
  .landing-footer img {
    width: 126px;
  }

  .header-cta {
    font-size: 12px;
  }

  .hero-section,
  .benefits-section,
  .story-section {
    padding: 38px 20px;
  }

  h1 {
    font-size: clamp(39px, 12.4vw, 54px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero-art {
    min-height: 400px;
  }

  .sample-poster {
    width: 220px;
  }

  .place-tag-home {
    left: -4px;
  }

  .place-tag-park {
    right: -4px;
  }

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

  .benefit-card {
    min-height: 0;
  }

  .benefit-number {
    margin-bottom: 18px;
  }

  .theme-showcase {
    min-height: 330px;
  }

  .theme-card {
    width: 145px;
  }

  .theme-showcase::before {
    display: none;
  }

  .theme-card-left {
    left: 1%;
  }

  .theme-card-right {
    right: 1%;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 20px;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
