/* Phase 1 global design-system foundation.
   Keeps the approved homepage intact while bringing the rest of the platform
   closer to the same mobile-first, task-first visual language. */

:root {
  --app-header-height: 86px;
  --app-mobile-header-height: 70px;
  --app-bottom-nav-height: 76px;
  --app-shell: min(1180px, calc(100% - 32px));
  --app-shell-wide: min(1360px, calc(100% - 32px));
  --app-card-pad: clamp(14px, 2vw, 22px);
}

/* Phase 5: support, city, resource, legal, auth, and SEO landing polish. */
body.phase1-foundation :is(.phase5-hero, .phase5-auth) {
  --phase5-shell: min(1160px, calc(100vw - 32px));
  --phase5-line: rgba(122, 70, 28, .2);
}

body.phase1-foundation.page-public .phase5-hero {
  position: relative;
  isolation: isolate;
  max-width: var(--phase5-shell);
  margin: 18px auto 18px;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 42px);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--phase5-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 249, 241, .96), rgba(255, 255, 255, .9)),
    url("../img/premium/bridal-mehndi.webp") center / cover no-repeat;
  box-shadow: 0 20px 52px rgba(82, 42, 18, .1);
}

body.phase1-foundation.page-public .phase5-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 16%, rgba(157, 13, 17, .1), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(19, 139, 77, .08), transparent 32%);
}

body.phase1-foundation.page-public .support-hero {
  background:
    linear-gradient(135deg, rgba(255, 249, 241, .97), rgba(255, 255, 255, .9)),
    url("../img/premium/request-board.webp") center / cover no-repeat;
}

body.phase1-foundation.page-public .cities-hero,
body.phase1-foundation.page-public .city-page-hero {
  background:
    linear-gradient(135deg, rgba(255, 248, 238, .96), rgba(255, 255, 255, .9)),
    url("../img/premium/engagement-mehndi.webp") center / cover no-repeat;
}

body.phase1-foundation.page-public .resources-hero,
body.phase1-foundation.page-public .role-page-hero,
body.phase1-foundation.page-public .seo-landing-hero {
  background:
    linear-gradient(135deg, rgba(255, 249, 241, .96), rgba(255, 255, 255, .9)),
    url("../img/premium/learn-mehndi.webp") center / cover no-repeat;
}

body.phase1-foundation.page-public .legal-page-hero,
body.phase1-foundation.page-public .error-hero {
  background:
    linear-gradient(135deg, rgba(255, 249, 241, .97), rgba(255, 255, 255, .92)),
    url("../img/premium/gallery-cover.webp") center / cover no-repeat;
}

body.phase1-foundation.page-public .phase5-hero h1 {
  max-width: 930px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.1rem, 5.3vw, 4.65rem);
  line-height: .98;
  letter-spacing: 0;
}

body.phase1-foundation.page-public .phase5-hero > p:not(.eyebrow) {
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;
  color: #4f433a;
}

body.phase1-foundation.page-public .phase5-hero .hero-actions,
body.phase1-foundation.page-public .phase5-hero .trust-strip,
body.phase1-foundation.page-public .phase5-hero .filter-summary {
  justify-content: center;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

body.phase1-foundation.page-public .phase5-hero .trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

body.phase1-foundation.page-public .phase5-hero .trust-strip span,
body.phase1-foundation.page-public .phase5-hero .filter-summary :is(span, strong, a) {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--phase5-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  text-align: center;
  font-weight: 800;
}

body.phase1-foundation.page-public .phase5-hero .hero-search {
  max-width: 880px;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--phase5-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(82, 42, 18, .08);
}

body.phase1-foundation.page-public .phase5-hero .hero-search.compact {
  grid-template-columns: 1.2fr 1fr .9fr auto;
}

body.phase1-foundation.page-public .phase5-hero .hero-search :is(input, select, button) {
  min-width: 0;
  width: 100%;
  min-height: 48px;
}

body.phase1-foundation.page-public:is(.route-contact, .route-cities, .route-blog, .route-legal) .section,
body.phase1-foundation.page-public:is(.route-how-it-works, .route-about, .route-for-customers, .route-for-artists, .route-for-tutors, .route-for-students, .route-for-vendors, .route-for-suppliers, .route-trust-safety, .route-quality-guidelines) .section,
body.phase1-foundation.page-public:is(.route-mehndi-artists, .route-mehndi-classes, .route-henna-products, .route-designs) .section {
  max-width: var(--phase5-shell);
}

body.phase1-foundation.page-public:is(.route-contact, .route-cities, .route-blog, .route-legal) :is(.panel, .profile-card, .product-card, .gallery-item-card),
body.phase1-foundation.page-public:is(.route-how-it-works, .route-about, .route-for-customers, .route-for-artists, .route-for-tutors, .route-for-students, .route-for-vendors, .route-for-suppliers, .route-trust-safety, .route-quality-guidelines) :is(.panel, .profile-card, .product-card, .gallery-item-card),
body.phase1-foundation.page-public:is(.route-mehndi-artists, .route-mehndi-classes, .route-henna-products, .route-designs, .route-cities) :is(.panel, .profile-card, .product-card, .gallery-item-card) {
  border-radius: 8px;
  border-color: var(--phase5-line);
  box-shadow: 0 16px 42px rgba(82, 42, 18, .07);
}

body.phase1-foundation.page-public:is(.route-contact, .route-cities, .route-blog, .route-legal) .cards,
body.phase1-foundation.page-public:is(.route-how-it-works, .route-about, .route-for-customers, .route-for-artists, .route-for-tutors, .route-for-students, .route-for-vendors, .route-for-suppliers, .route-trust-safety, .route-quality-guidelines) .cards,
body.phase1-foundation.page-public:is(.route-mehndi-artists, .route-mehndi-classes, .route-henna-products, .route-designs) .cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.phase1-foundation.page-public:is(.route-cities, .route-mehndi-artists, .route-mehndi-classes, .route-henna-products, .route-designs) .city-cloud {
  justify-content: center;
}

body.phase1-foundation.page-public:is(.route-cities, .route-mehndi-artists, .route-mehndi-classes, .route-henna-products, .route-designs) .city-cloud a,
body.phase1-foundation.page-public .legal-link-cloud a {
  border-radius: 999px;
  background: #fff;
  border-color: rgba(157, 13, 17, .16);
  box-shadow: 0 10px 28px rgba(82, 42, 18, .05);
}

body.phase1-foundation.page-public .visual-band {
  grid-template-columns: minmax(250px, .9fr) minmax(0, 1.1fr);
  align-items: center;
}

body.phase1-foundation.page-public .visual-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--phase5-line);
  background: #fff;
  box-shadow: 0 18px 44px rgba(82, 42, 18, .08);
}

body.phase1-foundation.page-public .visual-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

body.phase1-foundation.page-public .visual-card figcaption {
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 900;
}

body.phase1-foundation.page-public .action-grid,
body.phase1-foundation.page-public .trust-command-grid,
body.phase1-foundation.page-public .trust-status-grid,
body.phase1-foundation.page-public .legal-assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.phase1-foundation.page-public .legal-assurance-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.phase1-foundation.page-public .action-card,
body.phase1-foundation.page-public .trust-command-card,
body.phase1-foundation.page-public .trust-status-card,
body.phase1-foundation.page-public .legal-assurance-card {
  min-width: 0;
  border-radius: 8px;
  border: 1px solid var(--phase5-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 42px rgba(82, 42, 18, .07);
}

body.phase1-foundation.page-public .action-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

body.phase1-foundation.page-public .action-card strong {
  color: var(--red);
  font-size: 1.02rem;
}

body.phase1-foundation.page-public .action-card span {
  color: #4f433a;
  line-height: 1.36;
}

body.phase1-foundation.page-public .trust-command-card span,
body.phase1-foundation.page-public .trust-status-card > span,
body.phase1-foundation.page-public .legal-assurance-card span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0df;
  color: var(--red);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.phase1-foundation.page-public .legal-assurance-card {
  padding: 14px;
}

body.phase1-foundation.page-public .legal-assurance-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  line-height: 1.25;
}

body.phase1-foundation.page-public .faq-list details {
  border-radius: 8px;
}

body.phase1-foundation.page-auth .phase5-auth {
  position: relative;
  isolation: isolate;
  max-width: min(980px, calc(100vw - 32px));
  margin: 22px auto;
  padding: clamp(18px, 4vw, 34px);
  border-radius: 8px;
  border: 1px solid var(--phase5-line, rgba(122, 70, 28, .2));
  background:
    linear-gradient(135deg, rgba(255, 249, 241, .95), rgba(255, 255, 255, .9)),
    url("../img/premium/engagement-mehndi.webp") center / cover no-repeat;
  box-shadow: 0 20px 52px rgba(82, 42, 18, .1);
}

body.phase1-foundation.page-auth .auth-card,
body.phase1-foundation.page-auth .auth-context {
  border-radius: 8px;
  border-color: rgba(122, 70, 28, .2);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 42px rgba(82, 42, 18, .08);
}

body.phase1-foundation.page-auth .auth-wrap:not(.auth-split) {
  max-width: min(520px, calc(100vw - 32px));
}

body.phase1-foundation.page-auth .auth-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

body.phase1-foundation.page-auth .mini-steps {
  display: grid;
  gap: 8px;
  padding: 0;
  margin-top: 14px;
  list-style: none;
}

