/* ─────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────── */
:root {
  --chrome-h: 44px;
  --teal: #00aaaa;
  --teal-dark: #007a7a;
  --teal-deep: #005f5f;
  --teal-pale: #d6f5f5;
  --teal-ghost: #ebf9f9;
  /* Secondary — lime yellow */
  --lime: #c2d900;
  --lime-dark: #8fa000;
  --lime-pale: #edf5a0;
  --lime-ghost: #f5fac8;
  /* Tertiary — soft lavender */
  --lav: #9b7fe8;
  --lav-dark: #6244be;
  --lav-pale: #e2d9f9;
  --lav-ghost: #f0ecfd;
  /* Warm coral-peach */
  --coral: #f07050;
  --coral-dark: #c04830;
  --coral-pale: #fde0d6;
  --coral-ghost: #fef0eb;
  /* Sky blue */
  --sky: #3a9fd8;
  --sky-dark: #1e6fa0;
  --sky-pale: #d0eaf8;
  --sky-ghost: #e8f4fc;
  --cream: #faf8f4;
  --cream-dark: #f0ebe1;
  --fog: #ddd8cf;
  --stone: #8a8480;
  --ink: #1a2628;
  --ink-soft: #2d3e40;
  --white: #ffffff;
  --ember: #d4512a;
  --leaf: #2d7a5c;
  --violet: #6b4fa6;
  /* Calendar */
  --wknd-bg: #e0f7f7;
  --wknd-num: #007a7a;
  /* Typography */
  --ff-d: "Cormorant Garamond", Georgia, serif;
  --ff-ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --ff-m: "DM Mono", monospace;
  /* Shape */
  --oval: 100px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow: 0 4px 24px rgba(0, 90, 90, 0.13), 0 1px 4px rgba(0, 90, 90, 0.07);
  --shadow-sm: 0 2px 10px rgba(0, 90, 90, 0.08);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}
body {
  font-family: var(--ff-ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

/* ── BUTTONS — true ovals */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 28px;
  border-radius: var(--oval);
  font-family: var(--ff-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 170, 170, 0.35);
}
.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 20px rgba(0, 170, 170, 0.45);
  transform: translateY(-1px);
}
.btn-white {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.btn-white:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}
.btn-ink {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 38, 40, 0.25);
}
.btn-ink:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--stone);
  border: none;
  font-weight: 500;
}
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(194, 217, 0, 0.35);
}
.btn-lime:hover {
  background: var(--lime-dark);
  box-shadow: 0 6px 20px rgba(194, 217, 0, 0.45);
  transform: translateY(-1px);
}
.btn-ghost:hover {
  color: var(--ink);
}
.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}
.btn-xs {
  padding: 5px 12px;
  font-size: 11px;
}

/* ── FORMS */
input,
select,
textarea {
  font-family: var(--ff-ui);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--fog);
  border-radius: var(--r);
  padding: 9px 13px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 170, 170, 0.12);
}
label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-group {
  margin-bottom: 16px;
}
.field-note {
  font-size: 11px;
  color: var(--stone);
  margin-top: 4px;
  line-height: 1.4;
}

/* ── NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fog);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: var(--chrome-h, 44px);
}
.nav-logo {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
}
.nav-crescent {
  width: 26px;
  height: 26px;
  position: relative;
  flex-shrink: 0;
}
.nav-crescent svg {
  width: 100%;
  height: 100%;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── SCREEN ROUTING */
.screen {
  display: none;
  position: relative;
  z-index: 1;
}
.screen.active {
  display: block;
}
#screen-builder {
  display: none;
  min-height: 0;
}
#screen-builder.active {
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════════
   LANDING
════════════════════════════════════════════ */

/* Hero — gradient matches Pi server energy */
.hero {
  min-height: calc(100vh - 58px);
  background: linear-gradient(
    135deg,
    #007a7a 0%,
    #00aaaa 40%,
    #33bbbb 70%,
    #2d6a8a 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 65%
  );
}
.orb1 {
  width: 500px;
  height: 500px;
  top: -180px;
  right: -120px;
}
.orb2 {
  width: 350px;
  height: 350px;
  bottom: -100px;
  left: -80px;
}

.hero-emoji {
  font-size: 52px;
  margin-bottom: 18px;
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero h1 {
  font-family: var(--ff-d);
  font-weight: 300;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
}
.hero h1 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}
.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  line-height: 1.6;
  margin: 0 auto 14px;
}
.hero-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
  font-family: var(--ff-m);
  letter-spacing: 0.08em;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Hero calendar card */
