/* DESIGN.md translation for Reeglo.
   Primary brand color: #16A34A. Flat surfaces, hairline depth, pill controls. */

@font-face {
  font-family: "OverusedGrotesk-SemiBold";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/OverusedGrotesk-SemiBold.woff2") format("woff2");
}

:root {
  --reeglo-bg: #ffffff;
  --reeglo-bg-deep: #fafafa;
  --reeglo-surface: #ffffff;
  --reeglo-surface-strong: #ffffff;
  --reeglo-ink: #171717;
  --reeglo-muted: #737373;
  --reeglo-faint: #a3a3a3;
  --reeglo-line: #e5e5e5;
  --reeglo-green: #16a34a;
  --reeglo-green-strong: #166534;
  --reeglo-green-soft: #f0fdf4;
  --reeglo-on-green: #ffffff;
  --reeglo-radius: 12px;
  --reeglo-control-radius: 999px;
  --reeglo-pill: 999px;
  --reeglo-shadow: none;
  --reeglo-shadow-small: none;
  --reeglo-font: "OverusedGrotesk-Regular", Arial, sans-serif;
  --reeglo-font-semibold: "OverusedGrotesk-SemiBold", Arial, sans-serif;
  --reeglo-font-bold: "OverusedGrotesk-Bold", Arial, sans-serif;
}

html {
  scroll-padding-top: 72px;
}

body,
body.market-home,
body.logistics-page,
body.relay-page,
body.market-home[data-theme="light"],
body.market-home[data-theme="dark"] {
  --bg: var(--reeglo-bg);
  --bg-soft: var(--reeglo-surface);
  --card-bg: var(--reeglo-surface-strong);
  --text-main: var(--reeglo-ink);
  --text-muted: var(--reeglo-muted);
  --border-subtle: var(--reeglo-line);
  --accent: var(--reeglo-green);
  --accent-strong: var(--reeglo-green-strong);
  --accent-soft: var(--reeglo-green-soft);
  --radius-lg: 12px;
  --radius-pill: 999px;
  --border-radius: 999px;
  --shadow-soft: none;
  background: var(--reeglo-bg) !important;
  color: var(--reeglo-ink);
  font-family: var(--reeglo-font);
}

body::selection,
.logistics-page ::selection {
  background: var(--reeglo-green);
  color: var(--reeglo-on-green);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--reeglo-font-semibold) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

p,
li {
  text-wrap: pretty;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.38);
  outline-offset: 3px;
}

.reveal-ready,
.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

.nav-menu-toggle {
  border-color: var(--reeglo-line);
  background: var(--reeglo-surface);
  color: var(--reeglo-ink);
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-menu-toggle__icon {
  display: inline-grid;
  width: 1em;
  height: 1em;
  place-items: center;
  line-height: 1;
}

/* Shared market chrome */
body:not(.market-home):not(.logistics-page):not(.relay-page) > header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--reeglo-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:not(.market-home):not(.logistics-page):not(.relay-page) > header nav {
  width: min(calc(100% - 40px), 960px);
  min-height: 56px;
}

body:not(.market-home):not(.logistics-page):not(.relay-page) .logo img {
  height: 32px !important;
  filter: none !important;
}

body:not(.market-home):not(.logistics-page):not(.relay-page) .nav-links a,
.footer-links a,
.footer-lang button {
  color: var(--reeglo-ink) !important;
  font: 500 14px/1.2 var(--reeglo-font) !important;
}

.lang-selector {
  min-height: 36px;
  border-color: var(--reeglo-line);
  background: var(--reeglo-surface);
  color: var(--reeglo-ink);
  font-family: var(--reeglo-font);
}

:is(.market-legal-page, .contact-header-page) .legal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

:is(.market-legal-page, .contact-header-page) .legal-header-delivery {
  display: inline-flex;
  min-height: 36px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--reeglo-green);
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-green);
  color: var(--reeglo-on-green);
  font: 500 14px/1 var(--reeglo-font-semibold);
  text-decoration: none;
  white-space: nowrap;
}

:is(.market-legal-page, .contact-header-page) .legal-header-delivery:hover {
  border-color: var(--reeglo-green-strong);
  background: var(--reeglo-green-strong);
  color: #ffffff;
}

:is(.market-legal-page, .contact-header-page) .legal-header-delivery:active {
  transform: translateY(1px);
}

:is(.market-legal-page, .contact-header-page) .legal-header-delivery i {
  font-size: 17px;
  line-height: 1;
}

.logistics-legal-page .logo img {
  height: 40px !important;
}

.logistics-legal-page .logistics-legal-market {
  display: inline-flex;
  min-height: 36px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
  border: 1px solid var(--reeglo-green);
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-green);
  color: var(--reeglo-on-green);
  font: 500 14px/1 var(--reeglo-font-semibold);
  text-decoration: none;
  white-space: nowrap;
}

.logistics-legal-page .logistics-legal-market:hover {
  border-color: var(--reeglo-green-strong);
  background: var(--reeglo-green-strong);
  color: #ffffff;
}

.logistics-legal-page .logistics-legal-market:active {
  transform: translateY(1px);
}

