/*
  Front Porch Web — Layout & Component Styles
  Mobile-first. All colors via CSS variables from theme.css.
  theme.css must load before this file.
  Defines: nav, hero, demos, how-it-works, pricing, footer, portal, scroll-reveal.
*/


/* ============================================================================
   RESET & BASE
   ============================================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

a {
  text-decoration: none;
  transition: color .2s ease;
}


/* ============================================================================
   LAYOUT
   ============================================================================ */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section shared spacing & rhythm */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  margin: .5rem 0 1rem;
  color: var(--navy);
}

.section-sub {
  color: var(--sage);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 500;
}

@media (min-width: 900px) {
  .section { padding: 7rem 0; }
  .section-title { font-size: 2.5rem; }
}


/* ============================================================================
   SCROLL REVEAL
   Elements with .reveal fade up on scroll; JS adds .visible via
   IntersectionObserver (see main.js).
   ============================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside grids */
.demos-grid   .reveal:nth-child(2),
.steps-grid   .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2) { transition-delay: .12s; }

.demos-grid   .reveal:nth-child(3),
.steps-grid   .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3) { transition-delay: .24s; }

.demos-grid   .reveal:nth-child(4) { transition-delay: .36s; }


/* ============================================================================
   NAVIGATION
   ============================================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, border-bottom-color .25s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: color-mix(in srgb, var(--sage) 35%, var(--line));
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}

/* Brand / logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--navy);
}

.nav-brand:hover        { color: var(--sage); }
.nav-brand:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; color: var(--sage); }

.nav-logo {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

.nav-wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 4rem;
  color: inherit;
  line-height: 1;
  letter-spacing: -.02em;
}

/* Scale nav brand down on phones */
@media (max-width: 639px) {
  .nav-logo    { width: 72px; height: 72px; }
  .nav-wordmark { font-size: 2rem; }
}

/* Nav links — hidden on mobile, shown as dropdown when .open */
.nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 1rem var(--gutter) 1.5rem;
  gap: .25rem;
}

.nav-links.open { display: flex; }

.nav-links li { width: 100%; }

.nav-links a {
  display: block;
  padding: .6rem 0;
  color: var(--navy);
  font-family: var(--body);
  font-weight: 600;
  font-size: .95rem;
}

.nav-links a:hover        { color: var(--sage); }
.nav-links a:focus-visible { color: var(--sage); outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 2px; }

/* CTA pill in nav */
.nav-cta {
  display: inline-block !important;
  padding: .55rem 1.2rem !important;
  margin-top: .5rem;
  font-size: .9rem !important;
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}
.nav-toggle:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .28s ease, opacity .28s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop nav — inline row */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    border: none;
    background: none;
  }

  .nav-links li { width: auto; }

  .nav-links a {
    padding: 0;
    font-size: .95rem;
  }

  .nav-cta {
    margin-top: 0;
  }
}


/* ============================================================================
   HERO
   ============================================================================ */

.hero {
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

/* Text column — single column on mobile, becomes a 2-col grid on desktop */
.hero-content {
  width: 100%;
  max-width: 640px;
}

.hero-headline {
  font-size: clamp(1.9rem, 6vw, 2.75rem);
  line-height: 1.08;
  color: var(--navy);
  margin: .75rem 0 1.25rem;
  letter-spacing: -.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--sage);
}