.hero-cal-card {
  width: 100%;
  max-width: 800px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.hero-titlebar {
  background: var(--ink);
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.htb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.htb-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 8px;
  font-family: var(--ff-m);
}

/* ── FEATURE CARD ACCENT STRIPS */
.feat-card {
  border-top: 3px solid var(--fog);
}
.fc-teal {
  border-top-color: var(--teal);
}
.fc-lime {
  border-top-color: var(--lime);
}
.fc-lav {
  border-top-color: var(--lav);
}
.fc-coral {
  border-top-color: var(--coral);
}
.fc-sky {
  border-top-color: var(--sky);
}
.fc-saf {
  border-top-color: #b7600b;
}

.feat-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 24px;
}
.fw-teal {
  background: var(--teal-ghost);
}
.fw-lime {
  background: var(--lime-ghost);
}
.fw-lav {
  background: var(--lav-ghost);
}
.fw-coral {
  background: var(--coral-ghost);
}
.fw-sky {
  background: var(--sky-ghost);
}
.fw-saf {
  background: #fdf5ec;
}

.sc-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform-origin: bottom center;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  position: relative;
}
.sc-card {
  transform: none;
  max-width: 640px;
  width: 100%;
}
.sc-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.sc-label {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--oval);
  padding: 3px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ── FEATURES SECTION */