body.phase1-foundation.page-auth .mini-steps li {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8ef;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 980px) {
  body.phase1-foundation.page-public .phase5-hero {
    --phase5-shell: calc(100vw - 16px);
    margin-top: 8px;
    padding: 16px 10px;
  }

  body.phase1-foundation.page-public .phase5-hero h1 {
    font-size: clamp(1.45rem, 7vw, 2.25rem);
    line-height: 1.02;
  }

  body.phase1-foundation.page-public .phase5-hero > p:not(.eyebrow) {
    font-size: .72rem;
    line-height: 1.28;
  }

  body.phase1-foundation.page-public .phase5-hero .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.phase1-foundation.page-public .phase5-hero .trust-strip span,
  body.phase1-foundation.page-public .phase5-hero .filter-summary :is(span, strong, a) {
    min-height: 30px;
    padding: 6px 7px;
    font-size: .58rem;
    line-height: 1.1;
  }

  body.phase1-foundation.page-public .phase5-hero .hero-search,
  body.phase1-foundation.page-public .phase5-hero .hero-search.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
  }

  body.phase1-foundation.page-public .phase5-hero .hero-search button {
    grid-column: 1 / -1;
  }

  body.phase1-foundation.page-public:is(.route-contact, .route-cities, .route-blog, .route-legal) .cards,
  body.phase1-foundation.page-public:is(.route-how-it-works, .route-about, .route-for-customers, .route-for-artists, .route-for-tutors, .route-for-students, .route-for-vendors, .route-for-suppliers, .route-trust-safety, .route-quality-guidelines) .cards,
  body.phase1-foundation.page-public:is(.route-mehndi-artists, .route-mehndi-classes, .route-henna-products, .route-designs) .cards,
  body.phase1-foundation.page-public .action-grid,
  body.phase1-foundation.page-public .trust-command-grid,
  body.phase1-foundation.page-public .trust-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.phase1-foundation.page-public .legal-assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.phase1-foundation.page-public .visual-band,
  body.phase1-foundation.page-auth .auth-split {
    grid-template-columns: 1fr;
  }

  body.phase1-foundation.page-public .action-card,
  body.phase1-foundation.page-public .trust-command-card,
  body.phase1-foundation.page-public .trust-status-card,
  body.phase1-foundation.page-public .legal-assurance-card,
  body.phase1-foundation.page-public :is(.panel, .profile-card, .product-card) {
    padding: 10px 8px;
  }

  body.phase1-foundation.page-public .action-card strong,
  body.phase1-foundation.page-public .trust-command-card h3,
  body.phase1-foundation.page-public .trust-status-card h3 {
    font-size: .72rem;
    line-height: 1.12;
  }

  body.phase1-foundation.page-public .action-card span,
  body.phase1-foundation.page-public .trust-command-card p,
  body.phase1-foundation.page-public .trust-status-card p,
  body.phase1-foundation.page-public .legal-assurance-card strong {
    font-size: .58rem;
    line-height: 1.18;
  }

  body.phase1-foundation.page-auth .phase5-auth {
    max-width: calc(100vw - 16px);
    margin-top: 8px;
    padding: 10px;
  }
}

@media (max-width: 430px) {
  body.phase1-foundation.page-public .phase5-hero {
    --phase5-shell: calc(100vw - 10px);
    padding: 13px 7px;
  }

  body.phase1-foundation.page-public .phase5-hero h1 {
    font-size: clamp(1.28rem, 7.2vw, 1.9rem);
  }

  body.phase1-foundation.page-public .phase5-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.phase1-foundation.page-public .phase5-hero .button {
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    font-size: .56rem;
  }

  body.phase1-foundation.page-public .phase5-hero .marketplace-command-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.phase1-foundation.page-public .phase5-hero .marketplace-command-card {
    min-height: 76px;
    padding: 7px 4px;
  }

  body.phase1-foundation.page-public .phase5-hero .marketplace-command-card small,
  body.phase1-foundation.page-public .phase5-hero .marketplace-command-card em {
    display: none;
  }

  body.phase1-foundation.page-public .city-cloud a,
  body.phase1-foundation.page-public .legal-link-cloud a {
    padding: 7px 8px;
    font-size: .56rem;
  }
}

html {
  scroll-padding-top: calc(var(--app-header-height) + 16px);
}

body.phase1-foundation {
  overflow-x: hidden;
  background: var(--paper);
}

body.phase1-foundation .app-main {
  isolation: isolate;
}

body.phase1-foundation .site-header {
  min-height: var(--app-header-height);
}

body.phase1-foundation .site-nav a,
body.phase1-foundation .site-footer a,
body.phase1-foundation .mobile-app-nav-item {
  text-decoration: none;
}

body.phase1-foundation .site-nav a:focus-visible,
body.phase1-foundation .site-footer a:focus-visible,
body.phase1-foundation .mobile-app-nav-item:focus-visible,
body.phase1-foundation .button:focus-visible,
body.phase1-foundation button:focus-visible,
body.phase1-foundation input:focus-visible,
body.phase1-foundation select:focus-visible,
body.phase1-foundation textarea:focus-visible {
  outline: 3px solid rgba(217, 180, 37, .7);
  outline-offset: 3px;
}