.headline-accent {
  color: var(--door-navy);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Personal story section — longer prose with more breathing room */
.hero-story {
  margin: 2.5rem 0 3rem;
  padding: 2rem 1.5rem 2rem 1.75rem;
  background: color-mix(in srgb, var(--sage) 7%, var(--cream));
  border-left: 3px solid var(--sage);
  border-radius: 0 8px 8px 0;
}

.hero-story-text {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.8;
  color: var(--ink);
  max-width: 65ch;
  margin: 0;
  letter-spacing: 0.3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/*
  Badge motif — circular headshot.
  Mobile: flows naturally between the bio block and the CTA buttons
  (DOM order handles placement — no flex tricks needed).
  Desktop (≥900px): CSS Grid on .hero-content lifts it into the right column.
*/
.hero-badge {
  display: flex;
  justify-content: center;
  margin: 2rem 0 2.5rem;
}

.hero-badge-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Inner concentric ring */
.hero-badge-ring::before {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid var(--sage-soft);
}

.hero-badge-logo {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  object-fit: cover;
  object-position: center 35%;
}

@media (min-width: 768px) {
  .hero-story {
    margin: 3rem 0 4rem;
    padding: 2.5rem 2rem;
  }

  .hero-story-text {
    font-size: 1.1rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 7rem 0 6rem;
  }

  /* On desktop .hero-inner no longer needs to be a row —
     the two-column effect lives inside .hero-content via CSS Grid. */
  .hero-inner {
    align-items: stretch;
  }

  /*
    CSS Grid inside .hero-content:
      column 1 (1fr)  — eyebrow, headline, story, actions
      column 2 (auto) — photo, spanning all rows, centered vertically

    Named grid areas make the intent explicit and keep the photo in
    the right column regardless of the exact row count.
  */
  .hero-content {
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "eyebrow  photo"
      "headline photo"
      "story    photo"
      "actions  photo";
    column-gap: 4rem;
    align-items: start;
  }

  .hero-content > .eyebrow       { grid-area: eyebrow; }
  .hero-content > .hero-headline  { grid-area: headline; }
  .hero-content > .hero-story     { grid-area: story; }
  .hero-content > .hero-actions   { grid-area: actions; }

  .hero-content > .hero-badge {
    grid-area: photo;
    align-self: center;
    margin: 0;
  }

  .hero-headline {
    font-size: 4.25rem;
  }

  .hero-story {
    margin: 3.5rem 0 4.5rem;
    padding: 3rem 2.5rem;
  }

  .hero-badge-ring {
    width: 340px;
    height: 340px;
  }
}


/* ============================================================================
   DEMOS
   ============================================================================ */

.demos-section {
  background: var(--cream-deep);
  border-top: 3px solid var(--sage);
}

.demos-sample-note {
  font-size: .82rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: -.5rem auto 2rem;
  text-align: center;
  font-style: italic;
}

.demos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .demos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .demos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.demo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  border-left: 4px solid var(--door-navy);
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.demo-thumb {
  aspect-ratio: 16 / 10;
  background: var(--cream-deep);
  overflow: hidden;
}

.demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.demo-card:hover .demo-thumb img {
  transform: scale(1.04);
}

.demo-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.demo-body h3 {
  font-size: 1.05rem;
  margin-bottom: .35rem;
  color: var(--navy);
}

.demo-body p {
  font-size: .9rem;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 1rem;
}

.demo-link {
  font-family: var(--body);
  font-weight: 700;
  font-size: .875rem;
  color: var(--sage);
  letter-spacing: .02em;
  align-self: flex-start;
}

.demo-link:hover        { color: var(--door-navy); font-weight: 800; }
.demo-link:focus-visible { color: var(--door-navy); outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 2px; }

.demo-card--soon {
  border-left-color: var(--line);
  opacity: .72;
}

.demo-card--soon:hover {
  transform: none;
  box-shadow: none;
}

.demo-thumb--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
}

.demo-soon-label {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: .4rem 1rem;
}

.demo-link--soon {
  font-family: var(--body);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .02em;
  color: var(--ink-soft);
  align-self: flex-start;
  cursor: default;
}


/* ============================================================================
   HOW IT WORKS
   ============================================================================ */

.how-section {
  background: var(--door-navy);
}

/* Text overrides for the dark how-it-works band */
.how-section .eyebrow      { color: var(--sage-soft); }
.how-section .section-title { color: var(--cream); }
.how-section .section-sub  { color: rgba(251, 248, 243, 0.72); }
.how-section .step h3      { color: var(--cream); }
.how-section .step p       { color: rgba(251, 248, 243, 0.68); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: .5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.step {
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(4.5rem, 10vw, 6.5rem);
  height: clamp(4.5rem, 10vw, 6.5rem);
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--cream);
  background: var(--sage);
  border-radius: 50%;
  line-height: 1;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: .6rem;
  color: var(--navy);
}

.step p {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.75;
}


/* ============================================================================
   PRICING
   ============================================================================ */

.pricing-section {
  background: var(--cream-deep);
  border-top: 3px solid var(--door-navy);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  border-top: 3px solid var(--sage);
}

/* Featured (Standard) card — navy accent, tinted background, elevated shadow */
.card-featured {
  border-top: 4px solid var(--door-navy);
  background: color-mix(in srgb, var(--door-navy) 4%, var(--paper));
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .card-featured {
    transform: translateY(-10px);
  }
}

.pricing-top {
  margin-bottom: .25rem;
}

.plan-badge {
  display: inline-block;
  background: var(--door-navy);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

.plan-name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .25rem;
}

.plan-price {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--door-navy);
  line-height: 1;
  margin-bottom: .2rem;
}

.plan-cycle {
  font-size: .8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: 0;
}

.plan-features {
  flex: 1;
  margin: 1.5rem 0 2rem;
}

.plan-features li {
  font-size: .92rem;
  color: var(--ink-soft);
  padding: .5rem 0 .5rem 1.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  line-height: 1.4;
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 800;
  font-size: .85rem;
}

.plan-btn {
  display: block;
  text-align: center;
  margin-top: auto;
}


/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  padding: 5rem 0 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}

.footer-logo {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.footer-biz-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: .25rem;
}

