/* =====================================================
   Only Beautifully Written, editorial stylesheet
   Cream, navy, cobalt. Playfair Display (upright).
   Clean, spacious, no boxes, no shadows.
   ===================================================== */

/* Handwriting style font-faces (Beauty's hands, refreshed 2026-06-30) */
@font-face { font-family: 'OBW Aurelia';    src: url('assets/fonts/aurelia.ttf')   format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Beatrice';   src: url('assets/fonts/beatrice.ttf')  format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Camille';    src: url('assets/fonts/camille.ttf')   format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Delphine';   src: url('assets/fonts/delphine.ttf')  format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Eleanor';    src: url('assets/fonts/eleanor.ttf')   format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Florence';   src: url('assets/fonts/florence.ttf')  format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Grace';      src: url('assets/fonts/grace.ttf')     format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Harriet';    src: url('assets/fonts/harriet.ttf')   format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Isabelle';   src: url('assets/fonts/isabelle.ttf')  format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Josephine';  src: url('assets/fonts/josephine.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Kate';       src: url('assets/fonts/kate.ttf')      format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Louise';     src: url('assets/fonts/louise.ttf')    format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Margot';     src: url('assets/fonts/margot.ttf')    format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Nora';       src: url('assets/fonts/nora.ttf')      format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Olive';      src: url('assets/fonts/olive.ttf')     format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Pearl';      src: url('assets/fonts/pearl.ttf')     format('truetype'); font-display: swap; }
@font-face { font-family: 'OBW Rose';       src: url('assets/fonts/rose.ttf')      format('truetype'); font-display: swap; }

/* QEi coded aliases. Codes are preserved from the previous catalog so already
   saved drafts, carts, subscriptions, and orders keep resolving to a valid style. */
@font-face { font-family: 'QEi 002A'; src: url('assets/fonts/aurelia.ttf')   format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 003A'; src: url('assets/fonts/beatrice.ttf')  format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 004B'; src: url('assets/fonts/camille.ttf')   format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 005B'; src: url('assets/fonts/delphine.ttf')  format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 006C'; src: url('assets/fonts/eleanor.ttf')   format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 009B'; src: url('assets/fonts/florence.ttf')  format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 011A'; src: url('assets/fonts/grace.ttf')     format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 012B'; src: url('assets/fonts/harriet.ttf')   format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 013C'; src: url('assets/fonts/isabelle.ttf')  format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 015C'; src: url('assets/fonts/josephine.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 017C'; src: url('assets/fonts/kate.ttf')      format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 020B'; src: url('assets/fonts/louise.ttf')    format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 023B'; src: url('assets/fonts/margot.ttf')    format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 025A'; src: url('assets/fonts/nora.ttf')      format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 026C'; src: url('assets/fonts/olive.ttf')     format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 029B'; src: url('assets/fonts/pearl.ttf')     format('truetype'); font-display: swap; }
@font-face { font-family: 'QEi 030C'; src: url('assets/fonts/rose.ttf')      format('truetype'); font-display: swap; }

:root {
  /* Two-tone neutral palette. ONLY these two colors are used for
     section backgrounds across the entire site. Alternate cream and
     paper between adjacent sections to create clear visual dividers. */
  --cream: #FBF7EE;     /* lighter band (default page bg) */
  --paper: #F7F2E6;     /* whisper-deeper band (alternate section, low contrast) */
  --cream-2: #F7F2E6;   /* alias for --paper so existing rules using --cream-2 fall in line */
  --ink: #1B2A4E;          /* deep navy ink, near-black */
  --ink-soft: #2A3A5E;
  --cobalt: #2754B5;       /* eyebrow + button */
  --cobalt-deep: #1E3F8E;
  --cobalt-on: #FFFFFF;
  --logo-blue: #0068B0;    /* exact logo color, used for all headers */
  --slate: #5C657A;
  --rule: #D9D0BA;
  --rule-soft: #E8E0CA;
  --card-bg: #F6F1E4;
  --serif: 'Playfair Display', 'Prata', 'Bodoni Moda', 'Cormorant Garamond', 'DM Serif Display', 'Libre Bodoni', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --cream: #14171F;
  --cream-2: #1A1E27;
  --paper: #1E222C;
  --ink: #F1ECDF;
  --ink-soft: #DDD5C2;
  --cobalt: #6E92E8;
  --cobalt-deep: #8FB0F2;
  --cobalt-on: #0E1219;
  --logo-blue: #4DA8E8;
  --slate: #9098AA;
  --rule: #2D3340;
  --rule-soft: #232833;
  --card-bg: #1A1E27;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cobalt-deep); }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 56px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) {
  .container { padding: 0 24px; }
  .container-narrow { padding: 0 24px; }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  margin: 0 0 .6em;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.08; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.15; }
h3 { font-size: 1.5rem; line-height: 1.25; }
h4 { font-size: 1.2rem; line-height: 1.3; }

.eyebrow {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #2D5DA8; /* cobalt blue */
  font-weight: 500;
  margin: 0 0 1.6em;
}
p { margin: 0 0 1.1em; color: var(--ink-soft); max-width: 60ch; }
p.lead { font-size: 1.12rem; line-height: 1.7; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--cobalt);
  position: relative;
  z-index: 50;
}
.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 28px 14px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 14px;
}
.site-logo {
  display: block;
  text-align: center;
}
.site-logo img {
  height: 180px;
  width: auto;
  max-width: 92vw;
  mix-blend-mode: multiply;
}
.site-bar {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.site-bar .site-nav { grid-column: 2; justify-self: center; }
.site-bar .site-actions { grid-column: 3; justify-self: end; }
[data-theme="dark"] .site-logo img { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) brightness(1.4); }
.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-self: center;
}
.site-nav a {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .005em;
  color: var(--ink);
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--cobalt);
  border-bottom-color: var(--cobalt);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ink);
  border-radius: 50%;
  transition: background .2s ease, color .2s ease;
  padding: 0;
}
.theme-toggle:hover { background: var(--rule-soft); color: var(--cobalt); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.auth-link {
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .005em;
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
}
.auth-link:hover { color: var(--cobalt); border-bottom-color: var(--cobalt); }

.btn-sm {
  padding: 9px 18px;
  font-size: .85rem;
  border-radius: 4px;
}

@media (max-width: 1080px) {
  .site-header-inner { padding: 18px 20px 12px; gap: 12px; }
  .site-logo img { height: 140px; }
  .site-nav { gap: 22px; }
  .site-nav a { font-size: .98rem; }
  .site-actions { gap: 10px; }
  .auth-link { font-size: .88rem; }
  .btn-sm { padding: 8px 14px; font-size: .82rem; }
}
/* ---------- HAMBURGER / MOBILE NAV TOGGLE ---------- */
.nav-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink, #1a1a1a);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .site-header-inner { padding: 16px 18px 10px; gap: 10px; position: relative; }
  .site-logo img { height: 96px; }
  .nav-toggle { display: inline-flex; }
  .site-bar {
    grid-template-columns: 1fr;
    gap: 14px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
    padding: 0;
  }
  .site-bar.is-open {
    max-height: 600px;
    opacity: 1;
    padding: 12px 0 14px;
  }
  .site-bar .site-nav {
    grid-column: 1;
    justify-self: center;
    flex-direction: column;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
  }
  .site-bar .site-actions { grid-column: 1; justify-self: center; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: 1rem; }
  .auth-link { display: inline-flex; }
}

/* ---------- BASKET ICON BUTTON ---------- */
.basket-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.basket-icon-btn:hover { border-color: var(--cobalt); background: var(--paper); color: var(--cobalt); }
.basket-icon-btn svg { width: 20px; height: 20px; }
.basket-icon-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral, #E85A4F);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--paper, #fff);
}

/* ---------- ACCOUNT TRIGGER + DROPDOWN ---------- */
.acct-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.acct-trigger:hover { border-color: var(--cobalt); background: var(--paper); }
.acct-trigger.open { border-color: var(--cobalt); background: var(--paper); }
.acct-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cobalt);
  color: var(--cobalt-on);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  font-family: var(--sans);
}
.acct-name {
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-chev {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform .2s ease;
}
.acct-trigger.open .acct-chev { transform: rotate(180deg); }

.acct-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  right: 28px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(27, 42, 78, 0.14);
  padding: 18px;
  z-index: 60;
  font-family: var(--sans);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.acct-dropdown[hidden] { display: none; }
.acct-dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}
.acct-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cobalt);
  color: var(--cobalt-on);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}
.acct-head-text { flex: 1; min-width: 0; }
.acct-head-name { font-size: .98rem; font-weight: 600; color: var(--ink); }
.acct-head-email { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-head-upload { display: inline-block; margin-top: 4px; font-size: .78rem; color: var(--cobalt); text-decoration: underline; }

.acct-sub-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s ease;
}
.acct-sub-banner:hover { border-color: var(--cobalt); }
.acct-sub-eyebrow { font-size: .72rem; color: var(--cobalt); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.acct-sub-plan { font-size: .86rem; color: var(--ink); margin-top: 2px; }
.acct-sub-cta { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--cobalt); font-weight: 500; white-space: nowrap; }
.acct-sub-cta svg { width: 12px; height: 12px; }

.acct-credit-meter {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 10px;
}
.acct-credit-row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink); margin-bottom: 6px; }
.acct-credit-bar { height: 6px; background: var(--rule-soft); border-radius: 999px; overflow: hidden; }
.acct-credit-bar span { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; transition: width .3s ease; }
.acct-credit-foot { font-size: .74rem; color: var(--ink-soft); margin-top: 6px; }

.acct-menu { display: flex; flex-direction: column; gap: 1px; }
.acct-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: .9rem;
  transition: background .15s ease, color .15s ease;
}
.acct-menu-item:hover { background: var(--paper); color: var(--cobalt); }
.acct-menu-icon { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; display: inline-flex; }
.acct-menu-icon svg { width: 18px; height: 18px; }
.acct-menu-item:hover .acct-menu-icon { color: var(--cobalt); }
.acct-menu-label { flex: 1; }
.acct-menu-chev { width: 12px; height: 12px; color: var(--ink-soft); flex-shrink: 0; }

.acct-signout {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.acct-signout:hover { border-color: var(--cobalt); color: var(--cobalt); }

@media (max-width: 720px) {
  .acct-name { display: none; }
  .acct-dropdown { right: 12px; left: 12px; width: auto; }
}

/* Hero headline in actual logo blue, italic */
.hero .hero-headline {
  color: #0068B0;
  font-style: italic;
}
[data-theme="dark"] .hero .hero-headline { color: #4DA8E8; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cobalt);
  color: var(--cobalt-on);
  border-color: var(--cobalt);
}
.btn-primary:hover {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
  color: var(--cobalt-on);
}
.btn-primary .arrow { transition: transform .25s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-text {
  background: transparent;
  color: var(--cobalt);
  padding: 8px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--cobalt);
}
.btn-text:hover { color: var(--cobalt-deep); border-bottom-color: var(--cobalt-deep); }

.btn-send {
  background: var(--cobalt);
  color: #fff;
  padding: 9px 18px;
  font-size: .78rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 500;
}
.btn-send:hover { background: var(--cobalt-deep); color: #fff; }
.btn-bulk {
  background: transparent;
  color: var(--cobalt);
  border: 1px solid var(--cobalt);
  padding: 9px 18px;
  font-size: .78rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 500;
}
.btn-bulk:hover { background: var(--cobalt); color: #fff; }

/* ---------- SECTIONS ---------- */
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.section-alt { background: var(--cream-2); }
.section-paper { background: var(--paper); }

/* ---------- HERO (editorial, left-aligned headline, generous space) ---------- */
.hero {
  padding: 130px 56px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero .eyebrow { margin-bottom: 1.8em; }
.hero h1 {
  margin-bottom: .5em;
  max-width: 18ch;
  font-size: clamp(3.2rem, 6.6vw, 5.4rem);
  line-height: 1.04;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-synthesis: none;
}
.hero .tagline {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--ink-soft);
  margin: 0 0 2em;
  max-width: 38ch;
  line-height: 1.45;
  font-style: normal;
  font-weight: 400;
}
.hero .sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 2.5em;
}
.hero-cta { display: inline-flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .hero { padding: 80px 24px 70px; }
}

/* ---------- THREE COLUMN EDITORIAL (like reference image) ---------- */
.editorial {
  padding: 70px 0 70px;
}
.editorial .container { padding: 0 56px; }
.editorial-head {
  max-width: 1100px;
  margin-bottom: 36px;
}
.editorial-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 0;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .editorial-head h2 { white-space: normal; }
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.three-col .col h3 {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: .8em;
  font-weight: 400;
}
.three-col .col p {
  font-size: .98rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 32ch;
  margin: 0;
}
@media (max-width: 860px) {
  .three-col { grid-template-columns: 1fr; gap: 36px; }
  .editorial { padding: 80px 0 60px; }
}

/* ---------- CENTERED CTA BLOCK ---------- */
.cta-block {
  text-align: center;
  padding: 80px 56px 96px;
  margin: 0 auto;
}
.cta-block .eyebrow { color: #2D5DA8; }
.cta-block h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin: 0 auto .4em;
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .cta-block h2 {
    white-space: normal;
    max-width: 22ch;
  }
}
.cta-block p {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 72ch;
  margin: 0 auto 32px;
  text-align: center;
}
.cta-block .hero-cta {
  justify-content: center;
}

/* ---------- HOW (numbered list, editorial) ---------- */
.how {
  padding: 48px 0 60px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-top: 28px;
}
.how-step .num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--cobalt);
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.how-step .step-icon {
  color: var(--cobalt);
  margin-bottom: 18px;
  display: block;
  line-height: 0;
}
.how-step .step-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}
.how-step h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 400;
}
.how-step p {
  font-size: .94rem;
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 0;
}
@media (max-width: 860px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 500px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--paper);
  border-top: 2px solid var(--cobalt);
  padding: 70px 0 30px;
  margin-top: 0;
}
.footer-newsletter {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule-soft);
}
.footer-newsletter h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--ink);
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.newsletter-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  max-width: 720px;
  flex-wrap: wrap;
}
.newsletter-field {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.newsletter-label {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 600;
}
.newsletter-form input[type="email"] {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule-soft);
  border-bottom: 2px solid var(--cobalt);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(39, 84, 181, .12);
}
.newsletter-submit {
  flex: 0 0 auto;
  padding: 12px 28px;
}
.newsletter-status {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: .9rem;
  min-height: 1.2em;
}
@media (max-width: 640px) {
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-submit { width: 100%; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  align-items: start;
  padding-bottom: 50px;
}
.footer-brand {
  min-width: 0;
}
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 360px;
  mix-blend-mode: multiply;
  margin-bottom: 18px;
}
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 30ch;
  margin: 0;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 22px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--ink-soft);
  font-size: .94rem;
}
.footer-col a:hover { color: var(--cobalt); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom p {
  margin: 0;
  font-size: .82rem;
  color: var(--slate);
}
.social-row { display: flex; gap: 18px; }
.social-row a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color .2s ease;
}
.social-row a:hover { color: var(--cobalt); }
.social-row svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column-reverse; text-align: center; }
}

/* ---------- COLLECTIONS PAGE ---------- */
.collections-intro {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 56px 12px;
}
.collections-intro h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 400;
}
.collections-intro p {
  max-width: none;
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .collections-intro p {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

.collections-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding: 30px 56px 100px;
  max-width: 1400px;
  margin: 0 auto;
}
.collections-main { min-width: 0; }
.collections-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 8px;
}
.sidebar-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 28px;
  background: var(--paper);
}
.sidebar-search svg { width: 14px; height: 14px; color: var(--slate); margin-right: 10px; flex-shrink: 0; }
.sidebar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--sans);
  font-size: .88rem;
  width: 100%;
  color: var(--ink);
}
.sidebar-search input::placeholder { color: var(--slate); }

.sidebar-title {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-title::before {
  content: '';
  width: 9px;
  height: 9px;
  border-left: 1.5px solid var(--cobalt);
  border-bottom: 1.5px solid var(--cobalt);
  transform: rotate(-45deg);
  display: inline-block;
  margin-left: 2px;
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { display: block; }
.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 400;
  transition: color .15s ease;
}
.sidebar-list a .dot {
  width: 5px;
  height: 5px;
  background: var(--ink-soft);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: background .15s ease, transform .15s ease;
}
.sidebar-list a:hover, .sidebar-list a.active {
  color: var(--cobalt);
  font-weight: 500;
}
.sidebar-list a:hover .dot, .sidebar-list a.active .dot { background: var(--cobalt); transform: scale(1.4); }

.sidebar-custom-link {
  display: block;
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1rem;
  padding: 6px 0;
  margin-top: 6px;
}
.sidebar-custom-link:hover { color: var(--cobalt); }

/* Category carousel sections */
.cat-section {
  margin-bottom: 64px;
  scroll-margin-top: 120px;
}
.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
}
.cat-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.cat-title h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0;
  font-style: normal;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.cat-title h2 .arrow {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  transform: rotate(45deg);
  margin-left: 4px;
  margin-bottom: 2px;
}
.cat-count {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--slate);
  font-weight: 400;
}
.cat-nav { display: flex; gap: 6px; }
.cat-nav button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all .15s ease;
}
.cat-nav button:hover { border-color: var(--cobalt); color: var(--cobalt); }
.cat-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cat-nav button svg { width: 12px; height: 12px; }