.section {
  padding: 88px 40px;
  background: var(--ink);
}
.section-inner {
  max-width: 1060px;
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--ff-m);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-h {
  font-family: var(--ff-d);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--white);
}
.section-p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  max-width: 540px;
}
/* ── STEP CARDS (used in landing section) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.feat-card:hover {
  border-color: var(--teal-pale);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.feat-icon {
  font-size: 30px;
  margin-bottom: 14px;
}
.feat-card h3 {
  font-family: var(--ff-d);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}
.feat-card p {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.65;
}

/* ── PRICING */
.price-section {
  padding: 88px 40px;
  text-align: center;
}
.price-section .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.price-card {
  margin-top: 44px;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-xl);
  padding: 48px 44px;
  min-width: 360px;
  max-width: 430px;
  box-shadow: var(--shadow);
}
.price-badge {
  display: inline-block;
  background: var(--teal-ghost);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--oval);
  margin-bottom: 22px;
}
.price-big {
  font-family: var(--ff-d);
  font-size: 76px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.price-big sup {
  font-size: 30px;
  margin-top: 14px;
  margin-right: 2px;
}
.price-period {
  color: var(--stone);
  font-size: 13px;
  margin: 8px 0 26px;
}
.price-list {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
}
.price-list li {
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-list li span.tick {
  color: var(--teal);
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 1px;
}

/* ── FOOTER */
footer {
  background: #002f2f;
  padding: 0 32px;
  height: var(--chrome-h, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}
.footer-logo {
  font-family: var(--ff-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
footer a {
  color: rgba(255, 255, 255, 0.55) !important;
}
footer a:hover {
  color: var(--white) !important;
}

/* ════════════════════════════════════════════
   AUTH
════════════════════════════════════════════ */
.auth-outer {
  min-height: calc(100vh - 58px);
  background: linear-gradient(135deg, #007a7a 0%, #00aaaa 50%, #2d6a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-emoji {
  font-size: 36px;
  margin-bottom: 12px;
  text-align: center;
}
.auth-h {
  font-family: var(--ff-d);
  font-size: 34px;
  font-weight: 300;
  margin-bottom: 4px;
  text-align: center;
}
.auth-sub {
  font-size: 14px;
  color: var(--stone);
  margin-bottom: 28px;
  text-align: center;
}
.auth-switch {
  font-size: 13px;
  color: var(--stone);
  text-align: center;
  margin-top: 18px;
}
.auth-switch a {
  color: var(--teal-dark);
  font-weight: 600;
  cursor: pointer;
}

/* ════════════════════════════════════════════
   DASHBOARD
════════════════════════════════════════════ */
.dash-outer {
  padding: 48px 40px;
  max-width: 1060px;
  margin: 0 auto;
}
.dash-top {
  background: linear-gradient(135deg, #007a7a 0%, #00aaaa 100%);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}
.dash-greeting {
  font-family: var(--ff-d);
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
}
.dash-greeting small {
  display: block;
  font-family: var(--ff-ui);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  font-weight: 400;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.cal-card {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
  box-shadow: var(--shadow-sm);
}
.cal-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.cal-thumb {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--fog);
}
.cal-thumb-render {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  pointer-events: none;
}
.cal-meta {
  padding: 14px 16px;
}
.cal-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.cal-info {
  font-size: 12px;
  color: var(--stone);
}
.cal-badge {
  display: inline-block;
  background: var(--teal-ghost);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--oval);
  margin-top: 6px;
}
.cal-new {
  border: 2px dashed var(--fog);
  background: transparent;
  box-shadow: none;
  min-height: 198px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.cal-new:hover {
  border-color: var(--teal);
  background: var(--teal-ghost);
  box-shadow: none;
  transform: none;
}
.cal-new-icon {
  font-size: 32px;
}
.cal-new-label {
  font-size: 13px;
  color: var(--stone);
  font-weight: 500;
}

/* ════════════════════════════════════════════
   BUILDER
════════════════════════════════════════════ */
.builder {
  display: flex;
  flex-direction: row-reverse;
  height: calc(100vh - var(--chrome-h, 44px));
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.bsidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--white);
  border-left: 1px solid var(--fog);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}
.bsidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--fog);
  flex-shrink: 0;
}
.bstab {
  flex: 1;
  padding: 11px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--stone);
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
  user-select: none;
}
.bstab.on {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}
.bstab:hover:not(.on) {
  color: var(--ink);
}
.bsidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}
.bpanel {
  display: none;
}
.bpanel.on {
  display: block;
}

/* Setting rows */
.srow {
  margin-bottom: 18px;
}
.slabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 7px;
}
.toggle2 {
  display: flex;
  background: var(--cream);
  border-radius: var(--oval);
  border: 1.5px solid var(--fog);
  overflow: hidden;
}
.t2opt {
  flex: 1;
  padding: 8px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--stone);
  border-radius: var(--oval);
  user-select: none;
}
.t2opt.on {
  background: var(--teal);
  color: var(--white);
}

/* Swatches */
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.sw {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition:
    border-color 0.15s,
    transform 0.12s;
  overflow: hidden;
}
.sw:hover {
  transform: scale(1.12);
}
.sw.on {
  border-color: var(--teal-dark);
}
.sw-top {
  height: 60%;
}
.sw-bot {
  height: 40%;
}

/* Font cards */
.fpcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fpcard {
  border: 1.5px solid var(--fog);
  border-radius: var(--r);
  padding: 8px 10px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.fpcard:hover {
  border-color: var(--teal-pale);
  background: var(--teal-ghost);
}
.fpcard.on {
  border-color: var(--teal);
  background: var(--teal-ghost);
}
.fp-h {
  font-size: 13px;
  line-height: 1.2;
}
.fp-b {
  font-size: 10px;
  color: var(--stone);
  margin-top: 3px;
}

/* Holiday sets */
.hset {
  border: 1px solid var(--fog);
  border-radius: var(--r);
  margin-bottom: 10px;
}
.hset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  background: var(--cream);
  cursor: pointer;
  border-radius: var(--r) var(--r) 0 0;
  user-select: none;
}
.hset-label {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hset-body {
  padding: 13px;
  display: none;
}
.hset-body.open {
  display: block;
}
.hchev {
  font-size: 11px;
  color: var(--stone);
}
.color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cprev {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--fog);
  flex-shrink: 0;
}
input[type="color"] {
  width: 38px;
  height: 30px;
  padding: 2px 3px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.chex {
  font-family: var(--ff-m);
  font-size: 11px;
  color: var(--stone);
}
.custom-date-row {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
}
.custom-date-row input {
  flex: 1;
  font-size: 12px;
}
.del-btn {
  background: none;
  border: none;
  color: var(--stone);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 5px;
}
.del-btn:hover {
  color: var(--ember);
}
.add-link {
  background: none;
  border: none;
  font-family: var(--ff-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  cursor: pointer;
  padding: 3px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.add-link:hover {
  color: var(--teal);
}

/* Builder main */
.bmain {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  position: relative;
}
.btopbar {
  height: 52px;
  border-bottom: 1px solid var(--fog);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  background: var(--white);
  gap: 12px;
}
.bcal-name {
  font-family: var(--ff-d);
  font-size: 20px;
  font-weight: 300;
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: var(--r);
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.bcal-name:focus {
  background: var(--cream);
  outline: none;
}
.btop-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Calendar preview header — tabs stack above calendar, never beside */
.bcal-preview-header {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--fog);
  background: #fff;
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
}
.bcal-preview-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
  box-sizing: border-box;
}

/* Calendar preview: JS sets explicit w/h via fitCalPreview() */
#cal-preview {
  flex-shrink: 0;
  overflow: hidden;
}
#cal-preview .cal-live-card {
  width: 100% !important;
  height: 100% !important;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Photo preview panel */
#preview-body-photos {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--cream);
  position: relative;
  box-sizing: border-box;
}
#photo-page-preview {
  overflow: hidden;
  border-radius: 6px;
  background: #e8ecec;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  position: relative;
  flex-shrink: 0;
}

