:root {
  --cream: #f6f0ec;
  --paper: #fffdfb;
  --blush: #f1e3df;
  --cocoa: #5e4a42;
  --muted: #78635d;
  --rose: #b97269;
  --rose-deep: #8f554e;
  --line: #e5d6d1;
  --shadow: 0 14px 32px rgba(94, 74, 66, 0.07);
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--cocoa); font-family: Heebo, Arial, sans-serif; touch-action: manipulation; -webkit-tap-highlight-color: rgba(185, 114, 105, .16); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(185, 114, 105, .58); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 10; top: 10px; inset-inline-start: 10px; transform: translateY(-150%); padding: 9px 13px; border-radius: 999px; background: var(--cocoa); color: #fff; font-size: 14px; text-decoration: none; transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-shell { width: min(100%, 640px); min-height: 100vh; margin: auto; padding: 22px 22px 44px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--cocoa); font-family: "Frank Ruhl Libre", serif; font-size: 22px; font-weight: 600; text-decoration: none; }
.brand-mark { display: block; width: 31px; height: 31px; object-fit: contain; }
.fair-label { color: var(--muted); font-size: 13px; }

.hero, .flow-view { padding-top: clamp(54px, 12vw, 86px); }
.eyebrow { margin: 0 0 13px; color: var(--rose-deep); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
h1, h2 { margin: 0; font-family: "Frank Ruhl Libre", serif; font-weight: 500; line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(40px, 11vw, 58px); letter-spacing: -.025em; }
h2 { font-size: clamp(34px, 9vw, 46px); letter-spacing: -.02em; }
.intro { max-width: 440px; margin: 18px 0 31px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.gender-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -4px 0 22px; color: var(--muted); font-size: 14px; }
.gender-buttons { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,251,.7); }
.gender-button { min-height: 35px; padding: 5px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; }
.gender-button.is-selected { background: var(--blush); color: var(--rose-deep); font-weight: 600; }