/* Carousel viewport — fixed-width frame so the row never spans the full page */
.card-carousel {
  position: relative;
  --cards-per-view: 4;
  --card-gap: 22px;
  min-width: 0;
  width: 100%;
}
.card-carousel-frame {
  overflow: hidden;
  border-radius: 4px;
  min-width: 0;
  width: 100%;
}
.card-row {
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.card-row::-webkit-scrollbar { display: none; height: 0; width: 0; }

/* Custom carousel scrollbar that drives the actual row */
.carousel-scrollbar {
  margin: 14px auto 0;
  height: 8px;
  background: #ececec;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  max-width: 480px;
}
.carousel-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 40px;
  background: #b8b8b8;
  border-radius: 4px;
  cursor: grab;
  transition: background .15s ease;
}
.carousel-scrollbar-thumb:hover,
.carousel-scrollbar-thumb.is-dragging { background: #888; }
.carousel-scrollbar-thumb.is-dragging { cursor: grabbing; }

.card-item {
  flex: 0 0 calc((100% - (var(--cards-per-view) - 1) * var(--card-gap)) / var(--cards-per-view));
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  min-width: 0;
}
@media (max-width: 1100px) {
  .card-carousel { --cards-per-view: 3; }
}
@media (max-width: 760px) {
  .card-carousel { --cards-per-view: 2; }
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.card-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  line-height: 1.3;
}
.card-fav {
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: var(--slate);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s ease, transform .15s ease;
}
.card-fav svg { width: 18px; height: 18px; }
.card-fav:hover { color: var(--cobalt); transform: scale(1.1); }
.card-fav.is-fav { color: var(--cobalt); }
.card-fav.is-fav svg { fill: var(--cobalt); stroke: var(--cobalt); }

.card-price {
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--slate);
  margin: 0 0 10px;
}

.card-preview {
  aspect-ratio: 5 / 7;
  background: var(--card-bg);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 12px;
  position: relative;
}
.card-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--card-bg);
  transition: transform .4s ease;
}

/* Empty-state for sub-categories with no cards yet */
.cat-empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--slate);
  padding: 28px 4px;
  margin: 0;
  max-width: none;
}
.card-item:hover .card-preview img { transform: scale(1.03); }

.card-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: .86rem;
}
.card-tabs button {
  background: transparent;
  border: none;
  padding: 4px 0;
  color: var(--slate);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
}
.card-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--cobalt);
}
.card-tabs button:hover { color: var(--ink); }

.card-actions {
  display: flex;
  gap: 8px;
}
.card-actions .btn-send {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 8px;
  background: var(--cobalt);
  color: var(--cobalt-on);
  border: 1px solid var(--cobalt);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .15s ease;
}
.card-actions .btn-send:hover { background: var(--cobalt-deep); color: var(--cobalt-on); }
.card-actions .btn-bulk {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 8px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all .15s ease;
}
.card-actions .btn-bulk:hover { border-color: var(--cobalt); color: var(--cobalt); }

@media (max-width: 980px) {
  .collections-shell { grid-template-columns: 1fr; padding: 20px 24px 70px; gap: 20px; }
  .collections-sidebar { position: static; max-height: none; overflow: visible; padding-right: 0; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
  .collections-intro { padding: 24px 24px 6px; }
}
@media (max-width: 520px) {
  .card-item { flex: 0 0 78%; }
}

/* ---------- AUTH PAGES (login/signup) ---------- */
.auth-page {
  max-width: 440px;
  margin: 0 auto;
  padding: 80px 32px 110px;
}
.auth-page h1 {
  font-size: 2.2rem;
  margin: 0 0 .2em;
  line-height: 1.15;
}
.auth-page .auth-sub {
  color: var(--slate);
  margin: 0 0 36px;
  font-size: .98rem;
  max-width: none;
}
.auth-form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .auth-row { grid-template-columns: 1fr; } }
.auth-field label {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
}
.auth-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 4px;
  outline: none;
  transition: border-color .15s ease;
}
.auth-field input:focus { border-color: var(--cobalt); }
.auth-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.auth-footer {
  margin-top: 28px;
  font-size: .92rem;
  color: var(--slate);
  text-align: left;
}
.auth-footer a { color: var(--cobalt); font-weight: 500; }

/* ---------- HOW IT WORKS PAGE ---------- */
.how-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 56px 110px;
}
.how-page h1 {
  max-width: none;
  margin-bottom: .3em;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .how-page h1 { white-space: normal; font-size: clamp(2rem, 6vw, 2.6rem); }
}
.how-page .how-lead {
  max-width: 60ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 60px;
}
.how-steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  padding-top: 0;
}
.how-steps .how-step {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: baseline;
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
.how-steps .how-step:last-child { border-bottom: none; }
.how-steps .how-step .step-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--cobalt);
  margin: 0;
  letter-spacing: .12em;
}
.how-steps .how-step .step-body h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--ink);
}
.how-steps .how-step .step-body p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 60ch;
}
@media (max-width: 760px) {
  .how-page { padding: 70px 24px 90px; }
  .how-steps .how-step {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 32px 0;
  }
  .how-steps .how-step .step-body h3 { font-size: 1.4rem; }
}

/* Footer logo dark-mode handling */
[data-theme="dark"] .footer-brand img { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) brightness(1.4); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(27,42,78,.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  background: var(--cream);
  padding: 36px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  width: 36px;
  height: 36px;
}
.lightbox-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #fff;
  border: 1px solid var(--rule);
  margin-bottom: 22px;
}
.lightbox-img img { width: 100%; height: 100%; object-fit: contain; }
.lightbox h3 { margin: 0 0 4px; font-size: 1.5rem; }
.lightbox-cat { color: var(--slate); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.lightbox-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- PRICING ---------- */
.pricing-hero {
  padding: 90px max(56px, calc((100% - 1100px) / 2)) 40px;
  margin: 0;
}
.pricing-hero h1 { margin-bottom: .3em; max-width: 16ch; }
.pricing-hero p { max-width: 60ch; font-size: 1.05rem; }

.pricing-toggle {
  display: inline-flex;
  border: 1px solid var(--ink);
  padding: 3px;
  margin: 30px 0 0;
}
.pricing-toggle button {
  background: transparent;
  border: none;
  padding: 11px 26px;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all .25s ease;
}
.pricing-toggle button.active {
  background: var(--ink);
  color: var(--cream);
}
.toggle-save {
  font-size: .65rem;
  color: var(--cobalt);
  margin-left: 8px;
  font-weight: 700;
}
.pricing-toggle button.active .toggle-save { color: #B7C8F0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1280px;
  margin: 50px auto 0;
  padding: 0 56px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.plan {
  padding: 50px 32px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid var(--rule);
}
.plan:last-child { border-right: none; }
.plan.featured {
  background: var(--paper);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cobalt);
  color: #fff;
  padding: 5px 18px;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.plan h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0 0 18px;
  color: var(--ink);
}
.plan-price strong {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--ink);
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
  line-height: 1.1;
}
.plan-price span {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--slate);
}
.plan-tagline {
  font-size: .88rem;
  color: var(--slate);
  font-style: italic;
  margin: 16px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-soft);
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex: 1;
}
.plan-features li {
  font-size: .9rem;
  color: var(--ink-soft);
  padding: 8px 0;
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 1px;
  background: var(--cobalt);
}
.plan .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
  .plan { border-bottom: 1px solid var(--rule); }
  .plan:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .plan { border-right: none; }
}

/* ---------- STORY ---------- */
.story-hero {
  padding: 110px 56px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.story-hero .meta {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 1.6em;
}
.story-hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.4rem); margin-bottom: .3em; max-width: 16ch; }

/* Larger hero variant used on Our Story page */
.story-hero-lg { padding-top: 130px; padding-bottom: 16px; text-align: left; }
.story-hero-lg .story-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 6.6vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .25em;
  max-width: none;
}
.story-hero-lg .story-lede-hero {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: none;
  white-space: nowrap;
  margin: 0;
}
@media (max-width: 720px) {
  .story-hero-lg { padding: 88px 24px 12px; }
  .story-hero-lg .story-title { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .story-hero-lg .story-lede-hero { white-space: normal; font-size: clamp(1.1rem, 3.6vw, 1.5rem); }
}

/* Meet Beauty section */
.meet-beauty {
  padding: 96px 56px;
  background: var(--cream-2);
}
.meet-beauty-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.meet-beauty-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.meet-beauty-copy .eyebrow { margin-bottom: 14px; color: #2D5DA8; /* cobalt blue */ }
.meet-beauty-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 22px;
  color: var(--ink);
}
.meet-beauty-copy p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
  max-width: 56ch;
}
@media (max-width: 820px) {
  .meet-beauty { padding: 64px 24px; }
  .meet-beauty-inner { grid-template-columns: 1fr; gap: 32px; }
  .meet-beauty-image { max-width: 420px; }
}
.story-hero .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0 0 50px;
  line-height: 1.4;
  font-weight: 400;
}
.story-beauty {
  max-width: 360px;
  margin: 0;
}
.story-beauty img { display: block; }
.story-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 56px 100px;
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.story-body > p { max-width: 70ch; }
@media (max-width: 720px) {
  .story-body { padding: 16px 24px 80px; }
}
.story-body p { margin-bottom: 1.4em; max-width: 70ch; }
.story-body .story-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 1.8em;
}
.story-body .story-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.5;
  margin-top: 2em;
}

.founders {
  padding: 100px 0;
  background: var(--cream-2);
}
.founders .container-narrow { text-align: left; }
.founders h2 { font-size: 2.2rem; margin-bottom: .4em; }
.founder-names {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cobalt);
  font-size: 1.5rem;
  margin: 24px 0 16px;
  font-weight: 400;
}

/* ---------- FAQ ---------- */
.faq-hero {
  padding: 100px 56px 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.faq-hero h1 { margin-bottom: .3em; max-width: 18ch; }
@media (max-width: 900px) {
  .faq-hero p[style] { white-space: normal !important; }
}
.faq-list {
  max-width: 820px;
  margin: 40px auto 100px;
  padding: 0 32px;
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--ink);
  font-weight: 400;
  padding: 8px 50px 8px 0;
  cursor: pointer;
  position: relative;
  transition: color .2s;
  line-height: 1.4;
}
.faq-q:hover { color: var(--cobalt); }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  color: var(--cobalt);
  font-weight: 300;
  transition: transform .3s ease;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 18px 50px 8px 0;
}

/* ---------- CONTENT (legal) ---------- */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 90px 32px 110px;
}
.content-page h1 { margin-bottom: .3em; max-width: 22ch; }
.content-page h2 { margin-top: 2em; font-size: 1.6rem; font-weight: 400; color: var(--ink); }
.content-page h3 { margin-top: 1.4em; font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.content-page p { color: var(--ink-soft); }
.content-page .eyebrow { display: block; }
.content-page .legal-dates {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 8px 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-soft);
}
.content-page ul {
  margin: 0 0 1.4em;
  padding-left: 0;
  list-style: none;
}
.content-page li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.content-page li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 1px;
  background: var(--cobalt);
}

/* ---------- CONTACT ---------- */
.contact-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 32px;
}
.contact-page h1 { margin-bottom: .4em; }
.contact-email {
  font-family: var(--serif);
  color: var(--cobalt);
  font-size: 1.5rem;
  margin: 24px 0;
  font-style: italic;
  font-weight: 400;
  display: inline-block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form .field-label {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(27,42,78,.18);
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(0,104,176,.12);
}
.contact-form .contact-send {
  align-self: flex-start;
  margin-top: 8px;
}
.contact-status {
  font-family: var(--sans);
  font-size: .95rem;
  margin: 0;
  min-height: 1.2em;
}

/* ---------- FONTS / HANDWRITING PAGE ---------- */
.fonts-hero {
  padding: 100px 56px 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.fonts-hero h1 { max-width: 18ch; margin-bottom: .3em; }
.fonts-controls {
  max-width: 600px;
  padding: 0 32px;
  margin: 40px auto 60px;
}
.fonts-controls label {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 14px;
}
.fonts-controls input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  border-radius: 4px;
  font-style: italic;
}
.fonts-controls input:focus { border-color: var(--cobalt); }

.fonts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 50px 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px 100px;
}
.font-card {
  border-top: 1px solid var(--rule);
  padding: 32px 0 0;
}
.font-sample {
  font-size: 1.7rem;
  color: var(--ink);
  line-height: 1.5;
  min-height: 100px;
  margin-bottom: 24px;
  word-wrap: break-word;
}
.font-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.font-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.font-code {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--slate);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .fonts-grid { padding: 0 24px 70px; }
  .fonts-hero { padding: 70px 24px 20px; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-delay-1 { animation: fadeUp .5s ease .08s both; }
.fade-up-delay-2 { animation: fadeUp .5s ease .16s both; }
.fade-up-delay-3 { animation: fadeUp .5s ease .24s both; }

/* ============================ */
/* SEND WIZARD                  */
/* ============================ */
:root {
  /* Accent flipped from coral to logo blue per brand: keep var names for compat. */
  --coral: #0068B0;
  --coral-dark: #004A82;
  --frame: #FCFAF3;
  --frame-rule: #E8E2CF;
  --review-bg: #F2EDDD;
}
[data-theme="dark"] {
  --frame: #1B202A;
  --frame-rule: #2A3140;
  --review-bg: #1A1F29;
}

.send-wizard { background: var(--cream); min-height: 80vh; padding: 32px 0 80px; }
.send-shell { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Stepper */
.send-steps {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  font-family: var(--sans);
}
.send-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  font-size: .92rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.send-step .num {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 600;
  background: transparent;
}
.send-step.is-active { color: var(--ink); }
.send-step.is-active .num { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }

/* Card summary bar */
.send-summary {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--frame);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  padding: 16px 22px;
  margin-bottom: 28px;
}
.send-summary-card img {
  width: 100%; height: auto; max-height: 130px; object-fit: cover; display: block;
  border-radius: 2px;
}
.send-summary-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.send-tier-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .9rem;
}
.send-tier-table th {
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 4px 12px 4px 0;
}
.send-tier-table td {
  padding: 4px 14px 4px 0;
  color: var(--coral);
  font-weight: 500;
}
.send-tier-table .tier-qty td { color: var(--slate); font-weight: 400; }
.send-tier-table .tier-active {
  background: rgba(232,91,58,.10);
  border-radius: 2px;
}

/* Panes */
.send-pane { display: none; }
.send-pane.is-active { display: block; }

.send-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 30px;
}
.send-col { display: flex; flex-direction: column; gap: 14px; }
.send-col-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 4px;
}
.send-col-head.pad-top { margin-top: 18px; }
.send-col-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 400;
}
.send-col-head .rule { flex: 1; height: 1px; background: var(--frame-rule); }

.card-frame {
  background: var(--frame);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  padding: 22px;
}
.pad-top { padding-top: 18px; }

/* Tag dropdowns */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dropdown { position: relative; }
.dropdown-btn {
  background: var(--frame);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  padding: 9px 14px;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.dropdown-btn:hover { border-color: var(--rule); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--paper);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  display: none;
  z-index: 30;
  padding: 6px 0;
}
.dropdown-menu.open { display: block; }
.dropdown-menu button {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 9px 14px;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--ink);
  cursor: pointer;
}
.dropdown-menu button:hover { background: var(--cream); color: var(--cobalt); }