/* Sidebar toggle — visible only on narrow screens */
#sidebar-toggle {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  width: 24px;
  height: 56px;
  cursor: pointer;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  transition: left 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav language switcher */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--stone);
  padding: 3px 4px;
  border-radius: 4px;
  font-family: var(--ff-b, "Plus Jakarta Sans", sans-serif);
  transition: color 150ms;
}
.nav-lang-btn:hover {
  color: var(--teal);
}
.nav-lang-btn.on {
  color: var(--teal);
}

/* Month tabs */
.mtabs {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  flex-shrink: 0;
  background: var(--white);
  padding: 0 4px;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-sizing: border-box;
}
.mtabs::-webkit-scrollbar {
  display: none;
}
.mtab {
  flex-shrink: 0;
  padding: 8px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--stone);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
}
.mtab:hover {
  color: var(--ink);
}
.mtab.on {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}
.mtab.has-img::after {
  content: "📷";
  font-size: 8px;
  position: absolute;
  top: 6px;
  right: 3px;
}

/* Content */
.bcontent {
  flex: 1;
  overflow-y: auto;
}
.bpreview {
  display: grid;
  grid-template-columns: 1fr 305px;
  gap: 18px;
  padding: 18px;
  align-items: start;
}

/* ─────────────────────────────────────────────
   CALENDAR GRID — core rendering component
───────────────────────────────────────────── */
.cal-live-card {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

/* Header: mini-prev + title + mini-next */
.cal-header {
  display: grid;
  grid-template-columns: calc(100% / 7) 1fr calc(100% / 7);
  height: var(--cal-hdr-h, auto);
  padding: 0;
  border-bottom: 1px solid var(--fog);
  align-items: stretch;
}
.mini-cal {
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mc-title {
  font-size: var(--fs-mc-title, 9px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1px;
  border-radius: 3px;
  padding: 1px 2px;
  line-height: 1.2;
}
.mc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.mc-wd {
  text-align: center;
  font-size: var(--fs-mc-hdr, 7px);
  font-weight: 700;
  color: var(--stone);
  padding: 0;
  line-height: 1.2;
}
.mc-cell {
  text-align: center;
  font-size: var(--fs-mc-date, 7px);
  padding: 0;
  color: var(--ink);
  line-height: 1.2;
  border-radius: 2px;
}
.mc-cell.w {
  color: #0077aa;
  font-weight: 700;
}
.mc-cell.w.bg {
  background: #e8f5f7;
}
.mc-cell.ov {
  color: #cccccc;
}
.mc-cell.ov.w {
  color: #aaccdd;
  background: transparent;
}

/* Month+year heading — single line, big, accent-colored */
.cal-title-mid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
  padding-left: 6px;
  padding-right: 6px;
  box-sizing: border-box;
  overflow: hidden;
}
.cal-heading-line {
  font-family: var(--ff-d);
  font-weight: 300;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
  font-size: var(--fs-title, clamp(32px, 5vw, 72px));
}

/* Weekday bar — CSS grid, same 7 columns */
.cal-wbar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  height: var(--cal-wbar-h, auto);
  align-items: center;
}
.cal-wd {
  text-align: center;
  padding: 0 1px;
  font-size: var(--fs-wbar, 13px);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
}
/* No .wd-wknd exception — header is uniform accent color */

/* Day rows — CSS grid, 7 equal columns */
.cal-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
}
.cal-row-6 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
}

