:root {
  --maroon: #5a1717;
  --maroon-hover: #741f1f;
  --brown: #3d1a12;
  --muted: #6b4a3a;
  --label: #9c6e2c;
  --label-2: #8a6a3a;
  --gold: #b88a3e;
  --gold-line: #c9a35a;
  --gold-border: #d8bb83;
  --cream: #fbf3e3;
  --panel: #fff8ec;
  --band: #f1e6cf;
  --pink: #f4bcc3;
  --custom-pink: #f8d6d9;
  --sage: #8ea67a;
  --awning-cream: #f7ecd4;

  --f-display: 'Playfair Display', Georgia, serif;
  --f-script: 'Pinyon Script', cursive;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-ui: Karla, system-ui, sans-serif;

  --ease-reveal: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--maroon); font-family: var(--f-ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--maroon); }
a:hover { color: var(--gold); }
input, select, textarea, button { font-family: var(--f-ui); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; }
.center { text-align: center; }
.serif { font-family: var(--f-serif); color: var(--brown); font-size: 19px; line-height: 1.45; margin: 0; }
body.locked { overflow: hidden; }

.page {
  min-height: 100vh;
  background: var(--cream) radial-gradient(ellipse 80% 50% at 50% 0%, #fff9ee 0%, rgba(251, 243, 227, 0) 70%) no-repeat;
}

/* ---------- Awning ---------- */
.awning {
  height: 46px;
  background: repeating-linear-gradient(90deg, var(--sage) 0 60px, var(--awning-cream) 60px 120px);
  -webkit-mask: radial-gradient(30px at 50% 16px, #000 98%, #0000) 0 0/60px 46px repeat-x, linear-gradient(#000 0 0) 0 0/100% 16px no-repeat;
          mask: radial-gradient(30px at 50% 16px, #000 98%, #0000) 0 0/60px 46px repeat-x, linear-gradient(#000 0 0) 0 0/100% 16px no-repeat;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 10px clamp(20px, 4vw, 48px);
  background: rgba(251, 243, 227, .95);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gold-border);
}
.nav-side { display: flex; gap: clamp(12px, 2vw, 28px); align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.nav-right { justify-content: flex-end; }
.nav-side a { color: var(--maroon); text-decoration: none; transition: color .2s; }
.nav-side a:hover { color: var(--gold); }
.nav-logo { display: flex; }
.nav-logo img { width: 96px; height: 96px; display: block; }
.cart-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--maroon); color: var(--cream); border: none;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  font: 700 12.5px var(--f-ui); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  transition: background .2s;
}
.cart-pill:hover { background: var(--maroon-hover); }
.cart-count {
  background: var(--pink); color: var(--maroon); min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: 0;
}
.cart-count.bump { animation: bump .45s var(--ease-reveal); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

@media (max-width: 760px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 10px; }
  .nav-left { order: 0; gap: 14px; font-size: 11px; letter-spacing: .12em; }
  .nav-left a:nth-child(2) { display: none; }
  .nav-logo { order: 1; justify-content: center; }
  .nav-logo img { width: 68px; height: 68px; }
  .nav-right { order: 2; }
  .nav-right .nav-link { display: none; }
  .cart-pill { padding: 9px 10px 9px 16px; font-size: 11.5px; }
}

/* ---------- Shared type ---------- */
.wordmark {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.01em;
  display: flex; justify-content: center; align-items: center; gap: .08em; flex-wrap: wrap;
}
.wordmark .amp { font-family: var(--f-script); font-weight: 400; color: var(--gold); font-size: 1.2em; line-height: .6; margin: 0 -.04em; }
.wordmark.small { font-size: 30px; color: var(--cream); flex-wrap: nowrap; }
.wordmark.small .amp { color: #d9b36a; font-size: 1.3em; margin: 0; }

.ruled { display: flex; align-items: center; justify-content: center; gap: 14px; text-transform: uppercase; }
.ruled > span { width: 60px; height: 1px; background: var(--gold-line); flex: none; }
.tagline { margin: 14px 0 36px; font-size: clamp(11px, 1.3vw, 14px); font-weight: 600; letter-spacing: .32em; color: var(--label-2); }
.ruled.small { gap: 16px; margin: 16px 0 22px; font-size: 13px; font-weight: 600; letter-spacing: .28em; color: var(--muted); }
.ruled.small > span { width: 48px; }

.script-kicker { font-family: var(--f-script); color: var(--gold); font-size: 46px; line-height: 1; }
.script-kicker.deep { color: var(--label); font-size: 44px; }
.script-kicker.sm { font-size: 40px; }
.script-kicker.left { font-size: 42px; }
.script-big { font-family: var(--f-script); color: var(--gold); font-size: 48px; line-height: 1; margin: 0; }

.btn {
  display: inline-block; background: var(--maroon); color: var(--cream); border: none; cursor: pointer;
  padding: 15px 34px; border-radius: 999px;
  font: 700 13px var(--f-ui); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--maroon-hover); color: var(--cream); }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 16px 38px; font-size: 13.5px; }
