/*
 * SoFe public website styles.
 *
 * PROVISIONAL VISUAL IDENTITY. The repository has no approved SoFe logo, colour palette or
 * typeface (ADR-0013 §12.4 and its addendum leave brand identity undecided). These values are a
 * website-only interim palette, kept in the custom properties below so approved brand values
 * can replace them in one place. See docs/public-website/ASSETS_AND_LICENSES.md.
 *
 * System font stacks only: no web fonts are downloaded, so nothing is fetched from a third
 * party and no font licence is involved.
 */
:root {
  --green-950: #0f2e22;
  --green-900: #163f30;
  --green-700: #1f5a43;
  --green-100: #e3eee5;
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --sand: #f2e8d6;
  --ink: #1d1b17;
  --muted: #554e43;
  --pepper: #a63d1b;
  --pepper-100: #f8e4da;
  --saffron: #e9a23b;
  --saffron-700: #a8670f;
  --saffron-100: #fbedd3;
  --sea-100: #dcebee;
  --line: rgb(29 27 23 / 0.14);

  --font-display:
    'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, 'URW Palladio L', Georgia,
    serif;
  --font-body:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(4.5rem, 10vw, 8.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.35rem);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--green-700);
  text-underline-offset: 0.18em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--pepper);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

/* Anchored sections clear the sticky header. */
[id] {
  scroll-margin-top: 5.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--green-900);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--pepper);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  margin-bottom: 1.1rem;
}

.section-head p:last-child {
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 50;
  background: rgb(251 246 236 / 0.94);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgb(251 246 236 / 0.82);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.875rem;
  min-height: 4.25rem;
  padding-block: 0.75rem 0.25rem;
}

.wordmark {
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 3px var(--saffron-100);
}

.site-nav {
  flex-basis: 100%;
  margin-inline: -0.6rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.6rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--sand);
}

@media (min-width: 48em) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    flex-wrap: nowrap;
    padding-block: 0;
  }

  .site-nav {
    flex-basis: auto;
    margin-inline: auto 0;
  }

  .site-nav ul {
    gap: 0.5rem;
  }

  .site-nav a {
    padding-inline: 1rem;
  }
}

