@font-face {
  font-family: Fraunces;
  src: url('/fonts/fraunces-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fffaf4;
  --paper: #fffcf8;
  --rose: #f8e9e8;
  --line: #ecd6d3;
  --ink: #43232c;
  --muted: #76575b;
  --berry: #871f3d;
  --berry-dark: #641530;
  --spruce: #38594b;
  --serif: Fraunces, Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 20px 58px #6f293011;
  font: 100%/1.58 var(--sans);
  background: var(--cream);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 280px; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #ac4965;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 540; line-height: 1.08; }
h1, h2 { letter-spacing: -.046em; text-wrap: balance; }
h2 { font-size: clamp(2.28rem, 4.2vw, 4rem); }
h3 { font-size: 1.52rem; letter-spacing: -.025em; }
::selection { background: #f2bdc7; color: #4b182b; }

.wrap { width: min(1180px, calc(100% - 88px)); margin-inline: auto; }
.icon { width: 1.18em; height: 1.18em; flex: none; vertical-align: middle; }
.skip-link { position: fixed; z-index: 12; left: 16px; top: 14px; padding: 10px 16px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.announcement {
  display: flex; justify-content: center; align-items: center; gap: 15px;
  min-height: 34px; padding: 6px 14px;
  background: var(--berry-dark); color: #fff5ea;
  font-size: .785rem; font-weight: 650; text-align: center; letter-spacing: .065em;
}
.announcement span { color: #f7b7ad; line-height: 1; font-size: .725rem; }
.site-header { position: relative; z-index: 2; background: var(--cream); border-bottom: 1px solid #eeded5; }
.header-inner { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; width: fit-content; gap: 9px; line-height: 1; text-decoration: none; color: #491924; font: 660 1.41rem/1 var(--serif); letter-spacing: -.065em; }
.wordmark > span:last-child > span { color: var(--berry); }
.brand-icon { background: var(--berry); color: #fff2e7; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; }
.brand-icon .icon { width: 20px; height: 20px; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 39px); }
.main-nav a, .footer-links a { text-decoration: none; font-size: .9375rem; font-weight: 630; }
.main-nav a:hover, .footer-links a:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 13px; }
.language-menu { position: relative; }
.language-menu summary {
  list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; padding: 6px 9px;
  font-size: .875rem; font-weight: 720; color: #57343c; border: 1px solid transparent; border-radius: 9px;
}
.language-menu summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.language-menu[open] summary, .language-menu summary:hover { border-color: var(--line); background: var(--paper); }
.language-chevron { width: .85em; height: .85em; }
.language-menu ul { position: absolute; z-index: 3; right: 0; top: calc(100% + 8px); min-width: 148px; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.language-menu li a { display: block; padding: 8px 11px; border-radius: 7px; text-decoration: none; }
.language-menu li a:hover, .language-menu li a[aria-current] { background: var(--rose); color: var(--berry-dark); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: 10px; line-height: 1.25; text-align: center; text-decoration: none; font-weight: 710;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.button:not(:disabled):active { transform: translateY(1px); }
.button:disabled { opacity: .65; cursor: wait; }
.button--primary { background: var(--berry); color: #fff9f0; box-shadow: 0 6px 12px #64153019, inset 0 1px #ffffff1f; }
.button--primary:hover:not(:disabled) { background: var(--berry-dark); box-shadow: 0 8px 20px #64153026; }
.button--outline { background: #fffbf680; border-color: #e5c7c6; color: var(--berry-dark); }
.button--outline:hover { background: #f8e6e5; border-color: #d3a2a8; }
.button--light { background: #fff5e9; color: var(--berry-dark); }
.button--light:hover { background: #f9ded3; }
.button--nav { min-height: 42px; border-color: #e2bfc2; background: var(--paper); color: var(--berry-dark); font-size: .875rem; padding: 8px 13px; }
.button--nav:hover { border-color: var(--berry); background: var(--rose); }
.button--text { color: var(--berry); min-height: 44px; padding: 8px 11px; }
.button--text:hover { background: var(--rose); }

.section { padding-block: clamp(62px, 7.3vw, 109px); }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 50px); }
.section-heading h2 { color: #4b172a; }
.section-heading p:not(.eyebrow) { color: var(--muted); max-width: 36rem; margin: 13px auto 0; font-size: 1.05rem; text-wrap: pretty; }
.how-section { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 3vw, 42px); }
.step { padding: 26px clamp(18px, 2.7vw, 34px); border-top: 1px solid #e6cac8; }
.step-icon, .feature-icon { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 13px; background: #f4dfdb; color: var(--berry); margin-bottom: 17px; }
.step-icon .icon, .feature-icon .icon { width: 25px; height: 25px; }
.step-icon--1 { background: #e4ebe0; color: var(--spruce); }
.step-icon--2 { background: #f5ead8; color: #7d5436; }
.step p { margin-top: 10px; color: var(--muted); max-width: 29ch; text-wrap: pretty; }
.pricing-section { background: #f8eae7; }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(16px, 3vw, 28px); max-width: 830px; margin-inline: auto; }
.price-card { padding: clamp(22px, 3.35vw, 41px); display: flex; flex-direction: column; background: var(--paper); border: 1px solid #ebd3cd; border-radius: 19px; }
.price-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.price-card .feature-icon { margin: 0; width: 40px; height: 40px; border-radius: 10px; }
.price-card .feature-icon .icon { width: 22px; height: 22px; }
.price-card h3 { font-size: 1.62rem; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; margin-bottom: 20px; }
.price-line strong { font: 560 clamp(1.8rem, 3.6vw, 2.7rem)/1 var(--serif); letter-spacing: -.04em; }
.price-line span { font-size: .875rem; font-weight: 560; }
.price-card ul { padding: 0; margin: 0 0 24px; list-style: none; }
.price-card li { display: flex; gap: 9px; align-items: start; margin: 8px 0; }
.price-card li .icon { color: var(--spruce); margin-top: .22em; }
.price-card .button { margin-top: auto; }
.price-card--plus { color: #fff9ef; border-color: #711634; background: radial-gradient(ellipse at 100% 0, #bc4b64ca, transparent 70%), #791e3d; }
.price-card--plus .feature-icon { color: #fde9be; background: #f9bfc437; }
.price-card--plus li .icon { color: #ffd6ad; }
.checkout-caption { display: flex; gap: 7px; justify-content: center; align-items: center; margin-top: 18px; text-align: center; font-size: .875rem; color: var(--muted); }

.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(24px, 5vw, 90px); }
.faq-layout h2 { text-align: left; }
.faq { border-top: 1px solid #ebd6d2; }
.faq:last-child { border-bottom: 1px solid #ebd6d2; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; padding: 16px 0; font-weight: 700; }
.faq[open] summary .icon { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 17px; max-width: 57ch; }
.site-footer { background: var(--cream); }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; padding-block: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-inner > span { font-size: .875rem; color: var(--muted); }

.create-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.85fr); align-items: start; gap: clamp(32px, 7vw, 96px); padding-block: clamp(44px, 6vw, 83px); }
.create-copy h1, .privacy-layout h1 { font-size: clamp(2.7rem, 6vw, 4.45rem); color: #511d31; }
.lead { margin: 12px 0 25px; color: var(--muted); font-size: 1.1rem; }
.form-card { display: flex; flex-direction: column; gap: 17px; }
fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
legend, .field > span { display: block; margin-bottom: 6px; font-weight: 720; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mode-option, .stamp-option { position: relative; cursor: pointer; }
.mode-option input, .stamp-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mode-visual { display: flex; align-items: center; gap: 10px; min-height: 83px; height: 100%; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.mode-visual strong { font-size: .95rem; }
.mode-visual small { display: block; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.mode-icon { display: grid; flex: none; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: #f7e5e2; color: var(--berry); }
.mode-icon .icon { width: 22px; height: 22px; }
.mode-option input:checked + .mode-visual, .stamp-option input:checked + .stamp-visual { border-color: var(--berry); background: #f6e1e2; box-shadow: inset 0 0 0 1px #ab4a5d40; }
.mode-option input:focus-visible + .mode-visual, .stamp-option input:focus-visible + .stamp-visual { outline: 3px solid #ac4965; outline-offset: 3px; }
.field input:not([type='file']), .field textarea, .share-input {
  border: 1px solid #ddc3c1; border-radius: 8px; padding: 10px 12px; min-height: 46px; width: 100%; background: #fffdfa; color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: #846c6f; }
.field textarea { min-height: 105px; resize: vertical; }
.field input[type='file'] { width: 100%; color: var(--muted); }
.field input[type='file']::file-selector-button { margin-right: 8px; background: var(--rose); color: var(--berry-dark); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; cursor: pointer; font: inherit; }
.field-hint { color: var(--muted); font-size: .875rem; }
.form-error { padding: 9px 11px; border: 1px solid #efbdc6; border-radius: 7px; background: #fdebed; color: #8a2040; }
.form-card > .button { justify-self: start; align-self: flex-start; }
.plus-teaser { display: flex; align-items: start; gap: 10px; background: #f6e6e2; border: 1px solid var(--line); padding: 10px 13px; border-radius: 10px; color: #62444a; font-size: .92rem; }
.plus-teaser .icon { color: var(--berry); margin-top: 3px; }
.creation-preview { padding-top: 10px; }
.preview-cover { position: relative; padding: 8px; border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); background: var(--paper); }
.preview-cover img { aspect-ratio: 1 / 1.12; height: auto; width: 100%; object-fit: cover; border-radius: 12px; }
.preview-cover-copy {
  position: absolute; bottom: 25px; inset-inline: 22px; display: grid; gap: 1px; justify-items: center; padding: 15px 11px;
  border-radius: 12px; color: var(--cream); background: #601d34eb; text-align: center;
}
.preview-cover-copy strong { font: 530 clamp(2rem, 5vw, 3.4rem)/1.05 var(--serif); overflow-wrap: anywhere; max-width: 100%; }
.preview-cover-copy small { font-size: .875rem; margin-top: 3px; }
.preview-seal { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px dashed #f2b2b9; margin-bottom: 4px; }

.calendar-main { background: linear-gradient(#f9ebe8 0, var(--cream) 640px); min-height: 68vh; padding-block: clamp(33px, 5vw, 69px); }
.calendar-layout { width: min(850px, calc(100% - 64px)); }
.calendar-heading { text-align: center; margin: 0 auto 26px; max-width: 670px; }
.calendar-heading h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); overflow-wrap: anywhere; color: var(--berry-dark); margin: 9px 0; }
.calendar-heading p:not(.eyebrow) { color: var(--muted); }
.calendar-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 17px auto 0; }
.calendar-actions .button { min-height: 45px; }
.calendar-setting { width: 45px; flex: none; padding: 0; }
.calendar-heading .field-hint { margin-top: 4px; }
.calendar-callout {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--paper);
  padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px; margin-top: 17px;
}
.calendar-callout p { font-size: .95rem; color: var(--muted); }
.calendar-callout strong { color: var(--berry-dark); }
.calendar-callout .button { flex: none; min-height: 44px; }
.calendar-end { text-align: center; margin-top: 39px; }
.calendar-end p { color: var(--muted); margin: 8px 0 16px; }
.load-state { text-align: center; padding-block: 48px; }
.load-state .button { margin-top: 13px; }
.loading-icon { display: inline-grid; background: var(--rose); color: var(--berry); width: 48px; height: 48px; border-radius: 50%; place-items: center; margin-bottom: 9px; }
.loading-icon .icon { width: 23px; height: 23px; }
.privacy-layout { max-width: 800px; padding-block: clamp(45px, 7vw, 100px); }
.privacy-layout section { margin-top: 24px; }
.privacy-layout section h2 { font-size: 1.55rem; margin-bottom: 7px; letter-spacing: -.02em; }
.privacy-layout section p { color: var(--muted); }

.dialog { inset: 0; max-width: min(535px, calc(100% - 32px)); width: 100%; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 72px #3612224d; }
.dialog::backdrop { background: #34172086; backdrop-filter: blur(3px); }
.dialog-toolbar { position: sticky; top: 0; height: 0; z-index: 5; }
.dialog-box { position: relative; padding: clamp(20px, 5vw, 33px); }
.dialog-close {
  position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 38px; height: 38px;
  padding: 0; border: 1px solid #e8d4c7; border-radius: 50%; background: #fff9f2; color: var(--berry-dark);
}
.dialog-close:hover { background: var(--rose); }
.dialog h2 { margin: 6px 32px 12px 0; font-size: clamp(1.85rem, 5vw, 2.5rem); color: var(--berry-dark); }
.dialog .dialog-eyebrow { margin: 0 34px 4px 0; }
.dialog-box > p:not(.dialog-eyebrow) { color: var(--muted); }
.dialog-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.dialog-buttons .button { min-height: 45px; }
.dialog .form-card { margin-top: 14px; }
.note-seal { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--rose); color: var(--berry); border: 1px dashed #ce8698; margin-bottom: 15px; }
.note-seal .icon { width: 28px; height: 28px; }
.note-sheet { padding: 16px 0; border-top: 1px solid #e9cfcb; border-bottom: 1px solid #e9cfcb; }
.note-sheet p { white-space: pre-wrap; overflow-wrap: anywhere; }
.note-sheet img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 9px; margin-bottom: 12px; background: #f2e6e0; }
.note-from { font-weight: 800; color: var(--berry); margin-top: 9px; overflow-wrap: anywhere; }
.stamp-picks { display: flex; flex-wrap: wrap; gap: 4px; }
.stamp-visual { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); background: var(--cream); border-radius: 7px; color: var(--berry); }
.stamp-visual .icon { width: 20px; height: 20px; }
.photo-preview { width: 100%; max-height: 150px; object-fit: contain; background: #f5e9e4; border-radius: 8px; margin-top: 7px; }
.share-input { margin-top: 12px; font-size: .9rem; }
.settings-block { display: grid; justify-items: start; gap: 6px; margin-top: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.settings-block .button { min-height: 44px; }
.theme-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.theme-option { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--cream); font-weight: 650; text-align: left; }
.theme-option[aria-pressed='true'] { border-color: var(--berry); }
.theme-option span { width: 17px; height: 17px; border-radius: 50%; background: #943650; flex: none; }
.theme-option[data-theme='forest'] span { background: #375a46; }
.theme-option[data-theme='midnight'] span { background: #424d71; }
.upgrade-price { margin-top: 12px; font: 560 2rem/1 var(--serif); }
.upgrade-price small { font: 570 .875rem/1 var(--sans); color: var(--muted); }
.toast { position: fixed; z-index: 4; bottom: 16px; inset-inline: 0; width: fit-content; max-width: calc(100% - 28px); margin-inline: auto; padding: 10px 17px; border-radius: 9px; background: #4d2031; color: #fff8ee; box-shadow: 0 9px 22px #48132229; text-align: center; }
.dialog-feedback { margin-top: 9px; font-size: .9rem; color: var(--muted); }

@media (max-width: 990px) {
  .wrap { width: calc(100% - 56px); }
  .header-inner { gap: 14px; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; grid-template-columns: 1fr auto; gap: 8px; }
  .main-nav { display: none; }
  .header-actions { gap: 3px; }
  .hero-trust { margin-top: 12px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step { padding: 14px 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .step-icon { margin: 0; grid-row: span 2; }
  .step p { margin-top: 5px; max-width: 58ch; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .create-layout { grid-template-columns: minmax(0, 1fr); }
  .creation-preview { width: min(100%, 400px); justify-self: center; padding: 0; }
  .preview-cover img { aspect-ratio: 1.31; }
}
@media (max-width: 545px) {
  .prices { grid-template-columns: minmax(0,1fr); }
  .footer-inner { display: grid; }
  .calendar-callout { flex-wrap: wrap; }
  .calendar-callout .button { flex: 0 1 auto; }
}
@media (max-width: 385px) {
  .wrap { width: calc(100% - 28px); }
  .button--nav { display: none; }
  .brand-icon { width: 31px; height: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.payment-notice { margin: 0 0 15px; background: #fcf2e1; }