.logistics-legal-page .logistics-legal-market i {
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 520px) {
  :is(.market-legal-page, .contact-header-page) .logo img {
    height: 28px !important;
  }

  :is(.market-legal-page, .contact-header-page) .legal-header-actions {
    gap: 6px;
  }

  :is(.market-legal-page, .contact-header-page) .legal-header-delivery {
    min-height: 38px;
    padding: 0 10px;
    gap: 5px;
    font-size: 12px;
  }

  :is(.market-legal-page, .contact-header-page) .lang-selector {
    width: 62px;
    min-height: 38px;
    padding: 0 20px 0 8px;
    font-size: 12px;
  }

  .logistics-legal-page .logistics-legal-market {
    min-height: 38px;
    padding: 0 10px;
    gap: 5px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .contact-header-page .legal-header-delivery {
    width: 38px;
    padding: 0;
  }

  .contact-header-page .legal-header-delivery span {
    display: none;
  }
}

body:not(.market-home):not(.logistics-page):not(.relay-page) > footer {
  padding: 32px max(20px, calc((100vw - 960px) / 2));
  border-top-color: var(--reeglo-line);
  background: var(--reeglo-bg);
}

body:not(.market-home):not(.logistics-page):not(.relay-page) .footer-content {
  max-width: 960px;
}

/* Reeglo Market */
.market-home .page {
  width: min(calc(100% - 40px), 960px);
  max-width: 960px;
  padding-bottom: 32px;
}

.market-home .page > header,
.logistics-header,
.relay-page .site-header {
  top: 0;
  min-height: 56px;
  margin-top: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.market-home .page > header::after,
.logistics-header::after,
.relay-page .site-header::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -1px;
  width: 100vw;
  height: 1px;
  background: var(--reeglo-line);
  transform: translateX(50%);
  pointer-events: none;
}

.market-home .logo img {
  height: 32px !important;
  filter: none !important;
}

.market-home .theme-toggle {
  display: none;
}

.market-home .header-link--primary,
.market-back,
.relay-page .site-nav a.back-link,
.market-home .button-primary,
.relay-page .button,
.relay-page .hero-cta,
.contact-form button[type="submit"],
.waitlist-button,
.logistics-main > section:first-child a[href="#process"] {
  min-height: 36px;
  padding: 0 20px !important;
  border: 1px solid var(--reeglo-green) !important;
  border-radius: var(--reeglo-pill) !important;
  background: var(--reeglo-green) !important;
  color: var(--reeglo-on-green) !important;
  box-shadow: none !important;
  font: 500 14px/1 var(--reeglo-font-semibold) !important;
}

.market-home .header-link--primary:hover,
.market-home .button-primary:hover,
.relay-page .button:hover,
.contact-form button[type="submit"]:hover,
.waitlist-button:hover {
  background: var(--reeglo-green-strong) !important;
  color: #ffffff !important;
  opacity: 0.9;
}

.button-secondary,
.btn-secondary,
.relay-page .button.button-secondary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 20px !important;
  border: 1px solid var(--reeglo-ink) !important;
  border-radius: var(--reeglo-pill) !important;
  background: transparent !important;
  color: var(--reeglo-ink) !important;
  box-shadow: none !important;
  font: 600 14px/1 var(--reeglo-font-semibold) !important;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button-secondary:hover,
.btn-secondary:hover,
.relay-page .button.button-secondary:hover {
  background: var(--reeglo-green-strong) !important;
  color: var(--reeglo-on-green) !important;
  opacity: 1;
}

.market-home .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  grid-template-rows: auto;
  gap: clamp(40px, 7vw, 72px);
  align-items: center;
  width: 100%;
  margin: 0 auto;
  min-height: 640px;
  padding: 56px 0 72px;
}

.market-home .hero-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 540px;
}

.market-home h1 {
  max-width: 18ch;
  margin: 0 0 24px;
  color: var(--reeglo-ink);
  font: 600 clamp(38px, 4.2vw, 52px)/1.04 var(--reeglo-font-semibold);
  letter-spacing: -0.025em !important;
  text-align: left;
}

.market-home h1 span {
  color: inherit;
}

.market-home .mockup-wrapper {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  min-height: 480px;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--reeglo-line);
  border-radius: 12px;
  background: var(--reeglo-bg-deep);
}

.market-home .mockup-wrapper::before {
  content: none;
}

.market-home .phone-mockup {
  width: min(100%, 250px);
  padding: 5px;
  border: 1px solid var(--reeglo-green);
  border-radius: 28px;
  background: var(--reeglo-ink);
  box-shadow: none;
  transform: none;
}

.market-home .phone-inner {
  border-radius: 23px;
  background: var(--reeglo-ink);
}

.market-home .phone-video-wrapper {
  border-radius: 18px;
}

.market-home .phone-video-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(23 23 23 / 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.market-home .phone-video-wrapper.video-awaiting-playback::after {
  opacity: 1;
}

.market-home .phone-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--reeglo-green);
  border-radius: 50%;
  background: var(--reeglo-green);
  color: var(--reeglo-on-green);
  box-shadow: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.market-home .phone-video-play[hidden] {
  display: none;
}

.market-home .phone-video-play:hover {
  border-color: var(--reeglo-green-strong);
  background: var(--reeglo-green-strong);
}

.market-home .phone-video-play:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.market-home .phone-video-play:focus-visible {
  outline: 3px solid var(--reeglo-on-green);
  outline-offset: 3px;
}

.market-home .phone-video-play i {
  margin-left: 2px;
  font-size: 22px;
}

.market-home .hero-subtitle {
  max-width: 52ch;
  margin: 0;
  color: var(--reeglo-muted);
  font-size: 18px;
  line-height: 1.55;
}

.market-home .hero-cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  text-decoration: none;
  white-space: nowrap;
}

.market-home .hero-cta i,
.market-home .button-primary i,
.market-home .header-link--primary i {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.market-home .waitlist-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  gap: clamp(40px, 7vw, 72px);
  align-items: start;
  padding: 88px 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.market-home .waitlist-context {
  grid-column: 1;
  grid-row: 1;
  padding-top: 8px;
}

.market-home .waitlist-context h2 {
  max-width: 12ch;
  margin: 0 0 16px;
  color: var(--reeglo-ink);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.12;
}

.market-home .waitlist-context p {
  max-width: 34ch;
  margin: 0;
  color: var(--reeglo-muted);
  font-size: 17px;
  line-height: 1.6;
}

.market-home .waitlist-card {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
  padding: 32px;
  border: 1px solid var(--reeglo-line);
  border-radius: 12px;
  background: var(--reeglo-surface-strong);
  box-shadow: none;
}

.market-home .waitlist-title {
  color: var(--reeglo-ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.market-home .waitlist-sub,
.market-home .waitlist-note {
  color: var(--reeglo-muted);
}

.market-home .waitlist-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.market-home .waitlist-note i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--reeglo-ink);
  font-size: 13px;
}

.market-home input,
.market-home select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.relay-page input:not([type="checkbox"]):not([type="range"]),
.relay-page select {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--reeglo-line);
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-surface-strong);
  color: var(--reeglo-ink);
}

.market-home .role-pill {
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-bg-deep);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.market-home .role-pill:has(input:checked) {
  border-color: var(--reeglo-green);
  background: var(--reeglo-surface);
  color: var(--reeglo-green-strong);
  box-shadow: 0 0 0 1px var(--reeglo-green);
}