/* ---------- Buttons ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green-700);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--green-900);
}

.button-secondary {
  border-color: var(--green-700);
  color: var(--green-900);
}

.button-secondary:hover {
  background: var(--green-100);
}

.button-light {
  background: var(--saffron);
  color: var(--green-950);
}

.button-light:hover {
  background: #f3b85f;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3.5rem, 8vw, 6.5rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: auto -10% -45% 40%;
  height: 90%;
  background: var(--sand);
  border-radius: 50%;
  z-index: -1;
}

.hero-inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.eyebrow-pill {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--pepper-100);
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 1.5rem + 5.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero h1 em {
  display: inline-block;
  color: var(--green-700);
  font-style: italic;
}

.lede {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
}

.hero-note {
  max-width: 30rem;
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--saffron);
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero-art {
  justify-self: center;
  width: min(100%, 30rem);
}

.hero-art img {
  width: 100%;
  filter: drop-shadow(0 24px 30px rgb(22 63 48 / 0.14));
}

@media (min-width: 60em) {
  .hero-inner {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .hero-art {
    width: 100%;
  }
}

/* Motion is a gentle transform only. Content is never hidden waiting for an animation. */
@media (prefers-reduced-motion: no-preference) {
  .hero-art {
    animation: settle 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes settle {
    from {
      transform: translateY(18px) rotate(-1.5deg);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

/* ---------- About ---------- */

.about {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.about-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.about-intro h2 {
  margin-bottom: 1.25rem;
}

.about-intro p:last-child {
  color: var(--muted);
  font-size: 1.15rem;
}

.pillars {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pillars li {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.pillars p {
  color: var(--muted);
}

@media (min-width: 40em) {
  .pillars li {
    grid-template-columns: 15rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

@media (min-width: 64em) {
  .about-inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .about-intro {
    position: sticky;
    top: 7rem;
  }
}

/* ---------- Categories ---------- */

.category-grid {
  display: grid;
  gap: 1rem;
}

.category {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--sand);
}

.category img {
  width: 100%;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
}

.category h3 {
  margin-bottom: 0.4rem;
  padding-inline: 0.35rem;
}

.category p {
  padding-inline: 0.35rem;
  color: var(--muted);
}

.category-african {
  background: var(--saffron-100);
}

.category-latin {
  background: var(--green-100);
}

.category-seafood {
  background: var(--sea-100);
}

.category-butcher {
  background: var(--pepper-100);
}

.category-specialty {
  background: var(--sand);
}

.fine-print {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 40em) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-specialty {
    grid-column: 1 / -1;
  }

  .category-specialty img {
    max-width: 30rem;
    align-self: center;
  }
}

@media (min-width: 64em) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
  }

  .category-african,
  .category-latin {
    grid-column: span 3;
  }

  .category-seafood,
  .category-butcher,
  .category-specialty {
    grid-column: span 2;
  }

  .category-specialty img {
    max-width: none;
  }
}

/* ---------- Shoppers ---------- */

.steps {
  display: grid;
  gap: 1rem;
}

.steps li {
  position: relative;
  padding: 1.75rem 1.5rem 1.9rem;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
}

.step-number {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
}

.steps h3 {
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--muted);
}

.status-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--saffron-100);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 40em) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Markets ---------- */

.markets {
  background: var(--green-900);
  color: var(--cream);
}

.markets .eyebrow {
  color: var(--saffron);
}

.markets-inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.markets-copy h2 {
  margin-bottom: 1.5rem;
}

.markets-copy p {
  max-width: 34rem;
  margin-bottom: 1.25rem;
  color: #d9e4dc;
  font-size: 1.125rem;
}

.markets-copy .button {
  margin-top: 0.75rem;
}

.markets a:focus-visible {
  outline-color: var(--saffron);
}

.benefits {
  display: grid;
  gap: 0;
  border-top: 1px solid rgb(251 246 236 / 0.18);
}

.benefits li {
  position: relative;
  padding: 1.25rem 0 1.25rem 2.5rem;
  border-bottom: 1px solid rgb(251 246 236 / 0.18);
}

.benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--saffron);
}