.topic-list { display: grid; gap: 11px; }
.topic-card { width: 100%; min-height: 94px; display: grid; grid-template-columns: 34px 1fr 24px; gap: 12px; align-items: center; padding: 17px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,251,.74); color: var(--cocoa); text-align: start; transition: background .2s, border .2s, transform .2s; }
.topic-card:hover:not(:disabled) { border-color: var(--rose); transform: translateY(-1px); }
.topic-card.is-selected { background: var(--blush); border-color: var(--rose); }
.topic-card.is-disabled { cursor: default; opacity: .62; }
.topic-card:disabled { cursor: not-allowed; }
.topic-number { align-self: start; padding-top: 2px; color: var(--rose-deep); font-family: "Frank Ruhl Libre", serif; font-size: 17px; }
.topic-content { display: grid; gap: 3px; }
.topic-content strong { font-size: 18px; font-weight: 600; }
.topic-content small { color: var(--muted); font-size: 14px; }
.choice-dot { width: 21px; height: 21px; border: 1px solid #cdb7b1; border-radius: 50%; }
.is-selected .choice-dot { border: 6px solid var(--rose); }
.coming-soon { padding: 4px 8px; border-radius: 999px; background: #eee4df; color: var(--muted); font-size: 11px; }

.selection-bar { position: sticky; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 12px 12px 12px 15px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,251,.9); box-shadow: var(--shadow); backdrop-filter: blur(12px); color: var(--muted); font-size: 14px; }
.selection-bar #selection-summary { line-height: 1.55; }
.selection-limit-note { margin: 10px 4px 0; color: var(--rose-deep); font-size: 13px; font-weight: 500; line-height: 1.5; }
.original-price-inline { margin-inline-end: 3px; color: #b65252; font-weight: 600; text-decoration-thickness: 1.5px; }
.primary-button { min-height: 48px; padding: 10px 23px; border: 0; border-radius: 999px; background: var(--rose); color: #fff; font-weight: 600; box-shadow: 0 8px 18px rgba(157, 98, 91, .18); transition: background .2s, transform .2s; }
.primary-button:hover:not(:disabled) { background: var(--rose-deep); transform: translateY(-1px); }
.primary-button:disabled { background: #d8c8c3; box-shadow: none; cursor: not-allowed; }
.full-width { width: 100%; margin-top: 22px; }
.text-button { padding: 8px 0; border: 0; background: none; color: var(--rose-deep); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.back-button { margin-bottom: 42px; }
.center-button { display: block; margin: 21px auto 0; }

form { display: grid; gap: 18px; margin-top: 30px; }
.form-section { display: grid; gap: 18px; }
.form-section-title { margin: 0 0 -4px; color: var(--rose-deep); font-size: 15px; font-weight: 600; }
.form-step { margin: -8px 0 -2px; color: var(--rose); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.birth-name-note { margin: -3px 0 1px; padding: 12px 14px; border-inline-start: 3px solid var(--rose); border-radius: 10px; background: rgba(185,114,105,.09); color: var(--cocoa); font-size: 13px; line-height: 1.65; }
.birth-name-note strong { color: var(--rose-deep); }
label { display: grid; gap: 8px; color: var(--cocoa); font-size: 15px; font-weight: 500; }
input { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--cocoa); text-align: start; }
input:focus-visible, select:focus-visible { border-color: var(--rose); outline: 3px solid rgba(185,114,105,.2); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: #9d4f4a; background: #fff9f8; }
select { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--cocoa); direction: rtl; }
.birth-date-group { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.birth-date-group legend { padding: 0; color: var(--cocoa); font-size: 15px; font-weight: 500; }
.birth-date-inputs { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; direction: rtl; }
.birth-date-inputs label { gap: 6px; color: var(--muted); font-size: 13px; }
.birth-date-inputs input { direction: ltr; text-align: center; padding: 10px 7px; font-variant-numeric: tabular-nums; }
.date-paste-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.relationship-details { display: grid; gap: 18px; padding: 22px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,251,.55); }
.relationship-details-title { margin: 0; color: var(--rose-deep); font-size: 15px; font-weight: 600; }
.relationship-step-intro { display: grid; gap: 5px; padding: 2px 0 17px; border-bottom: 1px solid var(--line); }
.relationship-step-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.relationship-step-intro .relationship-step-kicker { color: var(--rose); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.relationship-step-intro .relationship-details-title { color: var(--rose-deep); font-size: 18px; }
.form-error { margin: 0; color: #9d4f4a; font-size: 14px; }
.local-preview-note { margin: 2px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.local-message-notice { margin-top: 18px; padding: 11px 13px; border: 1px solid #e5d6d1; border-radius: 12px; background: #f8efea; color: var(--cocoa); font-size: 13px; line-height: 1.6; text-align: center; }
.payment-card, .offer-card { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--blush); }
.payment-card { display: grid; gap: 8px; margin-top: 28px; }
.payment-card span { color: var(--muted); }
.payment-price-row { display: flex; align-items: baseline; gap: 10px; }
.payment-card .payment-price-row strong { font-family: "Frank Ruhl Libre", serif; font-size: 46px; font-weight: 500; }
.original-price { color: #b65252; font-family: "Frank Ruhl Libre", serif; font-size: 24px; font-weight: 600; text-decoration-thickness: 2px; }
.payment-card p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.terms-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 8px; color: var(--cocoa); font-size: 14px; line-height: 1.55; cursor: pointer; }
.terms-consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--rose-deep); }
.terms-consent a { color: var(--rose-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.terms-error { margin: 0 !important; color: #9d4f4a !important; font-weight: 600; }
.bit-pay-link.is-disabled { pointer-events: none; opacity: .5; cursor: not-allowed; }
.payment-method-choice { margin: 8px 0 0; padding: 0; border: 0; }
.payment-method-choice legend { margin-bottom: 10px; color: var(--cocoa); font-weight: 700; }
.payment-method-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.payment-method-option { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--cocoa); cursor: pointer; font-size: 14px; font-weight: 600; }
.payment-method-option:has(input:checked) { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.payment-method-option input { width: 17px; height: 17px; accent-color: var(--rose-deep); }
.payment-steps { display: grid; gap: 4px; margin: 5px 0 1px; padding: 0 22px 0 0; color: var(--cocoa); font-size: 14px; line-height: 1.65; }
.payment-card .payment-note { margin-top: -1px; color: var(--rose-deep); font-weight: 600; }
.payment-card .bit-phone { color: var(--cocoa); font-family: Heebo, Arial, sans-serif; font-size: 26px; font-weight: 600; letter-spacing: .04em; }
.payment-card a[href^="tel"], .payment-card a[x-apple-data-detectors] { color: var(--cocoa) !important; text-decoration: none !important; }
.bit-pay-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 4px; padding: 8px 18px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.bit-pay-link:hover { background: var(--rose-deep); transform: translateY(-1px); }
.copy-number { justify-self: start; min-height: 36px; padding: 5px 11px; border: 1px solid var(--rose); border-radius: 999px; background: transparent; color: var(--rose-deep); font-size: 13px; font-weight: 600; }
.copy-confirm { min-height: 20px; color: var(--rose-deep) !important; font-size: 13px !important; }

.message-view { padding-top: 48px; }
.message-card { margin-top: 20px; padding: 27px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.message-card:first-child { margin-top: 30px; }
.message-card h3 { margin: 0 0 17px; color: var(--rose-deep); font-family: "Frank Ruhl Libre", serif; font-size: 29px; font-weight: 500; }
.message-card > h3 + p { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.8; }
.message-card h4 { margin: 28px 0 10px; padding-top: 22px; border-top: 1px solid rgba(224, 203, 195, .78); color: var(--cocoa); font-size: 16px; }
.message-card h4::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 8px; border-radius: 999px; background: var(--rose); vertical-align: middle; }
.message-card p { margin: 0 0 14px; color: #6d5952; font-size: 16px; line-height: 1.85; }
.message-card .data-line { color: var(--muted); font-size: 13px; }
.message-card .direction { margin: 18px 0 0; padding: 13px 14px; border-inline-start: 2px solid var(--rose); background: #fbf5f2; color: var(--cocoa); font-size: 15px; }
.message-card .personal-note { margin: 4px 0 22px; padding: 14px 15px; border-radius: 12px; background: #f8efea; color: var(--cocoa); font-size: 15px; line-height: 1.75; }
.message-card .quiet-tag { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.message-compass { display: grid; gap: 8px; margin: 22px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(241, 227, 223, .68); }
.message-compass h3 { margin: 0; color: var(--rose-deep); font-family: "Frank Ruhl Libre", serif; font-size: 25px; font-weight: 500; }
.message-compass ul { display: grid; gap: 7px; margin: 0; padding: 0 18px 0 0; color: var(--cocoa); font-size: 15px; line-height: 1.65; }
.access-link-card { display: grid; gap: 8px; margin-top: 24px; padding: 20px; border: 1px solid #c6ddd1; border-radius: 18px; background: #f7fbf8; }
.access-link-card p { margin: 0; color: var(--cocoa); font-size: 17px; font-weight: 600; }
.access-link-card small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.access-link-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.access-link-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 15px; border: 1px solid #4e8c70; border-radius: 999px; background: #4e8c70; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.access-link-button:hover { background: #3f765d; }
.access-link-button.is-secondary { background: transparent; color: #3f765d; }
.access-link-button.is-secondary:hover { background: #eaf4ee; }
.save-message { display: grid; gap: 11px; margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,251,.58); }
.save-message p { margin: 0; color: var(--cocoa); font-size: 16px; font-weight: 500; }
.save-message .save-message-hint { margin-top: -5px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.save-message-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.save-message-button { min-height: 40px; padding: 7px 15px; border: 1px solid var(--rose); border-radius: 999px; background: var(--rose); color: #fff; font: inherit; font-size: 14px; font-weight: 600; }
.save-message-button:hover { background: var(--rose-deep); }
.save-message-button.is-secondary { background: transparent; color: var(--rose-deep); }
.save-message-button.is-secondary:hover { background: var(--blush); }
.save-message small { min-height: 18px; color: var(--muted); font-size: 13px; }
.whatsapp-question { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding: 18px 2px; border-top: 1px solid var(--line); }
.whatsapp-question p { margin: 0; color: var(--cocoa); font-size: 16px; font-weight: 500; line-height: 1.65; }
.whatsapp-link { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 40px; padding: 7px 15px; border: 1px solid var(--rose); border-radius: 999px; color: var(--rose-deep); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.whatsapp-link:hover { background: var(--rose); color: #fff; }
.offer-card { display: grid; gap: 4px; margin-top: 24px; text-align: center; }
.offer-card p { margin: 0; color: var(--muted); }
.offer-card strong { font-family: "Frank Ruhl Libre", serif; font-size: 24px; font-weight: 500; }
.offer-card small { color: var(--rose-deep); }
.offer-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 13px; padding: 8px 18px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.offer-link:hover { background: var(--rose-deep); transform: translateY(-1px); }
.restart-message-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 22px 0 6px; padding: 10px 18px; border: 1px solid var(--rose); border-radius: 14px; background: transparent; color: var(--rose-deep); font: inherit; font-size: 15px; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.restart-message-button:hover { background: var(--blush); transform: translateY(-1px); }
.restart-message-button:focus-visible { outline: 3px solid rgba(185,114,105,.32); outline-offset: 3px; }
.is-hidden { display: none !important; }

@media (min-width: 680px) { .site-shell { padding-inline: 38px; } }
@media (max-width: 390px) { .selection-bar { align-items: stretch; flex-direction: column; } .selection-bar .primary-button { width: 100%; } }
@media (max-width: 390px) { .gender-choice { align-items: flex-start; flex-direction: column; gap: 8px; } }
@media (max-width: 460px) { .whatsapp-question { align-items: flex-start; flex-direction: column; gap: 10px; } }
@media (max-width: 460px) { .save-message-actions { display: grid; grid-template-columns: 1fr; } .save-message-button { width: 100%; } }
@media print {
  body, html { background: #fff; }
  .site-shell { width: 100%; max-width: none; padding: 0; }
  .topbar, .message-view > :not(#message-download-content) { display: none !important; }
  .message-view { display: block !important; padding: 0; }
  .message-card { break-inside: avoid; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