.footer-tagline {
  font-size: .85rem;
  color: var(--sage-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-nav a {
  color: var(--sage-soft);
  font-size: .9rem;
  transition: color .2s ease;
}

.footer-nav a:hover        { color: var(--cream); }
.footer-nav a:focus-visible { color: var(--cream); outline: 2px solid var(--sage-soft); outline-offset: 2px; border-radius: 2px; }

.footer-social {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}

.social-link {
  color: var(--sage-soft);
  transition: color .2s ease;
  line-height: 0;
}

.social-link:hover        { color: var(--cream); }
.social-link:focus-visible { color: var(--cream); outline: 2px solid var(--sage-soft); outline-offset: 2px; border-radius: 50%; }

.footer-copy {
  font-size: .8rem;
  color: var(--sage-soft);
  padding-top: 1.5rem;
  border-top: 1px solid var(--door-navy);
  grid-column: 1 / -1;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
    align-items: start;
  }

  .footer-logo {
    margin-left: 0;
  }

  .footer-social {
    justify-content: flex-start;
  }
}


/* ============================================================================
   PORTAL PAGE — nav, auth card, dashboard
   ============================================================================ */

/* ---- Portal nav ---- */

.portal-nav .nav-inner {
  justify-content: space-between;
}

.portal-back {
  font-family: var(--body);
  font-weight: 700;
  font-size: .9rem;
  color: var(--sage);
}

.portal-back:hover        { color: var(--navy); }
.portal-back:focus-visible { color: var(--navy); outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 2px; }

/* ---- Portal main area ---- */

/* No padding on portal-main itself; each view handles its own spacing */
.portal-main {
  padding: 0;
  background: var(--cream-deep);
}

/* Narrow stage for auth card + dashboard */
.portal-stage {
  padding: 3.5rem var(--gutter) 5rem;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* Remove placeholder styles — now replaced by real questionnaire */
.questionnaire-placeholder { display: none; }

/* ---- Auth card ---- */

.auth-card {
  padding: 2.5rem 2rem;
  border-top: 3px solid var(--sage);
}

@media (min-width: 520px) {
  .auth-card { padding: 3rem 2.5rem; }
}

.auth-card-head {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto .75rem;
}

.auth-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .3rem;
  line-height: 1.15;
}

.auth-sub {
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Google button ---- */
/*
  Styled per Google's brand guidelines:
  white background, standard Google border, Google G logo left-aligned.
*/

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  padding: .75rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}

.google-btn:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.google-btn:hover {
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.google-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ---- "or" divider ---- */

.auth-divider {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 1.5rem 0;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- Email/password form ---- */

.hidden { display: none !important; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
  font-size: .875rem;
  color: var(--navy);
  font-family: var(--body);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid color-mix(in srgb, var(--sage) 22%, var(--line));
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage-soft) 35%, transparent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Inline field errors */
.field-error {
  display: block;
  font-size: .8rem;
  color: var(--brass);
  margin-top: .3rem;
  min-height: 1.2em;
  line-height: 1.2;
}

.field-error--form {
  display: block;
  text-align: center;
  margin-bottom: .75rem;
  font-size: .875rem;
}

/* Submit button — full width inside the card */
.auth-submit {
  width: 100%;
  margin-top: .25rem;
  text-align: center;
}

.auth-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* Mode toggle link */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

.auth-toggle-link {
  margin-left: .35rem;
  font-weight: 700;
  color: var(--sage);
}

.auth-toggle-link:hover        { color: var(--navy); }
.auth-toggle-link:focus-visible { color: var(--navy); outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 2px; }

/* ---- Portal dashboard ---- */

.dashboard-card {
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 3px solid var(--door-navy);
}

@media (min-width: 520px) {
  .dashboard-card { padding: 3rem 2.5rem; }
}

.dashboard-head { margin-bottom: 2rem; }

.dashboard-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.dashboard-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .5rem;
}

.dashboard-sub {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.dashboard-actions {
  margin-bottom: 1.75rem;
}

.dashboard-actions .btn-primary {
  width: 100%;
  display: block;
  text-align: center;
}

.dashboard-signout {
  font-size: .85rem;
}

.dashboard-signout a {
  color: var(--ink-soft);
}

.dashboard-signout a:hover        { color: var(--navy); }
.dashboard-signout a:focus-visible { color: var(--navy); outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 2px; }

/* TEMP TESTING — owner setup link on the dashboard.
   Remove this block when the link is removed from portal.html. */
.dashboard-temp-admin {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px dashed color-mix(in srgb, var(--ink-soft) 30%, transparent);
  font-size: .78rem;
  text-align: center;
}
.temp-admin-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  padding: .3rem .6rem;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.temp-admin-link:hover { color: var(--navy); background: color-mix(in srgb, var(--sage) 12%, transparent); }
.temp-admin-shortcut {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .68rem;
  padding: .12rem .4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---- Questionnaire placeholder ---- */

.questionnaire-placeholder {
  margin-top: 1.5rem;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream-deep);
}

/* ============================================================================
   QUESTIONNAIRE — multi-step form
   ============================================================================ */

/* ---- Outer container ---- */

.q-section {
  padding: 2.5rem var(--gutter) 5rem;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.q-exit-link {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: .875rem;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.q-exit-link:hover        { color: var(--navy); }
.q-exit-link:focus-visible { color: var(--navy); outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 2px; }

.q-wrap {
  padding: 2rem 1.75rem 2.5rem;
  border-top: 3px solid var(--sage);
  /* Prevent any inner grid row from bleeding past the card edge */
  overflow: hidden;
}

@media (min-width: 560px) {
  .q-wrap { padding: 2.5rem; }
}

/* ---- Step indicator ---- */

.q-steps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.q-steps::-webkit-scrollbar { display: none; }

.q-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}

.q-step-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 800;
  font-size: .8rem;
  color: var(--ink-soft);
  transition: background .25s, border-color .25s, color .25s;
  position: relative;
}

.q-step.active   .q-step-bubble { background: var(--door-navy);  border-color: var(--door-navy);  color: var(--cream); }
.q-step.done     .q-step-bubble { background: var(--sage);      border-color: var(--sage);      color: var(--cream); }

/* Done dots are clickable back-navigation */
.q-step.done { cursor: pointer; }
.q-step.done:hover .q-step-bubble { background: var(--door-navy); border-color: var(--door-navy); }

/* TEMP TESTING: all dots clickable — REMOVE to restore validation */
.q-step.active   { cursor: default; }
.q-step.upcoming { cursor: pointer; }
.q-step.upcoming:hover .q-step-bubble { background: var(--door-navy); border-color: var(--door-navy); color: var(--cream); }
/* END TEMP TESTING */

/* Swap number for checkmark when done */
.q-step.done .q-step-bubble span  { display: none; }
.q-step.done .q-step-bubble::after { content: '✓'; font-size: .9rem; font-weight: 800; }

.q-step-name {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.q-step.active .q-step-name { color: var(--door-navy); }
.q-step.done   .q-step-name { color: var(--sage); }

/* Connecting rail between bubbles */
.q-step-rail {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin-top: 16px; /* (34px bubble ÷ 2) − (2px rail ÷ 2) = aligns centers */
  transition: background .3s ease;
}

.q-step-rail.done { background: var(--sage); }

/* Hide labels on very small screens to keep indicator compact */
@media (max-width: 400px) {
  .q-step-name { display: none; }
  .q-step-bubble { width: 30px; height: 30px; font-size: .75rem; }
  .q-step-rail { margin-top: 14px; }
}

/* ---- Step panels ---- */

.q-panel-head {
  margin-bottom: 1.75rem;
}

.q-panel-head h2 {
  font-size: 1.45rem;
  color: var(--door-navy);
  margin-bottom: .35rem;
}

.q-panel-sub {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---- Adoption variant: subsections, sub-headings, help text ---- */

/* Visual grouping within a step (e.g., Parent 1, Parent 2, Outside of home) */
.q-subsection {
  border-top: 1px solid color-mix(in srgb, var(--sage) 20%, var(--line));
  margin-top: 1.75rem;
  padding-top: 1.5rem;
}

.q-subsection:first-of-type {
  border-top: none;
  margin-top: .5rem;
  padding-top: 0;
}

.q-subsection-title {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--door-navy);
  margin: 0 0 .85rem;
  line-height: 1.2;
}

.q-subsection-title .q-optional {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: .85rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Small helper text that sits above a field group */
.q-help {
  font-size: .82rem;
  color: var(--ink-soft);
  margin: -.25rem 0 .8rem;
  line-height: 1.55;
}

/* Required-mark used on prominent fields (e.g. grad year). Reserves space
   without forcing browser validation — the visual cue is the point. */
.q-required-mark {
  color: var(--brass);
  font-weight: 800;
  margin-left: .15rem;
}

/* Subsection that is clearly optional — softer treatment so it does not pull focus */
.q-subsection-optional {
  opacity: .92;
}
.q-subsection-optional .q-subsection-title {
  color: var(--ink-soft);
}

/* Subsection highlighted as the primary/most-important block in its step */
.q-subsection-primary {
  border-left: 3px solid var(--door-navy);
  padding-left: 1.1rem;
  background: linear-gradient(0deg, transparent, rgba(43, 62, 90, 0.04));
}
.q-subsection-primary .q-subsection-title {
  color: var(--door-navy);
}

/* NCAA dated guidance note — clearly marked, light callout */
.q-ncaa-note {
  background: rgba(43, 62, 90, 0.05);
  border-left: 3px solid var(--sage);
  padding: .7rem .9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1rem;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink);
}
.q-ncaa-note a {
  color: var(--door-navy);
  font-weight: 700;
}
.q-ncaa-note strong {
  display: inline-block;
  margin-top: .3rem;
  color: var(--door-navy);
}

/* ---- Recruit measurables — structured rows (name / value / status / source) ----
   Key overflow fix: grid cells must have min-width:0 so fr units can actually
   constrain them (browsers give <input>/<select> an implicit min-content width
   that defeats fr without this). Inputs need box-sizing:border-box + width:100%
   so padding is counted inside the column, not added on top of it. */
.qr-measurables {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: .25rem 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

.qr-meas-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr .9fr 1.4fr;
  gap: .5rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* min-width:0 lets grid cells shrink below their intrinsic content size */
.qr-meas-row > * {
  min-width: 0;
}

.qr-meas-header {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 0 .15rem;
}

.qr-meas-row input,
.qr-meas-row select {
  width: 100%;
  box-sizing: border-box;
  padding: .55rem .65rem;
  font-size: .88rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qr-meas-row input:focus,
.qr-meas-row select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 144, 122, 0.18);
}

/* Tablet: 2-column layout (name+value / status+source pairs) */
@media (max-width: 860px) {
  .qr-meas-row {
    grid-template-columns: 1fr 1fr;
  }
  .qr-meas-header { display: none; }
}

/* Mobile: fully stacked */
@media (max-width: 480px) {
  .qr-meas-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Recruit character references — structured rows (name / role / email / phone) ---- */
.qr-references {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: .25rem 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

.qr-ref-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.2fr 1fr;
  gap: .5rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Same fix — let grid cells shrink */
.qr-ref-row > * {
  min-width: 0;
}

.qr-ref-header {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 0 .15rem;
}

.qr-ref-row input {
  width: 100%;
  box-sizing: border-box;
  padding: .55rem .65rem;
  font-size: .88rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qr-ref-row input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 144, 122, 0.18);
}

/* Tablet: 2-column */
@media (max-width: 860px) {
  .qr-ref-row {
    grid-template-columns: 1fr 1fr;
  }
  .qr-ref-header { display: none; }
}

/* Mobile: fully stacked */
@media (max-width: 480px) {
  .qr-ref-row {
    grid-template-columns: 1fr;
  }
}

/* Slide-in animations */
@keyframes qEnterFwd {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes qEnterBack {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0);     }
}

.q-panel.q-enter-fwd  { animation: qEnterFwd  .28s ease both; }
.q-panel.q-enter-back { animation: qEnterBack .28s ease both; }

/* ---- Form field decorators ---- */

.req-star {
  color: var(--brass);
  font-weight: 800;
}

.q-optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: .8rem;
}

/* Inline questionnaire errors */
.q-error {
  display: block;
  font-size: .8rem;
  color: var(--brass);
  margin-top: .3rem;
  min-height: 1.15em;
  line-height: 1.2;
}

/* Input shake on validation failure */
@keyframes qShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  60%       { transform: translateX(5px); }
}
.q-shake { animation: qShake .4s ease; }

/* ---- Custom checkboxes ---- */

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem .25rem;
  margin-top: .5rem;
}

@media (min-width: 480px) {
  .checkbox-grid { grid-template-columns: repeat(4, 1fr); }
}

.checkbox-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  padding: .4rem .45rem;
  border-radius: var(--radius);
  transition: background .15s;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
}

