:root {
  --ink: #142235;
  --body: #2c3440;
  --muted: #6d7280;
  --rose: #d36c7f;
  --rose-dark: #bf596e;
  --rose-soft: #fae8e5;
  --gold: #d59b3a;
  --cream: #fffaf2;
  --paper: #fffdf8;
  --line: #eadfd0;
  --shadow: 0 18px 42px rgba(54, 40, 26, 0.13);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 50% 0%, #fffdf8 0, #fbf2e6 42%, #efe7db 100%);
  color: var(--body);
  font-family: var(--sans);
  margin: 0;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-frame {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 249, 240, 0.98));
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin: 28px auto;
  max-width: 1220px;
  overflow: hidden;
  width: calc(100% - 48px);
}

.site-header {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr auto;
  min-height: 86px;
  padding: 0 54px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  color: var(--gold);
  display: inline-flex;
  height: 52px;
  width: 44px;
}

.logo-text {
  color: var(--ink);
  display: grid;
  line-height: 0.88;
}

.logo-text strong {
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 700;
}

.logo-text small {
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 30px 0 12px;
  position: relative;
  text-decoration: none;
}

.site-nav a.active::after {
  background: var(--rose);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.button {
  align-items: center;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(211, 108, 127, 0.22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  text-decoration: none;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.subtle {
  background: #f8ede8;
  box-shadow: none;
  color: var(--rose-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.nav-toggle,
.menu-button {
  display: none;
}

.hero-section {
  align-items: center;
  border-top: 1px solid rgba(234, 223, 208, 0.65);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  min-height: 640px;
  overflow: hidden;
}

.hero-copy {
  padding: 70px 0 70px 78px;
  position: relative;
  z-index: 2;
}

.hero-copy h1,
.page-hero h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3.1rem, 6vw, 5.7rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.hero-copy p,
.page-hero p,
.cta-strip p {
  color: #333d4a;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-copy p {
  max-width: 510px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.text-link {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
}

.hero-art {
  align-self: stretch;
  min-height: 520px;
  position: relative;
}

.hero-art::before {
  background: linear-gradient(90deg, var(--paper), rgba(255, 253, 248, 0));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 38%;
  z-index: 1;
}

.hero-art img {
  height: 100%;
  object-fit: cover;
  object-position: center right;
  width: 100%;
}

.floating-heart {
  align-items: center;
  color: var(--rose);
  display: inline-flex;
  font-size: 4rem;
  height: 1em;
  justify-content: center;
  left: 4%;
  position: absolute;
  top: 27%;
  width: 1em;
  z-index: 2;
}

.pillars-section,
.featured-section,
.content-band {
  border-top: 1px solid var(--line);
  padding: 64px 68px;
}

.section-title {
  color: var(--ink);
  margin: 0 auto 38px;
  text-align: center;
}

.section-title h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.section-kicker {
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.title-rule {
  align-items: center;
  color: var(--rose);
  display: inline-flex;
  gap: 10px;
  margin-top: 8px;
}

.title-rule svg {
  height: 18px;
  width: 18px;
}

.title-rule::before,
.title-rule::after {
  background: var(--rose);
  content: "";
  height: 1px;
  width: 44px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pillar-card {
  padding: 12px 44px 0;
  text-align: center;
}

.pillar-card + .pillar-card {
  border-left: 1px solid var(--line);
}

.soft-icon {
  align-items: center;
  background: var(--rose-soft);
  border-radius: 50%;
  color: var(--rose);
  display: inline-flex;
  font-family: var(--serif);
  font-size: 2.2rem;
  height: 86px;
  justify-content: center;
  margin-bottom: 16px;
  width: 86px;
}

.soft-icon svg {
  height: 38px;
  width: 38px;
}

.pillar-card h3,
.pricing-card h3,
.letter-card h3,
.cta-strip h2,
.content-band h2,
.process-grid h2,
.contact-card h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 10px;
}

.pillar-card p,
.letter-card p,
.content-band p,
.process-grid p,
.faq-list p,
.contact-card p {
  line-height: 1.65;
  margin: 0;
}

.featured-section.flush {
  border-top: 0;
  padding-top: 0;
}

.letter-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}

.letter-card {
  background: #fff;
  border: 1px solid rgba(234, 223, 208, 0.92);
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(54, 40, 26, 0.09);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.letter-card img {
  aspect-ratio: 1.95 / 1;
  object-fit: cover;
  width: 100%;
}

.letter-card div {
  padding: 24px;
}

.letter-card.large h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1.05;
  margin: 0 0 12px;
}

.letter-card h2 a,
.letter-card h3 a {
  text-decoration: none;
}

.letter-card span:not(.card-heart) {
  color: var(--ink);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 20px;
}

.card-heart {
  align-items: center;
  background: var(--rose);
  border-radius: 50%;
  bottom: 18px;
  color: #fff;
  display: inline-flex;
  font-size: 1.25rem;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 18px;
  text-decoration: none;
  width: 34px;
}

.card-heart svg {
  height: 18px;
  width: 18px;
}

.center-button {
  margin: 34px auto 0;
}

.cta-strip {
  align-items: center;
  background: linear-gradient(110deg, #fff4ee, #fce9e2);
  border-radius: 12px;
  display: grid;
  gap: 34px;
  grid-template-columns: 0.8fr 1.2fr;
  margin: 34px 54px 58px;
  padding: 42px 56px;
}

.cta-strip img {
  max-height: 210px;
  object-fit: contain;
  width: 100%;
}

.page-hero {
  background: linear-gradient(120deg, rgba(255, 253, 248, 0.82), rgba(252, 233, 226, 0.78)), url("/assets/images/hero-envelope.png");
  background-position: center right;
  background-size: cover;
  border-top: 1px solid var(--line);
  padding: 88px 76px;
}

.page-hero.compact {
  background-position: center;
  padding-bottom: 70px;
  padding-top: 70px;
}

.page-hero p {
  max-width: 710px;
}

.split-band {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.split-band img,
.contact-card {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.split-band img {
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
  width: 100%;
}

.info-grid,
.pricing-grid,
.process-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.info-grid article,
.pricing-card,
.process-grid article,
.contact-card,
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}

.info-grid h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0 0 10px;
}

.pricing-card {
  align-content: start;
  display: grid;
  gap: 14px;
}

.pricing-card.featured {
  border-color: rgba(211, 108, 127, 0.42);
  box-shadow: 0 18px 34px rgba(211, 108, 127, 0.13);
}

.pricing-card h3 {
  margin: 0;
}

.pricing-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2.7rem;
  line-height: 1;
}

.pricing-card p {
  line-height: 1.65;
  margin: 0;
}

.pricing-kicker {
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding-left: 18px;
}

.pricing-card li {
  line-height: 1.55;
}

.policy-note {
  color: #6b6470;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

.policy-note a {
  color: var(--rose-dark);
  font-weight: 800;
}

.policy-page {
  background: #fffdf8;
}

.policy-layout {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
}

.policy-summary {
  background: #fff8f1;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  padding: 24px;
  position: sticky;
  top: 22px;
}

.policy-summary h2,
.policy-body h2 {
  margin-bottom: 8px;
}

.policy-summary p,
.policy-body p,
.policy-body li {
  line-height: 1.68;
}

.policy-body {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.policy-body h2:not(:first-child) {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.policy-body ul {
  margin: 0;
  padding-left: 22px;
}

.policy-body a,
.policy-summary a {
  color: var(--rose-dark);
  font-weight: 800;
}

.policy-updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 14px;
}

.policy-table-wrap {
  overflow-x: auto;
}

.policy-table {
  background: #fff;
  border: 1px solid var(--line);
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.policy-table th,
.policy-table td {
  border: 1px solid var(--line);
  line-height: 1.55;
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: #fff8f1;
  color: var(--ink);
}

.resource-grid,
.topic-list {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.topic-list a,
.resource-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(54, 40, 26, 0.07);
}

.topic-list a {
  color: var(--ink);
  font-weight: 800;
  padding: 18px;
  text-decoration: none;
}

.resource-card {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.resource-card h2 {
  font-size: 1.85rem;
  margin: 0;
}

.resource-card h2 a {
  text-decoration: none;
}

.resource-card .text-link {
  color: var(--rose-dark);
  margin-top: 4px;
}

.image-card {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.image-card img {
  aspect-ratio: 1.85 / 1;
  object-fit: cover;
  width: 100%;
}

.image-card div {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.article-page {
  border-top: 1px solid var(--line);
}

.article-hero {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.article-hero > div {
  align-self: center;
  padding: 74px 70px;
}

.article-hero h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  margin: 0;
}

.article-hero p:not(.section-kicker) {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 680px;
}

.article-hero img {
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  width: 100%;
}

.article-body {
  margin: 0 auto;
  max-width: 820px;
  padding: 58px 34px 72px;
}

.article-body > p {
  font-size: 1.12rem;
  line-height: 1.85;
  margin: 0 0 22px;
}

.article-callout {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(54, 40, 26, 0.07);
  margin: 36px 0;
  padding: 28px;
}

.article-callout h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2.2rem;
  margin: 0 0 14px;
}

.article-callout ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.article-callout li,
.article-callout p {
  line-height: 1.7;
}

.article-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-grid article span {
  align-items: center;
  background: var(--rose-soft);
  border-radius: 50%;
  color: var(--rose-dark);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  margin-bottom: 20px;
  width: 42px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 850px;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
}

.contact-band {
  align-items: stretch;
}

.contact-card {
  box-shadow: none;
}

.site-footer {
  background: rgba(249, 241, 230, 0.78);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: 1.25fr 0.65fr 0.75fr 0.75fr 1.15fr;
  padding: 52px 68px 32px;
}

.site-footer h2 {
  color: var(--ink);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.site-footer p,
.site-footer a {
  color: #4d5360;
  display: block;
  font-size: 0.9rem;
  line-height: 1.7;
  text-decoration: none;
}

.footer-email {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
}

.footer-bottom {
  align-items: center;
  color: #6d7280;
  display: flex;
  font-size: 0.82rem;
  grid-column: 1 / -1;
  justify-content: space-between;
}

.heart {
  color: var(--rose);
  font-size: 1.7rem;
}

.heart svg {
  height: 1em;
  width: 1em;
}

/* Generator */
.generator-shell {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.generator-sidebar {
  background: #fff8f1;
  border-right: 1px solid var(--line);
  padding: 34px;
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.step-list li {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  gap: 12px;
  padding: 14px;
}

.step-list li::before {
  align-items: center;
  background: #f7e7e1;
  border-radius: 50%;
  color: var(--rose-dark);
  content: counter(steps);
  counter-increment: steps;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.step-list li.active {
  border-color: var(--rose);
  color: var(--ink);
}

.legal-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  line-height: 1.55;
  padding: 18px;
}

.restore-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.generator-form {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 650px;
  min-width: 0;
  padding: 40px;
}

.form-step {
  display: none;
  gap: 18px;
}

.form-step.active {
  display: grid;
}

.step-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  padding-bottom: 18px;
}

.step-heading h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2.7rem;
  line-height: 1;
  margin: 0;
}

.form-intro {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
}

label span,
legend {
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  background: #fff;
  border: 1px solid #e0d3c5;
  border-radius: 8px;
  color: var(--ink);
  line-height: 1.45;
  padding: 13px 14px;
  width: 100%;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(211, 108, 127, 0.14);
  outline: none;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding: 16px;
}

.module-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

legend {
  padding: 0 8px;
}

.choice {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
}

.choice input {
  flex: 0 0 auto;
  width: auto;
}

.two-column {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.turnstile-wrap {
  min-height: 70px;
}

.messages,
.section-editor {
  display: grid;
  gap: 14px;
}

.message,
.empty-state,
.download-panel,
.cta-panel,
.section-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.55;
  padding: 18px;
}

.message.error {
  background: #fff0ef;
  color: #9d2c28;
}

.message.warning {
  background: #fff8e8;
  color: #8a5a00;
}

.message.info {
  background: #f8ede8;
  color: var(--rose-dark);
}

.section-card {
  display: grid;
  gap: 12px;
}

.section-card input {
  font-weight: 800;
}

.section-ai-controls {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.section-ai-controls span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-right: 4px;
  text-transform: uppercase;
}

.section-ai-button {
  background: #fff8f1;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--rose-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 11px;
}

.section-ai-button:hover,
.section-ai-button:focus {
  border-color: var(--rose);
  outline: none;
}

.section-ai-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.download-panel,
.cta-panel {
  display: grid;
  gap: 14px;
}

.pdf-style-picker {
  display: grid;
  gap: 12px;
}

.pdf-style-picker h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0;
}

.pdf-style-picker p {
  margin: 0;
}

.pdf-style-card {
  align-items: flex-start;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.pdf-style-card input {
  flex: 0 0 auto;
  margin-top: 4px;
  width: auto;
}

.pdf-style-card strong,
.pdf-style-card small {
  display: block;
}

.pdf-style-card strong {
  color: var(--ink);
}

.pdf-style-card small {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}

.pdf-style-card:has(input:checked) {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(211, 108, 127, 0.12);
}

.pdf-style-card.locked {
  background: #f8f4ee;
  color: var(--muted);
  cursor: not-allowed;
}

.pdf-style-card.locked strong::after {
  color: var(--rose-dark);
  content: " - Premium";
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-panel h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0;
}

.cta-panel a {
  color: var(--rose-dark);
  font-weight: 800;
}

.actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 24px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .site-frame {
    border-radius: 18px;
    margin: 18px auto;
    width: calc(100% - 28px);
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: 76px;
    padding: 0 24px;
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    cursor: pointer;
    display: grid;
    gap: 6px;
    justify-self: end;
    width: 34px;
  }

  .menu-button span {
    background: var(--ink);
    height: 2px;
    width: 34px;
  }

  .site-nav {
    background: #fffdf8;
    border-top: 1px solid var(--line);
    display: none;
    grid-column: 1 / -1;
    justify-content: stretch;
    padding: 8px 0 20px;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .nav-toggle:checked ~ .site-nav {
    display: grid;
  }

  .hero-section,
  .split-band,
  .generator-shell,
  .article-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 48px 34px 24px;
  }

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

  .pillars-section,
  .featured-section,
  .content-band,
  .page-hero {
    padding: 48px 34px;
  }

  .pillar-grid,
  .letter-grid,
  .info-grid,
  .pricing-grid,
  .process-grid,
  .resource-grid,
  .topic-list,
  .policy-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .policy-summary {
    position: static;
  }

  .article-hero > div {
    padding: 48px 34px;
  }

  .article-hero img {
    max-height: 330px;
  }

  .pillar-card {
    padding: 22px 0;
  }

  .pillar-card + .pillar-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cta-strip {
    grid-template-columns: 1fr;
    margin: 26px 24px 38px;
    padding: 28px;
    text-align: center;
  }

  .cta-strip img {
    margin: 0 auto;
    max-height: 180px;
  }

  .generator-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .step-list li {
    justify-content: center;
    padding: 10px;
  }

  .step-list li {
    font-size: 0;
  }

  .step-list li::before {
    font-size: 0.9rem;
  }
}

@media (max-width: 620px) {
  .site-frame {
    margin: 0;
    min-height: 100vh;
    width: 100%;
  }

  .logo-mark {
    height: 42px;
    width: 36px;
  }

  .logo-text strong {
    font-size: 1.72rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .article-hero h1 {
    font-size: 3.15rem;
  }

  .hero-copy,
  .pillars-section,
  .featured-section,
  .content-band,
  .page-hero,
  .article-body,
  .generator-form,
  .generator-sidebar {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-actions,
  .actions,
  .article-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .actions button {
    width: 100%;
  }

  .two-column,
  fieldset {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 42px 24px 28px;
  }
}

/* Screenshot-led write app */
.write-app-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.98), rgba(255, 248, 244, 0.88) 42%, rgba(246, 239, 232, 0.94)),
    #fbf6f0;
  color: #16243a;
  min-height: 100vh;
}

.write-app {
  padding: 22px;
}

.app-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #eadfd6;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(47, 35, 25, 0.12);
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1840px;
  min-height: calc(100vh - 44px);
  overflow: hidden;
}

.app-sidebar {
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(255, 249, 242, 0.97));
  border-right: 1px solid #eadfd6;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 34px 48px;
  min-width: 0;
}

.app-brand {
  color: #17263d;
  gap: 14px;
}

.app-brand .logo-mark {
  color: #e39c5d;
  height: 58px;
  width: 50px;
}

.app-brand .logo-text strong {
  font-size: 2.15rem;
}

.app-brand .logo-text small {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
}

.app-sidebar .step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  position: relative;
}

.app-sidebar .step-list::before {
  background: linear-gradient(#e9ded5 0 70%, transparent);
  bottom: 32px;
  content: "";
  left: 37px;
  position: absolute;
  top: 32px;
  width: 1px;
}

.app-sidebar .step-list li {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(234, 223, 214, 0.86);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(45, 35, 25, 0.035);
  color: #667085;
  display: grid;
  font-size: 1rem;
  font-weight: 700;
  gap: 18px;
  grid-template-columns: 40px 1fr 24px;
  min-height: 64px;
  padding: 10px 18px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-sidebar .step-list li.is-navigable {
  cursor: pointer;
}

.app-sidebar .step-list li.is-navigable:hover,
.app-sidebar .step-list li.is-navigable:focus-visible {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.95));
  border-color: #e78aa5;
  box-shadow: 0 16px 30px rgba(211, 79, 113, 0.1);
  color: #bf315f;
  outline: none;
  transform: translateY(-1px);
}

.app-sidebar .step-list li::before {
  align-items: center;
  background: #f3eee8;
  border-radius: 999px;
  color: #17263d;
  content: attr(data-step-number);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  position: relative;
  width: 40px;
  z-index: 1;
}

.app-sidebar .step-list li::after {
  align-items: center;
  background: #45a76a;
  border-radius: 999px;
  color: #fff;
  content: "✓";
  display: none;
  font-size: 0.86rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.app-sidebar .step-list li.active {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 246, 0.88));
  border-color: #df5b82;
  color: #cf3f70;
  box-shadow: 0 16px 30px rgba(211, 79, 113, 0.08);
}

.app-sidebar .step-list li.active:hover {
  border-color: #cf3f70;
  box-shadow: 0 18px 34px rgba(211, 79, 113, 0.12);
}

.app-sidebar .step-list li.active::before {
  background: linear-gradient(135deg, #dc5f85, #c83f70);
  color: #fff;
}

.app-sidebar .step-list li.completed::after {
  display: inline-flex;
}

.app-sidebar .step-list li.completed:hover::after,
.app-sidebar .step-list li.completed:focus-visible::after {
  background: #d3386b;
}

.sidebar-start-new {
  align-items: center;
  background: #fff;
  border: 1px solid #ef9caf;
  border-radius: 10px;
  color: #c83f70;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-start-new:hover,
.sidebar-start-new:focus-visible {
  background: #fff0f4;
  border-color: #d3386b;
  box-shadow: 0 12px 24px rgba(211, 79, 113, 0.12);
  color: #ad2858;
  outline: none;
  transform: translateY(-1px);
}

.legal-note,
.restore-form {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 243, 0.9));
  border: 1px solid #eadfd6;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(45, 35, 25, 0.04);
}

.legal-note {
  display: grid;
  font-size: 0.94rem;
  gap: 8px;
  line-height: 1.5;
  padding: 18px;
}

.legal-note span,
.restore-form input,
.app-form p,
.app-form small {
  overflow-wrap: anywhere;
}

.legal-note .note-icon,
.answer-note .note-icon {
  align-items: center;
  background: #fff0f4;
  border-radius: 999px;
  color: #df3f73;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.app-icon {
  display: block;
  fill: none;
  height: 1em;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 1em;
}

.inline-info-icon {
  display: inline-block;
  height: 1em;
  margin-left: 3px;
  stroke: currentColor;
  vertical-align: -0.14em;
  width: 1em;
}

.button-icon {
  display: inline-block;
  flex: 0 0 auto;
  height: 1.08em;
  stroke: currentColor;
  vertical-align: -0.18em;
  width: 1.08em;
}

.svg-mask {
  background: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 1em;
  mask: var(--icon-url) no-repeat center / contain;
  -webkit-mask: var(--icon-url) no-repeat center / contain;
  vertical-align: -0.14em;
  width: 1em;
}

.legal-note strong,
.restore-form strong {
  color: #17263d;
  font-weight: 800;
}

.restore-form {
  border-top: 1px solid #eadfd6;
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 18px;
}

.app-form {
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 44px);
  min-width: 0;
  padding: 0;
}

.app-form .form-step {
  display: none;
  gap: 26px;
  padding: 54px 64px 36px;
}

.app-form .form-step.active {
  display: grid;
}

.app-form .step-heading {
  align-items: center;
  border-bottom: 1px solid #eadfd6;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 260px;
  margin: 0;
  min-height: 184px;
  padding: 0 0 28px;
}

.app-form .step-heading.compact-heading {
  min-height: 164px;
}

.app-form .section-kicker {
  color: #d3386b;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.app-form .step-heading h1 {
  color: #122138;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 4.8vw, 4.75rem);
  font-weight: 700;
  line-height: 0.94;
  margin: 0;
}

.app-form .step-heading p:not(.section-kicker) {
  color: #596276;
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 780px;
}

.step-art {
  justify-self: end;
  max-height: 178px;
  object-fit: contain;
  object-position: center;
  opacity: 0.95;
  width: 260px;
}

.people-art {
  max-height: 220px;
}

.app-form label,
.app-form fieldset {
  gap: 10px;
}

.app-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.app-form legend,
.form-field > span:first-child,
.prompt-card strong,
.wish-card strong,
.panel-heading h2,
.cta-panel h2 {
  color: #17263d;
  font-weight: 850;
}

.app-form legend small,
.form-field small {
  color: #89909e;
  font-size: 0.9rem;
}

.field-shell {
  align-items: center;
  background: #fff;
  border: 1px solid #dfd4cb;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 62px;
  padding: 0 14px;
  position: relative;
}

.field-shell.compact-field {
  min-height: 54px;
}

.field-icon {
  align-items: center;
  color: #7a8494;
  display: inline-flex;
  font-size: 1.25rem;
  justify-content: center;
}

.app-form input,
.app-form textarea,
.restore-form input {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #17263d;
  line-height: 1.5;
  min-width: 0;
  padding: 14px 0;
}

.app-form textarea {
  min-height: 94px;
}

.app-form input::placeholder,
.app-form textarea::placeholder,
.restore-form input::placeholder {
  color: #7a8190;
}

.app-form input:focus,
.app-form textarea:focus,
.restore-form input:focus {
  box-shadow: none;
  outline: none;
}

.field-shell:focus-within,
.choice:has(input:focus-visible),
.pdf-style-card:has(input:focus-visible) {
  border-color: #d94c78;
  box-shadow: 0 0 0 4px rgba(217, 76, 120, 0.13);
}

.textarea-shell {
  align-items: start;
  padding-top: 8px;
}

.form-field em,
.prompt-card em {
  color: #6f7786;
  font-style: normal;
  line-height: 1.5;
}

.short-field {
  max-width: 660px;
}

.date-mirror {
  align-items: center;
  background: #fff;
  bottom: 1px;
  color: #17263d;
  display: flex;
  left: 50px;
  pointer-events: none;
  position: absolute;
  top: 1px;
  width: calc(100% - 98px);
}

.short-field input[type="date"] {
  color: transparent;
}

.choice-panel {
  background: linear-gradient(120deg, #fff7f3, #fff);
  border: 1px solid #f0d8d0 !important;
  border-radius: 10px;
  padding: 28px !important;
}

.scope-intro {
  align-items: start;
  background: linear-gradient(120deg, #fff7f5, #fff);
  border: 1px solid #f1d8d3;
  border-radius: 12px;
  display: grid;
  gap: 20px;
  grid-template-columns: 48px minmax(0, 1fr);
  line-height: 1.6;
  padding: 24px 28px;
}

.scope-intro h2 {
  color: #17263d;
  font-size: 1.18rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.scope-intro p {
  color: #4f596d;
  margin: 0;
  max-width: 980px;
}

.scope-intro p + p {
  margin-top: 8px;
}

.scope-intro .note-icon {
  align-items: center;
  background: #fff0f4;
  border-radius: 999px;
  color: #df3f73;
  display: inline-flex;
  font-size: 1.35rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.will-panel,
.flag-grid,
.module-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-grid.app-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-panel legend,
.flag-grid legend,
.module-grid legend {
  grid-column: 1 / -1;
  padding: 0;
}

.choice,
.pdf-style-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dfd4cb;
  border-radius: 10px;
  box-shadow: none;
  cursor: pointer;
  min-height: 78px;
  padding: 18px;
  position: relative;
}

.choice input,
.pdf-style-card input {
  accent-color: #d94c78;
  flex: 0 0 auto;
  height: 20px;
  margin: 2px 8px 0 0;
  width: 20px;
}

.choice:has(input:checked),
.pdf-style-card:has(input:checked) {
  border-color: #d94c78;
  box-shadow: 0 0 0 1px rgba(217, 76, 120, 0.18), 0 12px 24px rgba(217, 76, 120, 0.06);
}

.option-choice {
  align-items: start;
  display: flex;
  gap: 12px;
}

.option-choice strong,
.option-choice small,
.module-choice strong,
.module-choice small,
.flag-choice strong,
.flag-choice small {
  display: block;
}

.option-choice small,
.module-choice small,
.flag-choice small,
.wish-heading small,
.panel-heading p,
.answer-note small,
.cta-panel p,
.pdf-style-card small {
  color: #586274;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 4px;
}

.module-choice,
.flag-choice {
  align-items: start;
  display: grid;
  gap: 10px 14px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.module-choice input,
.flag-choice input {
  left: 18px;
  position: absolute;
  top: 20px;
}

.module-choice {
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 188px;
  padding: 22px 24px 24px 68px;
}

.choice-icon {
  align-items: center;
  color: #df3f73;
  display: inline-flex;
  font-size: 1.55rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.module-choice .choice-icon {
  background: #fff0f4;
  border-radius: 999px;
  height: 44px;
  margin-left: -2px;
  margin-top: 2px;
  position: relative;
  width: 44px;
  z-index: 1;
}

.choice-icon svg {
  display: block;
  fill: none;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 25px;
}

.module-choice:has(input:checked) .choice-icon {
  background: #fde8ef;
  color: #d3386b;
}

.choice-icon svg path {
  vector-effect: non-scaling-stroke;
}

.module-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.module-title {
  align-items: start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.module-title strong {
  line-height: 1.3;
}

.info-dot {
  align-items: center;
  background: #fff;
  border: 1px solid #e5d8cf;
  border-radius: 999px;
  color: #89909e;
  cursor: help;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  height: 28px;
  justify-content: center;
  margin-top: 1px;
  position: relative;
  width: 28px;
  z-index: 2;
}

.info-dot svg {
  height: 18px;
  width: 18px;
}

.info-dot:hover,
.info-dot:focus-visible {
  background: #fff0f4;
  border-color: #df5b82;
  color: #cf3f70;
  outline: none;
}

.tooltip {
  background: #17263d;
  border-radius: 8px;
  bottom: calc(100% + 10px);
  box-shadow: 0 18px 34px rgba(18, 33, 56, 0.22);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  left: 50%;
  line-height: 1.5;
  max-width: min(330px, 70vw);
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 6px);
  transition: opacity 150ms ease, transform 150ms ease;
  width: max-content;
  z-index: 20;
}

.tooltip::after {
  border: 7px solid transparent;
  border-top-color: #17263d;
  content: "";
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

.info-dot:hover .tooltip,
.info-dot:focus-visible .tooltip,
.info-dot.is-open .tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.prompt-info .tooltip {
  left: auto;
  max-width: min(380px, calc(100vw - 56px));
  right: 0;
  transform: translateY(6px);
}

.prompt-info .tooltip::after {
  left: auto;
  right: 12px;
  transform: none;
}

.prompt-info:hover .tooltip,
.prompt-info:focus-visible .tooltip,
.prompt-info.is-open .tooltip {
  transform: translateY(0);
}

.flag-choice strong,
.flag-choice small {
  grid-column: 1;
}

.prompt-card {
  align-items: start;
  background: #fff;
  border: 1px solid #dfd4cb;
  border-radius: 12px;
  display: grid;
  gap: 24px;
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 28px;
}

.prompt-icon {
  align-items: center;
  background: #fff0f4;
  border-radius: 999px;
  color: #df3f73;
  display: inline-flex;
  font-size: 1.75rem;
  font-weight: 800;
  height: 66px;
  justify-content: center;
  width: 66px;
}

.prompt-icon svg {
  display: block;
  fill: none;
  height: 30px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
  width: 30px;
}

.prompt-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.prompt-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.prompt-title strong {
  min-width: 0;
  line-height: 1.35;
}

.prompt-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
}

.prompt-info {
  border-color: #ef9caf;
  box-shadow: 0 8px 18px rgba(211, 63, 112, 0.1);
  color: #d3386b;
  font-size: 1rem;
  height: 34px;
  width: 34px;
}

.prompt-info svg {
  height: 21px;
  width: 21px;
}

.prompt-card input,
.prompt-card textarea {
  border: 1px solid #dfd4cb;
  border-radius: 10px;
  padding: 14px 18px;
}

.wishes-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wish-card {
  background: #fff;
  border: 1px solid #ead6d2;
  border-radius: 12px;
  container-type: inline-size;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.wish-card.wide {
  grid-column: 1 / -1;
}

.wish-heading {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 66px minmax(0, 1fr) auto;
}

.wish-heading > span:not(.prompt-icon) {
  min-width: 0;
}

.wish-heading strong,
.wish-heading small {
  display: block;
}

@container (max-width: 430px) {
  .wish-heading {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .wish-heading .mini-pill {
    grid-column: 2;
    justify-self: start;
  }
}

.wish-card textarea {
  border: 1px solid #dfd4cb;
  border-radius: 10px;
  min-height: 172px;
  padding: 18px;
}

.wish-card.wide textarea {
  min-height: 118px;
}

.mini-pill {
  align-items: center;
  background: #fff0f4;
  border: 0;
  border-radius: 999px;
  color: #d3386b;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 6px;
  padding: 8px 12px;
}

.mini-pill:hover,
.mini-pill:focus-visible {
  background: #fde4ec;
  box-shadow: 0 0 0 3px rgba(217, 76, 120, 0.14);
  outline: none;
}

.mini-pill.is-locked {
  background: linear-gradient(120deg, #fff7f1, #fff0f4);
  border: 1px solid #efb0bd;
  color: #b93260;
  padding-right: 14px;
}

.mini-pill.is-locked::after {
  background: currentColor;
  content: "";
  display: inline-block;
  height: 0.95em;
  margin-left: 2px;
  mask: url("/assets/icons/lock.svg") no-repeat center / contain;
  -webkit-mask: url("/assets/icons/lock.svg") no-repeat center / contain;
  width: 0.95em;
}

.mini-pill.is-locked:hover,
.mini-pill.is-locked:focus-visible {
  background: linear-gradient(120deg, #ffece2, #ffe4ed);
  border-color: #df5b82;
  box-shadow: 0 0 0 3px rgba(217, 76, 120, 0.16), 0 10px 22px rgba(211, 63, 112, 0.1);
}

.mini-pill:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.step-message {
  background: #fff0f4;
  border: 1px solid #f4cbd1;
  border-radius: 10px;
  color: #b93260;
  font-weight: 750;
  line-height: 1.5;
  padding: 14px 18px;
}

.step-message.info {
  background: linear-gradient(120deg, #fff7f5, #fff);
}

.path-choice-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-choice-card {
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.path-choice-card.featured,
.path-choice-card.selected {
  border-color: rgba(211, 108, 127, 0.48);
  box-shadow: 0 18px 34px rgba(211, 108, 127, 0.13);
}

.path-choice-card h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.05;
  margin: 0;
}

.path-choice-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}

.path-choice-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.path-choice-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.path-choice-card li {
  line-height: 1.45;
}

.path-choice-card .button {
  justify-self: start;
}

.example-confirmation {
  align-items: center;
  background: #fff8f4;
  border: 1px solid #f0d8d0;
  border-radius: 9px;
  color: #586274;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 750;
  gap: 10px;
  line-height: 1.45;
  padding: 12px 14px;
}

.example-confirmation span {
  flex: 1 1 260px;
}

.example-confirm-action {
  background: #d3386b;
  border: 1px solid #d3386b;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  min-height: 36px;
  padding: 7px 12px;
}

.example-confirm-action.subtle {
  background: #fff;
  color: #d3386b;
}

.example-confirm-action:hover,
.example-confirm-action:focus-visible {
  box-shadow: 0 0 0 3px rgba(217, 76, 120, 0.14);
  outline: none;
}

.example-confirm-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.tip-row {
  background: linear-gradient(120deg, #fffaf7, #fff);
  border: 1px solid #f0e1da;
  border-radius: 9px;
  color: #586274;
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 14px 18px;
}

.count-row {
  align-items: center;
  border-top: 1px solid #eadfd6;
  color: #5f697a;
  display: flex;
  font-size: 0.88rem;
  justify-content: space-between;
  padding-top: 12px;
}

.privacy::before {
  color: #df3f73;
  content: "";
  display: inline-block;
  height: 1em;
  margin-right: 6px;
  mask: url("/assets/icons/shield-check.svg") no-repeat center / contain;
  -webkit-mask: url("/assets/icons/shield-check.svg") no-repeat center / contain;
  vertical-align: -0.15em;
  width: 1em;
  background: currentColor;
}

.flag-grid {
  margin-top: 2px;
}

.flag-grid legend span {
  color: #586274;
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 3px;
}

.flag-choice {
  align-content: start;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  min-height: 128px;
  padding: 22px 24px 22px 92px;
}

.flag-choice input {
  left: 22px;
  top: 24px;
}

.flag-choice .choice-icon {
  font-size: 1.35rem;
  height: 28px;
  left: 52px;
  position: absolute;
  top: 20px;
  width: 28px;
}

.flag-choice .choice-icon svg {
  height: 23px;
  width: 23px;
}

.answer-note {
  align-items: center;
  background: linear-gradient(120deg, #fff0f4, #fff7f5);
  border: 1px solid #f4cbd1;
  border-radius: 12px;
  display: flex;
  gap: 20px;
  padding: 20px 24px;
}

.answer-note strong,
.answer-note small {
  display: block;
}

.answer-note.neutral {
  background: linear-gradient(120deg, #fffaf7, #fff);
  border-color: #eadfd6;
}

.review-alerts {
  display: grid;
  gap: 16px;
}

.review-guidance,
.soft-alert {
  align-items: center;
  background: linear-gradient(120deg, #fffaf2, #fff);
  border: 1px solid #f2c979;
  border-radius: 10px;
  display: flex;
  gap: 22px;
  padding: 18px 24px;
}

.review-guidance {
  align-items: flex-start;
}

.review-guidance h2 {
  color: #17263d;
  font-family: var(--sans);
  font-size: 1rem;
  margin: 0 0 8px;
}

.review-guidance ul,
.message ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.1rem;
}

.review-guidance li {
  color: #344054;
  line-height: 1.45;
}

.message strong {
  color: #17263d;
  display: block;
  margin-bottom: 8px;
}

.soft-alert > span {
  align-items: center;
  color: #f4a02f;
  display: inline-flex;
  font-size: 1.65rem;
  justify-content: center;
}

.soft-alert p {
  color: #344054;
  line-height: 1.5;
  margin: 0;
}

.soft-alert strong {
  color: #17263d;
  display: block;
  margin-bottom: 2px;
}

.messages,
.section-editor {
  display: grid;
  gap: 22px;
}

.message,
.empty-state,
.download-panel,
.cta-panel,
.section-card {
  background: #fff;
  border: 1px solid #dfd4cb;
  border-radius: 12px;
  line-height: 1.55;
  padding: 22px;
}

.message.error {
  background: #fff0f0;
  border-color: #f0b5b5;
  color: #9d2c28;
}

.message.warning {
  background: #fff8e8;
  border-color: #f2c979;
  color: #8a5a00;
}

.message.info {
  background: #fff0f4;
  border-color: #f4cbd1;
  color: #b93260;
}

.section-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.section-card-header {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 66px minmax(0, 1fr) auto;
}

.section-card-title {
  display: grid;
  gap: 8px;
}

.section-card-title span,
.section-body-label {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-card input[data-section="title"] {
  border: 0;
  color: #17263d;
  font-size: 1.08rem;
  font-weight: 850;
  padding: 0;
}

.section-card textarea[data-section="body"] {
  border: 1px solid #dfd4cb;
  border-radius: 9px;
  min-height: 168px;
  padding: 16px 18px;
}

.edit-section {
  align-items: center;
  background: #fff;
  border: 1px solid #ef9caf;
  border-radius: 8px;
  color: #d3386b;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  font-weight: 850;
  padding: 10px 18px;
}

.section-ai-controls {
  align-items: center;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 0;
}

.section-ai-controls span {
  align-items: center;
  color: #344054;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 6px;
  letter-spacing: 0;
  margin-right: 6px;
  text-transform: none;
}

.section-ai-button {
  background: #fff;
  border: 1px solid #ef9caf;
  border-radius: 8px;
  color: #d3386b;
  cursor: pointer;
  font-weight: 850;
  min-height: 38px;
  padding: 8px 16px;
}

.download-panel,
.cta-panel {
  display: grid;
  gap: 20px;
}

.panel-heading,
.cta-panel {
  align-items: start;
  display: flex;
  gap: 20px;
}

.panel-heading h2,
.cta-panel h2 {
  font-family: var(--sans);
  font-size: 1.18rem;
  margin: 0 0 4px;
}

.panel-heading p,
.cta-panel p {
  margin: 0;
}

.pdf-style-picker {
  display: grid;
  gap: 14px;
}

.pdf-style-card {
  align-items: start;
  display: flex;
  gap: 12px;
}

.pdf-style-card strong,
.pdf-style-card small {
  display: block;
}

.pdf-style-card.locked {
  background: #fbf7f4;
  cursor: pointer;
  opacity: 0.76;
}

.pdf-style-card.locked strong::after {
  color: #d3386b;
  content: " - Premium";
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-button {
  justify-self: start;
}

.cta-panel a {
  color: #d3386b;
  font-weight: 850;
}

.app-form .actions {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #eadfd6;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 0;
  padding: 18px 64px;
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.app-form #back-step {
  margin-right: auto;
}

.app-form .button,
.restore-form .button {
  align-items: center;
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(211, 63, 112, 0.2);
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
}

.app-form .button.subtle {
  background: #fff;
  border: 1px solid #dfd4cb;
  box-shadow: none;
  color: #5f697a;
}

.save-progress {
  align-items: center;
  background: transparent;
  border: 0;
  color: #d3386b;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
}

.start-new-dialog {
  align-items: center;
  background: rgba(52, 45, 41, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 20;
}

.start-new-panel {
  background: #fff;
  border: 1px solid #eadfd6;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(58, 43, 37, 0.26);
  max-width: 520px;
  padding: 28px;
  width: min(100%, 520px);
}

.start-new-panel h2 {
  color: #2b303a;
  font-size: 1.45rem;
  margin: 0 0 10px;
}

.start-new-panel p {
  color: #687386;
  line-height: 1.6;
  margin: 0 0 22px;
}

.start-new-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-form .hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .app-sidebar {
    padding: 30px;
  }

  .app-form .form-step {
    padding-left: 42px;
    padding-right: 42px;
  }

  .app-form .actions {
    padding-left: 42px;
    padding-right: 42px;
  }

  .will-panel,
  .flag-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .wish-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .write-app {
    padding: 0;
  }

  .app-shell {
    border-radius: 0;
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    min-height: 100vh;
    max-width: 100%;
    width: 100%;
  }

  .app-sidebar {
    display: contents;
  }

  .app-brand {
    margin: 24px 24px 0;
    order: 1;
  }

  .app-sidebar .step-list {
    display: flex;
    gap: 10px;
    margin: 0 24px;
    order: 2;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-padding-inline: 24px;
    scroll-snap-type: x proximity;
    width: auto;
  }

  .app-sidebar .step-list::before {
    display: none;
  }

  .app-sidebar .step-list li {
    flex: 0 0 138px;
    grid-template-columns: 34px 1fr;
    min-height: 58px;
    padding: 10px;
    scroll-snap-align: center;
  }

  .app-sidebar .step-list li::before {
    height: 34px;
    width: 34px;
  }

  .app-sidebar .step-list li::after {
    display: none !important;
  }

  .sidebar-start-new {
    margin: 0 24px;
    order: 3;
  }

  .legal-note,
  .restore-form {
    margin-top: 0;
  }

  .legal-note {
    align-items: start;
    gap: 4px 12px;
    grid-template-columns: 34px minmax(0, 1fr);
    margin: 0 24px 18px;
    order: 3;
    padding: 12px 14px;
  }

  .legal-note > .note-icon {
    grid-row: 1 / 3;
    height: 34px;
    width: 34px;
  }

  .legal-note > span:not(.note-icon) {
    grid-column: 2;
    line-height: 1.35;
  }

  .restore-form {
    margin: 24px;
    order: 5;
  }

  .app-form .step-heading {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .step-art {
    display: none;
  }

  .app-form .form-step {
    padding: 34px 24px 28px;
  }

  .app-form {
    max-width: 100%;
    order: 4;
    width: 100%;
  }

  .app-form .actions {
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 18px 24px 26px;
  }

  .app-form .actions .button,
  .save-progress {
    flex: 0 0 auto;
    min-height: 52px;
    width: 100%;
  }

  .app-form #back-step {
    margin-right: 0;
  }

  .save-progress {
    justify-content: center;
  }

  .start-new-actions {
    flex-direction: column;
  }

  .wishes-grid,
  .will-panel,
  .flag-grid,
  .path-choice-grid,
  .module-grid,
  .module-grid.app-card-grid {
    grid-template-columns: 1fr;
  }

  .wish-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .app-sidebar {
    padding: 24px;
  }

  .app-brand .logo-text strong {
    font-size: 1.82rem;
  }

  .app-form .step-heading h1 {
    font-size: 2.55rem;
    overflow-wrap: anywhere;
  }

  .app-form .step-heading p:not(.section-kicker) {
    font-size: 1rem;
  }

  .prompt-card,
  .section-card-header,
  .wish-heading {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .prompt-card {
    gap: 14px 16px;
  }

  .prompt-card .prompt-body {
    display: contents;
  }

  .prompt-card .prompt-title {
    align-self: center;
    grid-column: 2;
  }

  .prompt-card input,
  .prompt-card textarea,
  .prompt-card em,
  .prompt-card .example-confirmation {
    box-sizing: border-box;
    grid-column: 1 / -1;
    width: 100%;
  }

  .module-choice {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
    padding: 20px 18px 20px 62px;
  }

  .module-choice input {
    left: 18px;
    top: 22px;
  }

  .module-title {
    align-items: flex-start;
    gap: 10px;
  }

  .prompt-card,
  .wish-card,
  .section-card {
    padding: 20px;
  }

  .prompt-icon {
    font-size: 1.35rem;
    height: 52px;
    width: 52px;
  }

  .mini-pill,
  .edit-section {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .prompt-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-actions {
    justify-content: space-between;
    width: 100%;
  }

  .section-card textarea[data-section="body"] {
    min-height: 190px;
  }

  .soft-alert,
  .answer-note,
  .panel-heading,
  .cta-panel {
    align-items: flex-start;
  }

  .app-form .button,
  .restore-form .button,
  .save-progress {
    width: 100%;
  }
}