.market-home .role-pill input[type="radio"],
.market-home .role-pill input[type="radio"]:focus,
.market-home .role-pill input[type="radio"]:focus-visible {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

/* Market how-it-works sections: Vinted-inspired structure, Reeglo visual system. */
.market-home .market-guide,
.market-home .market-safety {
  position: relative;
  padding: 88px 0;
  border-top: 1px solid transparent;
}

.market-home .market-guide::before,
.market-home .market-safety::before,
.market-home .waitlist-section::before,
.market-home footer::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 50%;
  width: 100vw;
  height: 1px;
  background: var(--reeglo-line);
  transform: translateX(50%);
  pointer-events: none;
}

/* Let the tablet hero follow its content so its divider stays at the section edge. */
@media (min-width: 768px) and (max-width: 1080px) {
  .market-home .hero-layout {
    min-height: 0;
  }
}

.market-home .waitlist-section::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -1px;
  width: 100vw;
  height: 1px;
  background: var(--reeglo-line);
  transform: translateX(50%);
  pointer-events: none;
}

.market-home .market-guide > h2,
.market-home .market-safety > h2 {
  margin: 0 0 36px;
  color: var(--reeglo-ink);
  font-size: 30px;
  line-height: 1.2;
}

.market-home .market-guide__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.market-home .market-guide__step {
  min-width: 0;
}

.market-home .market-guide__step img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--reeglo-line);
  border-radius: 12px;
  background: var(--reeglo-bg-deep);
}

.market-home .market-guide__step h3 {
  margin: 20px 0 8px;
  color: var(--reeglo-ink);
  font-size: 20px;
  line-height: 1.3;
}

.market-home .market-guide__step p,
.market-home .market-safety__item p {
  margin: 0;
  color: var(--reeglo-muted);
  font-size: 15px;
  line-height: 1.55;
}

.market-home .market-guide__action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.market-home .market-guide__action a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--reeglo-ink);
  border-radius: var(--reeglo-pill);
  color: var(--reeglo-ink);
  font: 600 14px/1 var(--reeglo-font-semibold);
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.market-home .market-guide__action a:hover {
  background: var(--reeglo-green-strong);
  color: #ffffff;
}

.market-home .market-guide__action a:active {
  transform: translateY(1px);
}

.market-home .market-safety__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.market-home .market-safety__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.market-home .market-safety__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--reeglo-line);
  border-radius: 12px;
  background: var(--reeglo-bg-deep);
  color: var(--reeglo-ink);
  font-size: 20px;
}

.market-home .market-safety__item h3 {
  margin: 0 0 8px;
  color: var(--reeglo-ink);
  font-size: 20px;
  line-height: 1.3;
}

.market-home .market-safety__item a {
  display: inline-block;
  margin-top: 12px;
  color: var(--reeglo-ink);
  font: 600 14px/1.3 var(--reeglo-font-semibold);
  text-underline-offset: 4px;
}

.market-editorial {
  display: none;
}

.market-home .market-faq,
.logistics-main #faq,
.relay-page #faq {
  width: 100%;
  max-width: 720px !important;
  margin-right: auto !important;
  margin-bottom: 88px;
  margin-left: auto !important;
}

.market-home .market-faq {
  padding-top: 40px;
}

.market-home .market-faq h2,
.logistics-main #faq h2,
.relay-page #faq h2 {
  font-size: clamp(28px, 4vw, 36px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
}