.checkbox-label:hover { background: var(--cream-deep); }

/* Native checkbox hidden; state managed by JS (.is-checked on the label) */
.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  position: relative;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}

/* Selected state — set by JS when input.checked changes */
.checkbox-label.is-checked {
  background: color-mix(in srgb, var(--sage) 10%, white);
}

.checkbox-label.is-checked .checkbox-custom {
  background: var(--sage);
  border-color: var(--sage);
}

.checkbox-label.is-checked .checkbox-custom::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* Disabled checkbox when tier cap is reached */
.checkbox-label--disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Inline page-limit note below the checkbox grid */
.q-page-limit-msg {
  margin-top: .65rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: .01em;
}

.q-page-limit-msg strong {
  color: var(--door-navy);
}

/* Mismatch warning banner — review step */
.q-tier-mismatch {
  background: color-mix(in srgb, var(--brass) 12%, var(--cream));
  border: 1.5px solid color-mix(in srgb, var(--brass) 45%, transparent);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  font-size: .9rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.q-tier-mismatch strong { color: var(--door-navy); }

.q-tier-mismatch a {
  color: var(--door-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.q-tier-mismatch a:hover { color: var(--sage); }

/* Inline mismatch error below tier cards on payment step */
.q-tier-mismatch-err {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: color-mix(in srgb, var(--brass) 12%, var(--cream));
  border: 1.5px solid color-mix(in srgb, var(--brass) 45%, transparent);
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--navy);
}

.q-tier-mismatch-err strong { color: var(--door-navy); }

.q-tier-mismatch-err a {
  color: var(--door-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Navigation bar ---- */

.q-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--sage) 20%, var(--line));
}

.q-prev-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.q-step-counter {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.q-nav-fwd {
  display: flex;
  gap: .5rem;
}

/* ---- Complete screen ---- */

.q-complete {
  text-align: center;
  padding: 1rem 0 .5rem;
}

.q-complete-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.q-complete h2 {
  font-size: 1.6rem;
  color: var(--door-navy);
  margin-bottom: .75rem;
}

.q-complete-payment-note {
  font-size: .84rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: .75rem auto 0;
  line-height: 1.6;
}

.q-done-btn {
  margin-top: 2rem;
  display: inline-block;
}

/* ---- Palette picker ---- */

.palette-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .palette-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}

.palette-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  cursor: pointer;
  transition: all .2s ease;
}