.msg-textarea {
  width: 100%;
  min-height: 180px;
  background: var(--frame);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
}
.sig-input {
  width: 100%;
  background: var(--frame);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
}
.msg-textarea:focus, .sig-input:focus, .date-input:focus, .writing-select:focus {
  outline: none; border-color: var(--cobalt);
}
.counter-row { font-family: var(--sans); font-size: .82rem; color: var(--slate); }
.signoff-block { margin-top: 18px; }
.signoff-label { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.signoff-textarea { min-height: 80px; }
.counter-row.align-r { text-align: right; }
.muted { color: var(--slate); }
.muted.small { font-size: .88rem; }
.italic { font-style: italic; }

.writing-style-row { display: flex; align-items: center; gap: 10px; }
.writing-select {
  flex: 1;
  background: var(--frame);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
}
.icon-btn {
  width: 40px; height: 40px;
  background: var(--frame);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.icon-btn:hover { color: var(--cobalt); }

/* Handwriting preview — fixed-size card mockup */
.handwriting-preview {
  position: relative;
  width: 100%;
  height: 500px;
  background: var(--frame);
  border: 1px dashed var(--frame-rule);
  border-radius: 4px;
  padding: 0;
  color: #111;
  font-size: 2rem;
  line-height: 1.55;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: font-size .15s ease;
}
.handwriting-preview .hw-body {
  position: absolute;
  top: 40px;
  /* Nudge inward. Some handwriting fonts (Florence, Aurelia, etc.) have wide
     negative left side-bearings, so the first glyph visually extends left of
     the text origin. Extra left padding + text-indent keeps opening strokes
     and ascender curves fully in view. */
  left: 60px;
  right: 40px;
  padding-left: 0;
  text-indent: 0.35em;
  /* leave room for the sign-off block in the lower right */
  bottom: 130px;
  overflow: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.6;
}
.handwriting-preview .hw-sig {
  position: absolute;
  right: 50px;
  bottom: 50px;
  max-width: 55%;
  text-align: right;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.6;
}
.handwriting-preview .hw-placeholder {
  position: absolute;
  text-indent: 0.35em;
  top: 40px;
  left: 60px;
  right: 40px;
  color: var(--slate);
  font-family: var(--sans);
  font-style: italic;
  font-size: 1rem;
}
.handwriting-preview .hw-overflow-warn {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--sans);
  font-size: .78rem;
  font-style: normal;
  color: #C95A4A;
  background: rgba(255,255,255,0.85);
  border: 1px solid #C95A4A;
  border-radius: 3px;
  padding: 3px 8px;
}
.handwriting-preview { color: #111; }
.handwriting-preview[data-style="qei-002A"] { font-family: 'QEi 002A'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-003A"] { font-family: 'QEi 003A'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-004B"] { font-family: 'QEi 004B'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-005B"] { font-family: 'QEi 005B'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-006C"] { font-family: 'QEi 006C'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-009B"] { font-family: 'QEi 009B'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-011A"] { font-family: 'QEi 011A'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-012B"] { font-family: 'QEi 012B'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-013C"] { font-family: 'QEi 013C'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-015C"] { font-family: 'QEi 015C'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-017C"] { font-family: 'QEi 017C'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-020B"] { font-family: 'QEi 020B'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-023B"] { font-family: 'QEi 023B'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-025A"] { font-family: 'QEi 025A'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-026C"] { font-family: 'QEi 026C'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-029B"] { font-family: 'QEi 029B'; font-size: 2rem; line-height: 1.55; }
.handwriting-preview[data-style="qei-030C"] { font-family: 'QEi 030C'; font-size: 2rem; line-height: 1.55; }

/* Send page summary price line (replaces tier table) */
.send-summary-price {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Writing-style font picker (compact dropdown bar) ---------- */
.font-picker { position: relative; width: 100%; max-width: 420px; }
.fp-toggle,
.font-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  min-height: 44px;
  background: #fff;
  border: 1px solid #d8d2c0;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--serif);
  color: var(--ink);
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fp-toggle:hover,
.font-picker-trigger:hover { border-color: var(--logo-blue, #0068B0); }
.fp-toggle:focus,
.font-picker-trigger:focus { outline: none; border-color: var(--logo-blue, #0068B0); box-shadow: 0 0 0 3px rgba(0,104,176,0.15); }
.font-picker.open .fp-toggle,
.font-picker[aria-expanded="true"] .font-picker-trigger,
.font-picker-trigger[aria-expanded="true"] { border-color: var(--logo-blue, #0068B0); box-shadow: 0 0 0 3px rgba(0,104,176,0.15); }
.fp-label {
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  /* default font-family is overridden inline by JS based on selection;
     each QEi face is mapped below for any direct [data-style] selector use. */
}
.fp-label[data-style="qei-002A"] { font-family: 'QEi 002A'; }
.fp-label[data-style="qei-003A"] { font-family: 'QEi 003A'; }
.fp-label[data-style="qei-004B"] { font-family: 'QEi 004B'; }
.fp-label[data-style="qei-005B"] { font-family: 'QEi 005B'; }
.fp-label[data-style="qei-006C"] { font-family: 'QEi 006C'; }
.fp-label[data-style="qei-009B"] { font-family: 'QEi 009B'; }
.fp-label[data-style="qei-011A"] { font-family: 'QEi 011A'; }
.fp-label[data-style="qei-012B"] { font-family: 'QEi 012B'; }
.fp-label[data-style="qei-013C"] { font-family: 'QEi 013C'; }
.fp-label[data-style="qei-015C"] { font-family: 'QEi 015C'; }
.fp-label[data-style="qei-017C"] { font-family: 'QEi 017C'; }
.fp-label[data-style="qei-020B"] { font-family: 'QEi 020B'; }
.fp-label[data-style="qei-023B"] { font-family: 'QEi 023B'; }
.fp-label[data-style="qei-025A"] { font-family: 'QEi 025A'; }
.fp-label[data-style="qei-026C"] { font-family: 'QEi 026C'; }
.fp-label[data-style="qei-029B"] { font-family: 'QEi 029B'; }
.fp-label[data-style="qei-030C"] { font-family: 'QEi 030C'; }
.fp-chev {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform .18s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.font-picker.open .fp-chev,
.font-picker-trigger[aria-expanded="true"] .fp-chev { transform: rotate(180deg); }
.font-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e3dccb;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(27, 42, 78, 0.14);
  max-height: 320px;
  overflow-y: auto;
}
.font-picker-menu[hidden] { display: none; }
.font-picker-menu li {
  padding: 10px 16px;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.font-picker-menu li:hover,
.font-picker-menu li:focus {
  background: var(--cream, #FBF7EE);
  outline: none;
}
.font-picker-menu li.is-active {
  background: rgba(0, 104, 176, 0.06);
  color: var(--cobalt);
}
.font-picker-menu li.is-active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--cobalt);
  border-radius: 2px;
}

/* Apply each QEi font to its option AND to the trigger label when selected */
.font-picker-menu li[data-style="qei-002A"] { font-family: 'QEi 002A'; }
.font-picker-menu li[data-style="qei-003A"] { font-family: 'QEi 003A'; }
.font-picker-menu li[data-style="qei-004B"] { font-family: 'QEi 004B'; }
.font-picker-menu li[data-style="qei-005B"] { font-family: 'QEi 005B'; }
.font-picker-menu li[data-style="qei-006C"] { font-family: 'QEi 006C'; }
.font-picker-menu li[data-style="qei-009B"] { font-family: 'QEi 009B'; }
.font-picker-menu li[data-style="qei-011A"] { font-family: 'QEi 011A'; }
.font-picker-menu li[data-style="qei-012B"] { font-family: 'QEi 012B'; }
.font-picker-menu li[data-style="qei-013C"] { font-family: 'QEi 013C'; }
.font-picker-menu li[data-style="qei-015C"] { font-family: 'QEi 015C'; }
.font-picker-menu li[data-style="qei-017C"] { font-family: 'QEi 017C'; }
.font-picker-menu li[data-style="qei-020B"] { font-family: 'QEi 020B'; }
.font-picker-menu li[data-style="qei-023B"] { font-family: 'QEi 023B'; }
.font-picker-menu li[data-style="qei-025A"] { font-family: 'QEi 025A'; }
.font-picker-menu li[data-style="qei-026C"] { font-family: 'QEi 026C'; }
.font-picker-menu li[data-style="qei-029B"] { font-family: 'QEi 029B'; }
.font-picker-menu li[data-style="qei-030C"] { font-family: 'QEi 030C'; }
.handwriting-preview.inline { min-height: 0; padding: 8px 4px 8px 18px; text-indent: 0.25em; border: none; background: transparent; font-size: 1.6rem; line-height: 1.1; }
.handwriting-preview .hw-placeholder { color: var(--slate); font-family: var(--sans); font-size: 1rem; font-style: italic; }
.handwriting-preview .hw-sig { margin-top: 16px; }

/* Buttons used in wizard */
.btn-coral {
  background: var(--coral);
  color: #fff;
  border: 1px solid var(--coral);
  border-radius: 2px;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn-coral:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.btn-coral.btn-outline { background: transparent; color: var(--coral); }
.btn-coral.btn-outline:hover { background: var(--coral); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: .92rem;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row.right { justify-content: flex-end; }

.send-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

/* Save this Send Now review to the shared basket. */
.add-more-cta {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--cream);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
}
.add-more-copy {
  margin: 0 0 14px;
  max-width: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
}
.add-more-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.add-more-btn-row .btn {
  flex: 0 0 auto;
  width: auto;
  text-align: center;
  justify-content: center;
}
@media (max-width: 720px) {
  .add-more-btn-row { flex-direction: column; align-items: stretch; }
  .add-more-btn-row .btn { width: 100%; }
}
.saved-to-basket-note { color: var(--ink); }

/* Date input */
.date-input {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--frame-rule);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
}

/* Recipients */
.recipients-toolbar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}
.search-wrap {
  position: relative;
}
.search-wrap input {
  width: 100%;
  background: var(--frame);
  border: 1px solid var(--frame-rule);
  border-radius: 2px;
  padding: 10px 38px 10px 14px;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink);
}
.search-wrap svg {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--slate);
}
.recipients-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--slate);
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--frame-rule);
}
.recipients-meta a { color: var(--ink); text-decoration: none; }
.recipients-meta a:hover { color: var(--cobalt); }
.recipients-list { max-height: 360px; overflow-y: auto; }
.recipient-row {
  display: grid;
  grid-template-columns: 24px 1fr 1.4fr 32px;
  gap: 14px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--frame-rule);
  font-family: var(--sans);
  font-size: .9rem;
  cursor: pointer;
}
.recipient-row:hover { background: rgba(0,0,0,.02); }
.recipient-row input[type="checkbox"] { accent-color: var(--cobalt); width: 16px; height: 16px; }
.recipient-name { font-weight: 600; color: var(--ink); }
.recipient-addr { color: var(--slate); font-size: .85rem; line-height: 1.4; }
.recipient-edit {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #E8E2CF;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
}
.recipient-edit:hover { background: var(--coral); color: #fff; }

.addr-view { font-family: var(--sans); line-height: 1.5; }
.addr-view .addr-name { font-weight: 700; margin-bottom: 4px; }

/* Review cards */
.review-card {
  background: var(--frame);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 22px;
}
.review-left { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.review-left img { width: 130px; height: 130px; object-fit: cover; border-radius: 2px; }
.order-id {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--slate);
  padding: 6px 12px;
  border: 1px solid var(--frame-rule);
  border-radius: 999px;
  text-align: center;
}
.review-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .9fr auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--frame-rule);
}
.review-row.split {
  grid-template-columns: 1.4fr .8fr;
  border-bottom: none;
  padding-top: 18px;
  padding-bottom: 0;
}
.review-block .lbl {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.review-block .val {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.review-block.totals table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9rem; }
.review-block.totals td { padding: 2px 0; }
.review-block.totals td:last-child { text-align: right; color: var(--coral); font-weight: 500; }
.review-block.totals tr.strong td { color: var(--ink); font-weight: 700; padding-top: 6px; }
.review-block.actions { display: flex; flex-direction: column; gap: 8px; }
.hw-frame { background: var(--cream); border: 1px dashed var(--frame-rule); border-radius: 4px; padding: 18px; min-height: 260px; }
/* Left padding + text-indent so handwriting fonts with wide negative left
   side-bearings (Florence, Aurelia, etc.) render their opening strokes.
   Applies on the Review page where text lives directly inside .handwriting-preview. */
.hw-frame .handwriting-preview { background: transparent; border: none; padding: 0 0 0 24px; text-indent: 0.35em; min-height: 160px; }
.preview-tabs { display: flex; gap: 26px; justify-content: center; margin-top: 12px; font-family: var(--sans); font-size: .9rem; color: var(--slate); }
.preview-tabs .tab.active { color: var(--ink); border-bottom: 2px solid var(--coral); padding-bottom: 4px; }
.meta-col { display: flex; flex-direction: column; gap: 14px; }
.meta-block .lbl { font-family: var(--sans); font-weight: 700; font-size: .9rem; color: var(--ink); }
.meta-block .val { font-family: var(--sans); font-size: .88rem; color: var(--ink-soft); margin-top: 4px; }

/* Success */
.success-box {
  background: var(--frame);
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  padding: 28px 32px;
  margin-top: 24px;
}
.success-box h3 { font-family: var(--serif); font-size: 1.8rem; color: var(--cobalt); margin: 0 0 8px; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 0; }
.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin: auto;
  background: var(--cream);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.modal-error-bar {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 16px 0;
  background: #fff4f3;
  border: 1px solid #e8b4ad;
  border-left: 4px solid #c44536;
  border-radius: 8px;
  color: #7a2620;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
.modal-error-bar.is-visible { display: flex; }
.modal-error-bar .modal-error-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c44536;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.modal-error-bar .modal-error-msg { flex: 1; }
.modal-panel h3 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 18px; color: var(--ink); }
#addrForm label { display: block; font-family: var(--sans); font-size: .85rem; color: var(--ink); margin-bottom: 12px; }
#addrForm input[type="text"], #addrForm input:not([type]) {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--frame-rule);
  border-radius: 4px;
  background: var(--frame);
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
}
#addrForm .row-3 { display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: 10px; }
#addrForm .checkbox-line { display: flex; align-items: center; gap: 8px; }

/* Responsive */
@media (max-width: 980px) {
  .send-shell { padding: 0 18px; }
  .send-summary { grid-template-columns: 90px 1fr; }
  .send-summary-actions { grid-column: 1 / -1; }
  .send-grid { grid-template-columns: 1fr; gap: 24px; }
  .send-tier-table { font-size: .8rem; }
  .send-tier-table th, .send-tier-table td { padding: 4px 8px 4px 0; }
  .review-card { grid-template-columns: 1fr; }
  .review-row, .review-row.split { grid-template-columns: 1fr; }
  .recipients-toolbar { grid-template-columns: 1fr 1fr; }
  .recipients-toolbar .search-wrap { grid-column: 1 / -1; }
  .recipient-row { grid-template-columns: 24px 1fr 32px; }
  .recipient-row .recipient-addr { grid-column: 1 / -1; padding-left: 38px; }
}
@media (max-width: 640px) {
  .send-steps { gap: 12px; font-size: .8rem; }
  .send-tier-table { display: block; overflow-x: auto; }
  /* Stack the send wizard action bar vertically so long CTA labels never overflow. */
  .send-actions-row {
    flex-direction: column-reverse;
    gap: 12px;
    align-items: stretch;
  }
  .send-actions-row .btn,
  .send-actions-row button { width: 100%; justify-content: center; }
  /* Allow primary CTA labels to wrap and shrink padding on tight screens. */
  .btn { white-space: normal; padding: 12px 18px; font-size: .9rem; line-height: 1.25; }
  .btn-row { flex-wrap: wrap; }
}

/* ===== GLOBAL HEADER STYLE =====
   All headers: Playfair Display in the logo color.
   ONLY the main page header (h1 / hero headline) is italic.
   h2-h6 stay upright for readability. */
h1, h2, h3, h4, h5, h6,
.hero .hero-headline,
.story-hero h1,
.story-hero-lg .story-title,
.editorial-head h2,
.meet-beauty-copy h2,
.cta-block h2,
.three-col .col h3,
.how-step h4,
.footer-col h5 {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  font-style: normal !important;
  color: var(--ink) !important;
}
/* Only the main page header (h1 / hero headline / story title) stays blue + italic */
h1,
.hero .hero-headline,
.story-hero h1,
.story-hero-lg .story-title {
  color: var(--logo-blue) !important;
  font-style: italic !important;
}

/* ===== BULK WIZARD ===== */
.bulk-wizard { padding-bottom: 100px; }

.bulk-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.bulk-template, .bulk-upload {
  background: var(--frame, #FCFAF3);
  border: 1px solid var(--frame-rule, #E8E2CF);
  border-radius: 6px;
  padding: 32px 32px 28px;
}
.bulk-template h3, .bulk-upload h3 { margin: 6px 0 12px; font-size: 1.45rem; }
.bulk-template p { color: var(--ink-soft); line-height: 1.55; margin: 0 0 16px; max-width: 48ch; }
.template-fields {
  list-style: none; padding: 0; margin: 0 0 22px;
  font-family: var(--sans); font-size: .9rem; color: var(--ink-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px;
}
.template-fields li { padding: 2px 0; border-bottom: 1px dotted rgba(27,42,78,.12); }
.template-fields strong { color: var(--ink); font-weight: 600; }

.dropzone {
  border: 2px dashed rgba(0, 104, 176, .35);
  border-radius: 10px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  margin-top: 6px;
}
.dropzone:hover, .dropzone.is-dragover {
  background: rgba(232, 91, 58, .06);
  border-color: var(--coral, #E85B3A);
}
.dropzone-inner {
  padding: 44px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--sans);
}
.dropzone-inner svg { color: var(--logo-blue); opacity: .75; margin-bottom: 10px; }
.dz-headline { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin: 6px 0 4px; }
.dz-sub { margin: 4px 0; }
.dz-help { font-size: .82rem; opacity: .7; margin-top: 8px; }
.dz-browse {
  background: none; border: none; color: var(--coral);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline;
}
.upload-status {
  margin-top: 14px; padding: 10px 14px; border-radius: 6px;
  font-family: var(--sans); font-size: .92rem;
}
.upload-status.ok   { background: rgba(46, 145, 92, .10); color: #1F6B45; }
.upload-status.warn { background: rgba(199, 66, 31, .10); color: var(--coral-dark, #C7421F); }

.bulk-preview {
  background: var(--frame, #FCFAF3);
  border: 1px solid var(--frame-rule, #E8E2CF);
  border-radius: 6px;
  padding: 24px 26px 22px;
  margin-bottom: 28px;
}
.bulk-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.bulk-preview-head h3 { margin: 0; font-size: 1.2rem; }
.preview-meta { display: flex; align-items: center; gap: 10px; font-family: var(--sans); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.badge-ok    { background: rgba(46, 145, 92, .15);  color: #1F6B45; }
.badge-warn  { background: rgba(199, 66, 31, .15);  color: var(--coral-dark, #C7421F); }
.btn-text {
  background: none; border: none; color: var(--cobalt);
  font: inherit; cursor: pointer; text-decoration: underline; padding: 4px 0;
}
.btn-text:hover { color: var(--cobalt-deep); }

.bulk-table-wrap { overflow-x: auto; }
.bulk-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--sans); font-size: .88rem; color: var(--ink);
}
.bulk-table th, .bulk-table td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid rgba(27,42,78,.08);
  white-space: nowrap;
}
.bulk-table thead th {
  font-weight: 600; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft);
  border-bottom: 2px solid rgba(27,42,78,.12);
}
.bulk-table tr.row-warn td { background: rgba(199, 66, 31, .05); }
.cell-status { font-weight: 600; font-size: .76rem; letter-spacing: .04em; }
.cell-status.ok   { color: #1F6B45; }
.cell-status.warn { color: var(--coral-dark, #C7421F); }
.cell-preview { font-style: italic; color: var(--ink-soft); white-space: normal; max-width: 360px; }
.bulk-table-foot {
  margin: 12px 0 0; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); font-style: italic;
}

/* Pricing strip active tier highlight */
.pricing-strip .p-tier, .pricing-strip .p-price {
  padding: 4px 10px; border-radius: 4px; transition: background .15s ease, color .15s ease;
}
.pricing-strip .p-tier.is-active, .pricing-strip .p-price.is-active {
  background: var(--coral, #E85B3A); color: #fff; font-weight: 600;
}

/* Step 2, merge field UI */
.message-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 6px 0 10px;
}
.dropdown {
  position: relative; font-family: var(--sans); font-size: .88rem;
}
.dropdown > summary {
  list-style: none; cursor: pointer;
  background: #fff; border: 1px solid rgba(27,42,78,.18); border-radius: 4px;
  padding: 6px 12px; color: var(--ink); user-select: none;
}
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown[open] > summary { background: var(--cream-2); border-color: var(--cobalt); }
.dropdown-menu {
  position: absolute; z-index: 30; top: 100%; left: 0; margin-top: 6px;
  background: #fff; border: 1px solid rgba(27,42,78,.15);
  border-radius: 6px; box-shadow: 0 8px 24px rgba(27,42,78,.10);
  padding: 6px; min-width: 200px;
  flex-direction: column; gap: 2px;
  max-height: 280px; overflow-y: auto;
  display: none;
}
.dropdown-menu.open { display: flex; }
.dropdown-menu button {
  text-align: left; background: none; border: none;
  padding: 7px 10px; border-radius: 4px; cursor: pointer;
  font: inherit; color: var(--ink);
}
.dropdown-menu button:hover { background: var(--cream); color: var(--cobalt); }

#bulkMessage {
  width: 100%; min-height: 200px;
  background: #fff; border: 1px solid rgba(27,42,78,.18); border-radius: 6px;
  padding: 14px 16px; font-family: var(--sans); font-size: 1rem;
  color: var(--ink); resize: vertical;
}
#bulkSignature {
  width: 100%; margin-top: 10px;
  background: #fff; border: 1px solid rgba(27,42,78,.18); border-radius: 6px;
  padding: 10px 14px; font-family: var(--sans); font-size: 1rem;
}
.merge-help {
  font-family: var(--sans); font-size: .82rem; color: var(--ink-soft);
  margin: 8px 0 4px;
}
.merge-help code {
  background: var(--cream-2); padding: 1px 6px; border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem;
}

.addon-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(27,42,78,.08);
  font-family: var(--sans);
}
.addon-row:last-child { border-bottom: none; }
.addon-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--coral); }
.addon-row .muted { color: var(--ink-soft); font-size: .85rem; }

.style-label { display: block; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin: 0 0 8px; }
.style-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.style-pill {
  position: relative; cursor: pointer;
  padding: 7px 14px; border: 1px solid rgba(27,42,78,.18); border-radius: 999px;
  font-family: var(--sans); font-size: .88rem; color: var(--ink);
  background: #fff;
  transition: background .15s, border-color .15s, color .15s;
}
.style-pill input { position: absolute; opacity: 0; pointer-events: none; }
.style-pill:has(input:checked) { background: var(--coral); border-color: var(--coral); color: #fff; }

.preview-tabs {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 14px; font-family: var(--sans); font-size: .88rem;
}
.preview-tab {
  background: none; border: none; padding: 4px 0; cursor: pointer;
  color: var(--ink-soft); border-bottom: 2px solid transparent;
}
.preview-tab.is-active { color: var(--ink); border-bottom-color: var(--coral); font-weight: 600; }
.preview-recipient {
  font-family: var(--sans); font-size: .88rem; color: var(--ink-soft);
  margin-top: 10px; text-align: center;
}
.preview-recipient select {
  background: #fff; border: 1px solid rgba(27,42,78,.18); border-radius: 4px;
  padding: 4px 8px; font: inherit; color: var(--ink);
}
.preview-empty { color: var(--ink-soft); font-style: italic; font-family: var(--sans); }
.preview-plain {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem;
  white-space: pre-wrap; background: var(--cream-2); padding: 12px; border-radius: 4px;
  color: var(--ink);
}

/* Step 3, date, address, summary, meta */
.date-input {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid rgba(27,42,78,.18); border-radius: 6px;
  padding: 10px 14px; margin: 6px 0 8px;
}
.address-block {
  font-family: var(--sans); font-size: .96rem; color: var(--ink);
  line-height: 1.6; padding: 14px 16px;
  background: var(--cream-2); border-radius: 6px;
  margin: 6px 0 12px;
}
.address-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px;
}
.btn-sm { font-size: .78rem; padding: 6px 14px; letter-spacing: .04em; }
.btn-coral-outline {
  display: inline-block; background: transparent; color: var(--coral);
  border: 1px solid var(--coral); border-radius: 999px;
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  padding: 10px 22px; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-coral-outline:hover { background: var(--coral); color: #fff; }

.summary-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--sans); font-size: .95rem;
}
.summary-table td {
  padding: 9px 4px; border-bottom: 1px solid rgba(27,42,78,.08);
}
.summary-table .ta-right { text-align: right; font-variant-numeric: tabular-nums; }
.summary-table .muted { color: var(--ink-soft); font-size: .82rem; }
.summary-table .summary-total td {
  border-bottom: none; border-top: 2px solid var(--ink);
  font-weight: 700; font-size: 1.1rem; padding-top: 14px;
}

.meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px;
  font-family: var(--sans); font-size: .92rem;
}
.meta-grid strong {
  display: block; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 600;
  margin-bottom: 2px;
}

.bulk-recipients-review {
  margin-top: 28px;
  background: var(--frame, #FCFAF3);
  border: 1px solid var(--frame-rule, #E8E2CF);
  border-radius: 6px;
  padding: 24px 26px 22px;
}
.bulk-recipients-review h3 { margin: 0 0 14px; font-size: 1.2rem; }
.bulk-recipients-review .muted { font-family: var(--sans); font-weight: 400; color: var(--ink-soft); font-size: .9rem; }

.btn-lg { font-size: 1rem; padding: 14px 32px; }

/* Success state */
.bulk-success {
  text-align: center; padding: 80px 24px 100px;
  max-width: 640px; margin: 0 auto;
}
.success-mark {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--coral); color: #fff; font-size: 2.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.bulk-success h2 { font-size: 2.2rem; margin: 0 0 10px; }
.bulk-success .lede { font-family: var(--sans); font-size: 1.1rem; color: var(--ink); margin: 6px 0 18px; }
.bulk-success p { font-family: var(--sans); color: var(--ink-soft); line-height: 1.6; max-width: 48ch; margin: 8px auto; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 880px) {
  .bulk-upload-grid { grid-template-columns: 1fr; }
  .template-fields { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
  .bulk-table th, .bulk-table td { white-space: normal; }
}

/* Helper retained for any opt-out cases */
h1.no-italic { font-style: normal !important; }

/* ---------- MISSION BODY (home) ---------- */
.mission-body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 24px 0 0 0;
  text-align: left;
}

/* ---------- CLOSING CTA (tight spacing, centered) ---------- */
.editorial.closing-cta { text-align: center; }
.editorial.closing-cta .editorial-head { margin: 0 auto 16px; max-width: none; }
.editorial.closing-cta .editorial-head h2 { text-align: center; white-space: normal; }
.editorial.closing-cta .mission-body { margin: 8px auto 0; text-align: center; max-width: 60ch; }

/* ---------- PRICING PAGE EXTRAS ---------- */
.section-cream { background: var(--cream); }
/* .section-paper already defined above */

.pricing-hero { text-align: left; }
.pricing-hero .pricing-lede {
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.pricing-hero .pricing-lede strong { color: var(--ink); font-weight: 600; }

.pricing-section {
  padding: 64px max(56px, calc((100% - 1280px) / 2)) 72px;
  margin: 0;
}
.pricing-section + .pricing-section { margin-top: 0; }

.pricing-section-head {
  max-width: 1100px;
  margin: 0 auto 36px;
  padding: 0;
  text-align: left;
}
.pricing-section-head .eyebrow { margin-bottom: 14px; }
.pricing-section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.15;
}
.pricing-section-lede {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0;
}

/* Reset margin on pricing-grid inside pricing-section (section already has padding) */
.pricing-section .pricing-grid {
  margin: 0 auto;
  padding: 0;
  max-width: 1180px;
  background: transparent;
}

/* 3-column variant for consumer plans */
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 1100px) {
  .pricing-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 720px) {
  .pricing-grid-3 { grid-template-columns: 1fr !important; }
}

/* Fineprint */
.pricing-fineprint {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pricing-fineprint li {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--slate);
  line-height: 1.5;
}
.pricing-fineprint li strong { color: var(--ink-soft); font-weight: 600; }
.pricing-fineprint-single {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--slate);
  margin: 28px auto 0;
  max-width: 1100px;
  font-style: italic;
}

/* Bulk pricing table on pricing page */
.pricing-section .bulk-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-section .bulk-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  background: transparent;
}
.pricing-section .bulk-table thead th {
  background: transparent;
  border-bottom: 1.5px solid var(--ink);
  color: var(--ink);
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 16px;
}
.pricing-section .bulk-table tbody td {
  border-bottom: 1px solid var(--rule-soft);
  padding: 16px;
  font-size: .96rem;
  color: var(--ink);
}
.pricing-section .bulk-table tbody tr:last-child td { border-bottom: none; }
.pricing-section .bulk-table tbody td:nth-child(2) {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}
.pricing-section .bulk-table tbody td:nth-child(3) {
  color: var(--cobalt);
  font-weight: 600;
}

.bulk-cta, .samples-cta {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  margin: 36px auto 0;
  max-width: 1100px;
  flex-wrap: wrap;
}

.pricing-samples .samples-cta { margin-top: 28px; }

@media (max-width: 720px) {
  .pricing-section { padding: 48px 24px 56px; }
  .pricing-section .bulk-table thead th,
  .pricing-section .bulk-table tbody td { padding: 12px 10px; font-size: .88rem; }
}

/* ---------- Holidays divider (collections page) ---------- */
.cat-divider {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 48px 0 36px;
}
.cat-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(27, 42, 78, 0.18);
}
.cat-divider-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--cobalt);
  letter-spacing: .02em;
}

/* ============================================================
   ACCOUNT DASHBOARD (account.html)
   ============================================================ */
.dash-body { background: var(--cream); }

.dash-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 96px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  position: relative;
}

/* ---- Aside / left nav ---- */
.dash-aside {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 12px;
  padding: 24px 18px;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-aside-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 4px 6px 18px;
  border-bottom: 1px solid rgba(27, 42, 78, 0.08);
}
.dash-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .03em;
}
.dash-aside-name {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-aside-email {
  color: var(--ink-soft);
  font-size: .82rem;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-nav-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: .94rem;
  transition: background .15s ease, color .15s ease;
}
.dash-nav-item:hover { background: var(--paper); }
.dash-nav-item.active {
  background: var(--cobalt);
  color: #fff;
}
.dash-nav-item.active .dash-nav-icon { color: #fff; }
.dash-nav-icon {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
}
.dash-nav-icon svg { width: 18px; height: 18px; }
.dash-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-aside-signout {
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(27, 42, 78, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dash-aside-signout:hover {
  background: var(--paper);
  border-color: rgba(27, 42, 78, 0.25);
}

/* ---- Content panes ---- */
.dash-content { min-width: 0; }
.dash-panel { min-width: 0; }
.dash-section-head { margin-bottom: 28px; }
.dash-eyebrow {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--cobalt);
  margin: 0 0 10px;
}
.dash-h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--cobalt);
  margin: 0 0 .25em;
  letter-spacing: -.01em;
}
.dash-lede {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0;
}
.dash-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -.005em;
}
.dash-h2-danger { color: #9B2C2C; }
.dash-no-pad { margin: 0; }

/* Cards & layouts */
.dash-card {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 20px;
  color: var(--ink);
}
.dash-card-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #FFFDF7, var(--paper));
  border-color: rgba(39, 84, 181, 0.18);
}
.dash-banner-eyebrow {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: var(--cobalt);
  margin: 0 0 6px;
}
.dash-banner-actions { display: flex; gap: 10px; align-items: center; }

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.dash-stat {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
}
.dash-stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.dash-stat-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}
.dash-stat-foot {
  font-size: .82rem;
  color: var(--ink-soft);
}
.dash-meter {
  height: 6px;
  background: rgba(27, 42, 78, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 6px;
}
.dash-meter > span {
  display: block;
  height: 100%;
  background: var(--cobalt);
  border-radius: 999px;
  transition: width .3s ease;
}

.dash-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.dash-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.dash-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(27, 42, 78, 0.06);
  font-size: .94rem;
}
.dash-list li:last-child { border-bottom: 0; }
.dash-list-main { color: var(--ink); }
.dash-list-empty {
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 0 !important;
}
.dash-table-empty {
  text-align: center;
  padding: 24px 12px !important;
  color: var(--muted);
  font-style: italic;
}
.dash-empty {
  color: var(--muted);
  font-style: italic;
  padding: 8px 0;
  margin: 0;
}
.dash-list-meta { color: var(--ink-soft); font-size: .88rem; }