.market-home .market-faq details,
.logistics-main #faq details,
.relay-page .faq-item {
  border: 0 !important;
  border-top: 1px solid var(--reeglo-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.market-home .market-faq details:last-of-type,
.logistics-main #faq details:last-of-type,
.relay-page .faq-item:last-child {
  border-bottom: 1px solid var(--reeglo-line) !important;
}

.market-home footer,
.logistics-footer,
.relay-page footer {
  max-width: 960px;
  padding: 32px 0;
  border-top: 1px solid transparent;
  color: var(--reeglo-muted);
  background: transparent;
}

.logistics-legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}

.logistics-legal-links a {
  color: var(--reeglo-ink) !important;
  font-family: var(--reeglo-font-semibold);
  font-size: 12px;
  text-decoration: none;
}

.logistics-legal-links a:hover {
  color: var(--reeglo-green-strong) !important;
}

.logistics-legal-page .terms-toc h2 {
  margin-bottom: 14px;
  color: var(--reeglo-ink);
  font-size: 13px;
  line-height: 1.3;
}

.logistics-legal-page .terms-section h2 {
  margin: 0 0 18px;
  color: var(--reeglo-ink);
  font-size: 24px !important;
  line-height: 1.33 !important;
}

.market-home footer {
  position: relative;
}

/* About */
.about-page {
  padding: 64px 0 88px;
}

.about-page .container {
  width: min(calc(100% - 40px), 960px);
  max-width: 960px;
}

.about-page .about-lang > section {
  margin-bottom: 88px;
}

.about-page .hero {
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px 40px;
}

.about-page .hero h1,
.contact-page-hero > h2,
.terms-page .terms-title {
  color: var(--reeglo-ink);
  font: 400 clamp(30px, 4vw, 36px)/1.12 var(--reeglo-font-semibold);
  letter-spacing: 0 !important;
}

.about-page .hero p {
  color: var(--reeglo-muted);
  font-size: 16px;
}

.about-page .hero-images img {
  height: min(62dvh, 560px);
  min-height: 400px;
  border-radius: 12px;
}

.about-page .story {
  max-width: 720px;
  margin: 0 auto !important;
}

.about-page .story-content h2,
.about-page .values h2,
.about-page .community h2,
.about-page .timeline h2,
.relay-page .section-heading h2,
.relay-page .charter h2 {
  margin-bottom: 20px;
  color: var(--reeglo-ink);
  font-size: clamp(26px, 3.3vw, 30px);
  line-height: 1.2;
}

.about-page .story-content p {
  color: var(--reeglo-muted);
  font-size: 18px;
  line-height: 1.55;
}

.about-page .values,
.about-page .community,
.about-page .timeline {
  padding: 0;
  background: transparent;
}

.about-page .values-grid,
.about-page .community-grid,
.about-page .timeline-items {
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.about-page .value-card,
.about-page .community-card,
.about-page .timeline-item {
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--reeglo-line);
  border-radius: 12px;
  background: var(--reeglo-surface);
  box-shadow: none;
}

.about-page .value-icon,
.about-page .charter-icon {
  background: var(--reeglo-green-soft);
  color: var(--reeglo-ink);
}

.about-page .community-card:first-child {
  min-height: 260px;
  background: var(--reeglo-green-soft);
}

.about-page .timeline-item:nth-child(even) {
  margin-top: 0;
}

.about-page .ambition {
  padding: 48px;
  border-radius: 12px;
  background: var(--reeglo-ink) !important;
  color: #ffffff;
}

.about-page .ambition::after {
  content: none;
}

.about-page .ambition h2 {
  font-size: clamp(26px, 4vw, 30px);
}

.download-cta {
  padding: 64px 20px;
  border-top: 1px solid var(--reeglo-line);
  background: transparent;
}

/* Contact */
.contact-page {
  min-height: calc(100dvh - 56px);
  padding: 64px 0 88px;
}

.contact-page .container {
  width: min(calc(100% - 40px), 720px);
  max-width: 720px;
}

.contact-page-hero {
  display: block;
}

.contact-page-hero::after {
  content: none;
}

.contact-page-hero > h2 {
  margin-bottom: 32px;
}

.contact-page-hero > form {
  display: block;
}

.contact-form,
.relay-page .form-card {
  padding: 32px;
  border: 1px solid var(--reeglo-line);
  border-radius: 12px;
  background: var(--reeglo-surface-strong);
  box-shadow: none;
}

.contact-form textarea,
.relay-page textarea {
  border: 1px solid var(--reeglo-line);
  border-radius: 12px;
  background: var(--reeglo-surface-strong);
  color: var(--reeglo-ink);
}

/* Legal */
.terms-page {
  padding: 64px 0 88px;
}

.terms-page .container {
  width: min(calc(100% - 40px), 960px);
  max-width: 960px;
}

.terms-page .terms-lang {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0 48px;
}

.terms-page .terms-title {
  max-width: 22ch;
}

.terms-page .terms-toc {
  top: 80px;
  padding: 20px;
  border: 1px solid var(--reeglo-line);
  border-radius: 12px;
  background: transparent;
}

.terms-page .terms-section {
  margin-bottom: 48px;
  color: var(--reeglo-muted);
  font-size: 16px;
  line-height: 1.65;
}

.terms-page .terms-section h3 {
  color: var(--reeglo-ink);
  font-size: 24px;
  line-height: 1.3;
}

/* Logistics */
.logistics-header,
.logistics-main,
.relay-page .page {
  width: min(calc(100% - 40px), 960px);
  max-width: 960px;
}

.logistics-logo img,
.relay-page .brand img {
  width: auto !important;
  height: 40px !important;
  filter: none !important;
}

.logistics-logo,
.logistics-logo img {
  overflow: visible;
}

.logistics-logo img {
  max-width: none;
  border-radius: 0 !important;
  object-fit: contain;
  object-position: left center;
}

.logistics-main {
  padding: 64px 0 88px;
}

.logistics-main.space-y-24 > :not([hidden]) ~ :not([hidden]),
.relay-page main {
  margin-top: 88px !important;
}

.logistics-main > section:first-child {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr) !important;
  gap: 40px !important;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.logistics-main h1,
.relay-page h1 {
  max-width: 13ch;
  color: var(--reeglo-ink) !important;
  font: 400 clamp(30px, 4vw, 36px)/1.11 var(--reeglo-font-semibold) !important;
  letter-spacing: 0 !important;
}

.logistics-main h1 span {
  color: var(--reeglo-ink) !important;
}

.logistics-main > section:first-child > div:last-child {
  height: 440px !important;
  border-radius: 12px !important;
}

.logistics-main > section:first-child > div:last-child > div:last-child {
  right: 12px !important;
  bottom: 12px !important;
  left: 12px !important;
  border: 1px solid var(--reeglo-line) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#profiles {
  gap: 12px !important;
}

#profiles > article,
#process > div:last-child > div {
  border: 1px solid var(--reeglo-line) !important;
  border-radius: 12px !important;
  background: var(--reeglo-surface) !important;
  box-shadow: none !important;
}

#profiles > article:nth-child(2) {
  margin-top: 0;
}

#profiles article > div > div:first-child > div,
#process > div:last-child > div > div:first-child {
  background: var(--reeglo-green-soft) !important;
  color: var(--reeglo-ink) !important;
  box-shadow: none !important;
}

#profiles h3,
#process h2,
#faq h2 {
  color: var(--reeglo-ink) !important;
}

#process > div:last-child {
  gap: 12px !important;
}

#process > div:last-child > div:first-child {
  background: var(--reeglo-surface) !important;
}

@media (min-width: 901px) {
  #process > div:last-child {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
  }

  #process > div:last-child > div,
  #process > div:last-child > div:first-child {
    grid-row: auto;
    display: flex;
    min-width: 0;
    min-height: 280px;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--reeglo-surface) !important;
  }
}

@media (max-width: 900px) {
  #process > div:last-child {
    grid-template-columns: 1fr !important;
  }

  #process > div:last-child > div,
  #process > div:last-child > div:first-child {
    grid-row: auto;
    min-height: 0;
  }
}

#network {
  padding: 40px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--reeglo-ink) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#network h3,
#network p,
#network div.lg\:col-span-4 span {
  color: #ffffff !important;
}

#network div.lg\:col-span-4 span {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: transparent !important;
}

/* Relay application */
.relay-page main {
  gap: 88px;
  margin-top: 64px !important;
}

.relay-page .hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 48px;
  min-height: 0;
}

.relay-page .eyebrow,
.relay-page .step-number,
.relay-page .charter-eyebrow {
  color: var(--reeglo-ink);
  font-size: 13px;
}

.relay-page .hero-list i,
.relay-page .check i {
  color: var(--reeglo-ink);
}

.relay-page .section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.relay-page .steps,
.relay-page .conditions,
.relay-page .charter-grid {
  gap: 12px;
}

