/* ==========================================================================
   Vegy — wholesale ordering platform
   Shared design system: index / support / legal.

   Modern B2B SaaS register — white ground, Inter, green accent, dark
   contrast sections. IBM Plex Mono carries anything that behaves like
   order data: timestamps, case counts, prices, spec labels.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f6;
  --bg-card: #ffffff;

  --ink: #0f1512;
  --ink-2: #46514a;
  --muted: #6c7772;

  --green: #16a34a;
  --green-deep: #12833c;
  --green-dark: #0f6b31;
  --green-tint: #e9f7ee;

  --dark: #0c1210;
  --dark-2: #161f1a;

  --border: #e3e8e5;
  --border-strong: #cfd7d2;
  --border-dark: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 1px 2px rgba(15, 21, 18, 0.04), 0 4px 16px rgba(15, 21, 18, 0.05);
  --shadow-md: 0 8px 30px rgba(15, 21, 18, 0.09);
  --shadow-lg: 0 30px 70px rgba(15, 21, 18, 0.16);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --masthead-h: 74px;
  --gutter: 1.5rem;
  --measure: 1200px;
  --radius: 16px;
  --radius-lg: 22px;
}

/* --- reset ---------------------------------------------------------------- */

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

body,
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
dd,
blockquote {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- type ----------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.h-xl {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
}

.h-lg {
  font-size: clamp(2rem, 3.9vw, 3.15rem);
  line-height: 1.09;
  letter-spacing: -0.033em;
}

.h-md {
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.026em;
}

.h-sm {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.32;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.lede {
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.dim {
  color: var(--muted);
}

.accent {
  color: var(--green);
}

/* --- layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  max-width: 820px;
}

.section {
  padding-block: clamp(4rem, 7.5vw, 6.5rem);
}

/* jumping to an anchor must not tuck the heading under the sticky masthead */
section[id],
[id]:target {
  scroll-margin-top: calc(var(--masthead-h) + 1.25rem);
}

.section-tight {
  padding-block: clamp(2.75rem, 4.5vw, 4rem);
}

.band-soft {
  background: var(--bg-soft);
}

.band-dark {
  background: var(--dark);
  color: #fff;
}

.center {
  text-align: center;
}

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

.section-head.center {
  margin-inline: auto;
}

.section-head .eyebrow {
  margin-bottom: 1rem;
}

.section-head p {
  margin-top: 1.1rem;
}

.band-dark .dim,
.band-dark .lede {
  color: rgba(255, 255, 255, 0.66);
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.92rem 1.75rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.24);
}

.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  background: #f2f4f3;
  transform: translateY(-2px);
}

.band-dark .btn-outline,
.cta-banner .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.band-dark .btn-outline:hover,
.cta-banner .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 0.62rem 1.3rem;
  font-size: 0.94rem;
}

.btn .arrow {
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.cta-row.center {
  justify-content: center;
}

/* text link with arrow — the "Learn more →" pattern */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--green);
  text-decoration: none;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

a {
  color: inherit;
}

.link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

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

/* --- masthead ------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.masthead.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(15, 21, 18, 0.05);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 74px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.band-dark .wordmark,
.site-footer .wordmark {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  font-size: 0.96rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.16s ease;
}

.nav-links a {
  position: relative;
  padding-block: 0.35rem;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.nav-links a.is-active {
  color: var(--green);
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

/* --- hamburger + mobile panel --------------------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.mobile-nav {
  display: none;
  padding: 0.25rem var(--gutter) 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.mobile-nav .m-link {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .m-link.is-active {
  color: var(--green);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 1.1rem;
}

.masthead .btn {
  margin-left: auto;
}

.nav-links ~ .btn {
  margin-left: 0;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .masthead .wrap > .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav.is-open {
    display: block;
  }
}

/* --- sticky booking dock (mobile) ----------------------------------------- */

.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.8rem var(--gutter);
  padding-bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid var(--border);
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dock .btn {
  width: 100%;
  box-shadow: none;
}

.dock.is-up {
  transform: none;
}