.palette-card input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.palette-card:hover {
  border-color: var(--sage-soft);
}

.palette-card:has(input[type="radio"]:checked) {
  border-color: var(--sage);
  background: color-mix(in srgb, var(--sage) 5%, white 95%);
}

.palette-card input[type="radio"]:checked ~ .palette-swatches,
.palette-card input[type="radio"]:checked ~ .palette-name,
.palette-card input[type="radio"]:checked ~ .palette-check {
  opacity: 1;
}

.palette-swatches {
  display: flex;
  gap: .5rem;
  opacity: .6;
  transition: opacity .2s ease;
}

.swatch {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.palette-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  opacity: .6;
  transition: opacity .2s ease;
}

.palette-check {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--sage);
  font-weight: 800;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.palette-card input[type="radio"]:focus-visible ~ .palette-swatches,
.palette-card input[type="radio"]:focus-visible ~ .palette-name {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* Dark palette card (Midnight) — visible against dark background */
.palette-dark {
  background: #1F2129;
  border-color: #3A3F4B;
}

.palette-dark:hover {
  border-color: #5B8FF0;
}

.palette-dark:has(input[type="radio"]:checked) {
  border-color: #5B8FF0;
  background: #23272F;
}

.palette-dark .palette-name {
  color: #E8E6E1;
}

.palette-dark .palette-check {
  color: #5B8FF0;
}

/* ---- Photo upload ---- */

.file-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--sage-soft);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--sage-soft) 5%, white 95%);
  cursor: pointer;
  transition: all .2s ease;
  gap: 1rem;
}

.file-upload-zone.dragover {
  border-color: var(--sage);
  background: color-mix(in srgb, var(--sage) 8%, white 92%);
  box-shadow: inset 0 0 0 1px var(--sage);
}

.file-upload-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--sage);
  opacity: .7;
}