@media (min-width: 901px) {
  .relay-page .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .relay-page .steps .card,
  .relay-page .steps .card:first-child {
    grid-row: auto;
    display: flex;
    min-width: 0;
    min-height: 280px;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .relay-page .steps {
    grid-template-columns: 1fr !important;
  }

  .relay-page .steps .card,
  .relay-page .steps .card:first-child {
    grid-row: auto;
    min-height: 0;
  }
}

.relay-page .card,
.relay-page .charter-item,
.relay-page .earnings-card {
  padding: 24px;
  border: 1px solid var(--reeglo-line);
  border-radius: 12px;
  background: var(--reeglo-surface);
  box-shadow: none;
}

.relay-page .conditions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.relay-page .conditions > .condition-card:nth-child(n) {
  grid-column: auto;
}

.relay-page .condition-card {
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
}

.relay-page .condition-card__icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--reeglo-green-soft);
  color: var(--reeglo-ink);
  font-size: 20px;
}

.relay-page .condition-card h3 {
  margin: 0;
  color: var(--reeglo-ink);
}

.relay-page .condition-card p {
  margin: 8px 0 0;
  color: var(--reeglo-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .relay-page .conditions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .relay-page .conditions {
    grid-template-columns: 1fr;
  }

  .relay-page .condition-card {
    min-height: 0;
  }
}

.relay-page .charter {
  padding: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--reeglo-ink);
  color: #ffffff;
}

.relay-page .charter h2,
.relay-page .charter-heading p,
.relay-page .charter-eyebrow,
.relay-page .charter-item h3,
.relay-page .charter-item p {
  color: #ffffff;
}

.relay-page .charter-item {
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

.relay-page .charter-icon,
.relay-page .icon {
  background: var(--reeglo-green-soft);
  color: var(--reeglo-ink);
}

.relay-page .earnings-result {
  border-radius: 12px;
  background: var(--reeglo-bg-deep);
}

@media (max-width: 900px) {
  body:not(.market-home):not(.logistics-page):not(.relay-page) .nav-links,
  .logistics-nav,
  .relay-page .site-nav {
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    top: calc(100% + 1px);
    border-radius: 12px;
    background: var(--reeglo-surface-strong);
    box-shadow: none;
  }

  .market-home .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
    gap: 36px;
  }

  .market-home .mockup-wrapper {
    min-height: 420px;
  }

  .market-home .waitlist-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .market-home .waitlist-context,
  .market-home .waitlist-card {
    grid-column: 1;
    grid-row: auto;
  }

  .logistics-main > section:first-child,
  .relay-page .hero {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767px) {
  body:not(.market-home):not(.logistics-page):not(.relay-page) > header nav,
  .market-home .page,
  .logistics-header,
  .logistics-main,
  .relay-page .page,
  .about-page .container,
  .contact-page .container,
  .terms-page .container {
    width: calc(100% - 32px);
  }

  .market-home .page > header,
  .logistics-header,
  .relay-page .site-header {
    top: 0;
    margin-top: 0;
    padding: 8px 0;
  }

  .market-home .hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
    padding: 48px 0 64px;
  }

  .market-home .hero-copy,
  .market-home .mockup-wrapper {
    grid-column: 1;
    grid-row: auto;
  }

  .market-home h1 {
    max-width: 15ch;
    margin-bottom: 16px;
    font-size: 34px;
    text-align: left;
  }

  .market-home .hero-subtitle {
    font-size: 16px;
    text-align: left;
  }

  .market-home .mockup-wrapper {
    min-height: 380px;
    margin: 0;
    padding: 24px;
  }

  .market-home .waitlist-section {
    gap: 32px;
    padding: 64px 0;
  }

  .market-home .phone-mockup {
    width: min(62vw, 220px);
  }

  .market-home .market-guide,
  .market-home .market-safety {
    padding: 64px 0;
  }

  .market-home .market-guide > h2,
  .market-home .market-safety > h2 {
    margin-bottom: 28px;
    font-size: 28px;
  }

  .market-home .market-guide__grid,
  .market-home .market-safety__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .market-home .market-guide__step h3 {
    margin-top: 16px;
  }

  .market-home .market-guide__action {
    justify-content: flex-start;
    margin-top: 32px;
  }

  .market-home .market-safety__item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
  }

  .market-home .market-safety__icon {
    width: 40px;
    height: 40px;
  }

  .about-page,
  .contact-page,
  .terms-page,
  .logistics-main {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .about-page .about-lang > section,
  .logistics-main.space-y-24 > :not([hidden]) ~ :not([hidden]),
  .relay-page main {
    margin-top: 0 !important;
    margin-bottom: 64px;
  }

  .about-page .hero h1,
  .contact-page-hero > h2,
  .terms-page .terms-title,
  .logistics-main h1,
  .relay-page h1 {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }

  .about-page .hero-images img {
    height: 360px;
    border-radius: 12px;
  }

  .about-page .values,
  .about-page .ambition,
  .contact-form,
  .relay-page .form-card,
  #network,
  .relay-page .charter {
    padding: 24px 20px !important;
    border-radius: 12px !important;
  }

  .terms-page .terms-toc {
    margin-bottom: 40px;
  }

  .logistics-main > section:first-child {
    padding: 0 !important;
  }

  .logistics-main > section:first-child > div:last-child {
    height: 360px !important;
  }

  #profiles,
  #process > div:last-child,
  .relay-page .steps,
  .relay-page .earnings-card {
    grid-template-columns: 1fr !important;
  }

  .relay-page main {
    gap: 64px;
    margin-top: 48px !important;
  }

  .logistics-page .market-back {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 1;
    font-size: 0 !important;
  }

  .logistics-page .market-back i {
    display: inline-flex;
    width: 1em;
    height: 1em;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
    font-size: 15px !important;
  }
}

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

/* Final type lock: page-specific legacy rules must not replace Overused Grotesk. */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: var(--reeglo-font-semibold) !important;
  font-weight: 600 !important;
}

.logo,
.contact-page .message {
  color: var(--reeglo-ink) !important;
}

/* Retire legacy Tailwind green and amber utilities from the logistics page. */
.logistics-page [class*="text-green-"],
.logistics-page [class*="text-emerald-"],
.logistics-page [class*="text-amber-"] {
  color: var(--reeglo-ink) !important;
}

.logistics-page [class*="bg-green-"],
.logistics-page [class*="bg-emerald-"],
.logistics-page [class*="bg-amber-"] {
  background-color: var(--reeglo-green-soft) !important;
}

.logistics-page [class*="border-green-"],
.logistics-page [class*="border-emerald-"],
.logistics-page [class*="border-amber-"] {
  border-color: var(--reeglo-line) !important;
}

