:root {
  color-scheme: light;
  --ink: #211a2e;
  --muted: #65586d;
  --purple: #6f2b8a;
  --accent: #8e2e8f;
  --line: #ede5ef;
  --gutter: clamp(18px, 5vw, 50px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a[href]:focus-visible { outline: 3px solid #ae54b5; outline-offset: 4px; }
img { display: block; max-width: 100%; }

.container {
  width: min(1220px, calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
}

.site-header { background: #fffcff; border-bottom: 1px solid var(--line); }
.header-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 81px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.brand img { border-radius: 11px; box-shadow: 0 4px 8px #572b5b27; }
.primary-nav { display: flex; align-items: center; gap: 34px; }
.primary-nav a { padding-block: 12px; color: #51495d; font-size: 15px; font-weight: 650; }
.primary-nav a:hover, .site-footer a:hover { color: var(--purple); }
.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid #d9cadd;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.nav-download[href]:hover { background: #f7edf9; }

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 33px;
  background: #f9effc url("assets/hero.webp") center / cover;
}
.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fffcfff7 0%, #fdf7ffdb 34%, #f4eafa3d 71%, #f8eefe23 100%);
  content: "";
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; padding-block: 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid #e8d6f4;
  border-radius: 999px;
  background: #f3e8fc;
  color: #692d83;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .06em;
}
.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a350bf;
  content: "";
}
h1 {
  margin-block: 25px 22px;
  font-size: clamp(48px, 5.15vw, 74px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.07em;
}
h1 strong { color: var(--accent); font-weight: inherit; }
.hero-description {
  color: #5d5367;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 550;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--purple);
  box-shadow: 0 8px 20px #62307839;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  white-space: nowrap;
}
.button[href]:hover { background: #58216e; }
.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button.secondary {
  border-color: #e2d1e9;
  background: #ffffffad;
  box-shadow: none;
  color: #49335b;
}
.button.secondary[href]:hover { background: #fff; }
[data-download][aria-disabled="true"] { cursor: default; }
.nav-download[aria-disabled="true"] { border-color: #e7d9eb; background: #f8f0fa; color: #6b5273; }
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}
.hero-benefits li::before { margin-right: 5px; color: #842d9b; content: "✓"; }

.hero-art { position: relative; width: 100%; aspect-ratio: 31 / 30; }
.orbit {
  position: absolute;
  inset: 19% 2% auto 1%;
  height: 59%;
  border: 1px solid #af7ab8;
  border-radius: 50%;
  opacity: .36;
  transform: rotate(-25deg);
}
.orbit-secondary { top: 20%; opacity: .23; transform: rotate(22deg); }
.floating-photo {
  position: absolute;
  overflow: hidden;
  aspect-ratio: 1;
  border: clamp(3px, .5vw, 7px) solid #fff;
  border-radius: clamp(9px, 1.2vw, 17px);
  background: #fff;
  box-shadow: 0 15px 34px #4731543f;
}
.floating-photo img, .phone img { width: 100%; height: 100%; object-fit: cover; }
.coastal-photo { top: 27%; left: 7%; width: 35.5%; transform: rotate(-13deg); }
.autumn-photo { top: 47%; right: 2%; width: 33.5%; transform: rotate(11deg); }
.phone {
  position: absolute;
  top: 1.3%;
  left: 33.5%;
  overflow: hidden;
  width: 41%;
  aspect-ratio: 253 / 552;
  border: clamp(4px, .49vw, 7px) solid #292333;
  border-radius: clamp(19px, 2.5vw, 36px);
  background: #fff;
  box-shadow: 0 24px 52px #35244060, 0 0 0 1px #8d789a;
  transform: rotate(7deg);
}
.art-label {
  position: absolute;
  top: 22%;
  right: 2.5%;
  padding: 8px 10px;
  border: 1px solid #f0e1f3;
  border-radius: 18px;
  background: #fffcff;
  box-shadow: 0 6px 14px #47215422;
  color: #672b75;
  font-size: clamp(10px, .9vw, 13px);
  font-weight: 780;
  transform: rotate(6deg);
}
.art-label small { margin-left: 4px; color: #765c80; font-size: .82em; }
.sparkle { position: absolute; color: #9239a7; font-size: clamp(20px, 2.3vw, 32px); line-height: 1; }
.sparkle-first { top: 15%; left: 17%; }
.sparkle-last { right: 8%; bottom: 14%; font-size: clamp(16px, 1.7vw, 24px); }
.art-caption {
  position: absolute;
  right: 5%;
  bottom: 0;
  color: #765283;
  font-size: clamp(8px, .7vw, 10px);
  font-weight: 800;
  letter-spacing: .16em;
}

.template-section { padding-block: 68px 64px; }
.section-kicker { color: #803990; font-size: 13px; font-weight: 800; letter-spacing: .13em; }
.section-kicker span { margin-left: 8px; color: #78617d; font: 700 11px Arial, sans-serif; letter-spacing: .13em; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px 22px;
  margin-block: 12px 26px;
}
h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 850; line-height: 1.16; letter-spacing: -.06em; }
.section-heading p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.template-card { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 5px 18px #48275c0a; }
.card-art {
  display: grid;
  place-items: center;
  height: clamp(158px, 16vw, 226px);
  padding: 13px;
}
.card-art img { width: auto; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; border-radius: 5px; box-shadow: 0 4px 11px #23192e29; }
.card-art.ocean { background: #e6f6fb; }
.card-art.grove { background: #edf0df; }
.card-art.sunset { background: #fff0db; }
.card-art.portrait { background: #f6edfb; }
.card-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 15px 15px; }
.card-caption h3, .steps h3 { font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.card-caption p, .steps p { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.card-caption span { padding: 4px 6px; border-radius: 7px; background: #f4ebf9; color: #754187; font-size: 11px; font-weight: 700; }

.workflow { padding-block: 54px 62px; border-block: 1px solid #f1e7f2; background: #fbf7fd; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 15px; min-height: 96px; padding: 18px; border: 1px solid #eadff0; border-radius: 17px; background: #fff; }
.step-number { display: grid; flex: none; place-items: center; width: 47px; height: 47px; border-radius: 13px; background: #f3e5fa; color: #8a349b; font: 800 16px Arial, sans-serif; }

.download-section { padding-block: 48px 43px; }
.download-panel {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 31px 38px;
  border-radius: 23px;
  background: linear-gradient(110deg, #3e1b50, #6e3179 68%, #843a82);
  color: #fff;
}
.download-panel::after {
  position: absolute;
  top: -33px;
  right: -44px;
  width: 520px;
  height: 156px;
  border: 1px solid #eeafe966;
  border-radius: 50%;
  transform: rotate(-16deg);
  pointer-events: none;
  content: "";
}
.download-panel h2 { font-size: clamp(26px, 2.4vw, 32px); }
.download-panel p { margin-top: 7px; color: #f4e7f7; font-size: 15px; line-height: 1.6; }
.download-panel .button { position: relative; z-index: 1; background: #fff; box-shadow: none; color: #68297c; }
.download-panel .button[href]:hover { background: #f4e9f6; }
.site-footer { padding-block: 21px 27px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer .container, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.site-footer a { padding-block: 8px; }

@media (max-width: 1020px) {
  .wide-break { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .card-caption { padding-inline: 11px; }
}

@media (max-width: 820px) {
  .hero { padding-block: 34px 20px; background-position: 65% center; }
  .hero::before { background: linear-gradient(180deg, #fffbfff0 0%, #fbf2fbba 41%, #f8eefe21 100%); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { width: min(100%, 560px); margin-inline: auto; padding-block: 7px 17px; }
  .hero-art { justify-self: center; max-width: 490px; }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-art { height: clamp(140px, 38vw, 240px); }
  .template-section, .workflow { padding-block: 46px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { min-height: 81px; padding: 14px; }
}

@media (max-width: 520px) {
  .header-layout { grid-template-columns: 1fr auto; min-height: 66px; gap: 12px; }
  .brand { gap: 8px; font-size: 20px; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .primary-nav { display: none; }
  .nav-download { gap: 5px; padding: 8px 10px; font-size: 12px; }
  h1 { margin-block: 18px 14px; font-size: clamp(36px, 10.2vw, 52px); }
  .hero-description { font-size: 16px; }
  .hero-actions { margin-top: 20px; gap: 9px; }
  .button { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  .hero-benefits { margin-top: 16px; }
  .art-label { top: 19%; right: 1%; padding: 6px 8px; }
  .art-caption { bottom: 1%; }
  .template-grid { gap: 10px; }
  .template-card { border-radius: 14px; }
  .card-art { padding: 9px; }
  .card-caption { padding: 10px; }
  .card-caption h3, .steps h3 { font-size: 17px; }
  .card-caption p { font-size: 12px; }
  .section-heading { margin-bottom: 19px; }
  .section-heading p { font-size: 15px; }
  .download-section { padding-block: 33px; }
  .download-panel { align-items: flex-start; flex-direction: column; padding: 23px; gap: 15px; border-radius: 19px; }
  .site-footer { padding-block: 14px; }
}

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