.cal-cell {
  height: var(--cal-row-h, 72px);
  min-height: 0;
  padding: 2px 2px 2px;
  border-right: 1px solid var(--fog);
  border-bottom: 1px solid var(--fog);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.cal-cell:last-child {
  border-right: none;
}
.cal-row:last-child .cal-cell {
  border-bottom: none;
}
/* Footer zone in row-6: spans columns 4 through 7 */
.cal-footer-zone {
  grid-column: 4 / 8;
  border-bottom: none;
  border-right: none;
  border-top: 0;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

/* Day number — 2× bigger */
.cal-n {
  font-size: var(--fs-date, 34px);
  font-weight: 600;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
  text-align: center;
  padding-top: 3px;
}
.cal-hday {
  font-size: var(--fs-holiday, 8.5px);
  line-height: 1.2;
  display: block;
  text-align: center;
}

/* Cell states — no row alternation, only column-based shading */
.cw {
  /* bg set by inline style per theme */
}
.cw .cal-n {
  /* color set inline */
}
/* Overflow days: muted color only — same size as regular dates */
.co {
  /* bg set by inline style per theme */
}
.co .cal-n {
  color: #c8c8c8 !important;
  font-weight: 400;
  /* same font-size as regular dates — only color differs, matching PDF output */
}
/* Holiday overrides — color set by inline style from renderCal */
.ch1 .cal-n,
.ch2 .cal-n,
.ch3 .cal-n {
  /* color driven by h1col/h2col/h3col inline style */
}

/* Footer zone — table-cell, handled inline */
.footer-zone {
  border-bottom: none;
}
.fz-notes {
  flex: 1;
  font-size: 10px;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fz-banner {
  border-radius: var(--oval);
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.fz-qr {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Right panel */
.month-right {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.mpanel {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
}
.mpanel-head {
  padding: 11px 15px;
  border-bottom: 1px solid var(--fog);
  font-size: 10px;
  font-weight: 700;
  color: var(--stone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mpanel-body {
  padding: 14px;
}

/* Photo upload */
.photo-drop {
  border: 2px dashed var(--fog);
  border-radius: var(--r);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.photo-drop:hover {
  border-color: var(--teal);
  background: var(--teal-ghost);
}
.photo-drop-icon {
  font-size: 28px;
}
.photo-drop-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--stone);
}
.photo-drop-s {
  font-size: 10px;
  color: var(--fog);
}
.photo-thumb {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
}
.photo-thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.photo-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 38, 40, 0.75);
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.photo-fname {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
}

/* Sponsor rows */
.spon-row {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
}
.spon-row input {
  flex: 1;
  font-size: 12px;
  padding: 7px 10px;
}

/* Builder footer */
.bfooter {
  border-top: 1px solid var(--fog);
  padding: 11px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  flex-shrink: 0;
}
.prog-row {
  display: flex;
  gap: 5px;
  align-items: center;
}
.prog-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fog);
  transition: background 0.2s;
}
.prog-dot.done {
  background: var(--teal);
}
.prog-dot.cur {
  background: var(--teal-dark);
  transform: scale(1.35);
}

/* ════════════════════════════════════════════
   GENERATE
════════════════════════════════════════════ */
.gen-outer {
  max-width: 660px;
  margin: 0 auto;
  padding: 56px 40px;
}
.gen-emoji {
  font-size: 44px;
  margin-bottom: 12px;
}
.gen-h {
  font-family: var(--ff-d);
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 6px;
}
.gen-sub {
  color: var(--stone);
  font-size: 15px;
  margin-bottom: 40px;
}
.gen-summary {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 26px;
}
.gen-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 14px;
}
.gen-row:last-child {
  border-bottom: none;
}
.gen-k {
  color: var(--stone);
}
.gen-v {
  font-weight: 600;
}
.gen-months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-bottom: 28px;
}
.gen-m {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r);
  padding: 9px 6px;
  text-align: center;
  font-size: 11px;
}
.gen-m.ok {
  border-color: var(--teal-pale);
  color: var(--teal-dark);
  background: var(--teal-ghost);
}
.gen-status {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  padding: 48px 24px;
  text-align: center;
  margin-bottom: 24px;
  display: none;
}
.gen-status.show {
  display: block;
}
.spinner {
  width: 42px;
  height: 42px;
  border: 2px solid var(--fog);
  border-top-color: var(--teal);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.gen-status h3 {
  font-family: var(--ff-d);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 6px;
}
.gen-status p {
  color: var(--stone);
  font-size: 14px;
}
.gen-done-emoji {
  font-size: 44px;
  margin-bottom: 14px;
}

/* ════════════════════════════════════════════
   PHOTO STUDIO SCREEN
════════════════════════════════════════════ */
#screen-photos {
  min-height: 0;
}
#screen-photos.active {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.photo-topbar {
  height: 52px;
  border-bottom: 1px solid var(--fog);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  flex-shrink: 0;
  background: var(--white);
}
.photo-topbar-title {
  font-family: var(--ff-d);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink);
  flex: 1;
}