.logistics-page #network [class*="text-emerald-"] {
  color: #ffffff !important;
}

.logistics-main #network a {
  border-color: #ffffff !important;
  background: transparent !important;
  color: #ffffff !important;
}

.logistics-main #network a:hover {
  background: #ffffff !important;
  color: var(--reeglo-ink) !important;
}

/* DESIGN.md alignment pass: compact type scale, flat rows, and neutral paper. */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  letter-spacing: 0 !important;
}

.market-home .market-faq h2,
.logistics-main #faq h2,
.relay-page #faq h2,
#process h2,
#network h3,
.relay-page .section-heading h2,
.relay-page .charter h2 {
  font-size: 30px !important;
  line-height: 1.2 !important;
}

.about-page .value-card h3,
.about-page .community-card h3,
.about-page .timeline-item h3,
#profiles h3,
#process h4,
.relay-page .card h3,
.relay-page .charter-item h3 {
  font-size: 20px !important;
  line-height: 1.4 !important;
}

.terms-page .terms-section h3 {
  font-size: 24px !important;
  line-height: 1.33 !important;
}

.terms-page .terms-section h4,
.terms-page .terms-section h5 {
  font-size: 18px !important;
  line-height: 1.55 !important;
}

.market-home .market-faq summary,
.logistics-main #faq summary,
.relay-page .faq-item summary {
  padding: 16px 0 !important;
  font-size: 18px !important;
  line-height: 1.55 !important;
}

.market-home .market-faq-answer,
.logistics-main #faq details p,
.relay-page .faq-item .answer {
  padding-top: 0 !important;
  padding-bottom: 16px !important;
  color: var(--reeglo-muted) !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--reeglo-faint) !important;
  opacity: 1;
}

.footer-links a,
.footer-lang button,
.copyright,
.market-home footer,
.logistics-footer,
.relay-page footer {
  color: var(--reeglo-muted) !important;
  font-size: 12px;
}

@media (max-width: 767px) {
  .market-home h1,
  .about-page .hero h1,
  .contact-page-hero > h2,
  .terms-page .terms-title,
  .logistics-main h1,
  .relay-page h1 {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  .about-page .about-lang > section,
  .logistics-main.space-y-24 > :not([hidden]) ~ :not([hidden]) {
    margin-bottom: 48px !important;
  }

  .relay-page main {
    gap: 48px;
  }

  .market-home .market-faq,
  .logistics-main #faq,
  .relay-page #faq {
    margin-bottom: 48px;
  }

  .market-home .market-faq {
    padding-top: 32px;
  }
}

/* Relay charter: editorial heading and continuous commitment grid. */
.relay-page #charte.charter {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--reeglo-ink);
}

.relay-page #charte .charter-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  max-width: none;
  gap: clamp(48px, 8vw, 88px);
}

.relay-page #charte .charter-eyebrow {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 18px;
  background: var(--reeglo-green-soft);
  color: var(--reeglo-green) !important;
  font: 600 12px/1 var(--reeglo-font-semibold);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.relay-page #charte h2 {
  margin: 24px 0 0;
  color: var(--reeglo-ink) !important;
}

.relay-page #charte .charter-heading > p {
  margin: 0 0 2px;
  color: var(--reeglo-muted) !important;
  font-size: 16px;
  line-height: 1.55;
}

.relay-page #charte .charter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--reeglo-line);
  border-left: 1px solid var(--reeglo-line);
}

.relay-page #charte .charter-item,
.relay-page #charte .charter-item:nth-child(1),
.relay-page #charte .charter-item:nth-child(2),
.relay-page #charte .charter-item:nth-child(5),
.relay-page #charte .charter-item:nth-child(6) {
  grid-column: auto;
  min-width: 0;
  min-height: 280px;
  padding: 32px;
  border: 0;
  border-right: 1px solid var(--reeglo-line);
  border-bottom: 1px solid var(--reeglo-line);
  border-radius: 0;
  background: var(--reeglo-surface);
  box-shadow: none;
}

.relay-page #charte .charter-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 32px;
  border-radius: 14px;
  background: var(--reeglo-green-soft);
  color: var(--reeglo-green);
  font-size: 28px;
}

.relay-page #charte .charter-item h3 {
  margin: 0;
  color: var(--reeglo-ink);
}

.relay-page #charte .charter-item p {
  margin: 18px 0 0;
  color: var(--reeglo-muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (min-width: 901px) {
  .relay-page #charte .charter-item,
  .relay-page #charte .charter-item:nth-child(1),
  .relay-page #charte .charter-item:nth-child(2),
  .relay-page #charte .charter-item:nth-child(5),
  .relay-page #charte .charter-item:nth-child(6) {
    min-height: 301px;
  }
}

@media (max-width: 900px) {
  .relay-page #charte .charter-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .relay-page #charte .charter-heading > p {
    max-width: 620px;
  }

  .relay-page #charte .charter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 36px;
  }
}

@media (max-width: 620px) {
  .relay-page #charte.charter {
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .relay-page #charte .charter-grid {
    grid-template-columns: 1fr !important;
  }

  .relay-page #charte .charter-item,
  .relay-page #charte .charter-item:nth-child(1),
  .relay-page #charte .charter-item:nth-child(2),
  .relay-page #charte .charter-item:nth-child(5),
  .relay-page #charte .charter-item:nth-child(6) {
    min-height: 0;
    padding: 28px 24px;
  }
}

/* Relay earnings calculator: restore a visible, accessible range track. */
.relay-page #parcel-volume {
  --slider-progress: 26.6667%;
  appearance: none;
  width: 100%;
  min-height: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.relay-page #parcel-volume::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: var(--reeglo-pill);
  background: linear-gradient(
    to right,
    var(--reeglo-green) 0 var(--slider-progress),
    #bbf7d0 var(--slider-progress) 100%
  );
}

.relay-page #parcel-volume::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--reeglo-green);
  box-shadow: 0 2px 8px rgba(0, 39, 44, 0.28);
}

.relay-page #parcel-volume::-moz-range-track {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: var(--reeglo-pill);
  background: #bbf7d0;
}

.relay-page #parcel-volume::-moz-range-progress {
  height: 6px;
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-green);
}

.relay-page #parcel-volume::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--reeglo-green);
  box-shadow: 0 2px 8px rgba(0, 39, 44, 0.28);
}