.dash-link {
  color: var(--cobalt);
  font-weight: 500;
  text-decoration: none;
  font-size: .9rem;
}
.dash-link:hover { text-decoration: underline; }

/* Forms inside dashboard */
.dash-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 16px;
}
.dash-form-grid .field { margin: 0; }
.dash-form-grid input,
.dash-form-grid textarea {
  background: var(--paper);
  border: 1px solid rgba(27, 42, 78, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  width: 100%;
}
.dash-form-grid input:focus,
.dash-form-grid textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  background: #FFFDF7;
}
.dash-field-full { grid-column: 1 / -1; }
.dash-action-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.dash-action-row-top { margin: 0 0 18px; }

/* Tables */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.dash-table thead th {
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 14px 18px;
  background: var(--paper);
  border-bottom: 1px solid rgba(27, 42, 78, 0.08);
}
.dash-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(27, 42, 78, 0.06);
  font-size: .94rem;
  color: var(--ink);
  vertical-align: middle;
}
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:hover { background: rgba(247, 242, 230, 0.4); }

/* Pills & tags */
.dash-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.dash-pill-blue { background: rgba(39, 84, 181, 0.12); color: var(--cobalt); }
.dash-pill-amber { background: rgba(196, 130, 30, 0.14); color: #8a5a1a; }
.dash-pill-green { background: rgba(34, 134, 92, 0.14); color: #1f6e4a; }
.dash-pill-grey { background: rgba(27, 42, 78, 0.1); color: var(--ink-soft); }
.dash-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid rgba(27, 42, 78, 0.12);
  font-size: .78rem;
  color: var(--ink);
}

/* Saved cards list */
.dash-pay-list { list-style: none; padding: 0; margin: 0 0 16px; }
.dash-pay-item {
  display: grid;
  grid-template-columns: 80px 1fr 80px 80px auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(27, 42, 78, 0.06);
}
.dash-pay-item:last-child { border-bottom: 0; }
.dash-pay-brand {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
}
.dash-pay-num { letter-spacing: .06em; color: var(--ink); }
.dash-pay-exp { color: var(--ink-soft); font-size: .9rem; }
.dash-pay-tag {
  font-size: .76rem;
  padding: 3px 10px;
  background: rgba(39, 84, 181, 0.12);
  color: var(--cobalt);
  border-radius: 999px;
  text-align: center;
}
.dash-pay-tag-muted {
  background: rgba(27, 42, 78, 0.1);
  color: var(--ink-soft);
}
.dash-card-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 6px 0;
}
.dash-card-icon {
  width: 56px; height: 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: .78rem;
  letter-spacing: .1em;
}
.dash-card-line { color: var(--ink); font-weight: 500; }
.dash-card-meta { color: var(--ink-soft); font-size: .85rem; }

