.write-own-page {
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 199, 74, 0.18), transparent 28rem),
    var(--cream);
}

.write-own-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  padding-bottom: 78px;
}

.write-own-hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.7rem);
}

.free-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 18px;
}

.free-note strong {
  color: var(--ink);
}

.authored-hero-demo {
  height: 590px;
  justify-self: end;
  max-width: 470px;
  position: relative;
  width: 100%;
}

.authored-screen {
  background: #fff;
  border: 8px solid #fff;
  border-radius: 30px;
  box-shadow: 0 30px 68px rgba(42, 35, 66, 0.24);
  overflow: hidden;
  position: absolute;
}

.authored-screen img {
  display: block;
  height: auto;
  width: 100%;
}

.authored-screen--result {
  right: 0;
  top: 0;
  transform: rotate(3deg);
  width: 60%;
}

.authored-screen--result img {
  transform: translateY(-7.5%);
}

.authored-screen--writing {
  bottom: 8px;
  left: 0;
  transform: rotate(-4deg);
  width: 54%;
  z-index: 2;
}

.authored-screen--writing img {
  transform: translateY(-8%);
}

.authored-hero-demo figcaption {
  bottom: -34px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  position: absolute;
  right: 0;
}

.words-promise {
  background: #2a2342;
  color: #fff;
  padding: 68px 0;
}

.words-promise__inner {
  max-width: 850px;
  text-align: center;
}

.words-promise .eyebrow {
  color: var(--sun);
}

.words-promise h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.words-promise p:last-child {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  margin: 0 auto;
  max-width: 720px;
}

.workflow-heading {
  max-width: 720px;
}

.workflow-heading > p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
}

.authored-workflow {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin-top: 36px;
}

.authored-workflow li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 42px rgba(76, 43, 158, 0.09);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.authored-workflow li > div {
  padding: 22px;
}

.authored-workflow li:not(.workflow-shot) > div {
  padding-top: 74px;
}

.workflow-number {
  align-items: center;
  background: var(--sun);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  left: 20px;
  position: absolute;
  top: 20px;
  width: 38px;
  z-index: 2;
}

.authored-workflow li:nth-child(2) .workflow-number { background: var(--mint); }
.authored-workflow li:nth-child(3) .workflow-number { background: var(--sky); }
.authored-workflow li:nth-child(4) .workflow-number { background: #f6e2ff; }

.workflow-shot img {
  aspect-ratio: 4 / 5;
  background: #f3eefb;
  display: block;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.authored-workflow h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.authored-workflow p {
  color: var(--muted);
  font-size: 0.92rem;
}

.keepsake-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(76, 43, 158, 0.12);
  overflow: hidden;
}

.keepsake-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  width: 100%;
}

.keepsake-card div {
  display: grid;
  gap: 6px;
  padding: 22px;
}

.keepsake-card strong {
  font-family: var(--font-head);
  font-size: 1.32rem;
}

.keepsake-card span {
  color: var(--muted);
}

.write-own-page .cta-band .eyebrow {
  color: #ffe08a;
  margin-bottom: 10px;
}

.write-own-page .cta-band .web-create-cta {
  background: #fff;
  color: var(--purple-dark);
}

.write-own-page .cta-band .web-create-cta:hover {
  background: #fff8df;
}

@media (max-width: 980px) {
  .authored-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .write-own-hero {
    grid-template-columns: 1fr;
  }

  .authored-hero-demo {
    justify-self: center;
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .write-own-hero h1 {
    font-size: 2.45rem;
  }

  .authored-hero-demo {
    height: 500px;
    max-width: 390px;
  }

  .authored-hero-demo figcaption {
    bottom: -28px;
  }

  .authored-workflow {
    grid-template-columns: 1fr;
  }

  .workflow-shot img {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .authored-screen--result,
  .authored-screen--writing {
    transform: none;
  }
}

/* This page's long eyebrow ("A BOOK IN THEIR OWN WORDS") sits directly above the
   mascot's perch word at tablet widths — hide the mascot until the wide layout. */
@media (max-width: 900px) {
  .page-mascot { display: none; }
}