.relay-page #parcel-volume:focus-visible {
  outline: none;
}

.relay-page #parcel-volume:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 2px 8px rgba(0, 39, 44, 0.28),
    0 0 0 4px rgba(22, 163, 74, 0.2);
}

.relay-page #parcel-volume:focus-visible::-moz-range-thumb {
  box-shadow:
    0 2px 8px rgba(0, 39, 44, 0.28),
    0 0 0 4px rgba(22, 163, 74, 0.2);
}

@media (max-width: 767px) {
  :is(.logistics-legal-page, .market-legal-page) .terms-page {
    width: 100%;
    padding: 40px 0 64px;
  }

  :is(.logistics-legal-page, .market-legal-page) .terms-page .container {
    width: 100%;
    max-width: none;
    padding-right: 16px;
    padding-left: 16px;
  }

  :is(.logistics-legal-page, .market-legal-page) .terms-page .terms-lang {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  :is(.logistics-legal-page, .market-legal-page) .terms-page .terms-title,
  :is(.logistics-legal-page, .market-legal-page) .terms-page .terms-updated,
  :is(.logistics-legal-page, .market-legal-page) .terms-page .terms-toc,
  :is(.logistics-legal-page, .market-legal-page) .terms-page .terms-section {
    min-width: 0;
    grid-column: 1;
  }

  :is(.logistics-legal-page, .market-legal-page) .terms-page .terms-title {
    max-width: none;
    overflow-wrap: anywhere;
  }

  :is(.logistics-legal-page, .market-legal-page) .terms-page .terms-toc {
    width: 100%;
    grid-row: auto;
    position: static;
    top: auto;
    max-height: none;
    margin-bottom: 40px;
    overflow: visible;
  }

  :is(.logistics-legal-page, .market-legal-page) .terms-page .terms-section {
    width: 100%;
    margin-bottom: 40px;
  }

  :is(.logistics-legal-page, .market-legal-page) .terms-page p,
  :is(.logistics-legal-page, .market-legal-page) .terms-page li,
  :is(.logistics-legal-page, .market-legal-page) .terms-page a {
    overflow-wrap: anywhere;
  }
}

/* Market page: keep the complete canvas white regardless of saved theme state. */
body.market-home,
body.market-home[data-theme="light"],
body.market-home[data-theme="dark"] {
  --reeglo-bg: #ffffff;
  --reeglo-bg-deep: #fafafa;
  --reeglo-surface: #ffffff;
  --reeglo-surface-strong: #ffffff;
  --reeglo-ink: #171717;
  --reeglo-muted: #737373;
  --reeglo-faint: #a3a3a3;
  --reeglo-line: #e5e5e5;
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --card-bg: #ffffff;
  --text-main: #171717;
  --text-muted: #737373;
  --border-subtle: #e5e5e5;
  background: #ffffff !important;
}

.market-home .page,
.market-home main {
  background: #ffffff;
}

.market-home .page > header {
  background: #ffffff !important;
}

/* Market about page: image-led editorial layout using the shared Market system. */
.market-about-page {
  --reeglo-bg: #ffffff;
  --reeglo-bg-deep: #fafafa;
  --reeglo-surface: #ffffff;
  --reeglo-surface-strong: #ffffff;
  --reeglo-ink: #171717;
  --reeglo-muted: #737373;
  --reeglo-line: #e5e5e5;
  background: #ffffff;
}

.market-about-page .legal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.market-about-page .legal-header-delivery {
  display: inline-flex;
  min-height: 36px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--reeglo-green);
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-green);
  color: var(--reeglo-on-green);
  font: 500 14px/1 var(--reeglo-font-semibold);
  text-decoration: none;
  white-space: nowrap;
}

.market-about-page .legal-header-delivery:hover {
  border-color: var(--reeglo-green-strong);
  background: var(--reeglo-green-strong);
  color: #ffffff;
}

.market-about-page .legal-header-delivery:active {
  transform: translateY(1px);
}

.market-about-page .legal-header-delivery i {
  font-size: 17px;
}

.market-about-page .about-page {
  padding: 48px 0 96px;
  background: #ffffff;
}

.market-about-page .about-page .container {
  width: min(calc(100% - 40px), 1120px);
  max-width: 1120px;
}

.market-about-page .about-page .about-lang > section {
  margin: 0 !important;
  padding: 88px 0;
  border-bottom: 1px solid var(--reeglo-line);
}

.market-about-page .about-page .about-lang > .values {
  border: 0;
  border-bottom: 1px solid var(--reeglo-line);
  border-radius: 0 !important;
}

.market-about-page .about-page .about-lang > .hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: auto;
  gap: 56px;
  align-items: center;
  padding-top: 24px;
}

.market-about-page .about-hero-copy {
  max-width: 500px;
}

.market-about-page .about-kicker {
  display: block;
  margin-bottom: 22px;
  color: var(--reeglo-ink);
  font: 600 14px/1.3 var(--reeglo-font-semibold);
}

.market-about-page .about-page .hero h1 {
  max-width: 11ch;
  margin: 0 0 24px;
  color: var(--reeglo-ink);
  font: 400 clamp(38px, 5vw, 56px)/1.04 var(--reeglo-font-semibold);
  letter-spacing: -0.035em !important;
  text-align: left;
}

.market-about-page .about-page .hero p {
  max-width: 38ch;
  margin: 0;
  color: var(--reeglo-ink);
  font-size: 18px;
  line-height: 1.55;
  text-align: left;
}

.market-about-page .about-page .hero-images {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  margin: 0;
}

.market-about-page .about-page .hero-images img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.market-about-page .about-page .story {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 72px;
  align-items: center;
  max-width: none;
  margin: 0 !important;
}

.market-about-page .about-page .story-content h2,
.market-about-page .about-page .values h2,
.market-about-page .about-page .ambition h2,
.market-about-page .about-page .community h2,
.market-about-page .about-page .timeline h2 {
  max-width: 18ch;
  margin: 0 0 20px;
  color: var(--reeglo-ink);
  font: 400 clamp(28px, 3.5vw, 38px)/1.15 var(--reeglo-font-semibold);
  letter-spacing: -0.02em !important;
  text-align: left;
}