/* Templates grid */
.dash-tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.dash-tpl {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-tpl-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}
.dash-tpl-body {
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.dash-tpl-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: .82rem;
  padding-top: 10px;
  border-top: 1px solid rgba(27, 42, 78, 0.06);
}

/* Reporting bar chart */
.dash-bars {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  height: 160px;
  padding: 12px 4px 8px;
}
.dash-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.dash-bar > span {
  display: block;
  width: 70%;
  background: linear-gradient(to top, var(--cobalt), #6E92E8);
  border-radius: 6px 6px 0 0;
  min-height: 6%;
}
.dash-bar em {
  font-style: normal;
  font-size: .78rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Integrations grid */
.dash-int-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dash-int {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-int-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-int-mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--serif);
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .04em;
}
.dash-int-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.dash-int-desc {
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.dash-int-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(27, 42, 78, 0.06);
}

/* Address list */
.dash-addr-list { list-style: none; padding: 0; margin: 0 0 12px; }
.dash-addr-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 42, 78, 0.06);
}
.dash-addr-list li:last-child { border-bottom: 0; }

/* Notification toggles */
.dash-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(27, 42, 78, 0.06);
}
.dash-toggle:last-child { border-bottom: 0; }
.dash-toggle strong {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  display: block;
}
.dash-toggle p { margin: 2px 0 0; }
.dash-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.dash-switch input {
  opacity: 0; width: 0; height: 0;
}
.dash-switch span {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 78, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.dash-switch span::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.dash-switch input:checked + span { background: var(--cobalt); }
.dash-switch input:checked + span::before { transform: translateX(20px); }

/* Danger button */
.btn-danger {
  background: #9B2C2C;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: .94rem;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-danger:hover { background: #7B2222; }

/* Mobile toggle */
.dash-mobile-toggle {
  display: none;
  position: fixed;
  top: 84px;
  left: 16px;
  z-index: 100;
  background: var(--cobalt);
  border: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.dash-mobile-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin-bottom: 4px;
}
.dash-mobile-toggle span:last-child { margin-bottom: 0; }

/* ---- Mobile / tablet ---- */
@media (max-width: 980px) {
  .dash-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row-2 { grid-template-columns: 1fr; }
  .dash-tpl-grid { grid-template-columns: 1fr; }
  .dash-int-grid { grid-template-columns: 1fr; }
  .dash-form-grid { grid-template-columns: 1fr; }
  .dash-pay-item { grid-template-columns: 70px 1fr auto; gap: 10px; }
  .dash-pay-item > .dash-pay-exp,
  .dash-pay-item > .dash-pay-tag { display: none; }
}

@media (max-width: 760px) {
  .dash-main {
    grid-template-columns: 1fr;
    padding: 24px 16px 64px;
    gap: 0;
  }
  .dash-mobile-toggle { display: block; }
  .dash-aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    max-width: 84vw;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform .25s ease;
    border-radius: 0;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  }
  .dash-aside.open { transform: translateX(0); }
  .dash-content { padding-top: 56px; }
  .dash-card { padding: 18px 18px; }
  .dash-stat-grid { grid-template-columns: 1fr; }
  .dash-table { font-size: .88rem; }
  .dash-table thead th,
  .dash-table tbody td { padding: 10px 12px; }
  .dash-card-banner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   DESIGN BUILDER (design.html)
   ============================================================ */
.design-page {
  background: var(--cream);
  padding: 40px 32px 96px;
  min-height: calc(100vh - 200px);
}
.design-step-shell,
.wizard-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 40px;
  align-items: start;
}
/* Step 0 (card type select): preview pane hidden, controls take full width */
.design-step-shell:has(.design-preview-pane[hidden]) {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.design-preview-pane,
.wizard-preview {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 12px;
  padding: 32px;
  position: sticky;
  top: 24px;
  min-height: 420px;
}
.design-controls-pane,
.wizard-controls {
  min-width: 0;
}
.pane-eyebrow {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  color: var(--cobalt);
  margin: 0 0 16px;
  font-weight: 500;
}
.design-h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--cobalt);
  margin: 0 0 8px;
  letter-spacing: -.005em;
}
.design-sub {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 60ch;
}

/* Card type list (step 0) */
.card-type-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.card-type-list .card-type-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.card-type-list .card-type-row:hover {
  background: var(--paper);
  border-color: rgba(39, 84, 181, 0.3);
}
.card-type-list .card-type-row.selected {
  border-color: var(--cobalt);
  background: rgba(39, 84, 181, 0.04);
}
.card-type-list .card-type-radio {
  width: 18px; height: 18px;
  border: 2px solid rgba(27, 42, 78, 0.3);
  border-radius: 50%;
  position: relative;
}
.card-type-list .card-type-row.selected .card-type-radio {
  border-color: var(--cobalt);
}
.card-type-list .card-type-row.selected .card-type-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--cobalt);
}
.card-type-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}
.card-type-meta {
  color: var(--ink-soft);
  font-size: .85rem;
  margin-top: 2px;
}
.card-type-price {
  color: var(--cobalt);
  font-family: var(--serif);
  font-size: 1rem;
}

/* Card type preview illustration */
.card-type-preview {
  width: 100%;
  min-height: 380px;
  background: var(--paper);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--serif);
  padding: 32px 24px;
  transition: min-height 0.25s ease;
}

/* Live card preview stage */
.ct-stage {
  position: relative;
  width: var(--w, 280px);
  height: var(--h, 200px);
  max-width: 100%;
  transition: width 0.3s cubic-bezier(.2,.7,.2,1), height 0.3s cubic-bezier(.2,.7,.2,1);
}
.ct-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(27, 42, 78, 0.18);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(27, 42, 78, 0.14), 0 2px 6px rgba(27, 42, 78, 0.08);
  overflow: hidden;
  display: flex;
  transition: box-shadow 0.25s ease;
}
.ct-card.fold.landscape { flex-direction: row; }
.ct-card.fold.portrait  { flex-direction: column; }
.ct-card.fold .ct-half {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-card.fold.landscape .ct-half.back-half {
  border-right: 1.5px dashed rgba(45, 93, 168, 0.45);
  background: linear-gradient(to right, rgba(27, 42, 78, 0.04), rgba(27, 42, 78, 0));
}
.ct-card.fold.portrait .ct-half.back-half {
  border-bottom: 1.5px dashed rgba(45, 93, 168, 0.45);
  background: linear-gradient(to bottom, rgba(27, 42, 78, 0.04), rgba(27, 42, 78, 0));
}
.ct-card.flat .ct-flat {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-design-here {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.3px;
  text-align: center;
  padding: 0 12px;
}
.ct-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(27, 42, 78, 0.22) 0%, rgba(27, 42, 78, 0) 70%);
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}

