/* Dodopic Studio — Vistaprint-inspired neat green (no color-mix for html2canvas safety) */

:root {
  --ui-bg: #FFFFFF;
  --ui-bg-2: #F0FDF4;
  --ui-card: #FFFFFF;
  --ui-ink: #14532D;
  --ui-muted: #3F6B4F;
  --ui-line: #D1D5DB;
  --ui-accent: #15803D;
  --ui-accent-2: #166534;
  --ui-coral: #15803D;
  --ui-yellow: #EAB308;
  --ui-mint: #15803D;
  --ui-ok: #15803D;
  --ui-ok-bg: #DCFCE7;
  --ui-warn: #A16207;
  --ui-warn-bg: #FEF9C3;
  --shadow: none;
  --shadow-sm: none;
  --radius: 12px;
  --font-ui: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-script: "Caveat", cursive, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: #FFFFFF;
  color: var(--ui-ink);
  line-height: 1.48;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* Focus ring for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #15803D;
  outline-offset: 2px;
}

/* ===== Standout Light-Blue Top Navigation Bar ===== */
.site-header {
  background: linear-gradient(135deg, #4ec6ff 0%, #74daff 52%, #4ee3d1 100%);
  border-bottom: 4px solid #ffd83d;
  box-shadow: 0 8px 26px rgba(0, 102, 196, 0.22);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid #0b74d1;
  border-radius: 18px;
  padding: 6px 14px 6px 10px;
  box-shadow: 0 4px 0 rgba(11, 116, 209, 0.22);
  flex: 0 0 auto;
  transition: transform 0.14s ease;
}
.brand-lockup:hover {
  transform: translateY(-1px);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2cb7ff 0%, #ff5c8a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
}
.brand-parent {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e62e6b;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.38rem;
  letter-spacing: 0.01em;
  color: #083358;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-goal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 17px;
  border-radius: 16px;
  border: 2px solid rgba(8, 51, 88, 0.18);
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(8, 51, 88, 0.20);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.nav-goal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(8, 51, 88, 0.22);
}
.nav-goal-btn:active,
.nav-goal-btn[aria-expanded="true"] {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(8, 51, 88, 0.25);
}
.nav-goal-btn.is-current {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}
.nav-goal-btn .nav-caret {
  font-size: 0.72rem;
  opacity: 0.85;
  transition: transform 0.15s ease;
}
.nav-goal-btn[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.nav-goal-calendar {
  background: #ffe047;
  color: #082d52;
  border-color: #e09f00;
}
.nav-goal-cards {
  background: #ff4f7d;
  color: #ffffff;
  border-color: #c92050;
}
.nav-goal-prices {
  background: #22e3a4;
  color: #05362b;
  border-color: #09a673;
}
.nav-goal-help {
  background: #ffffff;
  color: #064a8c;
  border-color: #0b74d1;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4f7d;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* ===== Top-Bar Pop-Up Menu ===== */
.nav-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 51, 88, 0.42);
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 74px 14px 20px;
}
.nav-popup-panel {
  background: #ffffff;
  border: 3px solid #4ec6ff;
  border-radius: 24px;
  width: min(460px, 100%);
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  animation: popIn 0.16s ease-out;
}
@keyframes popIn {
  from { opacity: 1; transform: translateY(-4px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 2px solid #d4f0ff;
}
.nav-popup-head.tone-calendar { background: linear-gradient(135deg, #fff3a1 0%, #ffe047 100%); color: #082d52; }
.nav-popup-head.tone-cards { background: linear-gradient(135deg, #ff7aa0 0%, #ff4f7d 100%); color: #ffffff; }
.nav-popup-head.tone-prices { background: linear-gradient(135deg, #74f5cc 0%, #22e3a4 100%); color: #05362b; }
.nav-popup-head.tone-help { background: linear-gradient(135deg, #8ee0ff 0%, #3dbdff 100%); color: #063057; }

.nav-popup-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-popup-title-icon {
  font-size: 1.45rem;
  line-height: 1;
}
.nav-popup-title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}
.nav-popup-sub {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.88;
}
.nav-popup-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(8, 51, 88, 0.22);
  background: #ffffff;
  color: #082d52;
  font-size: 1.3rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(8, 51, 88, 0.14);
}
.nav-popup-close:hover { background: #ffe047; }

.nav-popup-list {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-popup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  min-height: 58px;
  border-radius: 16px;
  border: 2px solid #bfe6ff;
  background: #f3fbff;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.nav-popup-item:hover,
.nav-popup-item:focus-visible {
  background: #e1f4ff;
  border-color: #008ef5;
  transform: translateX(2px);
}
.nav-popup-item.is-active-route {
  background: #fff8cc;
  border-color: #f0b400;
}
.nav-popup-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #ffffff;
  border: 2px solid #9bd8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.nav-popup-item-body {
  flex: 1;
  min-width: 0;
}
.nav-popup-item-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #082d52;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-popup-item-desc {
  font-size: 0.8rem;
  color: #21598c;
  margin-top: 2px;
}
.nav-popup-item-arrow {
  font-weight: 800;
  font-size: 1.05rem;
  color: #008ef5;
  flex-shrink: 0;
}

/* ===== First-visit welcome modal ===== */
.welcome-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 80, 140, 0.48);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.welcome-modal {
  background: #e8f8ff;
  border: 3px solid #4ec6ff;
  border-radius: 20px;
  width: min(680px, 100%);
  max-width: 100%;
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.welcome-modal-top {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 8px;
  background: #e8f8ff;
}
.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffe047;
  color: #082d52;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid #e0a800;
  margin-bottom: 6px;
}
.welcome-modal h2 {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  margin: 0;
  line-height: 1.2;
  color: #082d52;
}
.welcome-modal-kicker {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #072c52;
}
.welcome-modal-lead {
  margin: 2px 0 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #0a4a80;
}
.welcome-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 2px 16px 8px;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-content: start;
  justify-content: start;
  grid-auto-rows: min-content;
}
@media (min-width: 441px) {
  .welcome-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
.welcome-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  gap: 4px;
  padding: 8px 12px;
  height: auto;
  min-height: min-content;
  min-width: 0;
  overflow: visible;
  border-radius: 16px;
  border: 2px solid #7ad8ff;
  background: #ffffff;
  color: #082d52;
  text-decoration: none;
  box-sizing: border-box;
}
.welcome-tile:hover,
.welcome-tile:focus {
  border-color: #008ef5;
  outline: none;
}
.welcome-tile.tile-qs { background: #ffe047; border-color: #e0a800; color: #082d52; }
.welcome-tile.tile-cal { background: #fff0a0; border-color: #e0a800; color: #082d52; }
.welcome-tile.tile-post { background: #ff7aa0; border-color: #e63946; color: #3a1020; }
.welcome-tile.tile-holi { background: #8ee0ff; border-color: #0b74d1; color: #052646; }
.welcome-tile.tile-biz { background: #7ef0c8; border-color: #09a673; color: #043329; }
.welcome-tile.tile-custom { background: #c8eeff; border-color: #4ec6ff; color: #082d52; }
.welcome-tile.tile-flyer { background: #ffc14d; border-color: #e07a10; color: #3a1600; }
.welcome-tile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.welcome-tile-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid rgba(8, 45, 82, 0.12);
}
.welcome-tile-tag {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #082d52;
  border: 2px solid rgba(8, 45, 82, 0.12);
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.welcome-tile-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.welcome-tile-desc {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.welcome-tile-go {
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 2px;
}
.welcome-modal-foot {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 16px 12px;
  border-top: 2px solid #9bd8ff;
  background: #dff4ff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.welcome-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #064a8c;
  background: #ffffff;
  border: 2px solid #4ec6ff;
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 40px;
  text-decoration: none;
}
.welcome-just-browse {
  border: 2px solid #4ec6ff;
  background: #ffffff;
  color: #0a3c6e;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 0.84rem;
  font-weight: 700;
}
.welcome-just-browse:hover,
.welcome-cart-link:hover { background: #c8eeff; }

/* ===== Buttons & Controls ===== */
.btn {
  border: 2px solid var(--ui-line);
  background: #ffffff;
  color: var(--ui-ink);
  border-radius: 999px;
  padding: 9px 17px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(10, 82, 148, 0.10);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.btn:hover {
  border-color: #008ef5;
  background: #f0f9ff;
  transform: translateY(-1px);
}
.btn.primary {
  background: linear-gradient(135deg, #0095ff 0%, #0072e5 100%);
  color: #ffffff;
  border-color: #0062c4;
  box-shadow: 0 4px 0 rgba(0, 65, 138, 0.25);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #17a2ff 0%, #0080f5 100%);
  border-color: #0058b3;
}
.btn.sunny {
  background: #ffe047;
  color: #082d52;
  border-color: #e09f00;
}
.btn.sunny:hover { background: #ffea75; }
.btn.coral {
  background: #ff4f7d;
  color: #ffffff;
  border-color: #c92050;
}
.btn.coral:hover { background: #ff6b92; }
.btn.mint {
  background: #22e3a4;
  color: #05362b;
  border-color: #09a673;
}
.btn.ok {
  background: var(--ui-ok);
  color: #ffffff;
  border-color: var(--ui-ok);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
}
.btn:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.btn.sm { min-height: 36px; padding: 6px 13px; font-size: 0.82rem; }

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  background: #dff3ff;
  color: #08427a;
  border: 1px solid #9ad7ff;
}
.pill-tag.free { background: #d6fced; color: #055c42; border-color: #6ee8be; }
.pill-tag.paid { background: #fff0b3; color: #8c4000; border-color: #ffd043; }
.pill-tag.test { background: #ffe3ec; color: #a11745; border-color: #ffa6c1; }

/* ===== Home Page ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 44px;
}
.hero-box {
  background:
    radial-gradient(circle at 96% 10%, rgba(255, 216, 61, 0.24) 0%, rgba(255, 216, 61, 0) 28%),
    radial-gradient(circle at 84% 92%, rgba(31, 212, 156, 0.16) 0%, rgba(31, 212, 156, 0) 34%),
    linear-gradient(145deg, #ffffff 0%, #dcf3ff 56%, #cbeeff 100%);
  border: 3px solid #72caff;
  border-radius: 26px;
  padding: 26px 26px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 22px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-box::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: linear-gradient(90deg, #2cb7ff 0%, #ffd83d 34%, #ff4f7d 68%, #22e3a4 100%);
}
.hero-box .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #dff3ff;
  color: #0066cc;
  border: 1.5px solid #82d0ff;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.hero-script-note {
  font-family: "Baloo 2", "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.7rem, 6.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #072c52;
  margin: 2px 0 8px;
}
.hero-box h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  margin: 0 0 10px;
  line-height: 1.08;
  color: #072c52;
}
.three-taps {
  color: #15803D;
}
.hero-box p {
  margin: 0;
  color: #1c5385;
  max-width: 620px;
  font-size: 0.98rem;
}
.pricing-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(145deg, #bfe9ff 0%, #d2fbee 100%);
  border: 2px dashed #5cbff7;
}
.collage-mini {
  background: #ffffff;
  border-radius: 15px;
  padding: 12px;
  border: 2px solid #96d9ff;
  box-shadow: 0 8px 18px rgba(10, 82, 148, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.15s ease;
}
.collage-mini:hover { transform: translateY(-3px) rotate(0deg) !important; }
.collage-mini.c1 { transform: rotate(-2deg); border-color: #ffd038; background: #fffbe0; }
.collage-mini.c2 { transform: rotate(2deg); border-color: #ff7aa0; background: #fff2f6; }
.collage-mini.c3 { transform: rotate(1.5deg); border-color: #3be0ad; background: #edfff8; }
.collage-mini.c4 { transform: rotate(-1.5deg); border-color: #54c3ff; background: #eef9ff; }
.collage-mini-icon { font-size: 1.4rem; }
.collage-mini-title { font-family: var(--font-serif); font-weight: 700; font-size: 0.96rem; color: #082d52; }
.collage-mini-sub { font-size: 0.74rem; font-weight: 700; color: #21598c; }

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.tool-card {
  background: #ffffff;
  border: 2.5px solid #84d1ff;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #008ef5;
}
.tool-card[href="/calendar/"] { border-top: 6px solid #ffd83d; }
.tool-card[href="/business-cards/"] { border-top: 6px solid #22e3a4; }
.tool-card[href="/postcards/"] { border-top: 6px solid #ff4f7d; }
.tool-card[href="/holiday-cards/"] { border-top: 6px solid #35b8ff; }
.tool-card[href="/cart/"] { border-top: 6px solid #ff9e44; }

.tool-thumb {
  height: 136px;
  border-radius: 15px;
  border: 2px solid #bfe6ff;
  background: #e5f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.tool-card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.15;
  color: #072c52;
}
.tool-card p {
  margin: 0;
  color: #21598c;
  font-size: 0.89rem;
  flex: 1;
}
.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 2px dashed #ccecff;
}

/* ===== Maker Workspace ===== */
.maker-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 16px 36px;
  display: grid;
  grid-template-columns: 1fr 375px;
  gap: 18px;
  align-items: start;
}
.preview-panel {
  background: #ffffff;
  border: 2.5px solid #84d1ff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.seg-tabs {
  display: inline-flex;
  background: #d7f1ff;
  padding: 4px;
  border-radius: 999px;
  border: 1.5px solid #8bd2fc;
  gap: 3px;
}
.seg-tabs button {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #16528a;
}

.size-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-bottom: 4px;
}
.size-picker button {
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  min-height: 48px;
  padding: 8px 8px;
  font-size: 0.8rem;
}

.seg-tabs button.active {
  background: #008ef5;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 110, 210, 0.28);
}
.preview-stage {
  background: linear-gradient(145deg, #bfe9ff 0%, #d8f6ff 100%);
  border: 2px dashed #6bc5fa;
  border-radius: 16px;
  padding: 20px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.card-frame {
  box-shadow: 0 16px 38px rgba(8, 51, 88, 0.22);
  background: #ffffff;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.preview-caption {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ui-muted);
}

.editor-card {
  background: #ffffff;
  border: 2.5px solid #84d1ff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.editor-card h2 {
  font-family: var(--font-serif);
  font-size: 1.34rem;
  margin: 0 0 10px;
  color: #072c52;
}
.section-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0072d6;
  margin: 14px 0 6px;
  padding-top: 10px;
  border-top: 2px dashed #ccecff;
}
.field { margin-bottom: 10px; }
.flab {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #16528a;
  margin-bottom: 4px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  border: 2px solid #a8dfff;
  background: #f5fbff;
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.9rem;
  color: #082d52;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #008ef5;
  background: #ffffff;
}
.field textarea { resize: vertical; min-height: 76px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.photo-box {
  background: linear-gradient(135deg, #fff8d6 0%, #e6f7ff 100%);
  border: 2px dashed #4ec6ff;
  border-radius: 14px;
  padding: 11px;
  margin: 8px 0 10px;
}
.photo-box-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.action-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed #ccecff;
}

/* ===== Cart & Charges Page ===== */
.cart-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: start;
}
.panel {
  background: #ffffff;
  border: 2.5px solid #84d1ff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.panel h2, .panel h3 {
  font-family: var(--font-serif);
  margin: 0 0 10px;
  color: #072c52;
}
.charges-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.charges-table th, .charges-table td {
  text-align: left;
  padding: 9px 6px;
  border-bottom: 1.5px solid #d9f0ff;
}
.charges-table th {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0072d6;
}
.cart-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1.5px solid #d9f0ff;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-info { flex: 1 1 200px; }
.cart-item-title { font-weight: 700; font-size: 0.96rem; color: #082d52; }
.cart-item-sub { font-size: 0.82rem; color: var(--ui-muted); margin-top: 2px; }
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 2px solid #8bd2fc;
  border-radius: 999px;
  background: #f2faff;
}
.qty-ctrl button {
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  font-weight: 800;
  color: #0072d6;
}
.qty-ctrl span {
  min-width: 26px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.93rem;
}
.summary-row.total {
  border-top: 2px solid #9bd8ff;
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: #072c52;
}
.test-banner {
  background: linear-gradient(135deg, #dff3ff 0%, #fff6cc 100%);
  border: 2px solid #6ec7ff;
  color: #083358;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* ===== Modals & Helpers ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 51, 88, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 95;
}
.modal {
  background: #ffffff;
  border: 3px solid #4ec6ff;
  border-radius: 22px;
  max-width: 480px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 22px 64px rgba(8, 51, 88, 0.34);
  max-height: 90dvh;
  overflow-y: auto;
}
.modal h3 {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  margin: 0 0 10px;
  color: #072c52;
}
.modal-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.price-banner {
  background: #ebf8ff;
  border: 2px solid #8bd2fc;
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 12px;
  font-size: 0.87rem;
}
.code-row {
  display: flex;
  gap: 8px;
}
.code-row input { flex: 1; }
.hint { font-size: 0.82rem; color: var(--ui-muted); margin-top: 4px; }
.access-ok { color: var(--ui-ok); font-weight: 700; }
.access-err { color: #d11f5a; font-weight: 700; }

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #083358;
  color: #ffffff;
  border: 2px solid #ffd83d;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 700;
  z-index: 110;
  box-shadow: 0 10px 26px rgba(8, 51, 88, 0.34);
}

#render-stage {
  position: fixed;
  left: -10000px;
  top: 0;
  pointer-events: none;
  z-index: -1;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 3px solid #67c8ff;
  background: linear-gradient(135deg, #dff4ff 0%, #e7fcf6 100%);
  padding: 20px 16px 28px;
  margin-top: 32px;
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ui-muted);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.footer-parent {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e62e6b;
}
.footer-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.18rem;
  color: #082d52;
}

@media (max-width: 900px) {
  .hero-box { grid-template-columns: 1fr; }
  .maker-wrap { grid-template-columns: 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header-inner {
    padding: 10px 12px;
    gap: 10px;
  }
  .brand-lockup {
    width: 100%;
    justify-content: center;
  }
  .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .nav-goal-btn {
    width: 100%;
    min-height: 48px;
    padding: 8px 10px;
    font-size: 0.89rem;
  }
  .nav-popup-backdrop {
    align-items: center;
    padding: 14px;
  }
  .nav-popup-panel {
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
  }
  .two-col { grid-template-columns: 1fr; }
  .preview-stage { padding: 12px; min-height: 250px; }
  .hero-box { padding: 20px 16px 18px; }
}


/* ===== Visual template picker (holiday cards, flyers, postcards) ===== */
.tpl-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(58vh, 560px);
  overflow-y: auto;
  padding: 2px 2px 6px;
  margin: 0 0 8px;
}
.tpl-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0072d6;
  margin: 2px 0 0;
}
.tpl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tpl-thumb {
  display: flex;
  flex-direction: column;
  border: 2.5px solid #b5e2ff;
  border-radius: 14px;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  text-align: left;
  min-height: 0;
  box-shadow: 0 3px 0 rgba(10, 82, 148, 0.08);
  transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.tpl-thumb:hover {
  transform: translateY(-1px);
  border-color: #008ef5;
}
.tpl-thumb.active {
  border-color: #e6a800;
  box-shadow: 0 0 0 3px rgba(255, 216, 61, 0.7), 0 4px 0 rgba(10, 82, 148, 0.12);
}
.tpl-thumb-stage {
  height: 148px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #d7f1ff;
  pointer-events: none;
}
.tpl-thumb-stage .tpl-mini {
  transform-origin: top center;
}
.tpl-thumb-name {
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 7px 8px 8px;
  color: #082d52;
}
.tpl-grid-sm .tpl-thumb-stage { height: 92px; }
.tpl-grid-sm .tpl-thumb-name { font-size: 0.7rem; padding: 5px 6px 6px; }

@media (max-width: 640px) {
  .tpl-thumb-stage { height: 128px; }
}


.tool-card[href="/flyers/"] { border-top: 6px solid #ff8c3a; }

/* ===== Customer Account Nav Button & Pages ===== */
.nav-goal-account {
  background: linear-gradient(135deg, #ffffff 0%, #e5f6ff 100%);
  color: #064a8c;
  border-color: #0b74d1;
}
.nav-goal-account.is-logged-in {
  background: linear-gradient(135deg, #0077cc 0%, #0095ff 100%);
  color: #ffffff;
  border-color: #ffd83d;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
}

.auth-card {
  max-width: 520px;
  margin: 18px auto;
  background: #ffffff;
  border: 3px solid #74daff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #e5f6ff;
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 18px;
}
.auth-tab {
  border: 2px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  color: #0b5394;
}
.auth-tab.active {
  background: #ffffff;
  border-color: #4ec6ff;
  color: #082d52;
  box-shadow: 0 3px 10px rgba(10, 82, 148, 0.12);
}

.account-hero {
  background: linear-gradient(135deg, #ffffff 0%, #e4f6ff 100%);
  border: 3px solid #4ec6ff;
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.project-list, .order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card, .order-card {
  border: 2px solid #bae6ff;
  background: #f5fbff;
  border-radius: 16px;
  padding: 14px 16px;
}
.project-card-head, .order-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.project-card-title, .order-card-title {
  font-weight: 800;
  font-size: 1rem;
  color: #082d52;
}
.project-card-meta, .order-card-meta {
  font-size: 0.82rem;
  color: var(--ui-muted);
  margin-top: 4px;
}
.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.import-banner {
  background: linear-gradient(135deg, #fff9d6 0%, #e8f8ff 100%);
  border: 2px solid #f0b400;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sync-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #eef9ff;
  border: 2px solid #9bd8ff;
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.danger-box {
  background: #fff4f6;
  border: 2px solid #ffb3c4;
  border-radius: 18px;
  padding: 16px;
  margin-top: 18px;
}
.btn.danger {
  background: #e11d48;
  color: #ffffff;
  border-color: #be123c;
}
.btn.danger:hover {
  filter: brightness(1.06);
}
.notice-box {
  background: #eef9ff;
  border: 2px solid #74daff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.86rem;
}
.notice-box.err {
  background: #fff2f4;
  border-color: #ff8aa3;
  color: #9f1239;
}
.notice-box.ok {
  background: #dcfdf0;
  border-color: #34d399;
  color: #065f46;
}
.notice-box.warn {
  background: #fff8db;
  border-color: #f5c542;
  color: #7c3f00;
}

.photo-readd-prompt {
  width: 100%;
  height: 100%;
  min-height: 72px;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: #082d52;
  background: linear-gradient(135deg, #d9f3ff 0%, #ffe047 100%);
}

/* ===== Custom design inquiry ===== */
.nav-goal-custom {
  background: #b8edff;
  color: #08405c;
  border-color: #4ec6ff;
  font-weight: 800;
}
.nav-goal-custom.is-current,
.nav-goal-custom:hover {
  background: #7ad8ff;
  color: #04283c;
  border-color: #1aa4e6;
}

body.custom-page {
  background:
    radial-gradient(1200px 500px at 10% -10%, #c8f0ff 0%, transparent 60%),
    radial-gradient(900px 420px at 100% 0%, #e8f8ff 0%, transparent 55%),
    #f4fbff;
}
.custom-hero {
  background: linear-gradient(135deg, #d6f4ff 0%, #b8edff 45%, #e8f8ff 100%);
  border: 2px solid #6ad4ff;
  border-radius: 22px;
  padding: 28px 26px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(14, 110, 168, 0.12);
}
.custom-hero h1 {
  font-family: var(--font-serif);
  margin: 6px 0 8px;
  font-size: 2rem;
  color: #04283c;
}
.custom-hero p { margin: 0; color: #08405c; max-width: 48rem; }
.custom-form-panel {
  background: #f7fdff;
  border: 2px solid #8ee0ff;
}
.custom-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px) {
  .custom-form-row { grid-template-columns: 1fr; }
}
.hint-inline {
  font-weight: 500;
  color: var(--ui-muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.photo-download-notice {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff4c8;
  color: #4a2a00;
  border-bottom: 3px solid #e09f00;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 6px 16px rgba(80, 50, 0, 0.12);
}
.photo-download-notice strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.photo-download-notice.is-done {
  background: #dcfdf0;
  border-bottom-color: #09a673;
  color: #05362b;
}

