:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --rose-deep: #9f1239;
  --rose-soft: #fff1f2;
  --rose-pale: #fff7f7;
  --slate: #0f172a;
  --slate-muted: #475569;
  --line: #e9e2df;
  --background: #fcfaf9;
  --white: #ffffff;
  --cream: #fffaf6;
  --shadow: 0 24px 70px rgba(91, 42, 52, 0.12);
  --serif: "Playfair Display", Georgia, serif;
  --sans:
    "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow-container {
  width: min(760px, calc(100% - 40px));
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(252, 250, 249, 0.9);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand em {
  color: var(--rose-dark);
  font-weight: 600;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50% 50% 46% 54%;
  background: var(--rose);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  transform: rotate(-7deg);
  box-shadow: 0 5px 18px rgba(244, 63, 94, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--slate-muted);
  font-size: 14px;
  font-weight: 500;
}

.site-nav > a:not(.button):hover {
  color: var(--rose-dark);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.icon-button:focus-visible,
.text-button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(244, 63, 94, 0.22);
  outline-offset: 3px;
}

.button-small {
  min-height: 40px;
  padding: 9px 17px;
  border-color: var(--slate);
  border-radius: 6px;
  background: var(--slate);
  color: var(--white);
  font-size: 13px;
}

.button-primary {
  background: var(--rose);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.22);
}

.button-primary:hover {
  background: var(--rose-dark);
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.25);
}

.button-outline {
  border-color: #cbd5e1;
  background: transparent;
  color: var(--slate);
}

.button-outline:hover {
  border-color: var(--rose);
  color: var(--rose-dark);
}