/* Photo/illustration-based folded card preview (e.g. landscape A2) */
.ct-stage:has(.ct-fold-img) {
  width: min(440px, 100%);
  height: auto;
  aspect-ratio: auto;
}
.ct-stage:has(.ct-fold-img) .ct-shadow { display: none; }
.ct-fold-img {
  position: relative;
  width: 100%;
  display: block;
}
.ct-fold-img img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* 3D folded card tent illustration */
.ct-fold3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 18px rgba(27, 42, 78, 0.18));
}
.ct-tent-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ct-design-here-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.78);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Dimension caption under the live preview */
.ct-dims {
  position: absolute;
  left: 50%;
  bottom: -42px;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.ct-dims strong {
  color: var(--cobalt);
  font-weight: 600;
  margin-right: 6px;
}

/* Step nav */
.step-nav-shell {
  max-width: 1280px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.step-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.step-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.step-nav li:hover { background: var(--paper); }
.step-nav li.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
}
.step-nav li.active .step-dot,
.step-nav li.active .step-label { color: #fff; }
.step-nav li.complete .step-dot {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
}
.step-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(27, 42, 78, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: .82rem;
  color: var(--ink);
}
.step-label {
  font-size: .92rem;
  color: var(--ink);
}
.step-autosave {
  font-size: .82rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Wizard panels */
.wizard-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* The hidden attribute on a wizard-panel must always win over display:flex.
   Without this, all 5 panels (edit + preview) stack together on the page. */
.wizard-panel[hidden] { display: none !important; }

/* Upload block */
.upload-block { display: flex; flex-direction: column; gap: 12px; }
.upload-drop {
  display: block;
  background: #FFFDF7;
  border: 2px dashed rgba(39, 84, 181, 0.3);
  border-radius: 10px;
  padding: 22px 24px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.upload-drop:hover {
  background: var(--paper);
  border-color: var(--cobalt);
}
.upload-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.upload-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.upload-meta {
  color: var(--ink-soft);
  font-size: .85rem;
}
.upload-plus {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
}
.image-tools {
  background: var(--paper);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Thumbnail preview that appears inside the upload card once an image is
   uploaded. Shows the user's artwork right where they uploaded it so they
   can confirm the file before continuing. */
.upload-thumb {
  background: #FFFDF7;
  border: 1px solid rgba(39, 84, 181, 0.18);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.upload-thumb img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid rgba(39, 84, 181, 0.12);
  flex: 0 0 auto;
}
.upload-thumb.compact img {
  width: 64px;
  height: 64px;
}
.upload-thumb-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.upload-thumb-name {
  font-size: .9rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-thumb-name:empty {
  display: none;
}
.upload-thumb-replace {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(39, 84, 181, 0.35);
  color: var(--cobalt);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .82rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.upload-thumb-replace:hover {
  background: var(--cobalt);
  color: #fff;
}
.tool-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.tool-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--ink);
}
.tool-row input[type="range"] {
  width: 140px;
  accent-color: var(--cobalt);
}

/* Or divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(27, 42, 78, 0.1);
}

/* Template block */
.template-block { display: flex; flex-direction: column; gap: 14px; }
.template-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.template-tabs .tt {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.template-tabs .tt:hover { background: var(--paper); }
.template-tabs .tt.active {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.template-grid img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s ease, transform .15s ease;
}
.template-grid img:hover { transform: translateY(-2px); }
.template-grid img.selected { border-color: var(--cobalt); }

/* Field inside controls */
.wizard-controls .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.wizard-controls .field-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
  font-weight: 500;
}
.wizard-controls .field-input,
.wizard-controls input[type="text"],
.wizard-controls input[type="number"],
.wizard-controls textarea,
.wizard-controls select {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
}
.wizard-controls textarea { min-height: 120px; resize: vertical; }
.wizard-controls .field-input:focus,
.wizard-controls input:focus,
.wizard-controls textarea:focus,
.wizard-controls select:focus {
  outline: none;
  border-color: var(--cobalt);
}
.counter {
  align-self: flex-end;
  font-size: .8rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Quick signatures */
.quick-sigs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-sigs .qs {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
}
.quick-sigs .qs:hover { background: var(--paper); }

/* Segmented tabs (e.g. inside top / bottom modes) */
.seg-tabs {
  display: flex;
  gap: 4px;
  background: var(--paper);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 12px;
}
.seg-tabs .seg {
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.seg-tabs .seg.active {
  background: #FFFDF7;
  color: var(--cobalt);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.seg-panel { display: flex; flex-direction: column; gap: 12px; }
.seg-panel[hidden] { display: none !important; }
.seg-panel.active { display: flex; }

/* Back cover preview rendering */
.panel-back.custom {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 6%;
  box-sizing: border-box;
}
.panel-back.custom .back-logo {
  max-width: 35%;
  max-height: 28%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
}
.panel-back.custom[data-align="left"] .back-logo { margin-left: 0; margin-right: auto; }
.panel-back.custom[data-align="center"] .back-logo { margin-left: auto; margin-right: auto; }
.panel-back.custom[data-align="right"] .back-logo { margin-left: auto; margin-right: 0; }
.panel-back.custom .back-text {
  width: 100%;
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  color: var(--ink, #1B2A4E);
  font-size: 0.78rem;
  line-height: 1.45;
}
.panel-back.custom .back-line { display: block; }
.panel-back.custom .back-line.back-company {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cobalt, #2D5DA8);
  margin-bottom: 2px;
}
.panel-back.custom .back-line.muted {
  color: rgba(27, 42, 78, 0.45);
  font-style: italic;
  font-size: 0.72rem;
}

/* Header row on the Back Cover panel with the "Change card size" shortcut */
.panel-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.change-size-btn {
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--cobalt, #2D5DA8);
  background: transparent;
  border: 1px solid rgba(45, 93, 168, 0.35);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.change-size-btn:hover {
  background: rgba(45, 93, 168, 0.08);
  border-color: var(--cobalt, #2D5DA8);
}
.seg-note {
  font-size: .82rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Align row (left/center/right) */
.align-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.align-group {
  display: flex;
  background: var(--paper);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.align-btn {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  font-family: inherit;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: 6px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.align-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  pointer-events: none;
}
.align-btn:hover {
  background: rgba(0, 104, 176, 0.06);
}
.align-btn.active {
  background: #FFFDF7;
  color: var(--cobalt);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.align-btn.active svg {
  stroke: var(--cobalt);
}

/* Font picker, secondary block intentionally removed, the primary picker styles live above. */

/* Canvas / preview stage */
.canvas-eyebrow {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  color: var(--cobalt);
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}
.canvas-stage {
  position: relative;
  background: var(--paper);
  border-radius: 8px;
  min-height: 320px;
  padding: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
/* When showing the full 4-panel preview, remove fixed aspect ratio + crop */
.canvas-stage:has(.full-preview) {
  aspect-ratio: auto;
  overflow: visible;
  align-items: stretch;
  padding: 18px;
}

/* ---------- Full preview (Step 5): 2x2 grid of all panels ---------- */
.full-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.fp-spread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fp-spread-label {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--cobalt);
}
.fp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.fp-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fp-panel-label {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft, #6b6757);
  font-weight: 500;
}
.card-canvas.mini {
  width: 100%;
  background: #fff;
  border: 1px solid #e3dccb;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 4px rgba(27, 42, 78, 0.06);
}
/* Mini canvases (full preview / step 5): override outline + simplify guides for thumbnails */
.card-canvas.mini {
  outline: 1px dashed rgba(196, 130, 30, 0.55);
  outline-offset: -1px;
}
.card-canvas.mini .bleed-area {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8%;
}
.card-canvas.mini .trim-line {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(39, 84, 181, 0.55);
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
}
.card-canvas.mini .safe-zone {
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(34, 134, 92, 0.5);
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
}
.card-canvas.mini .panel-front,
.card-canvas.mini .panel-back,
.card-canvas.mini .panel-inside {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: .82rem;
  line-height: 1.35;
  overflow: hidden;
}
.card-canvas.mini .panel-front.empty {
  align-items: center;
  justify-content: center;
  color: var(--ink-soft, #8a8678);
  font-style: italic;
  font-family: var(--serif);
  font-size: .9rem;
}
.card-canvas.mini .panel-front.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-canvas.mini .handwriting-preview {
  font-size: 1rem;
  line-height: 1.35;
  padding: 0;
  border: none;
  background: transparent;
  min-height: 0;
}
.card-canvas.mini .back-logo { max-height: 36px; width: auto; margin-bottom: 6px; }
.card-canvas.mini .back-line { font-size: .78rem; line-height: 1.35; }
.card-canvas.mini .inside-logo { max-height: 60%; max-width: 60%; object-fit: contain; }
.card-canvas.mini .qr-svg { width: 60%; height: auto; }
.card-canvas.mini .qr-caption { font-size: .7rem; margin-top: 4px; }

@media (max-width: 720px) {
  .fp-row { grid-template-columns: 1fr; }
}
/* ---------- Desktop card canvas (Steps 2-4) ---------- */
/* The canvas itself is the BLEED rectangle. Inside it, fixed overlays draw
   the trim line (where the card gets cut) and safe zone (content-safe area).
   These overlays are positioned absolutely on the canvas frame and DO NOT
   move when the user zooms or rotates the image inside. */
.card-canvas {
  position: relative;
  width: var(--cw, 560px);
  height: var(--ch, 420px);
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(27, 42, 78, 0.10);
  /* The canvas itself IS the bleed area. We draw an explicit dashed border
     in warm amber so the bleed edge reads clearly against any background. */
  border: 2px dashed #C4821E;
}
/* Image / panel content layer */
.card-canvas .bleed-area {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.card-canvas .trim-line,
.card-canvas .safe-zone {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}
/* Trim line: where the card actually gets cut. Inset ~6% (≈ 1/8" bleed on a 5.5" card). */
.card-canvas .trim-line {
  inset: 6%;
  border: 1.5px solid rgba(39, 84, 181, 0.85);
  border-radius: 2px;
}
/* Safe zone: keep important text/elements inside. Inset ~12% (≈ another 1/8" inside trim). */
.card-canvas .safe-zone {
  inset: 12%;
  border: 1.5px dashed rgba(34, 134, 92, 0.85);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: visible;
  background: transparent;
}
/* Move panel content into the bleed-area layer so it sits BENEATH the guides.
   The image fills the full bleed; transform (zoom/rotate) only affects the image. */
.card-canvas .bleed-area .panel-front,
.card-canvas .bleed-area .panel-back,
.card-canvas .bleed-area .panel-inside {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-canvas .bleed-area .panel-front.has-img {
  padding: 0;
}
.card-canvas .bleed-area .panel-front.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  pointer-events: none;
}
.card-canvas .bleed-area .panel-front.empty {
  color: var(--ink-soft, #8a8678);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}
.card-canvas .bleed-area .panel-front.tpl {
  width: 100%;
  height: 100%;
}
.card-canvas .bleed-area .panel-back,
.card-canvas .bleed-area .panel-inside {
  padding: 14%;
  flex-direction: column;
}
/* Trim line label tags positioned just outside the trim border */
.bleed-tag {
  position: absolute;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(39, 84, 181, 0.7);
  background: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 6;
}
.bleed-tag.tag-top    { top: 6%; left: 50%; transform: translate(-50%, -55%); }
.bleed-tag.tag-bot    { bottom: 6%; left: 50%; transform: translate(-50%, 55%); }
.bleed-tag.tag-left   { top: 50%; left: 6%; transform: translate(-55%, -50%) rotate(-90deg); }
.bleed-tag.tag-right  { top: 50%; right: 6%; transform: translate(55%, -50%) rotate(90deg); }

/* BLEED corner labels: anchored to the canvas (bleed) edge, NOT the trim. */
.bleed-corner {
  position: absolute;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C4821E;
  background: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 7;
  border: 1px solid rgba(196, 130, 30, 0.55);
}
.bleed-corner.tl { top: 4px; left: 4px; }
.bleed-corner.tr { top: 4px; right: 4px; }
.bleed-corner.bl { bottom: 4px; left: 4px; }
.bleed-corner.br { bottom: 4px; right: 4px; }

/* Legend below the canvas: colored line swatches that match the on-canvas guides */
.canvas-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--ink-soft);
  align-items: center;
  margin-top: 10px;
}
.canvas-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.canvas-legend .lg {
  display: inline-block;
  width: 22px;
  height: 0;
  flex: 0 0 22px;
}
.canvas-legend .lg-bleed { border-top: 1.5px dashed rgba(196, 130, 30, 0.9); }
.canvas-legend .lg-trim  { border-top: 1.5px solid rgba(39, 84, 181, 0.9); }
.canvas-legend .lg-safe  { border-top: 1.5px dashed rgba(34, 134, 92, 0.9); }

.canvas-hint {
  margin: 8px 0 0;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: .72rem;
  line-height: 1.45;
  color: var(--ink-soft, #8a8678);
  max-width: 56ch;
}

/* Toast notifications */
.obw-toast-host {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.obw-toast {
  background: #0068B0;
  color: #FBF7EE;
  padding: 12px 22px;
  border-radius: 28px;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  box-shadow: 0 8px 24px rgba(0, 104, 176, 0.28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
  min-width: 220px;
  text-align: center;
}
.obw-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.canvas-controls {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.cc-btn {
  background: var(--paper);
  border: 1px solid rgba(27, 42, 78, 0.1);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: .82rem;
  color: var(--ink);
  cursor: pointer;
}
.cc-btn:hover { background: #FFFDF7; }
.cc-zoom {
  margin-left: auto;
  font-size: .82rem;
  color: var(--ink-soft);
  align-self: center;
}

/* Summary list (final step) */
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 42, 78, 0.06);
  font-size: .94rem;
}
.summary-list li:last-child { border-bottom: 0; }
.summary-list li > span:first-child {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
.summary-list li > span:last-child {
  color: var(--ink);
  font-family: var(--serif);
}

/* Wizard bottom action bar */
.wizard-bottom {
  max-width: 1280px;
  margin: 36px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.final-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-block { display: block; width: 100%; text-align: center; }
.btn-large { padding: 14px 22px; font-size: 1rem; }
.btn-ghost-sm {
  background: transparent;
  border: 1px solid rgba(27, 42, 78, 0.15);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
}
.btn-ghost-sm:hover { background: var(--paper); }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(27, 42, 78, 0.2);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: .94rem;
  color: var(--ink);
  cursor: pointer;
}
.btn-ghost:hover { background: var(--paper); }

/* Design page tablet/mobile */
@media (max-width: 980px) {
  .design-step-shell,
  .wizard-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .design-preview-pane,
  .wizard-preview {
    position: relative;
    top: 0;
    order: -1;
  }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .design-page { padding: 24px 16px 56px; }
  .step-nav { font-size: .85rem; }
  .step-nav li { padding: 6px 10px; }
  .step-label { display: none; }
  .upload-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .upload-plus { align-self: flex-end; }
}

/* ===========================================================
   BULK SEND PAGE + BASKET PAGE  (v=20260615q)
   - cream/paper alternating bands
   - Playfair italic on main headers, cobalt-blue color
   - Logo blue (#0068B0) for accents / coral buttons
   =========================================================== */

/* ---------- shared page intro ---------- */
.bulk-page, .basket-page { background: var(--cream); }
.bulk-page .page-h1,
.basket-page .page-h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  color: var(--cobalt);
  margin: 4px 0 12px;
  letter-spacing: -0.01em;
}
.bulk-page .page-h1 em,
.basket-page .page-h1 em { font-style: italic; font-weight: 500; }
.bulk-page .page-lede,
.basket-page .page-lede {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 64ch;
  margin: 0;
}
.bulk-intro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px 24px;
  text-align: left;
}

/* ---------- section bands (alternate cream / paper) ---------- */
.bulk-section {
  padding: 32px 0;
}
.bulk-section-cream { background: var(--cream); }
.bulk-section-paper { background: var(--paper); }
.bulk-section > * {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.bulk-h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--cobalt);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  border-bottom: 1px solid rgba(27, 42, 78, 0.10);
  padding-bottom: 10px;
}
.bulk-h3 em { font-style: italic; font-weight: 500; }

/* ---------- card frames ---------- */
.bulk-card {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 1px 0 rgba(27,42,78,0.02);
}

/* ---------- two-col grid ---------- */
.bulk-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
@media (max-width: 920px) {
  .bulk-two-col { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bulk-intro { padding: 36px 20px 16px; }
  .bulk-section > * { padding: 0 20px; }
}

/* ---------- selected card strip ---------- */
.bulk-card-strip {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 28px;
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 12px;
  padding: 22px 24px;
  align-items: start;
}
.bulk-card-thumb {
  display: block;
  width: 168px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(27,42,78,0.10);
  background: var(--cream);
}
.bulk-card-thumb img { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: cover; }
.bulk-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.bulk-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 4px 0 0;
}

/* pricing table */
.pricing-table {
  border-top: 1px solid rgba(27,42,78,0.10);
  margin-top: 12px;
  padding-top: 12px;
}
.pt-row {
  display: grid;
  grid-template-columns: 110px repeat(5, minmax(0,1fr));
  gap: 4px;
  align-items: center;
  padding: 6px 0;
}
.pt-row + .pt-row { border-top: 1px solid rgba(27,42,78,0.06); }
.pt-label {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  font-size: .9rem;
}
.pt-cell {
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.pt-cell.pt-price { color: var(--coral); font-weight: 600; }
.pt-cell.is-active {
  background: rgba(0, 104, 176, 0.10);
  color: var(--coral-dark);
  font-weight: 700;
}
.pt-foot {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--ink-soft);
}
.pt-foot strong { color: var(--coral); }
@media (max-width: 920px) {
  .bulk-card-strip { grid-template-columns: 1fr; }
  .bulk-card-thumb { width: 140px; }
  /* Allow horizontal scrolling of the pricing matrix on small screens.
     Both the head row + the body row sit OUTSIDE .pricing-table on bulk.html,
     so we apply overflow at the wrapper level (.bulk-card-meta) too. */
  .bulk-card-meta { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pricing-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pt-row {
    grid-template-columns: 90px repeat(5, minmax(64px, 1fr));
    gap: 4px;
    min-width: 0;
  }
  .pt-cell { font-size: .82rem; padding: 6px 2px; }
  .pt-label { font-size: .82rem; }
}
@media (max-width: 520px) {
  /* Hard mobile: stack the tier matrix into a clean key:value list. */
  .pt-row {
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid rgba(27,42,78,0.06);
  }
  .pt-row.pt-head { display: none; }
  .pt-row.pt-body .pt-label { grid-column: 1 / -1; font-weight: 700; color: var(--coral); padding-top: 4px; }
  .pt-row.pt-body .pt-cell {
    text-align: left;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    background: transparent !important;
  }
  .pt-row.pt-body .pt-cell::before {
    content: attr(data-qty);
    font-weight: 600;
    color: var(--ink-soft);
    margin-right: 12px;
  }
}

/* ---------- date input ---------- */
.date-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.date-input {
  flex: 1;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(27,42,78,0.18);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
}
.date-input:focus { outline: 2px solid rgba(0,104,176,0.22); outline-offset: 1px; border-color: var(--coral); }
.date-pick-btn {
  background: var(--cream);
  border: 1px solid rgba(27,42,78,0.18);
  width: 44px; height: 44px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
}
.date-pick-btn:hover { background: var(--paper); border-color: var(--coral); color: var(--coral); }
.bulk-helper { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin: 0 0 14px; font-style: italic; }
.date-readout {
  background: var(--cream);
  border: 1px solid rgba(27,42,78,0.10);
  border-radius: 8px;
  padding: 14px 16px;
}
.dr-row { display: flex; justify-content: space-between; padding: 4px 0; font-family: var(--sans); font-size: .95rem; }
.dr-row + .dr-row { border-top: 1px solid rgba(27,42,78,0.08); margin-top: 4px; padding-top: 8px; }
.dr-label { color: var(--ink-soft); }
.dr-value { color: var(--ink); font-weight: 600; }

/* ---------- writing style picker ---------- */
.style-card { position: relative; }
.style-picker {
  display: block;
  margin-bottom: 14px;
  position: relative;
}
.style-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(27,42,78,0.18);
  border-radius: 8px;
  background: var(--cream);
  cursor: pointer;
  font-family: var(--serif);
}
.style-dropdown:hover { border-color: var(--coral); }
.style-preview-text {
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink);
  font-family: 'QEi 002A';
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.style-preview-text[data-style="qei-002A"] { font-family: 'QEi 002A'; }
.style-preview-text[data-style="qei-003A"] { font-family: 'QEi 003A'; }
.style-preview-text[data-style="qei-004B"] { font-family: 'QEi 004B'; }
.style-preview-text[data-style="qei-005B"] { font-family: 'QEi 005B'; }
.style-preview-text[data-style="qei-006C"] { font-family: 'QEi 006C'; }
.style-preview-text[data-style="qei-009B"] { font-family: 'QEi 009B'; }
.style-preview-text[data-style="qei-011A"] { font-family: 'QEi 011A'; }
.style-preview-text[data-style="qei-012B"] { font-family: 'QEi 012B'; }
.style-preview-text[data-style="qei-013C"] { font-family: 'QEi 013C'; }
.style-preview-text[data-style="qei-015C"] { font-family: 'QEi 015C'; }
.style-preview-text[data-style="qei-017C"] { font-family: 'QEi 017C'; }
.style-preview-text[data-style="qei-020B"] { font-family: 'QEi 020B'; }
.style-preview-text[data-style="qei-023B"] { font-family: 'QEi 023B'; }
.style-preview-text[data-style="qei-025A"] { font-family: 'QEi 025A'; }
.style-preview-text[data-style="qei-026C"] { font-family: 'QEi 026C'; }
.style-preview-text[data-style="qei-029B"] { font-family: 'QEi 029B'; }
.style-preview-text[data-style="qei-030C"] { font-family: 'QEi 030C'; }
.style-controls-btn {
  background: var(--cream);
  border: 1px solid rgba(27,42,78,0.18);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.style-controls-btn:hover { background: var(--paper); border-color: var(--coral); color: var(--coral); }

.style-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #FFFDF7;
  border: 1px solid rgba(27,42,78,0.14);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(27,42,78,0.10);
  list-style: none;
  margin: 0; padding: 6px;
  z-index: 40;
  max-height: 320px; overflow-y: auto;
}
.style-menu li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--sans);
}
.style-menu li:hover { background: var(--paper); }
.style-menu li.is-selected { background: rgba(0,104,176,0.08); }
.style-menu .sm-name { color: var(--ink); font-weight: 500; font-size: .96rem; }
.style-menu .sm-sample { color: var(--coral); font-size: 1.1rem; }

/* pen controls */
.style-controls {
  background: var(--cream);
  border: 1px solid rgba(27,42,78,0.10);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: grid;
  gap: 12px;
}
.sc-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.sc-label { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: .9rem; }
.sc-options { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-chip, .sc-swatch {
  font-family: var(--sans);
  font-size: .85rem;
  padding: 6px 12px;
  border: 1px solid rgba(27,42,78,0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.sc-chip:hover, .sc-swatch:hover { border-color: var(--coral); color: var(--coral); }
.sc-chip.is-active, .sc-swatch.is-active {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.sc-swatch span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); }

/* ---------- handwriting live preview ---------- */
.handwriting-preview {
  background: #FFFDF7;
  border: 1px dashed rgba(27,42,78,0.20);
  border-radius: 10px;
  padding: 24px 26px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  color: #111;
  font-family: 'QEi 002A';
  font-size: 1.55rem;
  line-height: 1.55;
}
.handwriting-preview[data-ink="black"] { color: #111; }
.handwriting-preview[data-ink="blue"]  { color: #111; }
.handwriting-preview[data-thick="medium"] { font-weight: 500; }
.handwriting-preview[data-thick="bold"]   { font-weight: 700; }
.handwriting-preview[data-size="sm"] { font-size: 1.3rem; }
.handwriting-preview[data-size="md"] { font-size: 1.55rem; }
.handwriting-preview[data-size="lg"] { font-size: 1.85rem; }
.handwriting-preview[data-style="playfair-italic"][data-size="sm"] { font-size: 1.1rem; }
.handwriting-preview[data-style="playfair-italic"][data-size="lg"] { font-size: 1.55rem; }
.handwriting-preview[data-style="homemade"][data-size="sm"] { font-size: 1rem; }
.handwriting-preview[data-style="homemade"][data-size="lg"] { font-size: 1.35rem; }
.handwriting-preview .preview-empty {
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}
.handwriting-preview .hw-text {
  margin: 0;
  padding: 40px 40px 130px 40px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}
.preview-recipient {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--ink-soft);
}
.preview-recipient select {
  font-family: var(--sans);
  padding: 4px 8px;
  border: 1px solid rgba(27,42,78,0.18);
  border-radius: 6px;
  background: var(--cream);
}

/* ---------- upload section ---------- */
.upload-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.upload-fake-input {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(27,42,78,0.18);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--sans);
  cursor: pointer;
}
.upload-fake-input:hover { border-color: var(--coral); }
.upload-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.btn-text-coral { color: var(--coral); font-weight: 600; cursor: pointer; background: none; border: none; padding: 0; font-family: var(--sans); }
.btn-text-coral:hover { text-decoration: underline; }

/* toggle */
.toggle-row { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: .9rem; color: var(--ink); cursor: pointer; }
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(27,42,78,0.25);
  border-radius: 999px;
  transition: background .2s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.toggle input:checked + .toggle-slider { background: var(--coral); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; position: relative; }
.tag-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(27,42,78,0.18);
  border-radius: 8px;
  background: var(--cream);
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  min-width: 280px;
  justify-content: space-between;
}
.tag-select:hover { border-color: var(--coral); }
.tag-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  background: #FFFDF7;
  border: 1px solid rgba(27,42,78,0.14);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(27,42,78,0.10);
  list-style: none;
  margin: 0; padding: 6px;
  min-width: 280px;
  z-index: 30;
}
.tag-menu li { padding: 10px 14px; border-radius: 6px; cursor: pointer; font-family: var(--sans); font-size: .92rem; color: var(--ink); }
.tag-menu li:hover { background: var(--paper); }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,104,176,0.10);
  color: var(--coral-dark);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-chip button { background: none; border: none; color: var(--coral); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* bulk preview table */
.bulk-preview { margin-top: 18px; border-top: 1px solid rgba(27,42,78,0.10); padding-top: 16px; }
.bulk-preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.bulk-preview-head h4 { margin: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); font-weight: 500; }
.preview-meta { display: flex; align-items: center; gap: 10px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: var(--sans); font-size: .78rem; font-weight: 600; }
.badge-ok { background: rgba(34,139,87,0.12); color: #1F7A4A; }
.badge-warn { background: rgba(0,104,176,0.12); color: var(--coral-dark); }
.btn-text { background: none; border: none; cursor: pointer; font-family: var(--sans); color: var(--coral); font-weight: 600; padding: 0; font-size: .92rem; }
.btn-text:hover { text-decoration: underline; }
.bulk-table-wrap { overflow-x: auto; border: 1px solid rgba(27,42,78,0.10); border-radius: 8px; }
.bulk-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .88rem; min-width: 600px; }
.bulk-table th { text-align: left; padding: 10px 12px; background: var(--cream); color: var(--ink); font-weight: 600; border-bottom: 1px solid rgba(27,42,78,0.10); text-transform: capitalize; }
.bulk-table td { padding: 10px 12px; border-bottom: 1px solid rgba(27,42,78,0.06); color: var(--ink-soft); }
.bulk-table tr:last-child td { border-bottom: 0; }
.bulk-table-foot { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin: 10px 0 0; font-style: italic; }

/* ---------- message + signature ---------- */
.bulk-textarea, .bulk-input {
  width: 100%;
  font-family: 'QEi 002A';
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(27,42,78,0.18);
  border-radius: 8px;
  padding: 14px 16px;
  resize: vertical;
}
.bulk-input { font-family: var(--sans); font-size: .95rem; }
.bulk-textarea:focus, .bulk-input:focus { outline: 2px solid rgba(0,104,176,0.22); outline-offset: 1px; border-color: var(--coral); }
.textarea-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); flex-wrap: wrap; gap: 8px; }
.merge-hint code { background: rgba(0,104,176,0.10); color: var(--coral-dark); padding: 1px 6px; border-radius: 4px; font-size: .78rem; margin-right: 4px; }
.block-label { display: block; font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: .9rem; margin: 14px 0 6px; }
.addon-stack { margin-top: 14px; display: grid; gap: 10px; }
.addon-row { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: .95rem; color: var(--ink); cursor: pointer; }
.addon-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--coral); }
.addon-row .muted { color: var(--ink-soft); font-size: .85rem; }

/* ---------- return address ---------- */
.address-block { font-family: var(--sans); color: var(--ink); line-height: 1.6; padding: 12px 14px; background: var(--cream); border: 1px solid rgba(27,42,78,0.10); border-radius: 8px; }
.address-block strong { font-weight: 600; }
.address-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- order summary ---------- */
.summary-table { width: 100%; font-family: var(--sans); font-size: .95rem; }
.summary-table td { padding: 8px 0; color: var(--ink-soft); border-bottom: 1px solid rgba(27,42,78,0.06); }
.summary-table .ta-right { text-align: right; color: var(--ink); }
.summary-table .muted { color: var(--ink-soft); font-size: .82rem; }
.summary-total td { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; border-top: 1px solid rgba(27,42,78,0.18); padding-top: 12px; border-bottom: 0; }
.bulk-cta-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }

/* ===========================================================
   BASKET PAGE
   =========================================================== */
.basket-head {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px 16px;
}
.basket-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid rgba(27,42,78,0.10); padding-bottom: 18px; }
.basket-head-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.basket-head-actions .btn-text { font-size: .92rem; }
.basket-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}
.basket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1100px) {
  .basket-layout { grid-template-columns: minmax(0, 1fr); }
  .basket-head { padding: 36px 20px 16px; }
  .basket-section { padding: 16px 20px 60px; }
}

/* empty state */
.basket-empty {
  background: #FFFDF7;
  border: 1px solid rgba(27,42,78,0.08);
  border-radius: 12px;
  padding: 64px 32px;
  text-align: center;
}
.basket-empty-h {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--cobalt);
  margin: 0 0 12px;
}
.basket-empty p { font-family: var(--serif); color: var(--ink); font-size: 1.02rem; margin: 0 0 24px; }
.basket-empty-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* order card */
.basket-order {
  background: #FFFDF7;
  border: 1px solid rgba(27,42,78,0.08);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 0 rgba(27,42,78,0.02);
}
.basket-order-top {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(27,42,78,0.10);
}
@media (max-width: 760px) {
  .basket-order { padding: 20px; }
  .basket-order-top { grid-template-columns: 1fr; }
}
.basket-thumb-col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.basket-thumb {
  position: relative;
  width: 200px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(27,42,78,0.10);
  background: var(--cream);
}
.basket-thumb img { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: cover; }
.basket-fav {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(27,42,78,0.12);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color .15s ease, background .15s ease;
}
.basket-fav:hover { color: var(--coral); }
.basket-fav.is-fav { color: var(--coral); background: #fff; }
.basket-fav.is-fav svg { fill: var(--coral); }
.basket-order-id {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-soft);
  border: 1px solid rgba(27,42,78,0.14);
  border-radius: 999px;
  padding: 4px 12px;
}
.basket-order-id span { color: var(--ink); font-weight: 600; }

.basket-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.basket-order-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--ink);
  margin: 0;
}
.basket-carousel { display: inline-flex; align-items: center; gap: 8px; }
.bc-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(27,42,78,0.14);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
}
.bc-btn.bc-next { background: var(--coral); color: #fff; border-color: var(--coral); }
.bc-btn:hover { background: var(--coral-dark); color: #fff; border-color: var(--coral-dark); }
.bc-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.bc-count { font-family: var(--sans); font-size: .92rem; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; }
.bc-count #boIndex { color: var(--coral); font-weight: 700; border-bottom: 2px dashed var(--coral); padding-bottom: 1px; }
.bc-of { color: var(--ink-soft); }

.basket-progress { height: 3px; background: rgba(27,42,78,0.08); border-radius: 999px; margin: 12px 0 22px; overflow: hidden; }
.basket-progress-bar { height: 100%; background: var(--coral); width: 0; transition: width .25s ease; }

/* sender / recipient / pricing / actions */
.basket-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr auto;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) {
  .basket-detail-row { grid-template-columns: 1fr 1fr; }
  .bd-actions { grid-column: 1 / -1; flex-direction: row; }
}
@media (max-width: 560px) {
  .basket-detail-row { grid-template-columns: 1fr; }
}
.bd-label {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 8px;
}
.bd-value {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.bd-pricing { width: 100%; font-family: var(--sans); font-size: .92rem; }
.bd-pricing td { padding: 4px 0; color: var(--ink-soft); }
.bd-pricing .ta-right { color: var(--ink); }
.bd-pricing-total td { font-weight: 700; color: var(--ink); border-top: 1px solid rgba(27,42,78,0.10); padding-top: 8px; }
.bd-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-coral-soft {
  background: rgba(0,104,176,0.16);
  color: var(--coral-dark);
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
  min-width: 100px;
}
.btn-coral-soft:hover { background: rgba(0,104,176,0.24); }

/* mid: preview + sidebar */
.basket-order-mid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 260px;
  gap: 28px;
  align-items: start;
  padding-top: 22px;
}
@media (max-width: 900px) {
  .basket-order-mid { grid-template-columns: minmax(0, 1fr); }
}
.basket-preview-wrap { display: flex; flex-direction: column; gap: 8px; }
.basket-preview { min-height: 280px; }
.basket-recipient-row { font-family: var(--sans); font-size: .88rem; color: var(--ink-soft); margin: 0; }
.basket-sidebar {
  background: var(--cream);
  border: 1px solid rgba(27,42,78,0.10);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bs-row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid rgba(27,42,78,0.08); }
.bs-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bs-label { margin: 0; font-family: var(--sans); font-size: .82rem; font-weight: 700; color: var(--ink); }
.bs-value { margin: 0; font-family: var(--sans); font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.bs-handwriting {
  font-family: 'QEi 002A';
  font-size: 1.4rem;
  color: var(--coral);
}
.bs-handwriting[data-style="qei-002A"] { font-family: 'QEi 002A'; }
.bs-handwriting[data-style="qei-003A"] { font-family: 'QEi 003A'; }
.bs-handwriting[data-style="qei-004B"] { font-family: 'QEi 004B'; }
.bs-handwriting[data-style="qei-005B"] { font-family: 'QEi 005B'; }
.bs-handwriting[data-style="qei-006C"] { font-family: 'QEi 006C'; }
.bs-handwriting[data-style="qei-009B"] { font-family: 'QEi 009B'; }
.bs-handwriting[data-style="qei-011A"] { font-family: 'QEi 011A'; }
.bs-handwriting[data-style="qei-012B"] { font-family: 'QEi 012B'; }
.bs-handwriting[data-style="qei-013C"] { font-family: 'QEi 013C'; }
.bs-handwriting[data-style="qei-015C"] { font-family: 'QEi 015C'; }
.bs-handwriting[data-style="qei-017C"] { font-family: 'QEi 017C'; }
.bs-handwriting[data-style="qei-020B"] { font-family: 'QEi 020B'; }
.bs-handwriting[data-style="qei-023B"] { font-family: 'QEi 023B'; }
.bs-handwriting[data-style="qei-025A"] { font-family: 'QEi 025A'; }
.bs-handwriting[data-style="qei-026C"] { font-family: 'QEi 026C'; }
.bs-handwriting[data-style="qei-029B"] { font-family: 'QEi 029B'; }
.bs-handwriting[data-style="qei-030C"] { font-family: 'QEi 030C'; }
.bs-toggle { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: .88rem; color: var(--ink); cursor: pointer; }
.env-options { display: flex; gap: 6px; flex-wrap: wrap; }
.env-chip {
  font-family: var(--sans);
  font-size: .82rem;
  padding: 5px 12px;
  border: 1px solid rgba(27,42,78,0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.env-chip:hover { border-color: var(--coral); color: var(--coral); }
.env-chip.is-active { background: var(--coral); color: #fff; border-color: var(--coral); }

/* sticky checkout */
.basket-checkout {
  background: #FFFDF7;
  border: 1px solid rgba(27,42,78,0.08);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 24px;
}
.bc-h { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--cobalt); margin: 0 0 14px; }
.bc-h em { font-style: italic; }
.bc-table { width: 100%; font-family: var(--sans); font-size: .92rem; }
.bc-table td { padding: 8px 0; color: var(--ink-soft); border-bottom: 1px solid rgba(27,42,78,0.06); }
.bc-table .ta-right { text-align: right; color: var(--ink); font-weight: 500; }
.bc-table .bc-total td { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-weight: 600; border-top: 1px solid rgba(27,42,78,0.18); padding-top: 14px; border-bottom: 0; }
.btn-block { width: 100%; margin-top: 18px; }
.bc-fine { font-family: var(--sans); font-size: .78rem; color: var(--ink-soft); text-align: center; margin: 12px 0 0; font-style: italic; }

@media (max-width: 1100px) {
  .basket-checkout { position: static; }
}


/* ============================================
   SEND WIZARD, error bar, review checkout
   ============================================ */

.step-error-bar {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 16px 0;
  background: #fff4f3;
  border: 1px solid #e8b4ad;
  border-left: 4px solid #c44536;
  border-radius: 10px;
  color: #7a2620;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.step-error-bar.is-visible { display: flex; }
.step-error-bar .step-error-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c44536;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.step-error-bar .step-error-msg { flex: 1; }

/* Review, checkout grid */
.review-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}
@media (max-width: 880px) {
  .review-checkout-grid { grid-template-columns: 1fr; }
}

.review-order-summary,
.review-payment {
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(27, 42, 78, 0.04);
}

.review-order-summary h3,
.review-payment h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 14px 0;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.order-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--ink);
}
.order-summary-table tr td {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(27, 42, 78, 0.1);
}
.order-summary-table tr:last-child td {
  border-bottom: none;
  padding-top: 12px;
}
.order-summary-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.order-summary-table tr.strong td {
  font-size: 17px;
  font-weight: 700;
  color: var(--cobalt);
  border-top: 2px solid rgba(27, 42, 78, 0.18);
  border-bottom: none;
  padding-top: 14px;
}

/* Payment methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.pay-method {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid rgba(27, 42, 78, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-align: left;
}
.pay-method:hover { border-color: rgba(45, 93, 168, 0.4); }
.pay-method.is-active {
  border-color: var(--cobalt);
  background: rgba(45, 93, 168, 0.06);
}
.pay-method input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--cobalt);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.pay-method-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.pay-method-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.pay-method-brands {
  font-family: var(--serif);
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
}

/* Card form */
.card-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-form.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.card-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.card-field .card-lbl {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.card-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(27, 42, 78, 0.14);
  border-radius: 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-variant-numeric: tabular-nums;
}
.card-field input[type="text"]:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(45, 93, 168, 0.14);
}
.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .card-row { grid-template-columns: 1fr 1fr; }
  .card-row .card-field:last-child { grid-column: 1 / -1; }
}
.card-form .checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink);
  margin-top: 2px;
  text-align: left;
}
.card-form .checkbox-line input[type="checkbox"] {
  accent-color: var(--cobalt);
  width: 15px;
  height: 15px;
}