.btn-block { width: 100%; padding: 16px; font-size: 13.5px; }
.btn:disabled { background: #8a5a4a; cursor: progress; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 52px 24px 0; max-width: 1100px; margin: 0 auto; }
.hero h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(38px, 6.4vw, 84px); line-height: .95; letter-spacing: -.015em; text-transform: uppercase; }
.hero-script { font-family: var(--f-script); color: var(--gold); font-size: clamp(52px, 8.4vw, 112px); line-height: 1.05; margin-top: -.08em; }
.hero-intro { margin: 14px auto 0; max-width: 560px; font-size: 13.5px; font-weight: 600; letter-spacing: .24em; line-height: 1.7; text-transform: uppercase; color: var(--muted); }

/* Page-load stagger */
.hero > *, .banner-wrap, .orders-wrap { animation: rise .9s var(--ease-reveal) both; }
.hero > :nth-child(1) { animation-delay: .05s; }
.hero > :nth-child(2) { animation-delay: .15s; }
.hero > :nth-child(3) { animation-delay: .25s; }
.hero > :nth-child(4) { animation-delay: .38s; }
.hero > :nth-child(5) { animation-delay: .5s; }
.banner-wrap { animation-delay: .6s; }
.orders-wrap { animation-delay: .75s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.banner-wrap { max-width: 1180px; margin: 34px auto 0; padding: 0 24px; }
.banner { aspect-ratio: 1024 / 378; border-radius: 36px; border: 2px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: 6px; overflow: hidden; }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; }

.orders-wrap { max-width: 980px; margin: -40px auto 0; padding: 0 24px; position: relative; }
.orders {
  background: var(--panel); border: 2px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: -9px;
  border-radius: 44px; padding: 34px 32px 30px; text-align: center; box-shadow: 0 14px 40px rgba(90, 23, 23, .12);
}
.orders-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(32px, 5vw, 60px); line-height: 1; margin: 6px 0 16px; text-wrap: balance; }
.orders p { margin: 14px auto 0; max-width: 560px; font-family: var(--f-serif); font-size: 20px; line-height: 1.4; color: var(--brown); text-wrap: pretty; }

@media (max-width: 600px) {
  .banner { border-radius: 22px; }
  .orders-wrap { margin-top: -20px; }
  .orders { border-radius: 32px; padding: 28px 20px 26px; }
  .ruled > span { width: 28px; }
  .tagline { letter-spacing: .2em; gap: 10px; }
  .ruled.small { letter-spacing: .18em; gap: 10px; }
  .btn-lg { padding: 15px 28px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px clamp(20px, 4vw, 56px) 72px; max-width: 1280px; margin: 0 auto; scroll-margin-top: 90px; }
#cookies, #cakes, #custom, #story { scroll-margin-top: 90px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(36px, 4.6vw, 58px); line-height: 1; text-transform: uppercase; }
.star-rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; color: var(--gold); }
.star-rule span { width: 70px; height: 1px; background: var(--gold-line); }