.button-light {
  background: var(--white);
  color: var(--rose-deep);
  box-shadow: 0 14px 36px rgba(77, 13, 34, 0.2);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.text-link,
.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 2px 0;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 92px 0 104px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
    radial-gradient(circle at 77% 45%, #fff1f2 0, rgba(255, 241, 242, 0) 35%),
    var(--background);
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -170px;
  width: 520px;
  height: 360px;
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.hero-copy h1,
.section-heading h2,
.ideas-layout h2,
.final-cta h2,
.create-intro h1,
.thanks-wrap h1,
.gift-cover h1,
.gift-cover h2,
.error-content h1 {
  margin: 18px 0 24px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(48px, 5.25vw, 72px);
}

h1 em,
h2 em {
  color: var(--rose-dark);
  font-weight: 600;
}

.hero-lead {
  max-width: 595px;
  margin: 0 0 34px;
  color: var(--slate-muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-note {
  margin: 25px 0 0;
  color: #64748b;
  font-size: 13px;
}

.hero-note span {
  margin-right: 5px;
  color: var(--rose);
}

.hero-visual {
  position: relative;
  min-height: 450px;
  perspective: 1000px;
}

.envelope-demo {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.envelope-demo::before,
.envelope-demo::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.envelope-demo-main {
  top: 67px;
  right: 14px;
  width: min(100%, 430px);
  height: 296px;
  overflow: hidden;
  border: 1px solid #ead9d3;
  border-radius: 10px;
  background: linear-gradient(145deg, #fffdfb, #fff7f4);
  box-shadow: 0 35px 70px rgba(111, 53, 59, 0.17);
  transform: rotate(3.5deg);
}

.envelope-demo-main::before {
  top: -158px;
  left: 7%;
  width: 86%;
  height: 290px;
  border: 1px solid #edd8d2;
  background: #fff9f6;
  transform: rotate(45deg);
}

.envelope-demo-main::after {
  right: -30px;
  bottom: -170px;
  width: 320px;
  height: 320px;
  border: 1px solid #f1ded9;
  transform: rotate(45deg);
}

.demo-seal {
  position: relative;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  box-shadow: 0 7px 18px rgba(244, 63, 94, 0.25);
}

.demo-label,
.envelope-demo-main strong,
.envelope-demo-main small {
  position: relative;
  z-index: 3;
}

.demo-label {
  color: #9f1239;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.envelope-demo-main strong {
  margin: 8px 0 13px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.12;
}

.envelope-demo-main small {
  color: #8b6f6f;
  font-family: var(--serif);
  font-style: italic;
}

.envelope-demo-back {
  top: 8px;
  left: -12px;
  width: 335px;
  height: 215px;
  border: 1px solid #e3d7d1;
  border-radius: 8px;
  background: #f4eee9;
  color: #8a6d66;
  font-family: var(--serif);
  font-size: 17px;
  transform: rotate(-9deg);
}

.visual-note {
  position: absolute;
  right: 28px;
  bottom: 4px;
  z-index: -1;
  width: 230px;
  height: 150px;
  padding: 100px 20px 0;
  background: #fbe2e5;
  color: #9f5865;
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  transform: rotate(-5deg);
}

.sparkle {
  position: absolute;
  color: var(--rose);
}

.sparkle-one {
  top: 28px;
  right: 12px;
  font-size: 26px;
}
.sparkle-two {
  bottom: 42px;
  left: 33px;
  font-size: 35px;
}

.promise-strip {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 96px;
  align-items: center;
}

.promise-grid p {
  margin: 0;
  color: var(--slate-muted);
  font-size: 14px;
  text-align: center;
}

.promise-grid p + p {
  border-left: 1px solid var(--line);
}

.promise-grid span {
  margin-right: 10px;
  color: var(--rose);
  font-size: 18px;
}

.section {
  padding: 110px 0;
}

.how-section {
  background: var(--white);
}

.section-heading {
  margin-bottom: 60px;
  text-align: center;
}

.section-heading h2,
.ideas-layout h2,
.final-cta h2 {
  font-size: clamp(38px, 4.5vw, 56px);
}

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

.step {
  position: relative;
  padding: 10px 16px;
  text-align: center;
}

.step + .step::before {
  position: absolute;
  top: 80px;
  left: -40px;
  width: 20px;
  border-top: 1px dashed #d5c3c3;
  content: "";
}

.step-number {
  position: absolute;
  top: 0;
  right: 24px;
  color: #f1e8e6;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.step-icon {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  margin: 20px auto 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-dark);
  font-family: var(--serif);
  font-size: 27px;
}

.step h3 {
  margin: 0 0 11px;
  font-family: var(--serif);
  font-size: 23px;
}

.step p {
  max-width: 290px;
  margin: auto;
  color: var(--slate-muted);
  font-size: 15px;
}

.ideas-section {
  background: #f8f4f1;
}

.ideas-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 100px;
}

.ideas-layout h2 {
  margin-bottom: 20px;
}

.ideas-layout > div:first-child > p {
  margin: 0 0 30px;
  color: var(--slate-muted);
  font-size: 17px;
}

.idea-list {
  border-top: 1px solid #d9cfca;
}

.idea-list div {
  display: flex;
  min-height: 64px;
  align-items: center;
  border-bottom: 1px solid #d9cfca;
  font-family: var(--serif);
  font-size: 18px;
}

.idea-list span {
  width: 55px;
  color: var(--rose);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}

.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--rose-deep);
  color: var(--white);
  text-align: center;
}

.final-cta::before,
.final-cta::after {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.final-cta::before {
  top: -190px;
  left: -110px;
}
.final-cta::after {
  right: -120px;
  bottom: -220px;
}
.final-cta .eyebrow {
  color: #fecdd3;
}
.final-cta h2 {
  margin-top: 20px;
}
.final-cta h2 em {
  color: #fecdd3;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #64748b;
  font-size: 13px;
}

.brand-footer {
  font-size: 18px;
}
.brand-footer .brand-mark {
  width: 27px;
  height: 27px;
  font-size: 11px;
}
.footer-wrap p {
  margin: 0;
}
.copyright {
  white-space: nowrap;
}

/* Formulario */
.create-main {
  padding-bottom: 100px;
}

.create-intro {
  padding: 72px 0 58px;
  text-align: center;
}

.create-intro h1 {
  font-size: clamp(42px, 5vw, 62px);
}

.create-intro p {
  max-width: 650px;
  margin: auto;
  color: var(--slate-muted);
  font-size: 17px;
}

.form-container {
  width: min(900px, calc(100% - 40px));
}

.alert {
  margin-bottom: 22px;
  border: 1px solid;
  border-radius: 8px;
  padding: 15px 18px;
}

.alert-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.form-section {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 42px;
  background: var(--white);
  box-shadow: 0 12px 45px rgba(51, 35, 38, 0.05);
}

.form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 34px;
}

.form-step {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  font-weight: 700;
}

.form-section-heading h2,
.submit-section h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.25;
}

.form-section-heading p,
.submit-section p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.field-grid {
  display: grid;
  gap: 22px;
}

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

.field {
  margin-bottom: 24px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label,
.share-panel label {
  display: block;
  margin-bottom: 8px;
  color: #273449;
  font-size: 14px;
  font-weight: 600;
}

.field label span {
  color: #94a3b8;
  font-weight: 400;
}

.field input,
.field textarea,
.share-panel input {
  width: 100%;
  border: 1px solid #d9dee6;
  border-radius: 7px;
  background: #fff;
  color: var(--slate);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field input,
.share-panel input {
  min-height: 50px;
  padding: 11px 14px;
}

.field textarea {
  resize: vertical;
  min-height: 125px;
  padding: 13px 14px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a8b0bd;
}

.field input:focus,
.field textarea:focus,
.share-panel input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08);
  outline: 0;
}

.was-validated input:invalid,
.was-validated textarea:invalid {
  border-color: #e11d48;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 11px;
}

.field-error {
  min-height: 0;
  margin: 5px 0 0;
  color: #be123c;
  font-size: 12px;
}

.field-error:empty {
  display: none;
}

.section-error {
  margin: -20px 0 18px 56px;
}

.letter-editor {
  position: relative;
  margin-bottom: 22px;
  border: 1px solid #eadfdc;
  border-radius: 10px;
  padding: 28px;
  background: #fffcfb;
  animation: editor-in 0.35s ease both;
}

@keyframes editor-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.letter-editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee4e1;
}

.letter-number {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.letter-number span {
  margin-right: 7px;
  color: var(--rose);
  font-size: 16px;
}

.icon-button {
  border: 0;
  padding: 4px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
}

.icon-button:hover {
  color: var(--rose-dark);
}

.date-field {
  max-width: 360px;
}

.date-field small {
  display: block;
  margin-top: 7px;
  color: #94a3b8;
  font-size: 11px;
}

.add-letter-button {
  width: 100%;
  min-height: 58px;
  border: 1px dashed #d8b9bd;
  border-radius: 9px;
  background: #fffafa;
  color: var(--rose-dark);
  cursor: pointer;
  font-weight: 600;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.add-letter-button:hover {
  border-color: var(--rose);
  background: var(--rose-soft);
}

.add-letter-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.letter-limit {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 11px;
  text-align: right;
}

.submit-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 6px 0;
}

.button-submit {
  min-width: 235px;
}

/* Página de confirmación */
.thanks-main,
.error-main {
  display: grid;
  min-height: calc(100vh - 77px);
  place-items: center;
  padding: 70px 0 100px;
  background:
    radial-gradient(circle at 50% 30%, #fff1f2, transparent 42%),
    var(--background);
}

.thanks-wrap {
  max-width: 760px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: white;
  font-size: 25px;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.25);
}

.thanks-wrap h1 {
  font-size: clamp(40px, 5vw, 58px);
}

.thanks-wrap > p {
  max-width: 610px;
  margin: 0 auto 30px;
  color: var(--slate-muted);
  font-size: 17px;
}

.share-panel {
  margin: 35px 0 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: left;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.copy-row input {
  overflow: hidden;
  color: #475569;
  text-overflow: ellipsis;
}

.copy-status {
  min-height: 18px;
  margin: 6px 0 0;
  color: #15803d;
  font-size: 12px;
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.text-button {
  font-size: 14px;
}

.privacy-note {
  display: flex;
  max-width: 600px;
  gap: 14px;
  margin: 25px auto;
  padding: 17px 20px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  text-align: left;
}

.privacy-note > span {
  color: var(--rose);
  font-size: 23px;
}

.privacy-note p {
  margin: 2px 0 0;
  font-size: 13px;
}

/* Experiencia del regalo */
.gift-page {
  background: var(--cream);
}

.gift-cover {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 100svh;
  place-items: center;
  padding: 80px 0;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(244, 63, 94, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(159, 18, 57, 0.07),
      transparent 22%
    ),
    #fffaf6;
}

.gift-cover-pattern::before,
.gift-cover-pattern::after {
  position: absolute;
  border: 1px solid rgba(159, 18, 57, 0.1);
  border-radius: 50%;
  content: "";
}

.gift-cover-pattern::before {
  top: -260px;
  left: -200px;
  width: 520px;
  height: 520px;
}

.gift-cover-pattern::after {
  right: -200px;
  bottom: -280px;
  width: 600px;
  height: 600px;
}

.gift-brand {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 2;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  transform: translateX(-50%);
}

.gift-brand span,
.gift-brand em {
  color: var(--rose);
}

.gift-cover-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.gift-overline {
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.gift-cover h1 {
  margin: 10px 0;
  color: var(--rose-deep);
  font-size: clamp(58px, 10vw, 105px);
  font-style: italic;
}

.cover-divider,
.dialog-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 170px;
  margin: 24px auto;
  color: var(--rose);
}

.cover-divider::before,
.cover-divider::after,
.dialog-divider::before,
.dialog-divider::after {
  flex: 1;
  border-top: 1px solid #e9c9cc;
  content: "";
}

.gift-cover h2 {
  margin: 22px auto;
  font-size: clamp(30px, 4vw, 48px);
}

.intro-message {
  max-width: 680px;
  margin: 0 auto;
  color: #4d5563;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  font-style: italic;
  line-height: 1.85;
}

.gift-from {
  margin-top: 25px;
  color: #64748b;
  font-size: 14px;
}

.gift-from strong {
  color: var(--slate);
  font-family: var(--serif);
  font-size: 18px;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  color: #7f6b70;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue i {
  font-size: 20px;
  font-style: normal;
  animation: float-down 1.8s ease-in-out infinite;
}

@keyframes float-down {
  50% {
    transform: translateY(6px);
  }
}

.gift-letters {
  min-height: 100vh;
  padding: 110px 0 80px;
  background: #f7f1ed;
}

.gift-heading p {
  color: var(--slate-muted);
}

.envelopes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gift-envelope-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid #e6d9d4;
  border-radius: 10px;
  padding: 28px 25px 25px;
  background: #fffdfb;
  box-shadow: 0 14px 40px rgba(74, 48, 50, 0.07);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gift-envelope-card:hover {
  box-shadow: 0 22px 55px rgba(74, 48, 50, 0.12);
  transform: translateY(-5px);
}

.envelope-index {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #dbcfd0;
  font-family: var(--serif);
  font-size: 27px;
}

.envelope-art {
  position: relative;
  width: 175px;
  height: 118px;
  margin: 26px auto 28px;
  border: 1px solid #e2c5c8;
  border-radius: 4px;
  background: #fff4f3;
  transition: transform 0.4s ease;
}

.envelope-art::before,
.envelope-art::after {
  position: absolute;
  bottom: -1px;
  width: 122px;
  height: 1px;
  background: #e2c5c8;
  content: "";
}

.envelope-art::before {
  left: -8px;
  transform: rotate(31deg);
  transform-origin: left;
}
.envelope-art::after {
  right: -8px;
  transform: rotate(-31deg);
  transform-origin: right;
}

.envelope-flap {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 120px;
  height: 120px;
  border-right: 1px solid #e2c5c8;
  border-bottom: 1px solid #e2c5c8;
  background: #fff8f5;
  transform: translate(-50%, -60px) rotate(45deg);
  transform-origin: bottom right;
  transition: transform 0.45s ease;
}

.envelope-seal {
  position: absolute;
  z-index: 4;
  top: 46px;
  left: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: white;
  font-size: 12px;
  transform: translateX(-50%);
  transition:
    opacity 0.25s,
    transform 0.35s;
}

.is-opening .envelope-flap {
  transform: translate(-50%, -63px) rotate(45deg) rotate3d(1, -1, 0, 155deg);
}

.is-opening .envelope-seal {
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
}

.gift-envelope-card h3 {
  min-height: 58px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
}

.unlock-info {
  min-height: 48px;
  margin: 0 0 17px;
  color: #7b7275;
  font-size: 13px;
}

.unlock-info strong {
  color: #6b5258;
}

.button-envelope {
  min-height: 40px;
  border-color: var(--rose);
  padding: 9px 18px;
  background: transparent;
  color: var(--rose-dark);
  font-size: 13px;
}

.button-envelope:hover {
  background: var(--rose);
  color: white;
}

.gift-envelope-card.is-locked {
  background: #f3efed;
  box-shadow: none;
}

.is-locked .envelope-art {
  filter: grayscale(0.65);
  opacity: 0.65;
}

.is-locked .envelope-seal {
  background: #8f8585;
}

.locked-label {
  color: #8c7c80;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gift-signature {
  margin: 55px 0 0;
  color: #8c777b;
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
}

.gift-signature span {
  color: var(--rose);
}

.letter-dialog {
  width: min(700px, calc(100% - 28px));
  max-height: min(86vh, 850px);
  overflow: visible;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  color: var(--slate);
}

.letter-dialog::backdrop {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-paper {
  position: relative;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: clamp(40px, 8vw, 70px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(0deg, #fffaf5 0, #fffaf5 31px, #f2e7de 32px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: letter-reveal 0.45s ease both;
}

@keyframes letter-reveal {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 17px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #64748b;
  cursor: pointer;
  font-size: 25px;
}

.dialog-eyebrow {
  color: var(--rose-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dialog-paper h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(29px, 5vw, 42px);
  line-height: 1.2;
}

.dialog-message {
  color: #374151;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.95;
  text-align: left;
  white-space: pre-wrap;
}

.dialog-from {
  margin: 40px 0 0;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-style: italic;
  text-align: right;
}

/* Packs, asistente y temas */
.packs-picker {
  width: min(1080px, calc(100% - 40px));
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(51, 35, 38, 0.06);
}

.packs-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 25px;
}

.packs-heading h2 {
  margin: 7px 0 4px;
  font-family: var(--serif);
  font-size: 30px;
}

.packs-heading p {
  max-width: 690px;
  margin: 0;
  color: var(--slate-muted);
}

.pack-loaded {
  flex: none;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 600;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pack-option {
  display: flex;
  min-height: 152px;
  flex-direction: column;
  border: 1px solid #e7deda;
  border-radius: 9px;
  padding: 18px;
  background: #fffdfc;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.pack-option:hover,
.pack-option.is-selected {
  border-color: var(--rose);
  box-shadow: 0 12px 28px rgba(100, 45, 55, 0.09);
  transform: translateY(-3px);
}

.pack-option.is-selected {
  background: var(--rose-soft);
}

.pack-option strong {
  font-family: var(--serif);
  font-size: 18px;
}

.pack-option > span {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.pack-option small {
  margin-top: auto;
  padding-top: 12px;
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 700;
}

.writing-assistant-slot {
  margin: -9px 0 24px;
}

.writing-assistant {
  border: 1px solid #eadfdc;
  border-radius: 8px;
  background: #fff;
}

.assistant-toggle {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 10px 14px;
  background: transparent;
  color: var(--rose-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.assistant-toggle::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
}

.assistant-toggle[aria-expanded="true"]::after {
  content: "−";
}

.assistant-panel {
  border-top: 1px solid #eee5e2;
  padding: 15px;
}

.assistant-panel[hidden] {
  display: none;
}

.assistant-panel > p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
}

.intention-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.intention-chip {
  border: 1px solid #e2d6d4;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fffafa;
  color: #6b5560;
  cursor: pointer;
  font-size: 11px;
}

.intention-chip:hover,
.intention-chip.is-active {
  border-color: var(--rose);
  background: var(--rose);
  color: white;
}

.phrase-suggestions {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.phrase-suggestion {
  border: 0;
  border-left: 2px solid #fda4af;
  padding: 8px 11px;
  background: #fff7f7;
  color: #475569;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  text-align: left;
}

.phrase-suggestion:hover {
  border-left-color: var(--rose);
  background: var(--rose-soft);
  color: var(--rose-deep);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.theme-option {
  position: relative;
  display: flex;
  min-height: 145px;
  flex-direction: column;
  border: 1px solid #e3dcd9;
  border-radius: 9px;
  padding: 14px;
  background: white;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.theme-option:has(input:checked) {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.08);
  transform: translateY(-2px);
}

.theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-preview {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: var(--swatch-bg, #fff1f2);
}

.theme-preview i {
  width: 16px;
  height: 22px;
  border-radius: 3px;
  background: var(--swatch-paper, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.theme-preview i:nth-child(2) {
  height: 30px;
  background: var(--swatch-accent, #f43f5e);
}

.theme-option strong {
  font-size: 13px;
}

.theme-option small {
  color: #7c8796;
  font-size: 10px;
  line-height: 1.4;
}

.theme-swatch-nostalgico {
  --swatch-bg: #efe3d0;
  --swatch-paper: #fffaf0;
  --swatch-accent: #a16207;
}
.theme-swatch-minimalista {
  --swatch-bg: #f1f5f9;
  --swatch-paper: #fff;
  --swatch-accent: #334155;
}
.theme-swatch-cumpleanos {
  --swatch-bg: #f5f3ff;
  --swatch-paper: #fff;
  --swatch-accent: #7c3aed;
}
.theme-swatch-amistad {
  --swatch-bg: #ecfeff;
  --swatch-paper: #fff;
  --swatch-accent: #0891b2;
}
.theme-swatch-familiar {
  --swatch-bg: #f0fdf4;
  --swatch-paper: #fff;
  --swatch-accent: #4d7c0f;
}
.theme-swatch-elegante-oscuro {
  --swatch-bg: #172033;
  --swatch-paper: #334155;
  --swatch-accent: #d6b46c;
}

/* Temas del regalo */
.gift-page {
  --gift-accent: #f43f5e;
  --gift-deep: #9f1239;
  --gift-text: #0f172a;
  --gift-muted: #6b5c62;
  --gift-cover-bg: #fffaf6;
  --gift-section-bg: #f7f1ed;
  --gift-paper: #fffdfb;
  --gift-envelope: #fff4f3;
  --gift-line: #e2c5c8;
}

.gift-page.theme-nostalgico {
  --gift-accent: #b7791f;
  --gift-deep: #7c4a14;
  --gift-text: #33261d;
  --gift-muted: #766454;
  --gift-cover-bg: #f8efdf;
  --gift-section-bg: #ede0ca;
  --gift-paper: #fffaf0;
  --gift-envelope: #f3dfbd;
  --gift-line: #c8a97a;
}
.gift-page.theme-minimalista {
  --gift-accent: #475569;
  --gift-deep: #0f172a;
  --gift-text: #0f172a;
  --gift-muted: #64748b;
  --gift-cover-bg: #f8fafc;
  --gift-section-bg: #eef2f6;
  --gift-paper: #fff;
  --gift-envelope: #f1f5f9;
  --gift-line: #cbd5e1;
}
.gift-page.theme-cumpleanos {
  --gift-accent: #7c3aed;
  --gift-deep: #5b21b6;
  --gift-text: #26164f;
  --gift-muted: #706583;
  --gift-cover-bg: #faf5ff;
  --gift-section-bg: #f3e8ff;
  --gift-paper: #fff;
  --gift-envelope: #f5f3ff;
  --gift-line: #c4b5fd;
}
.gift-page.theme-amistad {
  --gift-accent: #0891b2;
  --gift-deep: #155e75;
  --gift-text: #123544;
  --gift-muted: #557580;
  --gift-cover-bg: #f0fdff;
  --gift-section-bg: #e3f7f7;
  --gift-paper: #fff;
  --gift-envelope: #ecfeff;
  --gift-line: #9fd7dd;
}
.gift-page.theme-familiar {
  --gift-accent: #4d7c0f;
  --gift-deep: #365314;
  --gift-text: #27351f;
  --gift-muted: #65715d;
  --gift-cover-bg: #fafdf4;
  --gift-section-bg: #edf3e2;
  --gift-paper: #fffef8;
  --gift-envelope: #f2f8e9;
  --gift-line: #bdcf9e;
}
.gift-page.theme-elegante-oscuro {
  --gift-accent: #d6b46c;
  --gift-deep: #f1d594;
  --gift-text: #f8fafc;
  --gift-muted: #bec5d1;
  --gift-cover-bg: #111827;
  --gift-section-bg: #0b1220;
  --gift-paper: #1e293b;
  --gift-envelope: #28364a;
  --gift-line: #6f6144;
  color: var(--gift-text);
}

.gift-page .gift-cover {
  background:
    radial-gradient(
      circle at 10% 20%,
      color-mix(in srgb, var(--gift-accent) 10%, transparent),
      transparent 24%
    ),
    radial-gradient(
      circle at 90% 80%,
      color-mix(in srgb, var(--gift-deep) 8%, transparent),
      transparent 22%
    ),
    var(--gift-cover-bg);
}
.gift-page .gift-cover h1,
.gift-page .gift-brand span,
.gift-page .gift-brand em,
.gift-page .dialog-eyebrow,
.gift-page .dialog-from {
  color: var(--gift-deep);
}
.gift-page .gift-cover h2,
.gift-page .gift-from strong,
.gift-page .gift-envelope-card h3 {
  color: var(--gift-text);
}
.gift-page .gift-overline,
.gift-page .envelope-seal,
.gift-page .button-envelope:hover {
  background-color: var(--gift-accent);
}
.gift-page .gift-overline {
  background: none;
  color: var(--gift-accent);
}
.gift-page .cover-divider,
.gift-page .dialog-divider,
.gift-page .gift-signature span {
  color: var(--gift-accent);
}
.gift-page .gift-letters {
  background: var(--gift-section-bg);
}
.gift-page .gift-envelope-card {
  border-color: var(--gift-line);
  background: var(--gift-paper);
}
.gift-page .envelope-art,
.gift-page .envelope-flap {
  border-color: var(--gift-line);
  background: var(--gift-envelope);
}
.gift-page .envelope-art::before,
.gift-page .envelope-art::after {
  background: var(--gift-line);
}
.gift-page .envelope-seal {
  background: var(--gift-accent);
}
.gift-page .button-envelope {
  border-color: var(--gift-accent);
  color: var(--gift-deep);
}
.gift-page .intro-message,
.gift-page .gift-from,
.gift-page .scroll-cue,
.gift-page .gift-heading p,
.gift-page .unlock-info,
.gift-page .gift-signature {
  color: var(--gift-muted);
}
.gift-page .letter-dialog .dialog-paper {
  background-color: var(--gift-paper);
}
.theme-elegante-oscuro .gift-envelope-card.is-locked {
  background: #151e2d;
}
.theme-elegante-oscuro .section-heading h2,
.theme-elegante-oscuro .gift-heading h2 {
  color: var(--gift-text);
}

/* Landings SEO */
.seo-hero {
  padding: 35px 0 92px;
  background:
    radial-gradient(circle at 80% 40%, #fff1f2, transparent 32%),
    var(--background);
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 55px;
  color: #7b8492;
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--rose-dark);
}

.seo-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 90px;
}

.seo-hero h1 {
  margin: 14px 0 24px;
  font-family: var(--serif);
  font-size: clamp(45px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.seo-hero-grid > div > p {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--slate-muted);
  font-size: 18px;
}

.seo-pack-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid #eadbd7;
  border-radius: 14px;
  padding: 34px;
  background: white;
  box-shadow: var(--shadow);
}

.seo-pack-preview::after {
  position: absolute;
  top: -100px;
  right: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--rose-soft);
  content: "";
}

.seo-pack-preview > span {
  position: relative;
  z-index: 1;
  color: var(--rose-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.seo-pack-preview h2 {
  position: relative;
  z-index: 1;
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 30px;
}

.seo-pack-preview > p {
  color: #64748b;
  font-size: 14px;
}

.mini-envelopes {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.mini-envelopes div {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #eee2de;
  border-radius: 7px;
  padding: 11px 13px;
  background: #fffaf8;
  font-family: var(--serif);
  font-size: 13px;
}

.mini-envelopes span {
  color: var(--rose);
}

.seo-content-section {
  background: white;
}
.seo-reading-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 90px;
  align-items: center;
}
.seo-reading-grid h2,
.faq-wrap h2,
.related-section h2,
.seo-final-cta h2 {
  margin: 12px 0 20px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
}
.seo-reading-grid article p {
  color: var(--slate-muted);
  font-size: 17px;
}
.seo-tip-card {
  border-left: 3px solid var(--rose);
  padding: 25px 28px;
  background: var(--rose-pale);
}
.seo-tip-card strong {
  font-family: var(--serif);
  font-size: 20px;
}
.seo-tip-card ol {
  margin: 17px 0 0;
  padding-left: 20px;
  color: var(--slate-muted);
}
.seo-tip-card li + li {
  margin-top: 12px;
}
.seo-ideas-section {
  background: #f8f4f1;
}
.seo-ideas-section .section-heading p {
  color: var(--slate-muted);
}
.seo-examples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
.seo-examples-grid article {
  min-height: 175px;
  border: 1px solid #e6d9d4;
  border-radius: 9px;
  padding: 24px;
  background: white;
}
.seo-examples-grid span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
}
.seo-examples-grid h3 {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 20px;
}
.center-action {
  margin-top: 35px;
  text-align: center;
}
.seo-how-section {
  background: white;
}
.seo-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.seo-how-grid > div {
  text-align: center;
}
.seo-how-grid > div > strong {
  display: grid;
  width: 45px;
  height: 45px;
  margin: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: white;
}
.seo-how-grid h3 {
  margin: 17px 0 7px;
  font-family: var(--serif);
  font-size: 22px;
}
.seo-how-grid p {
  margin: 0;
  color: var(--slate-muted);
  font-size: 14px;
}
.faq-section {
  background: #f8f4f1;
}
.faq-wrap {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}
.faq-list details {
  border-bottom: 1px solid #d9cfca;
}
.faq-list details:first-child {
  border-top: 1px solid #d9cfca;
}
.faq-list summary {
  position: relative;
  padding: 22px 38px 22px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  list-style: none;
}
.faq-list summary::after {
  position: absolute;
  right: 5px;
  content: "+";
  color: var(--rose);
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list p {
  margin: -7px 0 22px;
  color: var(--slate-muted);
}
.related-section {
  padding: 85px 0;
  background: white;
}
.related-section h2 {
  margin-top: 0;
  text-align: center;
}
.related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.related-links a {
  position: relative;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
}
.related-links a:hover {
  border-color: var(--rose);
  transform: translateY(-2px);
}
.related-links span {
  color: var(--rose-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.related-links strong {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
}
.related-links i {
  position: absolute;
  right: 20px;
  bottom: 15px;
  color: var(--rose);
  font-style: normal;
}
.seo-final-cta {
  padding: 95px 0;
  background: var(--rose-deep);
  color: white;
  text-align: center;
}
.seo-final-cta .eyebrow {
  color: #fecdd3;
}
.seo-final-cta h2 {
  max-width: 780px;
  margin-inline: auto;
}

/* Guías enlazadas desde la portada */
.guides-section {
  background: #fff;
}
.guides-section .section-heading p {
  color: var(--slate-muted);
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.guide-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  background: #fffdfc;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.guide-card:hover {
  border-color: #f7a1ae;
  box-shadow: 0 18px 40px rgba(70, 40, 45, 0.08);
  transform: translateY(-4px);
}
.guide-card > span {
  color: var(--rose-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guide-card h3 {
  margin: 12px 0 9px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
}
.guide-card p {
  margin: 0;
  color: var(--slate-muted);
  font-size: 13px;
}
.guide-card strong {
  margin-top: auto;
  padding-top: 18px;
  color: var(--rose-dark);
  font-size: 12px;
}
.guide-card i {
  margin-left: 5px;
  font-style: normal;
}

/* Error */
.error-content {
  max-width: 600px;
  text-align: center;
}

.error-code {
  color: #efdfe0;
  font-family: var(--serif);
  font-size: 100px;
  font-weight: 700;
  line-height: 0.8;
}

.broken-heart {
  margin-top: 20px;
  color: var(--rose);
  font-size: 38px;
}

.error-content h1 {
  font-size: 43px;
}

.error-content p {
  margin: -8px auto 28px;
  color: var(--slate-muted);
}

@media (max-width: 900px) {
  .hero {
    padding-top: 70px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy h1,
  .hero-lead {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    width: min(520px, 100%);
    min-height: 420px;
    margin: auto;
  }
  .steps-grid {
    gap: 20px;
  }
  .step + .step::before {
    display: none;
  }
  .ideas-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .envelopes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .packs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .themes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-hero-grid,
  .seo-reading-grid,
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .seo-examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-hero-grid > div:first-child {
    text-align: center;
  }
  .seo-hero-grid .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .container,
  .narrow-container,
  .form-container {
    width: min(100% - 28px, 1160px);
  }
  .site-header {
    position: static;
  }
  .nav-wrap {
    min-height: 66px;
  }
  .brand {
    font-size: 19px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .site-nav > a:not(.button) {
    display: none;
  }
  .button-small {
    min-height: 37px;
    padding: 8px 12px;
  }
  .hero {
    min-height: auto;
    padding: 65px 0 70px;
  }
  .hero-copy h1 {
    font-size: clamp(41px, 12vw, 55px);
  }
  .hero-lead {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 17px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-visual {
    min-height: 340px;
  }
  .envelope-demo-main {
    top: 55px;
    right: 0;
    height: 240px;
  }
  .envelope-demo-back {
    left: 0;
    width: 72%;
    height: 175px;
  }
  .visual-note {
    display: none;
  }
  .demo-seal {
    width: 44px;
    height: 44px;
    margin-bottom: 11px;
  }
  .envelope-demo-main strong {
    font-size: 22px;
  }
  .promise-grid {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }
  .promise-grid p {
    padding: 13px 0;
  }
  .promise-grid p + p {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .section {
    padding: 75px 0;
  }
  .section-heading {
    margin-bottom: 42px;
  }
  .section-heading h2,
  .ideas-layout h2,
  .final-cta h2 {
    font-size: 38px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .step-number {
    right: 18%;
  }
  .idea-list div {
    min-height: 70px;
    font-size: 17px;
    line-height: 1.3;
  }
  .footer-wrap {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .create-intro {
    padding: 52px 0 38px;
  }
  .create-intro h1 {
    font-size: 41px;
  }
  .form-section {
    padding: 25px 18px;
  }
  .form-section-heading {
    gap: 13px;
  }
  .form-section-heading h2 {
    font-size: 23px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .letter-editor {
    padding: 20px 16px;
  }
  .submit-section {
    flex-direction: column;
    align-items: stretch;
    padding-inline: 0;
    text-align: center;
  }
  .button-submit {
    width: 100%;
  }
  .section-error {
    margin-left: 0;
  }
  .packs-picker {
    padding: 23px 17px;
  }
  .packs-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .packs-grid,
  .themes-grid,
  .guides-grid {
    grid-template-columns: 1fr;
  }
  .pack-option {
    min-height: 125px;
  }
  .theme-option {
    min-height: 132px;
  }
  .seo-hero {
    padding-bottom: 65px;
  }
  .breadcrumbs {
    margin-bottom: 38px;
    overflow: hidden;
    white-space: nowrap;
  }
  .breadcrumbs span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .seo-hero h1 {
    font-size: 42px;
  }
  .seo-hero-grid > div > p {
    font-size: 16px;
  }
  .seo-hero-grid .hero-actions {
    align-items: stretch;
  }
  .seo-pack-preview {
    padding: 25px 19px;
  }
  .seo-examples-grid,
  .seo-how-grid,
  .related-links {
    grid-template-columns: 1fr;
  }
  .seo-examples-grid article {
    min-height: 135px;
  }
  .seo-examples-grid h3 {
    margin-top: 20px;
  }
  .faq-wrap {
    gap: 25px;
  }
  .related-section {
    padding: 65px 0;
  }
  .seo-final-cta {
    padding: 75px 0;
  }

  .thanks-main {
    padding: 55px 0 75px;
  }
  .thanks-wrap h1 {
    font-size: 40px;
  }
  .share-panel {
    padding: 20px 16px;
  }
  .copy-row {
    grid-template-columns: 1fr;
  }
  .copy-row .button {
    width: 100%;
  }
  .share-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .gift-cover {
    min-height: 100svh;
    padding: 85px 0 60px;
  }
  .gift-brand {
    width: max-content;
  }
  .gift-cover h1 {
    font-size: clamp(55px, 18vw, 78px);
  }
  .intro-message {
    font-size: 17px;
  }
  .gift-letters {
    padding: 75px 0 55px;
  }
  .envelopes-grid {
    grid-template-columns: 1fr;
  }
  .gift-envelope-card {
    min-height: 370px;
  }
  .dialog-paper {
    padding: 48px 25px 40px;
  }
  .dialog-message {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