.file-upload-text {
  font-size: .95rem;
  color: var(--ink);
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.file-upload-button {
  background: none;
  border: none;
  color: var(--sage);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.file-upload-button:hover {
  color: var(--navy);
}

.file-upload-button:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.file-count-note {
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 1rem 0 1.5rem;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 480px) {
  .photo-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .photo-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-thumbnail {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.photo-thumbnail-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.photo-thumbnail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove-btn {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  opacity: 0;
}

.photo-thumbnail-img:hover .photo-remove-btn {
  opacity: 1;
  background: white;
  box-shadow: var(--shadow);
}

.photo-remove-btn:hover {
  color: var(--brass);
  transform: scale(1.1);
}

.photo-remove-btn:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.photo-caption {
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--body);
  font-size: .85rem;
  color: var(--ink);
  background: white;
  transition: border-color .15s;
}

.photo-caption:hover {
  border-color: var(--sage-soft);
}

.photo-caption:focus-visible {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--sage) 15%, transparent);
}

/* ---- Review summary ---- */

.review-summary {
  margin-bottom: 2rem;
}

.review-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.review-section:first-child { padding-top: 0; }
.review-section:last-child  { border-bottom: none; padding-bottom: 0; }

.review-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.review-section-head h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--door-navy);
  margin: 0;
  letter-spacing: -.01em;
}

.review-edit-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.review-edit-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.review-section h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 .85rem;
  letter-spacing: -.01em;
}

.review-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: .15rem .75rem;
  margin: 0;
}

@media (min-width: 480px) {
  .review-dl {
    grid-template-columns: 9.5rem 1fr;
  }
}

.review-dl dt {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding-top: .25rem;
}

.review-dl dd {
  color: var(--ink);
  margin: 0 0 .75rem;
  line-height: 1.55;
  font-size: .95rem;
}

.review-multiline {
  white-space: pre-wrap;
  font-family: var(--body);
}

/* Sub-heading used inside a review section (e.g., "Letter to birth parents") */
.review-subheading {
  font-family: var(--body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  color: var(--sage);
  margin: 0 0 .5rem;
}

/* Verbatim letter rendered as a soft, branded blockquote */
.review-letter {
  background: var(--cream);
  border-left: 3px solid var(--door-navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem;
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--navy);
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: .95rem;
}

/* Small contextual note under a dd row (e.g., "Click tracking enabled") */
.review-help-note {
  font-size: .78rem;
  color: var(--sage);
  font-weight: 600;
  margin: .25rem 0 0;
  letter-spacing: .01em;
}

/* Tabular display for structured rows on the review screen
   (used for measurables and character references) */
.review-meas-table {
  width: 100%;
  border-collapse: collapse;
  margin: .25rem 0 1rem;
  font-size: .88rem;
}
.review-meas-table th {
  text-align: left;
  font-family: var(--body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .35rem .55rem;
  border-bottom: 1px solid var(--line);
}
.review-meas-table td {
  padding: .5rem .55rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}
.review-meas-table tr:last-child td {
  border-bottom: none;
}
.review-meas-verified {
  color: var(--sage);
  font-weight: 700;
}
.review-meas-self {
  color: var(--ink-soft);
  font-style: italic;
}

/* Primary-highlight callout tag on the review screen */
.review-primary-tag {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--door-navy);
  padding: .15rem .55rem;
  border-radius: 999px;
  margin-bottom: .35rem;
}

.review-palette-name {
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 .75rem;
  font-size: .95rem;
}

.review-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

@media (min-width: 480px) {
  .review-swatches { grid-template-columns: repeat(4, 1fr); }
}

.review-swatch {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .78rem;
}

.review-swatch-color {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.review-swatch-name {
  font-weight: 600;
  color: var(--navy);
  text-transform: capitalize;
}

.review-swatch-hex {
  color: var(--ink-soft);
  font-family: monospace;
  font-size: .72rem;
}

.review-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: .5rem;
}

@media (max-width: 480px) {
  .review-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.review-photo-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.review-photo-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  display: block;
}

.review-photo-caption-text {
  font-size: .82rem;
  font-style: italic;
  color: var(--ink);
  text-align: center;
  margin: 0;
  line-height: 1.3;
}

.review-photo-filename {
  font-size: .72rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Page chips (review) ---- */

.review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
}

.review-chip {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  background: color-mix(in srgb, var(--sage) 10%, white);
  color: var(--sage);
  border: 1.5px solid color-mix(in srgb, var(--sage) 35%, transparent);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---- Payment tier cards (Step 8) ---- */

.tier-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 560px) {
  .tier-cards { grid-template-columns: repeat(3, 1fr); }
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  border: 2px solid color-mix(in srgb, var(--sage) 30%, var(--line));
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  text-align: center;
  user-select: none;
}

.tier-card:hover,
.tier-card:focus-visible {
  border-color: var(--sage);
  box-shadow: var(--shadow);
  outline: none;
}

.tier-card.tier-featured {
  border-color: var(--door-navy);
  border-top-width: 3px;
}

.tier-card.selected {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 20%, transparent);
  background: color-mix(in srgb, var(--sage) 4%, white);
}

.tier-badge {
  display: inline-block;
  padding: .2rem .75rem;
  background: var(--navy);
  color: var(--cream);
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.tier-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .25rem;
}

.tier-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
}