/* Month strip */
.photo-month-strip {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--fog);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  background: var(--cream);
}
.photo-month-strip::-webkit-scrollbar {
  display: none;
}
.pm-tab {
  flex-shrink: 0;
  min-width: 80px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  position: relative;
  border-right: 1px solid var(--fog);
}
.pm-tab:hover {
  background: var(--white);
}
.pm-tab.on {
  background: var(--white);
  border-bottom-color: var(--teal);
}
.pm-tab-thumb {
  width: 64px;
  height: 44px;
  border-radius: 4px;
  background: var(--fog);
  margin: 0 auto 5px;
  overflow: hidden;
  position: relative;
}
.pm-tab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-tab-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pm-tab.on .pm-tab-label {
  color: var(--teal-dark);
}
.pm-tab-status {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pm-tab-status.ok {
  background: var(--sage, #3d7a5c);
}
.pm-tab-status.empty {
  background: var(--fog);
}

/* Photo studio layout */
.photo-studio {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  overflow: hidden;
}

/* Left: top-page preview */
.photo-preview-pane {
  overflow-y: auto;
  padding: 24px;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.photo-page-preview {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 11 / 8.5;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: var(--fog);
}
.ppp-photo {
  position: absolute;
  inset: 0;
  background: var(--fog);
  background-size: cover;
  background-position: center;
  transition: background-position 0.2s;
}
.ppp-sponsor {
  position: absolute;
  top: 12%;
  right: 0;
  bottom: 20%;
  width: 26%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
}
.ppp-sponsor-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}
.ppp-sponsor-url {
  font-size: 10px;
  color: var(--stone);
  text-align: center;
}
.ppp-sponsor-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--fog);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.ppp-decor {
  position: absolute;
  pointer-events: none;
}
.ppp-decor.top-right {
  top: 0;
  right: 0;
}
.ppp-decor.top-left {
  top: 0;
  left: 0;
}
.ppp-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--stone);
}
.ppp-empty-icon {
  font-size: 40px;
  opacity: 0.4;
}
.ppp-empty-text {
  font-size: 13px;
  opacity: 0.6;
}

/* Crop slider */
.crop-slider-wrap {
  width: 100%;
  max-width: 700px;
}
.crop-slider-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
  cursor: pointer;
}

/* Right: config pane */
.photo-config-pane {
  border-left: 1px solid var(--fog);
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.photo-config-tabs {
  display: flex;
  border-bottom: 1px solid var(--fog);
  flex-shrink: 0;
}
.pctab {
  flex: 1;
  padding: 11px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  user-select: none;
}
.pctab.on {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}
.pctab:hover:not(.on) {
  color: var(--ink);
}
.photo-config-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}
.pcpanel {
  display: none;
}
.pcpanel.on {
  display: block;
}

/* Decor shape picker */
.decor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.decor-opt {
  border: 1.5px solid var(--fog);
  border-radius: var(--r);
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 10px;
  color: var(--stone);
  font-weight: 600;
}
.decor-opt:hover {
  border-color: var(--teal-light);
  background: var(--teal-ghost);
}
.decor-opt.on {
  border-color: var(--teal);
  background: var(--teal-ghost);
  color: var(--teal-dark);
}
.decor-opt-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.sponsor-item {
  background: var(--cream);
  border: 1px solid var(--fog);
  border-radius: var(--r);
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}
.sponsor-item .del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* ── RESPONSIVE */
@media (max-width: 960px) {
  .feat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .bpreview {
    grid-template-columns: 1fr;
  }
  .nav {
    padding: 0 20px;
  }
  .hero {
    padding: 60px 20px 40px;
  }
  .section {
    padding: 60px 20px;
  }
  #sidebar-toggle {
    display: flex;
    left: 320px;
  }
  .bsidebar.collapsed {
    transform: translateX(-320px);
    margin-right: -320px;
  }
  #sidebar-toggle.collapsed {
    left: 0;
  }
  .builder {
    overflow: hidden;
    height: calc(100vh - var(--chrome-h, 44px));
  }
}
@media (max-width: 600px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 48px;
  }
  .cal-header {
    grid-template-columns: calc(100% / 7) 1fr calc(100% / 7);
  }
  .footer-logo,
  footer div:last-child {
    display: none;
  }
}

/* ── DELETE + PDF MODALS */
.modal-overlay,
.pdf-modal-overlay {
  display: none; /* hidden by default — no opacity trick */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show,
.pdf-modal-overlay.show {
  display: flex;
}

.modal-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  animation: modalPop 0.18s ease-out;
}
.pdf-modal-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  animation: modalPop 0.18s ease-out;
}
@keyframes modalPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 12px;
}
.modal-title {
  font-family: var(--ff-d);
  font-size: 26px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 14px;
  color: var(--stone);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}
.modal-actions {
  display: flex;
  gap: 10px;
}

.pdf-progress-bar-bg {
  background: var(--fog);
  border-radius: var(--oval);
  height: 8px;
  margin: 20px 0 8px;
  overflow: hidden;
}
.pdf-progress-bar {
  background: var(--teal);
  height: 100%;
  border-radius: var(--oval);
  transition: width 0.3s ease;
  width: 0%;
}
.pdf-step-label {
  font-size: 13px;
  color: var(--stone);
  min-height: 18px;
}