@media (max-width: 900px) {
  .dock {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock {
    transition: none;
  }
}

/* --- hero (centered) ------------------------------------------------------ */

.hero {
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  max-width: 940px;
  margin-inline: auto;
}

.hero h1 {
  margin-block: 1.3rem 1.4rem;
}

.hero .lede {
  max-width: 660px;
  margin-inline: auto;
}

.hero .cta-row {
  margin-top: 2.1rem;
}

.hero-note {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* --- swap: how it arrives today → what Vegy does with it ------------------ */

.swap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.swap-head,
.swap-row {
  display: grid;
  grid-template-columns: 1fr 62px 1fr;
}

.swap-head {
  border-bottom: 1px solid var(--border);
}

.swap-head > * {
  padding: 0.95rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.swap-head .is-vegy {
  background: var(--green-tint);
  color: var(--green-dark);
}

.swap-row + .swap-row {
  border-top: 1px solid var(--border);
}

.swap-from,
.swap-to {
  padding: 1.5rem 1.6rem;
  font-size: 0.99rem;
  line-height: 1.55;
}

.swap-from {
  color: var(--muted);
}

.swap-to {
  background: var(--green-tint);
  color: var(--ink);
}

.swap-from .chan {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}

.swap-arrow {
  display: grid;
  place-items: center;
  color: var(--green);
}

.swap-arrow svg {
  width: 19px;
  height: 19px;
}

/* column labels ride inside the cells once the head row is gone */
.cell-label {
  display: none;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

@media (max-width: 820px) {
  .swap-head {
    display: none;
  }

  .swap-row {
    grid-template-columns: 1fr;
  }

  .swap-arrow {
    height: 42px;
  }

  .swap-arrow svg {
    transform: rotate(90deg);
  }

  .cell-label {
    display: block;
    color: var(--muted);
  }

  .swap-to .cell-label {
    color: var(--green-dark);
  }
}

/* --- module / feature cards ----------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.15rem;
}

.card {
  padding: 2rem 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.25rem;
  border-radius: 13px;
  background: var(--green-tint);
  color: var(--green);
}

.card-icon svg {
  width: 23px;
  height: 23px;
}

.card .h-sm {
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.56;
}

/* --- alternating feature rows --------------------------------------------- */

.rows {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.row-text .eyebrow {
  margin-bottom: 0.9rem;
}

.row-text h3 {
  margin-bottom: 1rem;
}

.row-text p {
  color: var(--ink-2);
}

.row-text .link-arrow {
  margin-top: 1.4rem;
}

.row-visual {
  display: flex;
  justify-content: center;
}

.row.is-flipped .row-visual {
  order: -1;
}

@media (max-width: 800px) {
  .row.is-flipped .row-visual {
    order: 0;
  }
}

/* real product screenshots — a row on desktop, a swipe carousel on mobile */
.shot {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  line-height: 0;
}

.shot img {
  width: 100%;
  height: auto;
}

.shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.7rem, 1.4vw, 1.15rem);
}

.shots .shot {
  flex: 1 1 0;
  min-width: 0;
  max-width: 286px;
}

.shots:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
  border-radius: 20px;
}

.shot-dots {
  display: none;
}

/* Below 900px the row becomes a horizontal snap carousel. Vertical page
   scrolling is deliberately left alone — only sideways swipes move it. */
@media (max-width: 900px) {
  .shots {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-block: 0.5rem;
    scroll-padding-inline: var(--gutter);
  }

  .shots::-webkit-scrollbar {
    display: none;
  }

  .shots .shot {
    flex: 0 0 280px;
    max-width: 280px;
    scroll-snap-align: start;
  }

  .shot-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.4rem;
  }

  .shot-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--border-strong);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
  }

  .shot-dot.is-active {
    width: 22px;
    background: var(--green);
  }
}