/* ---------- Cookie cards ---------- */
.cookie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card {
  background: var(--tint, var(--panel)); border: 2px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: -8px;
  border-radius: 46px 46px 22px 22px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 8px 24px rgba(90, 23, 23, .08);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(90, 23, 23, .18); }
.card.pre-reveal { opacity: 0; }
.card-photo { height: 300px; margin: 12px 12px 0; border-radius: 36px 36px 14px 14px; overflow: hidden; border: 1px solid var(--gold-line); position: relative; background: rgba(255, 255, 255, .45); }
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.photo-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: repeating-linear-gradient(45deg, rgba(201, 163, 90, .12) 0 12px, transparent 12px 24px);
  color: var(--gold); font-family: var(--f-script); font-size: 40px;
}
.photo-placeholder small { font: 700 11px var(--f-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--label); }
.ribbon {
  position: absolute; top: 30px; right: -50px; width: 210px; transform: rotate(38deg);
  background: var(--maroon); color: var(--cream); text-align: center; padding: 8px 0;
  font: 700 11.5px var(--f-ui); letter-spacing: .22em; text-transform: uppercase;
  border-top: 1.5px solid var(--gold-line); border-bottom: 1.5px solid var(--gold-line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25); pointer-events: none;
}
.ribbon-cake { top: 26px; right: -46px; width: 190px; font-size: 12px; letter-spacing: .24em; }
.card-body { padding: 22px 24px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; text-align: center; }
.card-the { font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1; }
.card-name { font-family: var(--f-display); font-weight: 900; font-size: 26px; line-height: 1.02; min-height: 56px; display: flex; align-items: center; justify-content: center; margin: 0; }
.card-divider { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); font-size: 13px; }
.card-divider span { flex: 1; height: 1px; background: var(--gold-line); }
.card-flavor { font-family: var(--f-serif); font-size: 21px; font-weight: 600; line-height: 1.15; color: var(--brown); }
.card-kind { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; padding-top: 6px; border-top: 1px solid rgba(201, 163, 90, .6); }
.card-desc { margin: 0; font-family: var(--f-serif); font-size: 17px; line-height: 1.35; color: var(--brown); flex: 1; }
.card-foot { padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.price-block { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid rgba(201, 163, 90, .6); }
.count-pill { background: var(--maroon); color: var(--cream); padding: 5px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.price { font-family: var(--f-display); font-weight: 900; font-size: 26px; }
.sizes { display: flex; gap: 6px; width: 100%; }
.size-btn {
  flex: 1; background: rgba(255, 255, 255, .55); color: var(--maroon); border: 1.5px solid rgba(90, 23, 23, .25);
  border-radius: 999px; padding: 8px 6px; font: 700 12px var(--f-ui); cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, color .2s;
}
.size-btn:hover { border-color: var(--maroon); }
.size-btn[aria-pressed="true"] { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.opts-label { text-align: center; font: 700 11px var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.opts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.opt {
  flex: 1; min-width: 110px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 700 12px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--maroon);
  padding: 8px 10px; border: 1.5px solid rgba(90, 23, 23, .3); border-radius: 999px; background: rgba(255, 255, 255, .5); white-space: nowrap;
}
.opt input { width: 16px; height: 16px; accent-color: var(--maroon); margin: 0; }
.add-btn { width: 100%; padding: 13px 16px; font-size: 12.5px; }
.status-label { text-align: center; border: 1.5px dashed var(--maroon); border-radius: 999px; padding: 12px 16px; font: 700 12.5px var(--f-ui); letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Pound cakes ---------- */
.cakes-band { background: var(--band); border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--gold-border); }
.cakes-band .section { padding: 64px clamp(20px, 4vw, 56px); }
.cakes-band .section-head { margin-bottom: 38px; }
.cake-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 26px; }
.cake {
  background: var(--panel); border: 2px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: -8px;
  border-radius: 46px 46px 22px 22px; overflow: hidden; display: flex; flex-direction: column;
}
.cake .card-photo { height: 280px; margin: 14px 14px 0; border: none; }
.cake .card-photo img { object-position: center; }
.cake-body { padding: 24px 34px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; flex: 1; }
.sig-pill { background: var(--pink); padding: 6px 18px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.cake h3 { font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1.05; }
.cake p { margin: 0; font-family: var(--f-serif); font-size: 18.5px; line-height: 1.4; color: var(--brown); max-width: 420px; flex: 1; }
.cake .sizes { flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; width: auto; }
.cake .size-btn { flex: none; background: transparent; padding: 9px 18px; font-size: 13px; }
.cake .size-btn[aria-pressed="true"] { background: var(--maroon); }
.cake .btn { margin-top: 6px; padding: 14px 34px; font-size: 12.5px; }

/* ---------- Custom band ---------- */
.custom-wrap { padding: 64px 24px; max-width: 1000px; margin: 0 auto; }
.custom {
  background: var(--custom-pink); border: 2px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: -9px;
  border-radius: 44px; padding: 44px 40px; text-align: center;
}
.custom h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 0 0 14px; text-transform: uppercase; }
.custom p { margin: 0 auto 24px; font-family: var(--f-serif); font-size: 20px; line-height: 1.45; color: var(--brown); max-width: 560px; }
@media (max-width: 600px) { .custom { padding: 36px 22px; border-radius: 32px; } }

/* ---------- Story ---------- */
.story {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; gap: 48px;
  padding: 20px clamp(20px, 4vw, 56px) 72px; max-width: 1180px; margin: 0 auto;
}
.story-photo { aspect-ratio: 3 / 2; border: 2px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: 6px; border-radius: 200px 200px 22px 22px; overflow: hidden; }
.story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; margin: 4px 0 16px; }
.story p { font-family: var(--f-serif); font-size: 20px; line-height: 1.5; color: var(--brown); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--maroon); color: #f3e2c4; text-align: center; padding: 44px 24px 40px; }
.footer-line { margin: 14px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .3em; }
.footer-line > span { width: 40px; background: var(--gold); }
.footer-meta { font-size: 14px; opacity: .85; }
.footer-meta a { color: inherit; }
@media (max-width: 600px) { .footer-line { letter-spacing: .16em; font-size: 12px; } .footer-line > span { width: 20px; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 40;
  background: var(--maroon); color: var(--cream); padding: 12px 14px 12px 22px; border-radius: 999px;
  display: flex; align-items: center; gap: 16px; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  max-width: calc(100vw - 32px); animation: toast-in .35s var(--ease-reveal);
}
.toast > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast button { flex: none; background: var(--pink); color: var(--maroon); border: none; border-radius: 999px; padding: 8px 16px; font: 700 12px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Drawer & modals ---------- */
.drawer-root { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; }
.scrim { position: absolute; inset: 0; background: rgba(60, 18, 14, .42); animation: fade .25s ease; }
.scrim.dark { background: rgba(60, 18, 14, .5); }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: relative; width: min(460px, 100vw); height: 100%; background: var(--cream);
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
  animation: slide-in .35s var(--ease-reveal);
}
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid var(--gold-border); }
.drawer-head h2 { font-family: var(--f-display); font-weight: 900; font-size: 28px; }
.x { background: none; border: none; font-size: 28px; line-height: 1; color: var(--maroon); cursor: pointer; width: 44px; height: 44px; }
.x.corner { position: absolute; top: 14px; right: 16px; }
.step:not(.active) { display: none !important; }
.step.active { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.step-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.drawer-scroll { flex: 1; overflow: auto; padding: 8px 28px; }
.drawer-foot { padding: 20px 28px 26px; border-top: 1px solid var(--gold-border); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row.muted { color: var(--muted); }
.row.total { font-family: var(--f-display); font-size: 24px; font-weight: 900; margin: 6px 0 12px; }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px; text-align: center; }
.empty .serif { font-size: 19px; }

.line { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px dotted var(--gold-line); }
.line-info { flex: 1; min-width: 0; }
.line-name { font-family: var(--f-display); font-size: 18px; font-weight: 800; line-height: 1.15; }
.line-detail { font-size: 13px; color: var(--muted); }
.line-remove { background: none; border: none; padding: 4px 0 0; color: var(--label); font: 600 12.5px var(--f-ui); cursor: pointer; text-decoration: underline; }
.stepper { display: flex; align-items: center; border: 1.5px solid rgba(90, 23, 23, .25); border-radius: 999px; }
.stepper button { width: 34px; height: 34px; background: none; border: none; font-size: 18px; color: var(--maroon); cursor: pointer; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }
.line-total { width: 60px; text-align: right; font-weight: 700; }
.eyebrow { margin: 22px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--label); }
.fulfill { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.fulfill button {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  background: transparent; border: 1.5px solid rgba(90, 23, 23, .2); border-radius: 16px; padding: 13px 16px;
  font: 15px var(--f-ui); color: var(--maroon); cursor: pointer;
}
.fulfill button:hover { border-color: var(--maroon); }
.fulfill button[aria-pressed="true"] { background: var(--panel); border: 2px solid var(--maroon); padding: 12.5px 15.5px; }
.fulfill small { display: block; font-size: 13px; color: var(--muted); }

.fields { display: flex; flex-direction: column; gap: 14px; }
.drawer-scroll.fields { padding: 20px 28px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.fields input, .fields textarea {
  padding: 13px 14px; border: 1.5px solid rgba(90, 23, 23, .22); border-radius: 12px; background: var(--panel);
  font-size: 15px; color: var(--maroon); letter-spacing: 0; text-transform: none; font-weight: 400; resize: vertical;
}
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--maroon); }
.fields .invalid { border-color: #b3261e; background: #fff1f1; }
.back { align-self: flex-start; background: none; border: none; padding: 0; color: var(--label); font: 600 13.5px var(--f-ui); cursor: pointer; }
.pay { display: flex; flex-direction: column; gap: 16px; padding: 20px 28px; }
.summary { background: var(--panel); border: 1.5px solid var(--gold-line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.summary .row { font-size: 14.5px; }
.summary-fee { border-top: 1px dotted var(--gold-line); margin-top: 6px; padding-top: 8px; display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); }
.pay .serif { padding: 6px 10px; }
.error { background: var(--custom-pink); border: 1.5px solid var(--maroon); border-radius: 14px; padding: 12px 16px; font-size: 14px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.done { flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; text-align: center; }
.done.active { justify-content: center; align-items: center; }
.done .serif { max-width: 320px; }

.modal-root { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
#corp-modal { z-index: 70; }
.modal {
  position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--cream); border: 2px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: -9px;
  border-radius: 32px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: pop .35s var(--ease-reveal);
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.custom-form { padding: 38px 40px 34px; }
.custom-form h2 { font-family: var(--f-display); font-weight: 900; font-size: 32px; line-height: 1.05; text-transform: uppercase; }
.custom-form .serif { font-size: 18px; margin-top: 8px; }
.custom-form .center { margin-bottom: 6px; }
.custom-form .btn { margin-top: 6px; }
.custom-thanks { padding: 56px 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.custom-thanks .serif { max-width: 380px; }
.corp { width: min(500px, 100%); background: var(--panel); border-radius: 44px; padding: 48px 40px 40px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .28); }
.corp .x.corner { top: 18px; right: 20px; }
.corp .script-kicker { margin-top: 6px; }
.corp h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 5vw, 34px); line-height: 1.1; margin: 8px 0 14px; text-transform: uppercase; text-wrap: balance; }
.corp .serif { margin: 0 auto 24px; max-width: 340px; }
@media (max-width: 600px) {
  .custom-form { padding: 34px 22px 26px; }
  .corp { padding: 44px 24px 32px; border-radius: 32px; }
  .drawer-head, .drawer-foot { padding-left: 20px; padding-right: 20px; }
  .drawer-scroll, .drawer-scroll.fields, .pay { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card.pre-reveal { opacity: 1; }
}