/* ── DASHBOARD SELECTION BAR */
.dash-selected-bar {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--teal-ghost);
  border: 1px solid var(--teal-pale);
  border-radius: var(--r);
  padding: 10px 16px;
  margin-bottom: 16px;
}
.dash-selected-bar.show {
  display: flex;
}
.cal-card.selected {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ════════════════════════════════════════════
   PHOTO PAGE BUILDER
════════════════════════════════════════════ */
.photo-builder {
  display: flex;
  height: calc(100vh - 58px);
  overflow: hidden;
}
.photo-left {
  width: 340px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--fog);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.photo-left-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--fog);
  font-size: 11px;
  font-weight: 700;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.month-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.mu-slot {
  border: 1.5px dashed var(--fog);
  border-radius: var(--r);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  overflow: hidden;
  position: relative;
  aspect-ratio: 11/8.5; /* landscape photo ratio */
}
.mu-slot:hover {
  border-color: var(--teal);
  background: var(--teal-ghost);
}
.mu-slot.has-photo {
  border-style: solid;
  border-color: var(--teal-pale);
}
.mu-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mu-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 38, 40, 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 3px 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mu-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  padding: 8px;
}
.mu-empty-icon {
  font-size: 18px;
  opacity: 0.4;
}
.mu-empty-text {
  font-size: 9px;
  color: var(--stone);
  text-align: center;
}
.mu-del {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.mu-slot:hover .mu-del {
  opacity: 1;
}

/* ── PHOTO DRAG-REORDER */
.mu-slot {
  cursor: grab;
}
.mu-slot.dragging {
  opacity: 0.4;
  cursor: grabbing;
}
.mu-slot.drag-over {
  border-color: var(--teal) !important;
  background: var(--teal-ghost) !important;
  transform: scale(1.04);
}

/* Right: template + sponsor config */
.photo-right {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  background: var(--cream);
}
.photo-right-inner {
  max-width: 700px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.tmpl-card {
  border: 2px solid var(--fog);
  border-radius: var(--r-lg);
  padding: 8px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  background: var(--white);
}
.tmpl-card:hover {
  border-color: var(--teal-light);
  background: var(--teal-ghost);
}
.tmpl-card.on {
  border-color: var(--teal);
  background: var(--teal-ghost);
}
.tmpl-preview {
  width: 100%;
  aspect-ratio: 11/8.5;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 6px;
  position: relative;
  background: var(--fog);
}
.tmpl-name {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tmpl-card.on .tmpl-name {
  color: var(--teal-dark);
}

/* Live photo page preview */
.photo-page-preview {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 11/8.5;
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}
.ppp-photo {
  position: absolute;
  background: var(--fog);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ppp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ppp-photo-icon {
  font-size: 32px;
  opacity: 0.3;
}
.ppp-sponsor {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--fog);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
}
.ppp-decor {
  position: absolute;
  overflow: hidden;
}
.ppp-label {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  color: var(--stone);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Decor picker */
.decor-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.decor-card {
  border: 2px solid var(--fog);
  border-radius: var(--r);
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.15s;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
}
.decor-card:hover {
  border-color: var(--teal-light);
}
.decor-card.on {
  border-color: var(--teal);
}
.decor-icon {
  font-size: 20px;
}
.decor-label {
  font-size: 10px;
  color: var(--stone);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sponsor per-month panel */
.sponsor-month-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.smt-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--oval);
  border: 1.5px solid var(--fog);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.smt-btn.on {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.smt-btn.has-sponsor {
  border-color: var(--teal-pale);
  color: var(--teal-dark);
}

/* ── LANDING PAGE ─────────────────────────────────────────────────────────── */
.landing-hero {
  background: linear-gradient(
    160deg,
    #eff9f9 0%,
    #e4f6f6 25%,
    #f5fafa 60%,
    #fafaf8 100%
  );
  height: calc(100vh - var(--chrome-h, 44px) * 2);
  min-height: 520px;
  padding: 0 clamp(20px, 3vw, 60px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.landing-hero-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  flex-wrap: wrap;
}
.landing-copy {
  flex: 1;
  min-width: 300px;
  max-width: 560px;
}
.landing-mockup {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #d6f5f5;
  color: #007a7a;
  font-size: clamp(11px, 1.4vh, 13px);
  font-weight: 600;
  padding: clamp(5px, 0.8vh, 7px) 15px;
  border-radius: 999px;
  margin-bottom: clamp(14px, 2.2vh, 24px);
  letter-spacing: 0.03em;
}
.landing-h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 6vh, 64px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #1a2628;
  margin-bottom: clamp(12px, 2vh, 22px);
}
.landing-h1 em {
  font-style: italic;
  color: #00aaaa;
}
.landing-sub {
  font-size: clamp(14px, 2.2vh, 18px);
  color: #5a6a6c;
  line-height: 1.65;
  margin-bottom: clamp(6px, 1vh, 12px);
  max-width: 460px;
}
.landing-price {
  font-size: clamp(12px, 1.5vh, 14px);
  color: #007a7a;
  font-family: "DM Mono", monospace;
  letter-spacing: 0.06em;
  margin-bottom: clamp(18px, 3vh, 36px);
}
.landing-checks {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: clamp(12px, 2vh, 24px);
  align-items: flex-start;
}
.landing-check {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
}
.landing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00aaaa;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.landing-check > span:last-child {
  font-size: clamp(11px, 1.4vh, 13px);
  font-weight: 600;
  color: #1a2628;
  line-height: 1.35;
}

@media (max-width: 640px) {
}

.features-section {
  padding: 80px 40px;
  background: #fff;
}
.features-inner {
  max-width: 1060px;
  margin: 0 auto;
}

/* Steps strip (landing how-it-works) */
/* Vertical dividers between items */

/* 480–899px: 2×2 grid */
@media (max-width: 899px) {
  /* Top-row items get a bottom border; left-column items get a right border */
  .step-item:nth-child(-n + 2) {
    border-bottom: 1px solid #e4e2dc;
  }
  /* Reset vertical divider — use border-right for left column instead */
  .step-item:nth-child(odd) {
    border-right: 1px solid #e4e2dc;
  }
}

/* <480px: single column */
@media (max-width: 479px) {
  .step-item:nth-child(-n + 2) {
    border-bottom: none;
  }
  /* Horizontal rule between stacked items */
  .step-item + .step-item {
    border-top: 1px solid #e4e2dc;
  }
}

@media (max-width: 760px) {
  .landing-hero {
    padding: 0 20px;
    min-height: 520px;
  }
  .landing-hero-inner {
    gap: 40px;
  }
  .landing-mockup {
    display: none;
  }
  .features-section {
    padding: 60px 20px;
  }
  .section {
    padding: 60px 20px;
  }
}

/* ── BUILDER ACCORDION STEPS ─────────────────────────────────────────────── */
.wstep {
  border-bottom: 1px solid var(--fog);
}
.wstep-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 120ms;
}
.wstep-head:hover {
  background: var(--cream);
}
.wstep-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fog);
  color: var(--stone);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 200ms,
    color 200ms;
}
.wstep.done .wstep-num,
.wstep.active .wstep-num {
  background: var(--teal);
  color: #fff;
}
.wstep-label {
  flex: 1;
}
.wstep-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: color 200ms;
}
.wstep.done .wstep-title {
  color: var(--teal);
}
.wstep.active .wstep-title {
  color: var(--teal-dark, #007a7a);
}
.wstep.done.active .wstep-title {
  color: var(--teal-dark, #007a7a);
}
.wstep-sub {
  font-size: 11px;
  color: var(--stone);
  margin-top: 1px;
}
.wstep-chev {
  font-size: 11px;
  color: var(--stone);
  flex-shrink: 0;
  transition: transform 200ms;
}
.wstep-body {
  display: none;
  padding: 0 16px 16px;
}
.wstep-body.open {
  display: block;
}

/* ── BUILDER PHOTO GRID (step 3 sidebar) ─────────────────────────────────── */
.mu-grid-sidebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .mu-grid-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mu-slot-sm {
  position: relative;
  aspect-ratio: 1.29;
  border-radius: 6px;
  overflow: hidden;
  background: var(--fog);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 150ms;
}
.mu-slot-sm:hover {
  border-color: var(--teal);
}
.mu-slot-sm.has-photo {
  border-color: var(--teal-pale, #d6f5f5);
}
.mu-slot-sm.active-month {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 2px var(--teal-ghost, #e8f8f8);
}
.mu-slot-sm.drag-over {
  border-color: var(--teal);
  opacity: 0.7;
}
.mu-sm-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.3;
}
.mu-sm-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 2px 0;
  letter-spacing: 0.04em;
}
.mu-slot-sm .mu-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 10px;
  line-height: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── BSIDEBAR SCROLL OVERRIDES ───────────────────────────────────────────── */
.bsidebar .bsidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--fog) transparent;
}
.bsidebar .bsidebar-scroll::-webkit-scrollbar {
  width: 5px;
}
.bsidebar .bsidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--fog);
  border-radius: 4px;
}

.hc-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.hcsw {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition:
    border-color 0.15s,
    transform 0.12s;
  box-sizing: border-box;
}
.hcsw:hover {
  transform: scale(1.12);
}
.hcsw.hc-on {
  border-color: var(--ink);
  transform: scale(1.12);
}
.sw-sec {
  width: 44px;
  height: 44px;
}