/* mock artifacts used as row visuals */
.mock {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.band-dark .mock {
  background: var(--dark-2);
  border-color: var(--border-dark);
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.band-dark .mock-head {
  border-bottom-color: var(--border-dark);
  color: rgba(255, 255, 255, 0.55);
}

.mock-body {
  padding: 0.5rem 0;
}

.mock-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.72rem 1.25rem;
  font-size: 0.92rem;
}

.mock-line + .mock-line {
  border-top: 1px solid var(--border);
}

.band-dark .mock-line + .mock-line {
  border-top-color: var(--border-dark);
}

.mock-line .pack {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.mock-line .price {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.mock-line .ok {
  color: var(--green);
}

.band-dark .mock-line .ok {
  color: #6ee7a0;
}

.mock-line .muted-cell {
  color: var(--muted);
}

.band-dark .mock-line .muted-cell {
  color: rgba(255, 255, 255, 0.42);
}

.mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.mock-foot .amt {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.band-dark .tag {
  background: rgba(22, 163, 74, 0.18);
  color: #6ee7a0;
}

/* --- customer logos ------------------------------------------------------- */

.trust {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--border);
}

.trust .eyebrow {
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.trust-logos img {
  width: auto;
  height: 56px;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.trust-logos img:hover {
  opacity: 1;
}

/* hairline between the two marks so the pair reads as one composed unit */
.trust-sep {
  width: 1px;
  height: 46px;
  background: var(--border);
  flex: none;
}

@media (max-width: 560px) {
  .trust-logos img {
    height: 42px;
  }

  .trust-sep {
    display: none;
  }
}

/* --- pricing -------------------------------------------------------------- */

.price-card {
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3.25rem);
}

.price-unit {
  flex: 0 1 auto;
}

.price-figure {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.price-figure .per {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.5);
}

.price-cap {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #6ee7a0;
}

.price-plus {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.3);
}

.price-note {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.97rem;
}

.included {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0.85rem 2.25rem;
  margin-top: 2rem;
  align-content: start;
}

.included li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.9);
}

.included li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.25em;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.22)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7a0' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* --- faq ------------------------------------------------------------------ */

.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  transition: color 0.16s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--green);
}

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--green);
  flex: none;
  transition: transform 0.22s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding-bottom: 1.5rem;
  max-width: 70ch;
  color: var(--ink-2);
}

.faq .answer p + p {
  margin-top: 0.8rem;
}

/* --- closing cta banner --------------------------------------------------- */

.cta-banner {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.cta-banner p {
  max-width: 620px;
  margin: 1.1rem auto 0;
  color: rgba(255, 255, 255, 0.86);
}

.cta-banner .cta-row {
  margin-top: 2rem;
}

.expect {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  text-align: left;
}

.expect li {
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.9);
}

.expect .n {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
}

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

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-dark);
}

.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.1rem;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-blurb {
  max-width: 34ch;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-by {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-by a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-by a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.75rem;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --- support page --------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.15rem;
}

.contact-card {
  padding: clamp(1.7rem, 3vw, 2.3rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card dl {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-card dt {
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-card dd {
  font-size: 0.97rem;
  color: var(--ink-2);
}

.contact-lead {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green);
}

.contact-lead a {
  text-decoration: none;
}

.contact-lead a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- legal page ----------------------------------------------------------- */

.legal-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 98px;
  font-size: 0.88rem;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.legal-toc h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.6rem 0 0.7rem;
}

.legal-toc h4:first-child {
  margin-top: 0;
}

.legal-toc a {
  display: block;
  padding: 0.32rem 0 0.32rem 0.85rem;
  border-left: 2px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
}

.legal-toc a:hover {
  color: var(--green);
  border-left-color: var(--green);
}

.legal-body {
  max-width: 74ch;
  font-size: 1rem;
}

.legal-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-body h3 {
  font-size: 1.24rem;
  margin-top: 2.5rem;
  color: var(--green-dark);
}

.legal-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.85rem;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  margin-top: 0.9rem;
  color: var(--ink-2);
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.25rem;
}

.legal-body li {
  margin-top: 0.45rem;
}

.legal-body li::marker {
  color: var(--green);
}

.legal-body a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-updated {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    max-height: none;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
}

/* --- reveal on scroll ----------------------------------------------------- */

/* Content is visible by default. Only once JS has confirmed it can run does
   the hidden-then-reveal state apply, so a failed observer or blocked script
   can never leave a section invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- motion --------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