.tier-cycle {
  font-size: .78rem;
  color: var(--ink-soft);
  margin: 0;
}

.tier-split {
  font-size: .74rem;
  color: var(--ink-soft);
  margin: .2rem 0 1rem;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  flex: 1;
}

.tier-features li {
  font-size: .83rem;
  color: var(--ink);
  padding: .28rem 0;
  border-bottom: 1px dotted var(--line);
  line-height: 1.4;
}

.tier-features li:last-child { border-bottom: none; }

.tier-features li::before {
  content: '✓ ';
  color: var(--sage);
  font-weight: 700;
}

.tier-note {
  font-size: .83rem;
  color: var(--ink-soft);
  margin-top: 1.25rem;
  text-align: center;
  line-height: 1.5;
}

#qPayBtn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ---- Build Prompt block ---- */

.review-prompt-block {
  margin-top: 2rem;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--cream) 60%, white 40%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}

.review-prompt-head h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0;
}

.review-prompt-hint {
  font-size: .85rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.copy-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  font-family: var(--body);
  font-size: .82rem;
  font-weight: 600;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  cursor: pointer;
  transition: all .15s ease;
}

.copy-prompt-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.copy-prompt-btn:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.copy-prompt-btn.copied {
  background: var(--sage);
  color: var(--cream);
  border-color: var(--sage);
}

.copy-prompt-btn svg {
  display: block;
}

.build-prompt {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: .78rem;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 24rem;
  overflow-y: auto;
  margin: 0;
}

/* ---- Owner Admin View (portal.html#admin) ---- */

#ownerAdminView {
  width: 100%;
  padding: 2.5rem var(--gutter) 5rem;
}

.admin-wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.admin-head {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.admin-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .35rem;
}

.admin-head h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--navy);
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}

.admin-sub {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-empty {
  padding: 2.5rem 1rem;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

.admin-submission {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.admin-submission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.admin-submission-meta h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 .25rem;
}

.admin-submission-meta p {
  font-size: .82rem;
  color: var(--ink-soft);
  margin: 0;
}

.admin-submission-meta time {
  font-family: monospace;
  font-size: .78rem;
}

.admin-copy-btn { flex-shrink: 0; }

.admin-build-prompt {
  background: var(--cream);
  max-height: 30rem;
}

.admin-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: .9rem;
}

.admin-footer a {
  color: var(--sage);
  font-weight: 600;
}

.admin-footer a:hover { color: var(--navy); }

/* ---- Shared form styles (used by questionnaire) ---- */

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

.form-footer a {
  color: var(--sage);
  font-weight: 700;
}

.form-footer a:hover { color: var(--navy); }

.form-intro {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  font-size: .95rem;
}


/* ============================================================================
   SETUP PAGE — owner-only CRUD for business types & pricing tiers
   ============================================================================ */

.setup-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
}

.setup-head {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 1.5rem 2.5rem;
  background: color-mix(in srgb, var(--sage) 7%, var(--cream));
  border: 1px solid color-mix(in srgb, var(--sage) 25%, var(--line));
  border-radius: var(--radius);
}

.setup-eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  background: color-mix(in srgb, var(--sage) 10%, white);
  padding: .25rem .7rem;
  border-radius: 100px;
  margin: 0 0 .75rem;
}

.setup-head h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .75rem;
  letter-spacing: -.02em;
}

.setup-sub {
  max-width: 56ch;
  margin: 0 auto;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.setup-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.setup-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--cream) 70%, white);
  color: var(--ink);
}
.setup-empty p { margin: 0 0 .25rem; font-weight: 600; }
.setup-empty-sub { font-weight: 400 !important; color: var(--ink-soft); }

.types-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---- Business type card ---- */

.type-card {
  background: white;
  border: 1px solid color-mix(in srgb, var(--sage) 25%, var(--line));
  border-top: 3px solid var(--sage);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
  .type-card { padding: 1.75rem 1.75rem; }
}

.type-card-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.type-name-input {
  flex: 1;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  padding: .35rem .55rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  letter-spacing: -.01em;
}
.type-name-input:hover { border-color: var(--line); background: var(--cream); }
.type-name-input:focus {
  outline: none;
  border-color: var(--sage);
  background: white;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 15%, transparent);
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s;
}
.btn-icon:hover:not(:disabled) {
  background: var(--brass, #d97757);
  border-color: var(--brass, #d97757);
  color: white;
}
.btn-icon:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}
.btn-icon:disabled { opacity: .35; cursor: not-allowed; }

/* ---- Shared form labels & inputs in setup ---- */

.setup-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1rem 0 .35rem;
}

.setup-label-inline { margin-top: .75rem; }

.type-desc-input,
.type-note-input,
.tier-editor input[type="text"],
.tier-editor textarea {
  width: 100%;
  font-family: var(--body);
  font-size: .92rem;
  color: var(--ink);
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  transition: border-color .15s, box-shadow .15s;
}
.type-note-input,
.tier-editor textarea {
  resize: vertical;
  min-height: 4.5rem;
  font-family: var(--body);
  line-height: 1.5;
}
.type-desc-input:hover,
.type-note-input:hover,
.tier-editor input[type="text"]:hover,
.tier-editor textarea:hover { border-color: var(--sage-soft); }
.type-desc-input:focus,
.type-note-input:focus,
.tier-editor input[type="text"]:focus,
.tier-editor textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 15%, transparent);
}