/* Secure payment line */
.payment-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(27, 42, 78, 0.12);
  font-family: var(--serif);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.payment-secure svg {
  flex-shrink: 0;
  color: var(--cobalt);
}

/* ============================================
   DESIGN PAGE — Card Type selector
   ============================================ */
.card-type-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 24px;
}
.card-type-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  background: #FFFDF7;
  border: 2px solid rgba(27, 42, 78, 0.12);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.card-type-card:hover {
  border-color: rgba(45, 93, 168, 0.4);
  background: #fff;
  box-shadow: 0 2px 8px rgba(27, 42, 78, 0.06);
}
.card-type-card:active { transform: translateY(1px); }
.card-type-card:focus-visible {
  outline: 3px solid rgba(45, 93, 168, 0.35);
  outline-offset: 2px;
}
.card-type-card.selected {
  border-color: var(--cobalt);
  background: rgba(45, 93, 168, 0.08);
  box-shadow: 0 4px 14px rgba(45, 93, 168, 0.18);
}
.card-type-card.selected::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cobalt);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 2px 6px rgba(45, 93, 168, 0.35);
}
.card-type-card .ct-illo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 64px;
  background: var(--paper);
  border-radius: 8px;
  color: var(--cobalt);
}
.card-type-card .ct-illo svg {
  width: 70px;
  height: 48px;
}
.card-type-card .ct-meta { display: flex; flex-direction: column; gap: 4px; }
.card-type-card .ct-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.1px;
}
.card-type-card .ct-tags {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-soft);
}
.card-type-card .ct-price {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--cobalt);
  padding-right: 36px;
  font-variant-numeric: tabular-nums;
}
.card-type-card.selected .ct-price { padding-right: 44px; }

/* Template tile selection on later steps */
.tg-tile.selected {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(45, 93, 168, 0.2);
}

/* ===== Login Required Modal ===== */
.obw-auth-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.obw-auth-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 50, 0.55); backdrop-filter: blur(2px); }
.obw-auth-dialog {
  position: relative; background: #FBF7EE; border-radius: 14px;
  padding: 32px 32px 28px; max-width: 460px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  font-family: 'Playfair Display', serif; text-align: left;
}
.obw-auth-title { font-style: italic; color: #0068B0; font-size: 1.6rem; margin: 0 0 12px; font-weight: 700; }
.obw-auth-msg { color: #1c1c1c; font-size: 1rem; line-height: 1.5; margin: 0 0 22px; }
.obw-auth-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.obw-auth-actions .btn { font-family: 'Playfair Display', serif; }
.obw-auth-close {
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  font-size: 1.6rem; line-height: 1; color: #555; cursor: pointer; padding: 4px 8px;
}
.obw-auth-close:hover { color: #0068B0; }

/* Handwriting font load error banner (Issue 8) */
.obw-font-error-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #2D5DA8;
  color: #fff;
  padding: 10px 38px 10px 16px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  max-width: calc(100vw - 32px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
}
.obw-font-error-close {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.obw-font-error-close:hover { background: rgba(255, 255, 255, 0.15); }

/* ===== Auth form error/banner styles (added for auth.js field validation) ===== */
.field-error {
  color: #A6262E;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  margin: 6px 0 0;
  min-height: 1em;
  line-height: 1.3;
}
.auth-field input.is-invalid,
.auth-field select.is-invalid,
.auth-field textarea.is-invalid {
  border-color: #A6262E;
  outline-color: #A6262E;
}
.form-banner {
  padding: 10px 14px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  margin-bottom: 14px;
  line-height: 1.4;
}
.form-banner.is-error {
  background: rgba(166, 38, 46, .08);
  color: #A6262E;
  border: 1px solid rgba(166, 38, 46, .25);
}
.form-banner.is-success {
  background: rgba(13, 58, 44, .08);
  color: #0D3A2C;
  border: 1px solid rgba(13, 58, 44, .25);
}

/* ===== Password requirements checklist ===== */
.pw-rules {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: #6B6B6B;
  line-height: 1.4;
}
.pw-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .15s ease;
}
.pw-rules-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #C9C9C9;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  transition: all .15s ease;
}
.pw-rules li.is-met {
  color: #0D3A2C;
}
.pw-rules li.is-met .pw-rules-icon {
  background: #0D3A2C;
  border-color: #0D3A2C;
}
.pw-rules li.is-met .pw-rules-icon::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
@media (max-width: 520px) {
  .pw-rules { grid-template-columns: 1fr; }
}

/* ===== Site-wide unverified email reminder ===== */
.verify-reminder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 48px 10px 18px;
  background: #FFF6E0;
  color: #5A4A1F;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  line-height: 1.4;
  text-align: center;
  position: relative;
}
.verify-reminder-text a {
  color: #0068B0;
  font-weight: 600;
  text-decoration: underline;
}
.verify-reminder-close {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: #5A4A1F;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.verify-reminder-close:hover { background: rgba(0,0,0,.05); }

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page { background: var(--cream); min-height: 100vh; }
.checkout-page .page-h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--cobalt);
  letter-spacing: -.01em;
  margin: 4px 0 0;
}
.checkout-page .page-h1 em { font-style: italic; font-weight: 500; }