/* A tick drawn with two borders, so no icon file or font is needed. */
.benefits li::after {
  content: '';
  position: absolute;
  left: 0.48rem;
  top: 1.7rem;
  width: 0.42rem;
  height: 0.72rem;
  border: solid var(--green-950);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.benefits h3 {
  margin-bottom: 0.3rem;
  color: var(--paper);
  font-size: 1.25rem;
}

.benefits p {
  color: #c9d8cd;
}

@media (min-width: 64em) {
  .markets-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ---------- DMV ---------- */

.dmv-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.dmv-states {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.18em;
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 1.5rem + 9vw, 7.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.dmv-states span:nth-child(2) {
  color: var(--pepper);
}

.dmv-states span:nth-child(3) {
  color: var(--saffron-700);
}

.dmv h2 {
  margin-bottom: 1.25rem;
}

.dmv-inner p:not(.eyebrow, .dmv-states) {
  max-width: 36rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

@media (min-width: 64em) {
  .dmv-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Contact ---------- */

.contact {
  padding-top: 0;
}

.contact-inner {
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}

.contact h2 {
  margin-bottom: 1rem;
}

.contact p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.contact-link {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.25rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Release mode B only: the controlled-verification page's notice. */
.verification-banner {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--saffron);
  background: rgb(255 255 255 / 0.6);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  background: var(--green-950);
  color: #c9d8cd;
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--paper);
}

.site-footer a:focus-visible {
  outline-color: var(--saffron);
}

.footer-inner {
  display: grid;
  gap: 2.25rem;
}

.wordmark-footer {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--paper);
}

.footer-brand p + p {
  margin-top: 0.5rem;
}

.privacy {
  max-width: 40rem;
}

.privacy h2 {
  margin-bottom: 0.5rem;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.privacy p + p {
  margin-top: 0.5rem;
}

.footer-legal {
  display: grid;
  gap: 0.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(251 246 236 / 0.16);
}

@media (min-width: 64em) {
  .footer-inner {
    grid-template-columns: 1fr 1.4fr;
    column-gap: 4rem;
  }

  .footer-legal {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
  }
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  text-align: center;
}

.not-found .container {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  max-width: 36rem;
}

.not-found h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem);
}

.not-found p {
  color: var(--muted);
}

/* ---------- Shared helpers ---------- */

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 0.5rem;
  color: var(--green-900);
  font-weight: 700;
}

/* ---------- Investors ---------- */

.investors {
  background: var(--sand);
  border-block: 1px solid var(--line);
}

.investors-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.investors-copy h2 {
  margin-bottom: 1.25rem;
}

.investors-copy p:last-child {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.investor-pillars {
  display: grid;
  gap: 1rem;
}

.investor-pillars li {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
}

.investor-pillars h3 {
  margin-bottom: 0.4rem;
  color: var(--green-900);
}

.investor-pillars p {
  color: var(--muted);
}

.investors-close {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  max-width: 40rem;
}

.investors-close p {
  font-size: 1.125rem;
}

@media (min-width: 40em) {
  .investor-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64em) {
  .investor-pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Connect (interest form) ---------- */

.connect-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.connect-intro h2 {
  margin-bottom: 1rem;
}

.connect-intro p {
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.connect-alt {
  margin-top: 1.25rem;
  font-size: 1rem !important;
  overflow-wrap: anywhere;
}

.inquiry-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}

.inquiry-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.category-fields {
  display: grid;
  gap: 1.35rem;
}

.form-note,
.form-fine-print {
  color: var(--muted);
  font-size: 0.9375rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > label,
.category-choice legend {
  font-weight: 700;
}

.field label span,
.field-check label {
  font-weight: 400;
}

.field label span {
  color: var(--muted);
}

.inquiry-form input[type='text'],
.inquiry-form input[type='email'],
.inquiry-form input[type='url'],
.inquiry-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #8a8173;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.inquiry-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.inquiry-form input:focus-visible,
.inquiry-form textarea:focus-visible {
  border-color: var(--green-700);
  outline-offset: 1px;
}

.inquiry-form [aria-invalid='true'] {
  border-color: var(--pepper);
}

.category-choice legend {
  margin-bottom: 0.6rem;
  padding: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--green-700);
  background: var(--green-100);
  font-weight: 700;
}

.inquiry-form input[type='radio'],
.inquiry-form input[type='checkbox'] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--green-700);
  flex: none;
}

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.75rem;
}

.field-check input {
  margin-top: 0.2rem !important;
}

.field-check .field-error {
  grid-column: 1 / -1;
}

.field-error {
  color: var(--pepper);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* Off-screen trap for automated submissions; real visitors never see or reach it. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inquiry-form .button {
  justify-self: start;
  min-width: 9rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.inquiry-form .button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--sand);
}

.form-status.is-success {
  background: var(--green-100);
  color: var(--green-950);
  font-size: 1.125rem;
}

.form-status.is-error {
  background: var(--pepper-100);
  color: #5c210d;
}

.form-reference {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.inquiry-form.is-sent > :not(.form-status) {
  display: none;
}

/* Without the script, browsers that support :has() show only the chosen category's fields. */
@supports selector(:has(*)) {
  .inquiry-form:not(.is-enhanced) .category-fields {
    display: none;
  }

  .inquiry-form:not(.is-enhanced):has([value='customer']:checked) [data-category='customer'],
  .inquiry-form:not(.is-enhanced):has([value='merchant']:checked) [data-category='merchant'],
  .inquiry-form:not(.is-enhanced):has([value='investor']:checked) [data-category='investor'],
  .inquiry-form:not(.is-enhanced):has([value='partner']:checked) [data-category='partner'] {
    display: grid;
  }
}

@media (min-width: 64em) {
  .connect-inner {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .connect-intro {
    position: sticky;
    top: 7rem;
  }
}

/* ---------- Form result page (no-JavaScript answer from /inquiry.php) ---------- */

.result-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding-block: 3rem;
}

.result-inner {
  display: grid;
  gap: 1.25rem;
  max-width: 38rem;
}

.result-inner h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
}

.result-message {
  font-size: 1.125rem;
}

.result-note {
  color: var(--muted);
}

.result-errors {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--pepper-100);
  color: #5c210d;
}