body.phase1-foundation .button,
body.phase1-foundation button.button {
  min-height: var(--touch);
  border-radius: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

body.phase1-foundation .button.ghost {
  background: #fffaf3;
}

body.page-public .page-hero,
body.page-auth .page-hero {
  width: var(--app-shell);
  max-width: var(--app-shell);
  padding: clamp(34px, 5vw, 66px) 0 clamp(20px, 3vw, 34px);
  margin-inline: auto;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

body.page-public .page-hero .eyebrow,
body.page-auth .page-hero .eyebrow,
body.phase1-foundation .section-head .eyebrow {
  margin-bottom: 0;
  color: var(--red);
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
}

body.page-public .page-hero h1,
body.page-auth .page-hero h1 {
  width: min(100%, calc(100vw - 28px));
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  line-height: 1.04;
  text-align: center;
  overflow-wrap: anywhere;
}

body.page-public .page-hero > p:not(.eyebrow),
body.page-auth .page-hero > p:not(.eyebrow) {
  width: min(100%, calc(100vw - 28px));
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

body.phase1-foundation .section {
  width: 100%;
}

body.phase1-foundation .section > .section-head,
body.phase1-foundation .section-head {
  width: var(--app-shell);
  max-width: var(--app-shell);
  margin-inline: auto;
  text-align: center;
}

body.phase1-foundation .section-head h2 {
  max-width: 940px;
  margin-inline: auto;
  font-size: clamp(1.85rem, 4vw, 3.65rem);
  line-height: 1.06;
}

body.phase1-foundation .section-lead,
body.phase1-foundation .section-head > p:not(.eyebrow) {
  max-width: 780px;
  margin-inline: auto;
  color: var(--muted);
  font-weight: 750;
}

body.phase1-foundation .hero-search,
body.phase1-foundation .form-card,
body.phase1-foundation .panel,
body.phase1-foundation .profile-card,
body.phase1-foundation .product-card,
body.phase1-foundation .pricing-card,
body.phase1-foundation .role-card,
body.phase1-foundation .gallery-item-card,
body.phase1-foundation .customer-request-card {
  border-radius: 10px;
}

body.page-public .hero-search,
body.page-auth .hero-search {
  width: min(100%, 1020px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(234, 218, 198, .95);
  border-radius: 10px;
  background: rgba(255, 250, 243, .9);
  box-shadow: 0 18px 44px rgba(61, 35, 18, .08);
}

body.page-public .hero-search.compact {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

body.page-public .hero-search input,
body.page-public .hero-search select,
body.page-public .hero-search button,
body.page-auth .hero-search input,
body.page-auth .hero-search select,
body.page-auth .hero-search button {
  min-width: 0;
}

body.phase1-foundation .filter-summary,
body.phase1-foundation .trust-strip,
body.phase1-foundation .intent-chips,
body.phase1-foundation .hero-actions,
body.phase1-foundation .card-actions,
body.phase1-foundation .result-toolbar-actions {
  justify-content: center;
}

body.phase1-foundation .trust-strip,
body.phase1-foundation .intent-chips,
body.phase1-foundation .filter-summary {
  max-width: var(--app-shell);
  margin-inline: auto;
}

body.phase1-foundation .filter-summary span,
body.phase1-foundation .filter-summary strong,
body.phase1-foundation .filter-summary a,
body.phase1-foundation .trust-strip span,
body.phase1-foundation .intent-chips a {
  border-radius: 999px;
  text-align: center;
  line-height: 1.18;
}

body.phase1-foundation .cards,
body.phase1-foundation .role-grid,
body.phase1-foundation .pricing-grid,
body.phase1-foundation .gallery-grid,
body.phase1-foundation .check-grid,
body.phase1-foundation .feature-stack,
body.phase1-foundation .empty-recovery-grid {
  width: var(--app-shell);
  max-width: var(--app-shell);
  margin-inline: auto;
}

body.phase1-foundation .cards,
body.phase1-foundation .role-grid,
body.phase1-foundation .pricing-grid,
body.phase1-foundation .check-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

body.phase1-foundation .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

body.phase1-foundation .split,
body.phase1-foundation .grid-two,
body.phase1-foundation .visual-band {
  width: var(--app-shell);
  max-width: var(--app-shell);
  margin-inline: auto;
}

body.phase1-foundation .profile-card,
body.phase1-foundation .product-card,
body.phase1-foundation .pricing-card,
body.phase1-foundation .panel {
  overflow: hidden;
}

body.phase1-foundation .profile-card h3,
body.phase1-foundation .product-card h3,
body.phase1-foundation .pricing-card h2,
body.phase1-foundation .panel h3 {
  line-height: 1.16;
}

body.phase1-foundation .profile-card p,
body.phase1-foundation .product-card p,
body.phase1-foundation .pricing-card p,
body.phase1-foundation .panel p {
  line-height: 1.45;
}

body.phase1-foundation .profile-card .avatar,
body.phase1-foundation .product-card .product-image {
  box-shadow: 0 10px 24px rgba(61, 35, 18, .08);
}

body.phase1-foundation .marketplace-command-strip {
  width: min(100%, 1040px);
  margin-inline: auto;
}

body.phase1-foundation .marketplace-command-card {
  border-radius: 10px;
}

body.phase1-foundation .faq-list details,
body.phase1-foundation details {
  border-radius: 10px;
}

body.phase1-foundation .faq-list summary,
body.phase1-foundation details summary {
  cursor: pointer;
}

body.phase1-foundation .seo-reader-copy,
body.phase1-foundation .seo-support-content {
  max-width: var(--app-shell);
  margin-inline: auto;
}

body.phase1-foundation .seo-support-content {
  border-top: 1px solid rgba(234, 218, 198, .8);
}

body.phase1-foundation .site-footer {
  position: relative;
  overflow: hidden;
}

body.phase1-foundation .footer-grid,
body.phase1-foundation .footer-bottom {
  position: relative;
  z-index: 1;
}

body.phase1-foundation .footer-bottom {
  text-align: center;
}

@media (min-width: 901px) {
  body.phase1-foundation .site-nav.open {
    display: flex;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: calc(var(--app-mobile-header-height) + 12px);
  }

  body.phase1-foundation {
    padding-top: var(--app-mobile-header-height);
    padding-bottom: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom));
  }

  body.phase1-foundation .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: var(--app-mobile-header-height);
    z-index: 1000;
    background: rgba(255, 249, 240, .98);
    box-shadow: 0 10px 26px rgba(61, 35, 18, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    justify-content: space-between;
    gap: 10px;
  }

  body.phase1-foundation .brand img {
    max-height: 54px;
    width: auto;
    max-width: 190px;
  }

  body.phase1-foundation .nav-toggle {
    min-height: 44px;
    border-radius: 8px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  body.phase1-foundation .site-nav {
    position: fixed;
    top: calc(var(--app-mobile-header-height) + 8px);
    left: 12px;
    right: 12px;
    z-index: 1001;
    max-height: calc(100vh - var(--app-mobile-header-height) - 24px);
    overflow: auto;
    border: 1px solid rgba(234, 218, 198, .92);
    border-radius: 12px;
    background: rgba(255, 250, 243, .98);
    box-shadow: 0 22px 50px rgba(61, 35, 18, .18);
  }

  body.phase1-foundation .site-nav.open {
    display: grid;
    gap: 6px;
    padding: 10px;
  }
}

@media (max-width: 760px) {
  :root {
    --app-shell: min(560px, calc(100vw - 18px));
    --app-shell-wide: min(560px, calc(100vw - 18px));
  }

  html,
  body.phase1-foundation {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.phase1-foundation *,
  body.phase1-foundation *::before,
  body.phase1-foundation *::after {
    box-sizing: border-box;
  }

  body.page-public .page-hero,
  body.page-auth .page-hero {
    width: var(--app-shell);
    max-width: var(--app-shell);
    padding: 28px 0 20px;
    gap: 10px;
    overflow: hidden;
  }

  body.page-public .page-hero h1,
  body.page-auth .page-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.26rem, 6vw, 1.82rem);
    line-height: 1.08;
    text-wrap: balance;
    overflow-wrap: normal;
  }

  body.page-public .page-hero > p:not(.eyebrow),
  body.page-auth .page-hero > p:not(.eyebrow) {
    width: min(100%, calc(100vw - 32px));
    max-width: min(100%, calc(100vw - 32px));
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    font-size: .82rem;
    line-height: 1.36;
    overflow: visible;
    overflow-wrap: anywhere;
  }

  body.phase1-foundation .section {
    padding-left: 0;
    padding-right: 0;
  }

  body.phase1-foundation .section-head h2 {
    font-size: clamp(1.35rem, 6.6vw, 1.86rem);
  }

  body.phase1-foundation .section-lead,
  body.phase1-foundation .section-head > p:not(.eyebrow) {
    font-size: .86rem;
    line-height: 1.42;
  }

  body.page-public .hero-search,
  body.page-auth .hero-search {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
    border-radius: 9px;
    overflow: hidden;
  }

  body.page-public:not(.page-home) .hero-search,
  body.page-auth .hero-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-public:not(.page-home) .hero-search button[type="submit"],
  body.page-auth .hero-search button[type="submit"] {
    grid-column: 1 / -1;
  }

  body.page-public .hero-search.product-search,
  body.page-public .hero-search.discovery-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-public .hero-search input,
  body.page-public .hero-search select,
  body.page-public .hero-search button,
  body.page-auth .hero-search input,
  body.page-auth .hero-search select,
  body.page-auth .hero-search button {
    min-height: 34px;
    padding: 5px 6px;
    font-size: .56rem;
    border-radius: 7px;
  }

  body.phase1-foundation .filter-summary,
  body.phase1-foundation .trust-strip,
  body.phase1-foundation .intent-chips,
  body.phase1-foundation .hero-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
    overflow: hidden;
  }

  body.page-public:not(.page-home) .filter-summary,
  body.page-public:not(.page-home) .trust-strip,
  body.page-public:not(.page-home) .intent-chips,
  body.page-public:not(.page-home) .hero-actions,
  body.page-auth .hero-actions {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }

  body.phase1-foundation .filter-summary span,
  body.phase1-foundation .filter-summary strong,
  body.phase1-foundation .filter-summary a,
  body.phase1-foundation .trust-strip span,
  body.phase1-foundation .intent-chips a,
  body.phase1-foundation .hero-actions .button {
    min-width: 0;
    padding: 7px 4px;
    font-size: .5rem;
    line-height: 1.08;
    white-space: normal;
  }

  body.page-public:not(.page-home) .filter-summary span,
  body.page-public:not(.page-home) .filter-summary strong,
  body.page-public:not(.page-home) .filter-summary a,
  body.page-public:not(.page-home) .trust-strip span,
  body.page-public:not(.page-home) .intent-chips a,
  body.page-public:not(.page-home) .hero-actions .button,
  body.page-auth .hero-actions .button {
    flex: 1 1 calc(50% - 6px);
    max-width: 100%;
  }

  body.phase1-foundation .cards,
  body.phase1-foundation .role-grid,
  body.phase1-foundation .pricing-grid,
  body.phase1-foundation .gallery-grid,
  body.phase1-foundation .check-grid {
    width: var(--app-shell);
    max-width: var(--app-shell);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: hidden;
  }

  body.phase1-foundation .profile-card,
  body.phase1-foundation .product-card,
  body.phase1-foundation .pricing-card,
  body.phase1-foundation .role-card,
  body.phase1-foundation .panel,
  body.phase1-foundation .gallery-item-card {
    padding: 10px 8px;
    border-radius: 8px;
  }

  body.phase1-foundation .profile-card h3,
  body.phase1-foundation .product-card h3,
  body.phase1-foundation .pricing-card h2,
  body.phase1-foundation .panel h3 {
    font-size: .78rem;
    line-height: 1.12;
  }

  body.phase1-foundation .profile-card p,
  body.phase1-foundation .product-card p,
  body.phase1-foundation .pricing-card p,
  body.phase1-foundation .panel p,
  body.phase1-foundation .meta {
    font-size: .62rem;
    line-height: 1.25;
  }

  body.phase1-foundation .badge {
    padding: 4px 7px;
    font-size: .5rem;
  }

  body.phase1-foundation .card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.phase1-foundation .card-actions .button,
  body.phase1-foundation .button.small,
  body.phase1-foundation .button.tiny {
    min-height: 32px;
    padding: 6px 7px;
    font-size: .56rem;
  }

  body.phase1-foundation .split,
  body.phase1-foundation .grid-two,
  body.phase1-foundation .visual-band {
    width: var(--app-shell);
    max-width: var(--app-shell);
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: hidden;
  }

  body.phase1-foundation .mobile-search-coach,
  body.phase1-foundation .pricing-decision-strip,
  body.phase1-foundation .plan-recommender,
  body.phase1-foundation .lead-next-steps,
  body.phase1-foundation .request-booking-stepper,
  body.phase1-foundation .request-match-strip,
  body.phase1-foundation .profile-decision-flow {
    width: var(--app-shell);
    max-width: var(--app-shell);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
  }

  body.page-public:not(.page-home) .mobile-search-coach,
  body.page-public:not(.page-home) .marketplace-command-strip,
  body.page-public:not(.page-home) .lead-next-steps,
  body.page-public:not(.page-home) .request-booking-stepper,
  body.page-public:not(.page-home) .request-match-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.phase1-foundation .pricing-decision-strip,
  body.phase1-foundation .plan-recommender {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.phase1-foundation .mobile-search-coach article,
  body.phase1-foundation .pricing-decision-strip article,
  body.phase1-foundation .plan-recommender article,
  body.phase1-foundation .lead-next-steps article,
  body.phase1-foundation .request-booking-stepper article,
  body.phase1-foundation .request-match-strip article,
  body.phase1-foundation .profile-decision-flow article {
    min-width: 0;
    padding: 9px 6px;
    border-radius: 8px;
  }

  body.phase1-foundation .mobile-search-coach strong,
  body.phase1-foundation .pricing-decision-strip strong,
  body.phase1-foundation .plan-recommender strong,
  body.phase1-foundation .lead-next-steps strong,
  body.phase1-foundation .request-booking-stepper strong,
  body.phase1-foundation .request-match-strip strong,
  body.phase1-foundation .profile-decision-flow strong {
    font-size: .62rem;
    line-height: 1.12;
  }

  body.phase1-foundation .mobile-search-coach small,
  body.phase1-foundation .pricing-decision-strip small,
  body.phase1-foundation .plan-recommender small,
  body.phase1-foundation .lead-next-steps small,
  body.phase1-foundation .request-booking-stepper small,
  body.phase1-foundation .request-match-strip small,
  body.phase1-foundation .profile-decision-flow small {
    font-size: .5rem;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.phase1-foundation .visual-card,
  body.phase1-foundation .visual-card img,
  body.phase1-foundation .visual-card video {
    min-height: 210px;
  }

  body.phase1-foundation .marketplace-command-strip {
    width: var(--app-shell);
    max-width: var(--app-shell);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
  }

  body.phase1-foundation .marketplace-command-card {
    min-height: 92px;
    padding: 9px 6px;
  }

  body.phase1-foundation .marketplace-command-card span,
  body.phase1-foundation .marketplace-command-card em {
    font-size: .48rem;
  }

  body.phase1-foundation .marketplace-command-card strong {
    font-size: .66rem;
    line-height: 1.1;
  }

  body.phase1-foundation .marketplace-command-card small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .54rem;
    line-height: 1.15;
  }

  body.phase1-foundation .pricing-compare {
    width: var(--app-shell);
    margin-inline: auto;
  }

  body.phase1-foundation .form-card label {
    gap: 5px;
  }

  body.phase1-foundation .form-card input,
  body.phase1-foundation .form-card textarea,
  body.phase1-foundation .form-card select {
    min-height: 38px;
    font-size: .82rem;
  }

  body.phase1-foundation .mobile-app-nav {
    min-height: var(--app-bottom-nav-height);
  }
}

@media (max-width: 520px) {
  body.page-public:not(.page-home) .page-hero,
  body.page-auth .page-hero,
  body.page-public:not(.page-home) .cards,
  body.page-public:not(.page-home) .role-grid,
  body.page-public:not(.page-home) .pricing-grid,
  body.page-public:not(.page-home) .gallery-grid,
  body.page-public:not(.page-home) .check-grid,
  body.page-public:not(.page-home) .split,
  body.page-public:not(.page-home) .grid-two,
  body.page-public:not(.page-home) .visual-band,
  body.page-public:not(.page-home) .mobile-search-coach,
  body.page-public:not(.page-home) .marketplace-command-strip,
  body.page-public:not(.page-home) .lead-next-steps,
  body.page-public:not(.page-home) .request-booking-stepper,
  body.page-public:not(.page-home) .request-match-strip {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: 1fr !important;
  }

  body.page-public:not(.page-home) .hero-search,
  body.page-public:not(.page-home) .hero-search.compact,
  body.page-public:not(.page-home) .hero-search.product-search,
  body.page-public:not(.page-home) .hero-search.discovery-search,
  body.page-auth .hero-search {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  body.page-public:not(.page-home) .filter-summary,
  body.page-public:not(.page-home) .trust-strip,
  body.page-public:not(.page-home) .intent-chips,
  body.page-public:not(.page-home) .hero-actions,
  body.page-auth .hero-actions {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-public:not(.page-home) .filter-summary span,
  body.page-public:not(.page-home) .filter-summary strong,
  body.page-public:not(.page-home) .filter-summary a,
  body.page-public:not(.page-home) .trust-strip span,
  body.page-public:not(.page-home) .intent-chips a,
  body.page-public:not(.page-home) .hero-actions .button,
  body.page-auth .hero-actions .button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 390px) {
  body.page-public .hero-search,
  body.page-auth .hero-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-public .hero-search input,
  body.page-public .hero-search select,
  body.page-public .hero-search button,
  body.page-auth .hero-search input,
  body.page-auth .hero-search select,
  body.page-auth .hero-search button {
    font-size: .5rem;
    padding-left: 4px;
    padding-right: 4px;
  }

  body.phase1-foundation .filter-summary span,
  body.phase1-foundation .filter-summary strong,
  body.phase1-foundation .filter-summary a,
  body.phase1-foundation .trust-strip span,
  body.phase1-foundation .intent-chips a,
  body.phase1-foundation .hero-actions .button {
    font-size: .44rem;
    padding-left: 2px;
    padding-right: 2px;
  }

  body.phase1-foundation .cards,
  body.phase1-foundation .role-grid,
  body.phase1-foundation .pricing-grid,
  body.phase1-foundation .gallery-grid,
  body.phase1-foundation .check-grid {
    gap: 5px;
  }
}

@media (max-width: 760px) {
  body.page-public:not(.page-home) .hero-search,
  body.page-public:not(.page-home) .hero-search.compact,
  body.page-public:not(.page-home) .hero-search.product-search,
  body.page-public:not(.page-home) .hero-search.discovery-search,
  body.page-auth .hero-search {
    grid-template-columns: 1fr !important;
  }

  body.page-public:not(.page-home) .hero-search button[type="submit"],
  body.page-auth .hero-search button[type="submit"] {
    grid-column: 1 / -1 !important;
  }

  body.page-public:not(.page-home) .mobile-search-coach,
  body.page-public:not(.page-home) .marketplace-command-strip,
  body.page-public:not(.page-home) .lead-next-steps,
  body.page-public:not(.page-home) .request-booking-stepper,
  body.page-public:not(.page-home) .request-match-strip {
    grid-template-columns: 1fr !important;
  }

  body.page-public:not(.page-home) .filter-summary,
  body.page-public:not(.page-home) .trust-strip,
  body.page-public:not(.page-home) .intent-chips,
  body.page-public:not(.page-home) .hero-actions,
  body.page-auth .hero-actions {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: hidden !important;
  }
}

@media (max-width: 760px) {
  body.phase1-foundation.page-public:not(.page-home) .filter-summary,
  body.phase1-foundation.page-public:not(.page-home) .trust-strip,
  body.phase1-foundation.page-public:not(.page-home) .intent-chips {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.phase1-foundation.page-public:not(.page-home) .filter-summary > *,
  body.phase1-foundation.page-public:not(.page-home) .trust-strip > *,
  body.phase1-foundation.page-public:not(.page-home) .intent-chips > * {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    place-items: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }

  body.phase1-foundation.page-public:not(.page-home) .visual-band,
  body.phase1-foundation.page-public:not(.page-home) .visual-band > *,
  body.phase1-foundation.page-public:not(.page-home) .visual-card,
  body.phase1-foundation.page-public:not(.page-home) .visual-media {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.phase1-foundation.page-public:not(.page-home) .trust-chip-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
  }

  body.phase1-foundation.page-public:not(.page-home) .trust-chip-row span {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    justify-content: center !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
  }
}

/* Phase 2: customer-first discovery pages for Artists, Tutors, Products, Gallery. */
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) {
  --discovery-accent: var(--red);
  --discovery-soft: rgba(255, 250, 243, .9);
}

body.phase1-foundation.route-tutors {
  --discovery-accent: #dca10a;
}

body.phase1-foundation.route-products {
  --discovery-accent: #16843d;
}

body.phase1-foundation.route-gallery {
  --discovery-accent: #ec6b2e;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero {
  position: relative;
  isolation: isolate;
  width: var(--app-shell-wide);
  max-width: var(--app-shell-wide);
  margin-top: clamp(14px, 2.2vw, 26px);
  padding: clamp(30px, 5vw, 58px) clamp(14px, 3.4vw, 46px);
  border: 1px solid rgba(231, 211, 186, .82);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, .94), rgba(255, 242, 223, .86)),
    #fff8ee;
  box-shadow: 0 22px 62px rgba(87, 49, 24, .09);
  overflow: hidden;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero::before,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero::before {
  z-index: -3;
  background-position: center;
  background-size: cover;
  opacity: .18;
  transform: scale(1.02);
}

body.phase1-foundation.route-artists .discovery-page-hero::before {
  background-image: url("../img/premium/book-artist.webp");
}

body.phase1-foundation.route-tutors .discovery-page-hero::before {
  background-image: url("../img/premium/learn-mehndi.webp");
}

body.phase1-foundation.route-products .discovery-page-hero::before {
  background-image: url("../img/premium/henna-products.webp");
}

body.phase1-foundation.route-gallery .discovery-page-hero::before {
  background-image: url("../img/premium/gallery-cover.webp");
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero::after {
  z-index: -2;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .78), transparent 36%),
    linear-gradient(90deg, rgba(255, 250, 243, .98) 0%, rgba(255, 250, 243, .9) 56%, rgba(255, 250, 243, .68) 100%);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .eyebrow {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: var(--discovery-accent);
  box-shadow: 0 10px 28px rgba(87, 49, 24, .08);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.15rem, 4.7vw, 4.6rem);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero > p:not(.eyebrow) {
  max-width: 820px;
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
  color: #4f3b30;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-top: 6px;
  border-radius: 8px;
  border-color: rgba(231, 211, 186, .9);
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 18px 46px rgba(87, 49, 24, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search input,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search select {
  border-color: rgba(217, 195, 166, .92);
  background: #fffdfa;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search button {
  background: var(--discovery-accent);
  box-shadow: 0 14px 28px rgba(113, 16, 18, .16);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips {
  width: min(100%, 980px);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary > *,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip > *,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips > * {
  border-color: rgba(231, 211, 186, .82);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 20px rgba(87, 49, 24, .06);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-strip {
  width: min(100%, 1040px);
  max-width: 1040px;
  gap: 10px;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card {
  min-height: 136px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 249, 239, .92));
  border-top: 4px solid var(--discovery-accent);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card span,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card em {
  color: var(--discovery-accent);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-results-section {
  padding-top: clamp(32px, 5vw, 58px);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .discovery-results-section .cards {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  align-items: stretch;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card,
body.phase1-foundation.route-gallery .gallery-item-card {
  border-radius: 8px;
  border-color: rgba(231, 211, 186, .9);
  box-shadow: 0 18px 46px rgba(87, 49, 24, .08);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card:hover,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card:hover,
body.phase1-foundation.route-gallery .gallery-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 13, 17, .34);
  box-shadow: 0 22px 56px rgba(87, 49, 24, .12);
}

body.phase1-foundation:is(.route-artists, .route-tutors) .profile-card {
  justify-items: center;
  text-align: center;
}

body.phase1-foundation:is(.route-artists, .route-tutors) .profile-card .avatar {
  width: 72px;
  height: 72px;
  font-size: 1.25rem;
  box-shadow: 0 14px 34px rgba(157, 13, 17, .13);
}

body.phase1-foundation.route-products .product-card .product-image {
  min-height: 150px;
  border-radius: 8px;
  overflow: hidden;
}

body.phase1-foundation.route-products .product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card h3,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card h3 {
  margin-bottom: 0;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card > p:not(.meta):not(.rating-line),
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card > p:not(.meta) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-signal-row,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .trust-chip-row {
  width: 100%;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .card-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .card-actions .button {
  min-width: 0;
  width: 100%;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

body.phase1-foundation.route-gallery .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

body.phase1-foundation.route-gallery .gallery-item-card {
  overflow: hidden;
  background: #fffdfa;
}

body.phase1-foundation.route-gallery .gallery-item {
  border-radius: 8px;
  overflow: hidden;
}

body.phase1-foundation.route-gallery .gallery-item img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

body.phase1-foundation.route-gallery .gallery-card-meta {
  display: grid;
  gap: 6px;
  text-align: center;
}

body.phase1-foundation.route-gallery .gallery-item-card .card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .visual-band {
  border-radius: 8px;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(231, 211, 186, .82);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .94), rgba(255, 247, 235, .92));
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .visual-card {
  border-radius: 8px;
  overflow: hidden;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar {
  border-radius: 8px;
  border: 1px solid rgba(231, 211, 186, .86);
  background:
    linear-gradient(180deg, #fffdfa, #fff8ef);
  box-shadow: 0 14px 36px rgba(87, 49, 24, .07);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .provider-prompt-strip,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .fast-lane {
  border-radius: 8px;
  border-color: rgba(231, 211, 186, .86);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(255, 241, 221, .9));
}

@media (max-width: 760px) {
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-top: 10px;
    padding: 18px 7px 16px !important;
    gap: 9px;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero::before {
    opacity: .13;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .eyebrow {
    min-height: 24px;
    padding: 5px 9px;
    font-size: .62rem;
    white-space: nowrap;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero h1 {
    width: min(100%, calc(100vw - 46px)) !important;
    max-width: min(100%, calc(100vw - 46px)) !important;
    font-size: clamp(1.05rem, 5.2vw, 1.48rem) !important;
    line-height: 1.08;
    overflow-wrap: anywhere !important;
    word-break: normal;
    hyphens: auto;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero > p:not(.eyebrow) {
    width: min(100%, calc(100vw - 50px)) !important;
    max-width: min(100%, calc(100vw - 50px)) !important;
    font-size: .6rem !important;
    line-height: 1.28 !important;
    text-align: center;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    padding: 7px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search input,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search select,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search button {
    min-height: 38px !important;
    padding: 5px 6px !important;
    font-size: .58rem !important;
    border-radius: 7px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search button[type="submit"] {
    grid-column: 1 / -1 !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    flex-direction: initial !important;
    flex-wrap: initial !important;
    gap: 5px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary > *:first-child {
    grid-column: 1 / -1;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary > *,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip > *,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips > * {
    min-height: 30px !important;
    padding: 5px 6px !important;
    font-size: .5rem !important;
    line-height: 1.08 !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-strip {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card {
    min-width: 0 !important;
    min-height: 98px !important;
    padding: 8px 5px !important;
    text-align: center;
    gap: 4px;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card span,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card em {
    justify-self: center;
    font-size: .42rem !important;
    padding: 3px 5px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card strong {
    font-size: .54rem !important;
    line-height: 1.08 !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card small {
    display: none;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .discovery-results-section .cards,
  body.phase1-foundation.route-gallery .gallery-grid {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card,
  body.phase1-foundation.route-gallery .gallery-item-card {
    min-width: 0 !important;
    padding: 9px 6px !important;
    gap: 6px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors) .profile-card .avatar {
    width: 44px;
    height: 44px;
    font-size: .82rem;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card h3,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card h3,
  body.phase1-foundation.route-gallery .gallery-item-card strong {
    font-size: .67rem !important;
    line-height: 1.1 !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card p,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card p,
  body.phase1-foundation.route-gallery .gallery-card-meta {
    font-size: .54rem !important;
    line-height: 1.16 !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card > p:not(.meta):not(.rating-line),
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card > p:not(.meta) {
    -webkit-line-clamp: 2;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .quality-meter,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .trust-chip-row,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-signal-row {
    display: none !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .card-actions {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .card-actions .button,
  body.phase1-foundation.route-gallery .gallery-item-card .button {
    min-height: 28px !important;
    padding: 5px 6px !important;
    font-size: .5rem !important;
    border-radius: 7px !important;
  }

  body.phase1-foundation.route-products .product-card .product-image {
    min-height: 74px;
  }

  body.phase1-foundation.route-gallery .gallery-item img {
    aspect-ratio: 1 / 1.08;
  }

  body.phase1-foundation.route-gallery .gallery-item-card .card-actions {
    grid-template-columns: 1fr !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    gap: 8px !important;
    padding: 10px 8px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar strong {
    font-size: .72rem;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar small {
    font-size: .58rem;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar-actions .button {
    min-width: 0;
    width: 100%;
    padding: 6px 5px;
    font-size: .48rem;
  }
}

@media (max-width: 390px) {
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search input,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search select,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search button {
    font-size: .52rem !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card strong {
    font-size: .48rem !important;
  }
}

@media (max-width: 760px) {
  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary,
  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip,
  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary > *,
  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip > *,
  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: initial !important;
  }

  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .mobile-search-coach {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .mobile-search-coach article {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 7px 5px !important;
  }

  body.phase1-foundation.page-public:not(.page-home).route-gallery .intent-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
  }
}

/* Phase 3: customer-first detail and conversion pages. */
body.phase1-foundation.page-public:is(.route-profile, .route-product) {
  --detail-shell: min(1180px, calc(100vw - 32px));
  --detail-card-border: rgba(157, 13, 17, .17);
  overflow-x: clip;
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .app-main {
  overflow-x: clip;
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-contact-bar,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-nav-strip,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .section {
  width: var(--detail-shell);
  max-width: var(--detail-shell);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--detail-card-border);
  border-radius: 8px;
  padding: clamp(22px, 3.5vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, .96), rgba(255, 255, 255, .92)),
    url("../img/premium/bridal-mehndi.webp") center / cover no-repeat;
  box-shadow: 0 24px 58px rgba(68, 44, 22, .12);
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(157, 13, 17, .11), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(247, 173, 38, .16), transparent 30%);
}

body.phase1-foundation.page-public.route-product .detail-hero {
  background:
    linear-gradient(135deg, rgba(255, 250, 242, .96), rgba(255, 255, 255, .88)),
    url("../img/premium/henna-products.webp") center / cover no-repeat;
}

body.phase1-foundation.page-public .profile-detail-hero {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}

body.phase1-foundation.page-public .profile-detail-hero .avatar.large {
  width: clamp(96px, 10vw, 132px);
  height: clamp(96px, 10vw, 132px);
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 34px rgba(68, 44, 22, .18);
}

body.phase1-foundation.page-public .profile-detail-hero h1,
body.phase1-foundation.page-public .product-detail-hero h1 {
  max-width: 860px;
  margin: 12px 0 8px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: .96;
  letter-spacing: 0;
}

body.phase1-foundation.page-public .detail-hero-copy > p,
body.phase1-foundation.page-public .product-detail-hero > p {
  max-width: 760px;
  margin: 0 0 8px;
  color: #423327;
  font-weight: 800;
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero .badge,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero .soft-badge {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(157, 13, 17, .2);
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

body.phase1-foundation.page-public .profile-detail-hero > .hero-actions {
  grid-column: 2;
  margin-top: 0;
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero .button,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-contact-bar .button,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .mobile-context-bar a,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .mobile-context-bar button {
  border-radius: 8px;
}

body.phase1-foundation.page-public .profile-detail-hero .profile-trust-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 900px;
}

body.phase1-foundation.page-public .profile-detail-hero .profile-trust-badges span {
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  text-align: center;
  font-size: .76rem;
  line-height: 1.12;
}

body.phase1-foundation.page-public .product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  text-align: left;
}

body.phase1-foundation.page-public .product-detail-hero .eyebrow,
body.phase1-foundation.page-public .product-detail-hero h1,
body.phase1-foundation.page-public .product-detail-hero > p {
  grid-column: 1;
}

body.phase1-foundation.page-public .product-detail-hero .hero-product-photo {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: stretch;
  width: 100%;
  min-height: 320px;
  margin: 0;
  border: 6px solid rgba(255, 255, 255, .84);
  box-shadow: 0 22px 48px rgba(68, 44, 22, .16);
}

body.phase1-foundation.page-public .product-detail-hero .hero-actions,
body.phase1-foundation.page-public .product-detail-hero .trust-strip {
  grid-column: 1 / -1;
}

body.phase1-foundation.page-public .product-detail-hero .trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.phase1-foundation.page-public .product-detail-hero .trust-strip span {
  justify-content: center;
  text-align: center;
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-contact-bar {
  width: var(--detail-shell);
  max-width: var(--detail-shell);
  border-color: rgba(157, 13, 17, .16);
  background: rgba(255, 253, 249, .97);
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-nav-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-nav-strip a,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid .panel,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .decision-mini-grid article,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .product-spec-grid div,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .verification-mini-grid article {
  border-radius: 8px;
  border-color: rgba(157, 13, 17, .14);
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-conversion-panel,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-verification-panel {
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(68, 44, 22, .08);
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid .panel {
  min-width: 0;
  min-height: 142px;
  padding: 16px;
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid h3,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid strong.big-number {
  line-height: 1.05;
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .decision-mini-grid,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .product-spec-grid,
body.phase1-foundation.page-public:is(.route-profile, .route-product) .verification-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.phase1-foundation.page-public:is(.route-profile, .route-product) .form-card {
  border-radius: 8px;
}

@media (max-width: 980px) {
  body.phase1-foundation.page-public:is(.route-profile, .route-product) {
    --detail-shell: min(100%, calc(100vw - 18px));
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero {
    margin-top: 10px;
    padding: 14px 10px;
  }

  body.phase1-foundation.page-public .profile-detail-hero {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    gap: 10px;
    text-align: left;
  }

  body.phase1-foundation.page-public .profile-detail-hero .avatar.large {
    width: 70px;
    height: 70px;
    border-width: 3px;
  }

  body.phase1-foundation.page-public .profile-detail-hero h1,
  body.phase1-foundation.page-public .product-detail-hero h1 {
    font-size: clamp(1.16rem, 6vw, 1.9rem) !important;
    line-height: 1.02 !important;
    margin: 6px 0 5px;
  }

  body.phase1-foundation.page-public .detail-hero-copy > p,
  body.phase1-foundation.page-public .product-detail-hero > p,
  body.phase1-foundation.page-public .profile-detail-hero .rating-line,
  body.phase1-foundation.page-public .profile-detail-hero .meta {
    font-size: .62rem !important;
    line-height: 1.2 !important;
  }

  body.phase1-foundation.page-public .profile-detail-hero .profile-trust-badges {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 8px 0;
  }

  body.phase1-foundation.page-public .profile-detail-hero .profile-trust-badges span {
    min-height: 28px;
    padding: 5px;
    font-size: .5rem;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero .hero-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 10px;
  }

  body.phase1-foundation.page-public .profile-detail-hero > .hero-actions {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero .button {
    min-width: 0;
    min-height: 34px;
    padding: 7px 5px;
    font-size: .52rem;
    line-height: 1.05;
    text-align: center;
  }

  body.phase1-foundation.page-public .product-detail-hero {
    grid-template-columns: minmax(0, 1fr) 96px !important;
    gap: 10px;
    text-align: left;
  }

  body.phase1-foundation.page-public .product-detail-hero .eyebrow,
  body.phase1-foundation.page-public .product-detail-hero h1,
  body.phase1-foundation.page-public .product-detail-hero > p {
    grid-column: 1;
  }

  body.phase1-foundation.page-public .product-detail-hero .hero-product-photo {
    grid-column: 2;
    grid-row: 1 / span 3;
    min-height: 0;
    height: 116px;
    aspect-ratio: 1 / 1.2;
    border-width: 3px;
  }

  body.phase1-foundation.page-public .product-detail-hero .hero-actions,
  body.phase1-foundation.page-public .product-detail-hero .trust-strip {
    grid-column: 1 / -1;
  }

  body.phase1-foundation.page-public .product-detail-hero .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 8px;
  }

  body.phase1-foundation.page-public .product-detail-hero .trust-strip span {
    min-height: 28px;
    padding: 5px;
    font-size: .48rem;
    line-height: 1.05;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-contact-bar {
    position: static;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px;
    padding: 9px;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-contact-bar strong {
    font-size: .75rem;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-contact-bar span {
    font-size: .58rem;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-contact-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-contact-actions .button {
    width: 100%;
    min-height: 30px;
    padding: 6px 4px;
    font-size: .48rem;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-nav-strip {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px;
    padding: 0;
    overflow: hidden;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-nav-strip a {
    min-height: 34px;
    flex: initial;
    padding: 6px 5px;
    gap: 4px;
    font-size: .52rem;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-nav-strip strong {
    min-width: 20px;
    height: 20px;
    font-size: .5rem;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-verification-panel,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-conversion-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px;
    padding: 10px;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid .panel {
    min-height: 82px;
    padding: 9px 7px;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid .badge,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .panel .eyebrow {
    font-size: .48rem;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid h3,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid strong.big-number {
    font-size: .82rem;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-kpi-grid p {
    font-size: .54rem;
    line-height: 1.18;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .decision-mini-grid,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .product-spec-grid,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .verification-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .decision-mini-grid article,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .product-spec-grid div,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .verification-mini-grid article {
    min-height: 76px;
    padding: 8px 6px;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .decision-mini-grid strong,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .product-spec-grid strong,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .verification-mini-grid strong {
    font-size: .6rem;
    line-height: 1.14;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .decision-mini-grid span,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .product-spec-grid span,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .verification-mini-grid span {
    font-size: .5rem;
    line-height: 1.16;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .section h2 {
    font-size: clamp(1.08rem, 5.8vw, 1.55rem);
    line-height: 1.08;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .section p,
  body.phase1-foundation.page-public:is(.route-profile, .route-product) .panel p {
    font-size: .62rem;
    line-height: 1.24;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }
}

@media (max-width: 430px) {
  body.phase1-foundation.page-public:is(.route-profile, .route-product) {
    --detail-shell: calc(100vw - 12px);
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero {
    padding-left: 8px;
    padding-right: 8px;
  }

  body.phase1-foundation.page-public .profile-detail-hero {
    grid-template-columns: 62px minmax(0, 1fr) !important;
  }

  body.phase1-foundation.page-public .profile-detail-hero .avatar.large {
    width: 58px;
    height: 58px;
  }

  body.phase1-foundation.page-public .profile-detail-hero .profile-trust-badges span:nth-child(n+4) {
    display: none;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .detail-hero .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.phase1-foundation.page-public .product-detail-hero {
    grid-template-columns: minmax(0, 1fr) 82px !important;
  }

  body.phase1-foundation.page-public .product-detail-hero .hero-product-photo {
    height: 104px;
  }

  body.phase1-foundation.page-public:is(.route-profile, .route-product) .profile-nav-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Phase 4: request board and pricing conversion pages. */
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) {
  --phase4-shell: min(1180px, calc(100vw - 32px));
  --phase4-line: rgba(157, 13, 17, .17);
  overflow-x: clip;
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .app-main {
  overflow-x: clip;
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .page-hero,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .section {
  width: var(--phase4-shell);
  max-width: var(--phase4-shell);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--phase4-line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 54px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, .95), rgba(255, 255, 255, .89)),
    url("../img/premium/request-board.webp") center / cover no-repeat;
  box-shadow: 0 24px 58px rgba(68, 44, 22, .12);
}

body.phase1-foundation.page-public.route-pricing .phase4-hero {
  background:
    linear-gradient(135deg, rgba(255, 250, 242, .96), rgba(255, 255, 255, .9)),
    url("../img/premium/henna-products.webp") center / cover no-repeat;
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 18%, rgba(157, 13, 17, .12), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(247, 173, 38, .15), transparent 28%);
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero h1 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.45rem, 5.5vw, 4.75rem);
  line-height: .96;
  letter-spacing: 0;
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero > p:not(.eyebrow) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: #3f3128;
  font-weight: 800;
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero .trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

body.phase1-foundation.page-public.route-pricing .phase4-hero .trust-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero .trust-strip span {
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, .9);
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero .hero-actions {
  justify-content: center;
  margin-top: 18px;
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero .marketplace-command-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .marketplace-command-card,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .lead-next-steps article,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .pricing-decision-strip article,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .plan-recommender article,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .pricing-card,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .request-tracking-card,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .request-type-card,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .request-template-card {
  border-radius: 8px;
  border-color: var(--phase4-line);
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .lead-next-steps,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .pricing-decision-strip,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .plan-recommender,
body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .request-tracking-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.phase1-foundation.page-public.route-requests .lead-next-steps article,
body.phase1-foundation.page-public.route-pricing .pricing-decision-strip article,
body.phase1-foundation.page-public.route-pricing .plan-recommender article,
body.phase1-foundation.page-public.route-requests .request-tracking-card {
  min-width: 0;
  min-height: 150px;
  padding: 16px;
}

body.phase1-foundation.page-public.route-requests .visual-band {
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--phase4-line);
  background:
    linear-gradient(135deg, rgba(255, 248, 238, .92), rgba(255, 255, 255, .95));
  box-shadow: 0 18px 42px rgba(68, 44, 22, .08);
}

body.phase1-foundation.page-public.route-requests .visual-band .visual-card {
  max-height: 360px;
  overflow: hidden;
  border-radius: 8px;
}

body.phase1-foundation.page-public.route-requests .request-form-shell {
  padding-top: 28px;
}

body.phase1-foundation.page-public.route-requests .request-form-shell > .split {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .65fr);
  gap: 18px;
  align-items: start;
}

body.phase1-foundation.page-public.route-requests .request-form-shell .form-card,
body.phase1-foundation.page-public.route-requests .request-helper-panel {
  border-radius: 8px;
  border: 1px solid var(--phase4-line);
  box-shadow: 0 18px 42px rgba(68, 44, 22, .08);
}

body.phase1-foundation.page-public.route-requests .request-form-shell .form-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

body.phase1-foundation.page-public.route-requests .request-form-shell .form-card > * {
  min-width: 0;
  max-width: 100%;
}

body.phase1-foundation.page-public.route-requests .request-booking-stepper {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.phase1-foundation.page-public.route-requests .request-booking-stepper article {
  min-height: 98px;
  border-radius: 8px;
}

body.phase1-foundation.page-public.route-requests .request-type-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

body.phase1-foundation.page-public.route-requests .request-type-card {
  min-height: 94px;
  padding: 11px 8px;
}

body.phase1-foundation.page-public.route-requests .request-template-grid,
body.phase1-foundation.page-public.route-requests .provider-response-template-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.phase1-foundation.page-public.route-requests #open-requests .empty-state,
body.phase1-foundation.page-public.route-requests .request-response-card {
  border-radius: 8px;
  border-color: var(--phase4-line);
}

body.phase1-foundation.page-public.route-requests .empty-recovery-grid,
body.phase1-foundation.page-public.route-requests .request-match-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.phase1-foundation.page-public.route-pricing .pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

body.phase1-foundation.page-public.route-pricing .pricing-card {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, .98);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(68, 44, 22, .08);
}

body.phase1-foundation.page-public.route-pricing .pricing-card h2 {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  line-height: 1.05;
}

body.phase1-foundation.page-public.route-pricing .pricing-card p,
body.phase1-foundation.page-public.route-pricing .pricing-card li,
body.phase1-foundation.page-public.route-pricing .pricing-card .trial {
  color: #4f433a;
}

body.phase1-foundation.page-public.route-pricing .pricing-card .badge {
  color: var(--red);
  background: #fff0df;
}

body.phase1-foundation.page-public.route-pricing .pricing-card .best-for {
  min-height: 84px;
}

body.phase1-foundation.page-public.route-pricing .pricing-card .check-list {
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

body.phase1-foundation.page-public.route-pricing .price-row span {
  min-height: 46px;
  display: grid;
  place-items: center;
  text-align: center;
}

body.phase1-foundation.page-public.route-pricing .pricing-compare {
  border-radius: 8px;
  border: 1px solid var(--phase4-line);
  box-shadow: 0 18px 42px rgba(68, 44, 22, .08);
}

body.phase1-foundation.page-public.route-pricing .pricing-compare table {
  min-width: 980px;
}

body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .section-head {
  text-align: center;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 980px) {
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) {
    --phase4-shell: min(100%, calc(100vw - 18px));
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero {
    margin-top: 10px;
    padding: 14px 9px;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero h1 {
    font-size: clamp(1.35rem, 6vw, 2.1rem) !important;
    line-height: 1.02 !important;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero > p:not(.eyebrow) {
    font-size: .62rem !important;
    line-height: 1.22 !important;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.phase1-foundation.page-public.route-pricing .phase4-hero .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero .trust-strip span {
    min-height: 28px;
    padding: 5px;
    font-size: .48rem;
    line-height: 1.05;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero .button {
    width: 100%;
    min-height: 34px;
    padding: 7px 5px;
    font-size: .52rem;
    line-height: 1.05;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero .marketplace-command-strip {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px;
    overflow: hidden;
    padding: 0;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .marketplace-command-card {
    min-height: 92px;
    padding: 8px 5px;
    gap: 4px;
    text-align: center;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .marketplace-command-card span,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .marketplace-command-card em {
    justify-self: center;
    font-size: .42rem;
    padding: 3px 5px;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .marketplace-command-card strong {
    font-size: .54rem;
    line-height: 1.08;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .marketplace-command-card small {
    display: none;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .lead-next-steps,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .pricing-decision-strip,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .plan-recommender,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .request-tracking-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px;
    overflow: hidden;
  }

  body.phase1-foundation.page-public.route-requests .lead-next-steps article,
  body.phase1-foundation.page-public.route-pricing .pricing-decision-strip article,
  body.phase1-foundation.page-public.route-pricing .plan-recommender article,
  body.phase1-foundation.page-public.route-requests .request-tracking-card {
    min-height: 88px;
    padding: 8px 5px;
    gap: 4px;
    text-align: center;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .lead-next-steps strong,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .pricing-decision-strip strong,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .plan-recommender strong,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .request-tracking-card strong {
    font-size: .54rem;
    line-height: 1.08;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .lead-next-steps small,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .pricing-decision-strip small,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .plan-recommender small,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .request-tracking-card span {
    font-size: .46rem;
    line-height: 1.12;
  }

  body.phase1-foundation.page-public.route-requests .visual-band {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 8px;
    padding: 9px;
  }

  body.phase1-foundation.page-public.route-requests .visual-band .visual-card {
    max-height: none;
    aspect-ratio: 1 / 1.2;
  }

  body.phase1-foundation.page-public.route-requests .visual-band h2 {
    font-size: .95rem;
  }

  body.phase1-foundation.page-public.route-requests .visual-band p {
    font-size: .55rem;
    line-height: 1.16;
  }

  body.phase1-foundation.page-public.route-requests .visual-band .trust-strip {
    display: none;
  }

  body.phase1-foundation.page-public.route-requests .request-form-shell > .split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.phase1-foundation.page-public.route-requests .request-booking-stepper {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px;
  }

  body.phase1-foundation.page-public.route-requests .request-booking-stepper article {
    min-height: 66px;
    padding: 6px 4px;
  }

  body.phase1-foundation.page-public.route-requests .request-booking-stepper strong {
    font-size: .5rem;
  }

  body.phase1-foundation.page-public.route-requests .request-booking-stepper small {
    display: none;
  }

  body.phase1-foundation.page-public.route-requests .request-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px;
  }

  body.phase1-foundation.page-public.route-requests .request-type-card {
    min-height: 58px;
    padding: 6px 3px;
  }

  body.phase1-foundation.page-public.route-requests .request-type-card strong {
    font-size: .48rem;
    line-height: 1.05;
  }

  body.phase1-foundation.page-public.route-requests .request-type-card small {
    display: none;
  }

  body.phase1-foundation.page-public.route-requests .request-template-grid,
  body.phase1-foundation.page-public.route-requests .provider-response-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  body.phase1-foundation.page-public.route-requests .form-grid.compact-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
  }

  body.phase1-foundation.page-public.route-requests .request-helper-panel {
    position: static;
  }

  body.phase1-foundation.page-public.route-requests .empty-recovery-grid,
  body.phase1-foundation.page-public.route-requests .request-match-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.phase1-foundation.page-public.route-requests .empty-recovery-grid article,
  body.phase1-foundation.page-public.route-requests .request-match-strip span {
    padding: 7px 5px;
    font-size: .5rem;
    line-height: 1.12;
  }

  body.phase1-foundation.page-public.route-pricing .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
  }

  body.phase1-foundation.page-public.route-pricing .pricing-card {
    padding: 9px 7px;
    background: rgba(255, 255, 255, .99) !important;
  }

  body.phase1-foundation.page-public.route-pricing .pricing-card h2 {
    color: var(--ink) !important;
    font-size: .78rem;
    line-height: 1.06;
  }

  body.phase1-foundation.page-public.route-pricing .pricing-card p {
    color: #3f3128 !important;
    font-size: .52rem;
    line-height: 1.15;
  }

  body.phase1-foundation.page-public.route-pricing .pricing-card .best-for {
    min-height: 0;
  }

  body.phase1-foundation.page-public.route-pricing .price-row {
    gap: 4px;
    margin: 8px 0;
  }

  body.phase1-foundation.page-public.route-pricing .price-row span {
    min-height: 30px;
    padding: 5px 4px;
    font-size: .5rem;
  }

  body.phase1-foundation.page-public.route-pricing .pricing-card .check-list {
    max-height: 126px;
  }

  body.phase1-foundation.page-public.route-pricing .pricing-card .check-list li {
    font-size: .48rem;
    line-height: 1.14;
  }

  body.phase1-foundation.page-public.route-pricing .pricing-compare {
    overflow-x: auto;
  }

  body.phase1-foundation.page-public.route-pricing .pricing-compare table {
    min-width: 760px;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .section h2 {
    font-size: clamp(1.08rem, 5.8vw, 1.55rem);
    line-height: 1.08;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .section p,
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .panel p {
    font-size: .62rem;
    line-height: 1.24;
  }
}

@media (max-width: 430px) {
  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) {
    --phase4-shell: calc(100vw - 12px);
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero {
    padding-left: 8px;
    padding-right: 8px;
  }

  body.phase1-foundation.page-public:is(.route-requests, .route-pricing) .phase4-hero .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.phase1-foundation.page-public.route-pricing .phase4-hero .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.phase1-foundation.page-public.route-requests .request-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Phase 6: logged-in dashboard, onboarding, admin, and receipt workspace polish. */
body.phase1-foundation:is(.page-dashboard, .page-admin) {
  --phase6-shell: min(1380px, calc(100vw - 28px));
  --phase6-sidebar: minmax(210px, 268px);
  --phase6-line: rgba(122, 70, 28, .18);
  --phase6-soft: rgba(255, 247, 236, .84);
  --phase6-card: rgba(255, 255, 255, .96);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(157, 13, 17, .08), transparent 26%),
    linear-gradient(180deg, #fff9f0 0%, #fff6ea 48%, #fffaf3 100%);
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) main {
  width: var(--phase6-shell);
  max-width: var(--phase6-shell);
  margin-inline: auto;
  padding: 18px 0 96px;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard {
  display: grid;
  grid-template-columns: var(--phase6-sidebar) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  width: 100%;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-side {
  position: sticky;
  top: calc(var(--app-header-height) + 16px);
  display: grid;
  gap: 4px;
  max-height: calc(100dvh - var(--app-header-height) - 32px);
  overflow: auto;
  border: 1px solid var(--phase6-line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 252, 247, .96);
  box-shadow: 0 18px 45px rgba(82, 42, 18, .09);
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-side h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-side a:hover,
body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-side a.active {
  border-color: rgba(157, 13, 17, .24);
  background: #fff0e5;
  color: var(--red);
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-main {
  display: grid;
  min-width: 0;
  gap: 16px;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-main > .eyebrow {
  margin-bottom: -10px;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-main h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.dashboard-panel, .panel, .form-card, .receipt-document) {
  min-width: 0;
  border: 1px solid var(--phase6-line);
  border-radius: 8px;
  background: var(--phase6-card);
  box-shadow: 0 18px 48px rgba(82, 42, 18, .08);
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-panel {
  margin-top: 0;
  padding: clamp(14px, 2vw, 22px);
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .panel,
body.phase1-foundation:is(.page-dashboard, .page-admin) .form-card {
  padding: clamp(12px, 1.7vw, 18px);
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .section-head.compact-head {
  margin-bottom: 12px;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .section-lead,
body.phase1-foundation:is(.page-dashboard, .page-admin) .meta,
body.phase1-foundation:is(.page-dashboard, .page-admin) .panel p {
  color: #4b3b32;
  line-height: 1.45;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.metric-grid, .readiness-grid, .action-grid, .role-board, .cards, .grid-two, .form-helper-grid, .billing-access-grid) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.grid-two, .split, .admin-command-layout, .launch-control, .profile-switcher, .setup-wizard-panel, .section-guidance, .onboarding-command-center) {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 14px;
  align-items: start;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .role-dashboard-grid,
body.phase1-foundation:is(.page-dashboard, .page-admin) .admin-command-grid,
body.phase1-foundation:is(.page-dashboard, .page-admin) .onboarding-steps,
body.phase1-foundation:is(.page-dashboard, .page-admin) .wizard-grid,
body.phase1-foundation:is(.page-dashboard, .page-admin) .request-ops-grid,
body.phase1-foundation:is(.page-dashboard, .page-admin) .lead-command-grid,
body.phase1-foundation:is(.page-dashboard, .page-admin) .admin-route-panel,
body.phase1-foundation:is(.page-dashboard, .page-admin) .admin-lead-actions-grid,
body.phase1-foundation:is(.page-dashboard, .page-admin) .admin-match-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .role-dashboard-card,
body.phase1-foundation:is(.page-dashboard, .page-admin) .action-card,
body.phase1-foundation:is(.page-dashboard, .page-admin) .route-card,
body.phase1-foundation:is(.page-dashboard, .page-admin) .milestone-item {
  min-width: 0;
  border: 1px solid rgba(122, 70, 28, .18);
  border-radius: 8px;
  background: #fffaf3;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .role-dashboard-card {
  display: grid;
  gap: 9px;
  padding: 13px;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .role-dashboard-card.current,
body.phase1-foundation:is(.page-dashboard, .page-admin) .role-dashboard-card.active {
  border-color: rgba(157, 13, 17, .34);
  background: linear-gradient(180deg, #fff6ec, #fffdf8);
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .field-tags,
body.phase1-foundation:is(.page-dashboard, .page-admin) .status-strip,
body.phase1-foundation:is(.page-dashboard, .page-admin) .hero-actions,
body.phase1-foundation:is(.page-dashboard, .page-admin) .card-actions,
body.phase1-foundation:is(.page-dashboard, .page-admin) .admin-export-strip,
body.phase1-foundation:is(.page-dashboard, .page-admin) .switcher-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.field-tags span, .field-tags a, .status-strip span, .switcher-pill) {
  min-height: 32px;
  border: 1px solid rgba(122, 70, 28, .18);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 250, 242, .94);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .status-strip {
  margin-top: -4px;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .button,
body.phase1-foundation:is(.page-dashboard, .page-admin) button {
  white-space: normal;
  word-break: normal;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) :is(input, select, textarea) {
  min-width: 0;
  max-width: 100%;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.form-grid, .compact-form-grid, .admin-filter-bar) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) :is(table, .data-table) {
  width: 100%;
  max-width: 100%;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-main table {
  display: block;
  overflow-x: auto;
  border: 1px solid rgba(122, 70, 28, .16);
  border-radius: 8px;
  background: #fff;
  white-space: nowrap;
}

body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-main :is(th, td) {
  padding: 10px 12px;
  vertical-align: top;
}

body.phase1-foundation.page-admin .admin-command-center {
  background:
    linear-gradient(135deg, rgba(255, 247, 236, .98), rgba(255, 255, 255, .94)),
    url("../img/premium/request-board.webp") center / cover no-repeat;
}

body.phase1-foundation.page-admin .readiness.ready {
  border-color: rgba(19, 139, 77, .28);
}

body.phase1-foundation.page-admin .readiness.warning {
  border-color: rgba(224, 162, 8, .32);
}

body.phase1-foundation.page-admin .readiness.action {
  border-color: rgba(157, 13, 17, .32);
}

body.phase1-foundation.page-dashboard .receipt-shell {
  max-width: min(980px, calc(100vw - 28px));
  margin-inline: auto;
}

body.phase1-foundation.page-dashboard .receipt-document {
  padding: clamp(18px, 4vw, 38px);
}

body.phase1-foundation.page-dashboard .receipt-top,
body.phase1-foundation.page-dashboard .receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1180px) {
  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.metric-grid, .readiness-grid, .action-grid, .role-board, .cards, .billing-access-grid) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.phase1-foundation:is(.page-dashboard, .page-admin) {
    --phase6-shell: calc(100vw - 14px);
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) main {
    padding-top: 10px;
    padding-bottom: calc(var(--app-bottom-nav-height) + 24px);
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-side {
    top: calc(var(--app-mobile-header-height) + 8px);
    z-index: 30;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    grid-template-columns: none;
    gap: 7px;
    max-height: none;
    margin-inline: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    width: 100%;
    scrollbar-width: none;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-side::-webkit-scrollbar {
    display: none;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-side h2 {
    position: sticky;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 36px;
    margin: 0;
    border-right: 1px solid rgba(122, 70, 28, .16);
    padding-right: 10px;
    background: rgba(255, 252, 247, .98);
    font-size: .9rem;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-side a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: .76rem;
    white-space: nowrap;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-main {
    gap: 10px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-main h1 {
    font-size: clamp(1.45rem, 8vw, 2.15rem);
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-panel {
    padding: 11px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.metric-grid, .readiness-grid, .action-grid, .role-board, .cards, .grid-two, .form-helper-grid, .billing-access-grid, .role-dashboard-grid, .admin-command-grid, .onboarding-steps, .wizard-grid, .request-ops-grid, .lead-command-grid, .admin-route-panel, .admin-lead-actions-grid, .admin-match-summary) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.split, .admin-command-layout, .launch-control, .profile-switcher, .setup-wizard-panel, .section-guidance, .onboarding-command-center) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .panel,
  body.phase1-foundation:is(.page-dashboard, .page-admin) .form-card {
    padding: 10px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.panel h2, .dashboard-panel h2) {
    font-size: clamp(1rem, 5.4vw, 1.45rem);
    line-height: 1.1;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.panel h3, .role-dashboard-card strong) {
    font-size: .84rem;
    line-height: 1.16;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.panel p, .role-dashboard-card p, .section-lead, .meta, .receipt-grid p, .receipt-note p) {
    font-size: .68rem;
    line-height: 1.25;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .big-number {
    font-size: clamp(1.3rem, 8vw, 2rem);
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.field-tags span, .field-tags a, .status-strip span, .switcher-pill) {
    min-height: 28px;
    padding: 6px 8px;
    font-size: .58rem;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.form-grid, .compact-form-grid, .admin-filter-bar) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(input, select, textarea) {
    min-height: 38px;
    font-size: .78rem;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .button {
    min-height: 34px;
    padding: 8px 10px;
    font-size: .68rem;
  }

  body.phase1-foundation.page-dashboard .receipt-top,
  body.phase1-foundation.page-dashboard .receipt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
}

@media (max-width: 430px) {
  body.phase1-foundation:is(.page-dashboard, .page-admin) {
    --phase6-shell: calc(100vw - 10px);
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .dashboard-panel {
    padding: 9px 7px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.metric-grid, .readiness-grid, .action-grid, .role-board, .cards, .grid-two, .form-helper-grid, .billing-access-grid, .role-dashboard-grid, .admin-command-grid, .onboarding-steps, .wizard-grid, .request-ops-grid, .lead-command-grid, .admin-route-panel, .admin-lead-actions-grid, .admin-match-summary) {
    gap: 6px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .role-dashboard-card,
  body.phase1-foundation:is(.page-dashboard, .page-admin) .action-card,
  body.phase1-foundation:is(.page-dashboard, .page-admin) .route-card,
  body.phase1-foundation:is(.page-dashboard, .page-admin) .panel {
    padding: 8px 6px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(.panel p, .role-dashboard-card p, .section-lead, .meta) {
    font-size: .58rem;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .role-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .role-dashboard-metrics span {
    font-size: .5rem;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .card-actions,
  body.phase1-foundation:is(.page-dashboard, .page-admin) .hero-actions {
    gap: 5px;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) .button {
    min-height: 32px;
    padding: 7px 8px;
    font-size: .58rem;
  }

  body.phase1-foundation:is(.page-dashboard, .page-admin) :is(input, select, textarea) {
    min-height: 36px;
    padding: 8px;
    font-size: .66rem;
  }
}

/* Phase 7: cross-page production hardening and app-like stability. */
body.phase1-foundation {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.phase1-foundation *,
body.phase1-foundation *::before,
body.phase1-foundation *::after {
  box-sizing: border-box;
}

body.phase1-foundation :is(.app-main, section, article, div, form, nav, header, footer, aside) {
  min-width: 0;
}

body.phase1-foundation :is(img, picture, video, canvas, svg, iframe) {
  max-width: 100%;
}

body.phase1-foundation :is(img, video) {
  height: auto;
}

body.phase1-foundation :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(157, 13, 17, .38);
  outline-offset: 3px;
}

body.phase1-foundation :is(button, .button, a) {
  -webkit-tap-highlight-color: rgba(157, 13, 17, .12);
}

body.phase1-foundation .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.phase1-foundation .site-nav.open {
  z-index: 1002;
}

body.phase1-foundation .mobile-app-nav {
  z-index: 1100;
}

body.phase1-foundation .footer-bottom {
  text-align: center;
}

body.phase1-foundation :is(.panel, .dashboard-panel, .phase5-hero, .phase5-auth, .home-feature-card, .home-step-card, .home-trust-card, .testimonial-card, .faq-tab-shell) {
  overflow-wrap: anywhere;
}

body.phase1-foundation .hero-search,
body.phase1-foundation .customer-search-box {
  min-width: 0;
}

body.phase1-foundation :is(.hero-search, .customer-search-box) :is(input, select, button) {
  min-width: 0;
}

body.phase1-foundation :is(table, .data-table) {
  max-width: 100%;
}

body.phase1-foundation .app-main :is(table, .data-table) {
  border-collapse: collapse;
}

body.phase1-foundation .footer-video-shell {
  overflow: hidden;
}

body.phase1-foundation .home-hero-v4.hero-video-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.phase1-foundation .footer-video-shell :is(.footer-grid, .footer-bottom) {
  position: relative;
  z-index: 1;
}

body.phase1-foundation .footer-bg-video {
  min-width: 100%;
  min-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  body.phase1-foundation *,
  body.phase1-foundation *::before,
  body.phase1-foundation *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  body.phase1-foundation :is(.hero-bg-video, .footer-bg-video) {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body.phase1-foundation {
    padding-top: var(--app-mobile-header-height, 70px);
  }

  body.phase1-foundation .site-header {
    position: fixed !important;
    inset: 0 0 auto 0;
    min-height: var(--app-mobile-header-height, 70px);
  }

  body.phase1-foundation .site-nav {
    max-width: calc(100vw - 24px);
  }

  body.phase1-foundation .app-main {
    width: 100%;
    overflow: clip;
  }

  body.phase1-foundation :is(.phase5-hero, .phase5-auth, .dashboard, .receipt-shell, .home-section, .phase4-hero) {
    max-width: calc(100vw - 10px);
  }

  body.phase1-foundation .footer-bottom {
    width: 100%;
    text-align: center !important;
    white-space: normal;
  }

  body.phase1-foundation :is(.hero-actions, .card-actions, .pwa-install-actions) {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  body.phase1-foundation :is(.phase5-hero, .phase5-auth, .dashboard, .receipt-shell, .home-section, .phase4-hero) {
    max-width: calc(100vw - 8px);
  }

  body.phase1-foundation .site-nav {
    left: 8px !important;
    right: 8px !important;
    max-width: calc(100vw - 16px);
  }

  body.phase1-foundation :is(.button, button, input, select, textarea) {
    max-width: 100%;
  }
}