.checkout-head {
  padding: 56px 80px 16px;
  background: var(--cream);
}
.checkout-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(27,42,78,0.10);
  padding-bottom: 18px;
}

.checkout-section.section-cream { background: var(--cream); padding: 32px 80px 96px; }

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

.checkout-main { display: flex; flex-direction: column; gap: 24px; }

.checkout-card {
  background: #FFFDF7;
  border: 1px solid rgba(27,42,78,0.08);
  border-radius: 12px;
  padding: 28px 28px 24px;
}

.checkout-summary {
  background: #FFFDF7;
  border: 1px solid rgba(27,42,78,0.08);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 24px;
}

@media (max-width: 1100px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout-summary { position: static; }
  .checkout-head { padding: 36px 20px 16px; }
  .checkout-section.section-cream { padding: 16px 20px 60px; }
}

/* Field error styling, reused on this page */
.checkout-page .field-error {
  display: block;
  color: #b8323a;
  font-family: var(--sans);
  font-size: .82rem;
  margin-top: 4px;
  min-height: 1em;
}
.checkout-page input.is-invalid {
  border-color: #b8323a;
  background: rgba(184,50,58,0.04);
}
.checkout-page .form-banner {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .9rem;
}
.checkout-page .form-banner.is-error {
  background: rgba(184,50,58,0.10);
  color: #8a2026;
  border: 1px solid rgba(184,50,58,0.30);
}
.checkout-page .success-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 10px;
  background: rgba(0, 104, 176, 0.06);
  border: 1px solid rgba(0, 104, 176, 0.18);
}
.checkout-page .success-box h3 {
  font-family: var(--serif);
  color: var(--logo-blue, #0068B0);
  margin: 0 0 6px;
  font-weight: 500;
}
.checkout-page .success-box .btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ===== Bulk: Return address modal styles (mirrors #addrForm) ===== */
#raForm label { display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); font-size: .9rem; color: var(--ink); margin: 0 0 12px; }
#raForm input[type="text"], #raForm input:not([type]) {
  padding: 10px 12px;
  border: 1px solid var(--border, #d8d2c0);
  border-radius: 8px;
  background: var(--frame, #fbf7ee);
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
}
#raForm .row-3 { display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: 10px; }
#raForm .checkbox-line { display: flex; align-items: center; gap: 8px; flex-direction: row; }
#raForm .muted.small { color: var(--muted); font-size: .85em; font-weight: 400; }

/* ===== Saved address picker list ===== */
.saved-addr-list { list-style: none; padding: 0; margin: 0 0 16px; max-height: 320px; overflow-y: auto; }
.saved-addr-empty { padding: 18px; text-align: center; }
.saved-addr-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 14px; border: 1px solid var(--border, #e2dcc8);
  border-radius: 10px; margin-bottom: 10px; background: var(--frame, #fbf7ee);
}
.saved-addr-text { flex: 1; min-width: 0; }
.saved-addr-text strong { font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.saved-addr-text .muted.small { display: block; font-size: .85rem; margin-top: 2px; }
.saved-addr-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--logo-blue, #0068B0); color: #fff; font-size: .7rem;
  font-family: var(--sans); font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; vertical-align: middle; margin-left: 4px;
}
.saved-addr-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

/* ===== Bulk page: all-in pricing helper note ===== */
.allin-note { margin: 10px 0 6px; font-size: .85rem; color: var(--muted, #6b6452); font-style: italic; }

/* ===== Checkout: per-order review card ===== */
#orderReviewCard .review-order { padding: 16px 0; border-bottom: 1px solid var(--border, #e2dcc8); }
#orderReviewCard .review-order:last-child { border-bottom: 0; padding-bottom: 0; }
#orderReviewCard .review-order:first-child { padding-top: 0; }
.review-order-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.review-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border, #e2dcc8); }
.review-title { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.review-cell-label {
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted, #6b6452); font-family: var(--sans); font-weight: 600;
  margin-bottom: 6px;
}
.review-cell-body { font-family: var(--sans); font-size: .92rem; color: var(--ink); line-height: 1.55; }
.review-totals { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .92rem; }
.review-totals td { padding: 3px 0; color: var(--ink); }
.review-totals .review-line td { border-top: 1px solid var(--border, #e2dcc8); padding-top: 8px; }
@media (max-width: 720px) {
  .review-grid { grid-template-columns: 1fr; }
  .saved-addr-item { flex-direction: column; }
  .saved-addr-actions { flex-direction: row; }
  #raForm .row-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ===== Legal pages (privacy, terms): force left alignment everywhere ===== */
.content-page.legal-page,
.content-page.legal-page h1,
.content-page.legal-page h2,
.content-page.legal-page h3,
.content-page.legal-page p,
.content-page.legal-page ul,
.content-page.legal-page li,
.content-page.legal-page .legal-dates {
  text-align: left;
}
.content-page.legal-page .legal-dates { letter-spacing: .06em; }
.content-page.legal-page a { color: var(--logo-blue, #0068B0); text-decoration: underline; }
.content-page.legal-page a:hover { text-decoration: none; }

/* ===== Send wizard: alignment popover, picker, billing, promo (added 2026-06-16) ===== */
.align-wrap { position: relative; display: inline-block; }
.align-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #e3dccb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 50;
  display: flex;
  flex-direction: row;
  gap: 4px;
}
.align-menu[hidden] { display: none; }
.align-opt {
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  color: #2a2a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.align-opt:hover { background: #f4efe4; }
.align-opt[aria-checked="true"] { background: #e9eaf6; color: #2D5DA8; }
.align-opt svg { display: block; }

/* Picker modal list (used for selecting an existing return address) */
.picker-search { margin: 12px 0; }
.picker-search input {
  width: 100%; padding: 10px 12px; font-family: inherit; font-size: 0.95rem;
  border: 1px solid #d8d2c0; border-radius: 8px; background: #fff; color: #1a1a1a;
}
.saved-addr-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0 0 12px; }
.saved-addr-row {
  text-align: left; width: 100%;
  background: #FBF7EE; border: 1px solid #e3dccb; border-radius: 10px;
  padding: 10px 12px; cursor: pointer; font-family: inherit; color: #1a1a1a;
  transition: background .15s ease, border-color .15s ease;
}
.saved-addr-row:hover { background: #fff; border-color: #2D5DA8; }
.saved-addr-row .addr-name { font-weight: 600; margin-bottom: 2px; }

/* Address modal: split-name row */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Billing block (inside the payment form) */
.billing-block { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e3dccb; }
.billing-block .send-col-head { margin-bottom: 8px; }
.billing-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.billing-fields[hidden] { display: none; }

/* Promo code row */
.promo-row { display: flex; gap: 8px; align-items: stretch; }
.promo-row input {
  flex: 1; padding: 10px 12px; font-family: inherit; font-size: 0.95rem;
  border: 1px solid #d8d2c0; border-radius: 8px; background: #fff; color: #1a1a1a;
}
.promo-row .btn { white-space: nowrap; }

/* Modal: delete button visual treatment */
#deleteAddrBtn { background: #fff; border: 1px solid #c94a3a; color: #c94a3a; }
#deleteAddrBtn:hover { background: #c94a3a; color: #fff; }

/* Modal error bar */
.modal-error-bar {
  display: none;
  background: #fde8e6; border: 1px solid #f2b6b0; color: #8a261c;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 12px;
  align-items: center; gap: 8px;
}
.modal-error-bar.is-visible { display: flex; }
.modal-error-icon { font-weight: 700; }

/* Step-level error bar (Continue to Review etc.) */
.step-error-bar {
  display: none;
  background: #fde8e6; border: 1px solid #f2b6b0; color: #8a261c;
  padding: 10px 14px; border-radius: 8px; margin: 12px 0;
  align-items: center; gap: 10px;
}
.step-error-bar.is-visible { display: flex; }

@media (max-width: 600px) {
  .row-2 { grid-template-columns: 1fr; }
  .promo-row { flex-direction: column; }
}

/* ===== Bulk return-address modal: ensure ZIP isn't clipped (2026-06-16) ===== */
#raModal .modal-panel { max-width: 520px; width: calc(100% - 32px); overflow-x: hidden; }
#raForm .row-3 { display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: 12px; }
#raForm .row-3 > label { min-width: 0; }
#raForm input { width: 100%; box-sizing: border-box; }
@media (max-width: 520px) {
  #raForm .row-3 { grid-template-columns: 1fr 1fr; }
  #raForm .row-3 > label:last-child { grid-column: 1 / -1; }
}

/* Bulk CTA inline error bar so users get clear feedback (no more silent alerts on mobile) */
.bulk-cta-error {
  display: none;
  background: #fde8e6; border: 1px solid #f2b6b0; color: #8a261c;
  padding: 10px 14px; border-radius: 8px; margin: 0 0 12px;
  font-size: 0.95rem;
}
.bulk-cta-error.is-visible { display: block; }

/* ========================================================================
   Design wizard layout modes
   ------------------------------------------------------------------------
   data-mode="edit"    -> steps 1-4: hide right-side live preview, editor
                          panel spans full width.
   data-mode="preview" -> step 5: hide right-side live preview, render full
                          card preview inline inside the step-5 panel.
   ======================================================================== */
.wizard-shell[data-mode="edit"],
.wizard-shell[data-mode="preview"] {
  grid-template-columns: minmax(0, 1fr);
}
.wizard-shell[data-mode="edit"] .wizard-preview,
.wizard-shell[data-mode="preview"] .wizard-preview {
  display: none;
}
.wizard-shell[data-mode="edit"] .wizard-controls,
.wizard-shell[data-mode="preview"] .wizard-controls {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Step 5 dedicated preview page */
.preview-panel .preview-stage {
  margin: 8px 0 28px;
  padding: 24px;
  background: #FFFDF7;
  border: 1px solid rgba(27, 42, 78, 0.08);
  border-radius: 12px;
}
.preview-panel .preview-stage .full-preview {
  gap: 28px;
}
.preview-panel .summary-list {
  margin-top: 0;
}

/* Clickable preview panels */
.fp-panel.clickable {
  cursor: pointer;
  border-radius: 8px;
  transition: transform .15s ease, box-shadow .15s ease, outline-color .15s ease;
  outline: 2px solid transparent;
  outline-offset: 4px;
}
.fp-panel.clickable:hover {
  transform: translateY(-1px);
  outline-color: rgba(0, 104, 176, 0.35);
}
.fp-panel.clickable:focus-visible {
  outline-color: #0068B0;
}
.fp-panel.clickable:active {
  transform: translateY(0);
}

@media (max-width: 720px) {
  .preview-panel .preview-stage { padding: 14px; }
}

/* ===== Shipping Method picker (send + bulk) ===== */
.shipping-block { margin-bottom: 24px; }
.shipping-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 18px;
  margin-top: 12px;
}
.ship-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink, #1B2A4E);
  line-height: 1.3;
}
.ship-method input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 1px solid #c9c4ba;
  background: #ece8df;
  position: relative;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.ship-method input[type="radio"]:checked {
  border-color: #C95A4A;
  background: #ece8df;
}
.ship-method input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #C95A4A;
  transform: translate(-50%, -50%);
}
.ship-method:hover input[type="radio"] { border-color: #b0a99c; }
.ship-method-label { user-select: none; display: inline; }
/* Two-line shipping tier label: name on top, price below (used in send.html). */
.ship-method-label .tier-name { display: inline; }
.ship-method-label .tier-price { display: inline; margin-left: 6px; color: inherit; font-size: inherit; }
.ship-method input[type="radio"]:checked ~ .ship-method-label .tier-price { color: inherit; }

@media (max-width: 900px) {
  .shipping-methods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .shipping-methods { grid-template-columns: 1fr; }
}

/* ===== Subscription table (Everyday Plans) ===== */
.subscription-table-wrap { margin: 28px 0 14px; }
.subscription-table th,
.subscription-table td {
  font-family: var(--sans);
  text-align: left;
  padding: 18px 22px;
  vertical-align: middle;
}
.subscription-table thead th {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 1px solid rgba(20, 33, 61, 0.12);
}
.subscription-table tbody tr {
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  transition: background-color .2s ease;
}
.subscription-table tbody tr:last-child { border-bottom: 0; }
.subscription-table td strong {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: .01em;
}
.subscription-table tbody td:nth-child(2) { font-weight: 600; color: var(--ink); }
.subscription-table tbody td:nth-child(4) {
  font-weight: 600;
  color: #2D5DA8;
}
.subscription-table tbody tr.sub-row-featured {
  background: rgba(45, 93, 168, 0.04);
}
.subscription-table tbody tr.sub-row-best {
  background: rgba(201, 90, 74, 0.05);
}
.sub-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--sans);
  font-style: normal;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.sub-badge-popular {
  background: #2D5DA8;
  color: #fff;
}
.sub-badge-best {
  background: #C95A4A;
  color: #fff;
}
.subscription-clarifier {
  font-family: var(--sans);
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 8px 0 24px;
  padding: 14px 18px;
  background: rgba(20, 33, 61, 0.04);
  border-left: 3px solid #2D5DA8;
  border-radius: 4px;
}
.subscription-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 18px;
}
.subscription-cta-row .btn { min-width: 160px; }

@media (max-width: 700px) {
  .subscription-table th,
  .subscription-table td { padding: 14px 12px; font-size: .92rem; }
  .subscription-table td strong { font-size: 1.05rem; }
  .sub-badge { display: block; margin: 4px 0 0 0; width: max-content; }
  .subscription-cta-row { flex-direction: column; }
  .subscription-cta-row .btn { width: 100%; }
}

/* ===== Business plan savings + rollover ===== */
.plan-savings {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #1F7A4D;
  margin: -4px 0 14px;
  min-height: 1.2em;
}
.plan.featured .plan-savings { color: #15633B; }
.rollover-note {
  font-family: var(--sans);
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
  margin: 28px auto 0;
  max-width: 640px;
}

/* Best Value variant of the plan badge (coral) */
.plan-badge-best { background: #C95A4A; }

/* Handwriting style descriptions (Send picker, Bulk picker) */
.hw-style-desc { margin: 4px 0 0; color: #6f6a64; font-size: .88rem; font-style: italic; min-height: 1.1em; }
.style-menu .sm-desc { display: block; color: #6f6a64; font-size: .82rem; font-style: italic; margin-top: 2px; }
.style-menu li { padding: 10px 14px; }
.style-menu li .sm-name { display: block; }

/* Fonts gallery description */
.font-desc { margin: .25rem 0 0; color: var(--ink-soft, #6f6a64); font-size: .92rem; font-style: italic; }

/* Send-flow Stripe handoff card (replaces the inline card form) */
.stripe-handoff p { margin: 0 0 .75rem; line-height: 1.5; }
.stripe-handoff-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: .5rem 0 1rem;
  color: var(--ink-2, #4a4a4a);
}
.stripe-handoff-list li { margin: .3rem 0; line-height: 1.45; }

/* ---- Auth flow (added 20260630) ---- */
.auth-lede {
  margin: .5rem 0 1.25rem;
  color: var(--ink-2, #4a4a4a);
  font-size: 15px;
  line-height: 1.55;
  max-width: 36ch;
}
.auth-status {
  margin: 1rem 0 0;
  padding: .75rem .9rem;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  background: #f6f3ee;
  color: var(--ink-1, #2a2a2a);
  border: 1px solid #e7e0d3;
}
.auth-status-ok    { background: #eef7f0; border-color: #c9e3d0; color: #2b5e3a; }
.auth-status-error { background: #fbeeee; border-color: #ebcccc; color: #8a2a2a; }
.auth-footer + .auth-footer { margin-top: .35rem; }

/* Live customer dashboard panel injected by auth.js */
.dash-panel-live {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dash-panel-live .dash-card {
  background: #fff;
  border: 1px solid #ece6dc;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}
.dash-panel-live .dash-card-head h2 {
  font-size: 1.05rem;
  margin: 0 0 .65rem;
  letter-spacing: .01em;
}
.dash-panel-live .muted { color: var(--ink-2, #4a4a4a); }

.obw-order-list, .obw-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.obw-order-item, .obw-sub-item {
  padding: .7rem .85rem;
  border-radius: 10px;
  background: #f8f5ef;
  border: 1px solid #ece6dc;
}
.obw-order-row, .obw-sub-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: 14px;
  align-items: baseline;
}
.obw-order-row-light, .obw-sub-row-light {
  margin-top: .25rem;
  color: var(--ink-2, #4a4a4a);
  font-size: 13px;
}
.obw-order-id { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.obw-order-status, .obw-sub-status {
  text-transform: capitalize;
  font-size: 12px;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: #ece6dc;
  color: #4a4a4a;
}
.obw-status-paid       { background: #d8ead8; color: #2b5e3a; }
.obw-status-fulfilled  { background: #d8ead8; color: #2b5e3a; }
.obw-status-active     { background: #d8ead8; color: #2b5e3a; }
.obw-status-canceled   { background: #ebcccc; color: #8a2a2a; }
.obw-status-refunded   { background: #ebe0c8; color: #6a5413; }