.market-about-page .about-page .story-content p {
  max-width: 45ch;
  color: var(--reeglo-ink);
  font-size: 20px;
  line-height: 1.55;
  text-align: left;
}

.market-about-page .about-page .story-image {
  display: block;
  width: min(100%, 520px);
  margin-left: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
}

.market-about-page .about-page .story-image img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.market-about-page .about-page .values,
.market-about-page .about-page .community,
.market-about-page .about-page .timeline {
  padding-right: 0;
  padding-left: 0;
  background: transparent;
}

.market-about-page .about-page .values h2,
.market-about-page .about-page .community h2,
.market-about-page .about-page .timeline h2 {
  margin-bottom: 36px;
}

.market-about-page .about-page .values-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.market-about-page .about-page .value-card {
  grid-column: span 6;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--reeglo-line);
  border-radius: 12px;
  background: var(--reeglo-surface);
  text-align: left;
}

.market-about-page .about-page .value-card:nth-child(1),
.market-about-page .about-page .value-card:nth-child(4) {
  grid-column: span 7;
}

.market-about-page .about-page .value-card:nth-child(2),
.market-about-page .about-page .value-card:nth-child(3) {
  grid-column: span 5;
}

.market-about-page .about-page .value-icon,
.market-about-page .about-page .community-card > i {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 0 30px;
  border-radius: 50%;
  background: var(--reeglo-green-soft);
  color: var(--reeglo-green-strong);
  font-size: 20px;
}

.market-about-page .about-page .value-card h3,
.market-about-page .about-page .community-card h3,
.market-about-page .about-page .timeline-item h3 {
  margin: 0 0 8px;
  color: var(--reeglo-ink);
  font-size: 20px !important;
  line-height: 1.35 !important;
}

.market-about-page .about-page .value-card p,
.market-about-page .about-page .community-card p,
.market-about-page .about-page .timeline-item p {
  max-width: 48ch;
  color: var(--reeglo-muted);
  font-size: 16px;
  line-height: 1.55;
}

.market-about-page .about-page .about-lang > .ambition {
  padding: 88px 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--reeglo-ink);
}

.market-about-page .about-page .ambition::after {
  content: none;
}

.market-about-page .about-page .ambition-content {
  max-width: none;
  margin: 0;
  padding: 48px;
  border-radius: 12px;
  background: var(--reeglo-green-soft);
}

.market-about-page .about-page .ambition p {
  max-width: 64ch;
  margin: 0;
  color: var(--reeglo-ink);
  font-size: 19px;
  line-height: 1.55;
}

.market-about-page .about-page .community-content {
  max-width: 690px;
  margin: 0 0 36px;
  text-align: left;
}

.market-about-page .about-page .community-content p {
  color: var(--reeglo-ink);
  font-size: 18px;
  line-height: 1.55;
}

.market-about-page .about-page .community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 0;
  border: 0;
  background: transparent;
}

.market-about-page .about-page .community-card {
  min-height: 0;
  padding: 0 32px;
  border: 0;
  border-left: 1px solid var(--reeglo-line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.market-about-page .about-page .community-card:first-child {
  grid-row: auto;
  display: block;
  min-height: 0;
  padding-left: 0;
  border-left: 0;
  background: transparent;
}

.market-about-page .about-page .community-card:last-child {
  padding-right: 0;
}

.market-about-page .about-page .timeline-items {
  display: block;
}

.market-about-page .about-page .timeline-item {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  gap: 36px;
  min-height: 0;
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--reeglo-line);
  border-radius: 0;
  background: transparent;
}

.market-about-page .about-page .about-lang > .timeline {
  border-bottom: 0;
}

.market-about-page .about-page .timeline-item h3 {
  color: var(--reeglo-ink);
}

.market-about-page .download-cta {
  padding: 72px 20px;
  border-top: 1px solid var(--reeglo-line);
  background: #ffffff;
}

.market-about-page .download-cta .container {
  width: min(100%, 720px);
}

.market-about-page .download-cta h2,
.market-about-page .download-cta .container > p {
  color: var(--reeglo-ink);
}

.market-about-page .download-cta .waitlist-button {
  text-decoration: none;
}

@media (max-width: 767px) {
  .market-about-page > header nav,
  .market-about-page .about-page .container {
    width: calc(100% - 32px);
  }

  .market-about-page .legal-header-actions {
    gap: 8px;
  }

  .market-about-page .legal-header-delivery {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .market-about-page .legal-header-delivery i {
    color: #ffffff;
    font-size: 19px;
  }

  .market-about-page .lang-selector {
    min-width: 68px;
    padding: 0 28px 0 12px;
  }

  .market-about-page .about-page {
    padding: 24px 0 64px;
  }

  .market-about-page .about-page .about-lang > section {
    padding: 56px 0;
  }

  .market-about-page .about-page .about-lang > .values {
    padding: 56px 0 !important;
    border-radius: 0 !important;
  }

  .market-about-page .about-page .about-lang > .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 24px;
  }

  .market-about-page .about-page .hero h1 {
    max-width: 13ch;
    margin-bottom: 18px;
    font-size: 36px !important;
    line-height: 1.08 !important;
  }

  .market-about-page .about-kicker {
    margin-bottom: 16px;
  }

  .market-about-page .about-page .hero-images img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-position: center;
  }

  .market-about-page .about-page .story {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .market-about-page .about-page .story-content p {
    font-size: 18px;
  }

  .market-about-page .about-page .story-image {
    width: 100%;
    margin: 0;
    aspect-ratio: 4 / 5;
  }

  .market-about-page .about-page .values-grid,
  .market-about-page .about-page .community-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .market-about-page .about-page .value-card,
  .market-about-page .about-page .value-card:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
    padding: 24px;
  }

  .market-about-page .about-page .community-card,
  .market-about-page .about-page .community-card:first-child,
  .market-about-page .about-page .community-card:last-child {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--reeglo-line);
  }

  .market-about-page .about-page .community-card:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .market-about-page .about-page .value-icon,
  .market-about-page .about-page .community-card > i {
    margin-bottom: 22px;
  }

  .market-about-page .about-page .about-lang > .ambition {
    padding: 56px 0 !important;
  }

  .market-about-page .about-page .ambition-content {
    padding: 28px 24px;
  }

  .market-about-page .about-page .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 24px 0;
  }

  .market-about-page .download-cta {
    padding: 56px 16px;
  }
}