/* ---- Site-type chips ---- */

.site-types-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.site-types-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.site-type-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: white;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  transition: all .15s;
}
.site-type-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.site-type-chip:hover { border-color: var(--sage-soft); }
.site-type-chip:has(input:checked) {
  border-color: var(--sage);
  background: color-mix(in srgb, var(--sage) 10%, white);
  color: var(--sage);
}
.site-type-chip:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 20%, transparent);
}

/* ---- Tier editor grid ---- */

.type-tiers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 1.5rem 0 .75rem;
}

.type-tiers-head h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.type-tiers-count {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .85rem;
}

.btn-mini {
  padding: .35rem .85rem;
  font-size: .82rem;
  font-weight: 700;
  background: white;
  color: var(--sage);
  border: 1.5px solid var(--sage);
  border-radius: 100px;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--body);
}
.btn-mini:hover:not(:disabled) { background: var(--sage); color: white; }
.btn-mini:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.btn-mini:disabled { opacity: .4; cursor: not-allowed; }

.type-tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .type-tiers { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .type-tiers { grid-template-columns: repeat(3, 1fr); }
}

/* When 4 tiers, fit them 4-wide on the largest screens */
@media (min-width: 1200px) {
  .type-tiers:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
}

.tier-editor {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--cream) 50%, white);
}

.tier-editor-head {
  display: flex;
  gap: .4rem;
  align-items: center;
}

.tier-editor-head input[type="text"] {
  flex: 1;
  font-weight: 700;
}

.tier-editor input[data-field="price"] {
  font-weight: 700;
  color: var(--navy);
}

.tier-badge-toggle {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
  padding: .25rem 0;
  user-select: none;
}
.tier-badge-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--sage);
  cursor: pointer;
}

/* ---- Meta sections (photo categories / link types / custom fields) ---- */

.type-meta-section {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}

.type-meta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}

.type-meta-head h2 {
  font-size: 1rem;
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .01em;
}

.type-meta-count {
  font-size: .82rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: .25rem;
}

.type-meta-help {
  font-size: .8rem;
  color: var(--ink-soft);
  margin: 0 0 .8rem;
  line-height: 1.5;
}

.type-meta-rows {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.meta-row {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  padding: .55rem .65rem;
  background: color-mix(in srgb, var(--cream) 50%, white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.meta-row-grid {
  flex: 1;
  display: grid;
  gap: .45rem;
  align-items: center;
}

/* Photo categories: 2 columns */
.meta-row-grid--photo {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}

/* Link types: 3 columns (label / kind / placeholder) */
.meta-row-grid--link {
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.4fr);
}

/* Custom fields: 4 columns on wide, stacked on narrow */
.meta-row-grid--field {
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 720px) {
  .meta-row-grid--photo,
  .meta-row-grid--link,
  .meta-row-grid--field {
    grid-template-columns: 1fr;
  }
}

.meta-row input[type="text"],
.meta-row select {
  width: 100%;
  font-size: .85rem;
  padding: .5rem .65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s ease;
}

.meta-row input[type="text"]:hover,
.meta-row select:hover { border-color: var(--sage-soft); }

.meta-row input[type="text"]:focus,
.meta-row select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 18%, transparent);
}

.delete-row-btn {
  align-self: flex-start;
}

.add-row-btn { font-size: .85rem; }

/* ---- Card footer actions ---- */

.type-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.type-save-status {
  font-size: .85rem;
  font-weight: 600;
}
.type-save-status.success { color: var(--sage); }
.type-save-status.error   { color: var(--brass, #d97757); }

.save-type-btn { font-size: .92rem; padding: .65rem 1.5rem; }

/* ---- Setup footer ---- */

.setup-footer {
  background: var(--cream-deep, var(--cream));
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-soft);
}
.setup-footer p { margin: 0; }

/* ---- Empty/no-tiers helper in payment step ---- */

.tier-empty {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: .95rem;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.tier-empty a { color: var(--sage); font-weight: 700; }
.tier-empty a:hover { color: var(--navy); }


/* ════════════════════════════════════════════════════════════════════════
   Upload progress overlay — shown while photos upload to R2 at submit time
   ════════════════════════════════════════════════════════════════════════ */

.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(32, 48, 54, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.upload-overlay.hidden { display: none; }

.upload-overlay-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.upload-overlay-card h3 {
  font-family: var(--display);
  margin: 0 0 .5rem;
  color: var(--door-navy);
  font-size: 1.35rem;
}
.upload-overlay-status {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: .95rem;
  min-height: 1.2em;
}

.upload-overlay-bar {
  background: var(--cream-deep, #efeae2);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: .75rem;
}
.upload-overlay-bar-fill {
  height: 100%;
  background: var(--sage);
  width: 0%;
  transition: width .25s ease;
}

.upload-overlay-count {
  margin: 0;
  font-size: .85rem;
  color: var(--ink-soft);
}

.upload-overlay-error {
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: #fcefe9;
  border: 1px solid #e0b6a4;
  color: #a8492a;
  border-radius: 8px;
  font-size: .92rem;
  text-align: left;
}
.upload-overlay-error.hidden { display: none; }

.upload-overlay-actions {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-top: 1rem;
}
.upload-overlay-actions.hidden { display: none; }
.upload-overlay-actions .btn-ghost { padding: .55rem 1.1rem; font-size: .9rem; }
