/* Reeglo 2026 visual system
   Surfaces use a 20px radius, controls use 12px, actions use a pill shape. */

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

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

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

:root {
  --reeglo-bg: #f3f6f1;
  --reeglo-bg-deep: #e8eee8;
  --reeglo-surface: #fbfcfa;
  --reeglo-surface-strong: #fdfefc;
  --reeglo-ink: #102018;
  --reeglo-muted: #59675f;
  --reeglo-faint: #78847d;
  --reeglo-line: #d6ded7;
  --reeglo-green: #16a34a;
  --reeglo-green-strong: #166534;
  --reeglo-green-soft: #f0fdf4;
  --reeglo-on-green: #ffffff;
  --reeglo-radius: 20px;
  --reeglo-control-radius: 12px;
  --reeglo-pill: 999px;
  --reeglo-shadow: 0 24px 70px rgba(31, 61, 43, 0.09);
  --reeglo-shadow-small: 0 10px 30px rgba(31, 61, 43, 0.07);
  --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-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  background: var(--reeglo-bg);
  color: var(--reeglo-ink);
  font-family: var(--reeglo-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--reeglo-green);
  color: var(--reeglo-on-green);
}

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--reeglo-green) 45%, transparent);
  outline-offset: 3px;
}

button,
a,
summary {
  touch-action: manipulation;
}

img,
video {
  max-width: 100%;
}

.nav-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--reeglo-line);
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-surface);
  color: var(--reeglo-ink);
  cursor: pointer;
  font: 600 18px/1 var(--reeglo-font-semibold);
  transition: transform 180ms ease, background-color 180ms ease;
}

.nav-menu-toggle:active,
.button-primary:active,
.button:active,
.header-link--primary:active,
.market-back:active,
.contact-form button[type="submit"]:active {
  transform: scale(0.98);
}

.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shared Market pages */
body:not(.market-home):not(.logistics-page):not(.relay-page) > header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--reeglo-line) 72%, transparent);
  background: color-mix(in srgb, var(--reeglo-bg) 88%, transparent);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

body:not(.market-home):not(.logistics-page):not(.relay-page) > header nav {
  width: min(100% - 40px, 1280px);
  min-height: 72px;
  margin: 0 auto;
  padding: 0;
}

body:not(.market-home):not(.logistics-page):not(.relay-page) .logo img {
  height: 37px !important;
  width: auto;
}

body:not(.market-home):not(.logistics-page):not(.relay-page) .nav-links {
  gap: clamp(16px, 2vw, 30px);
}

body:not(.market-home):not(.logistics-page):not(.relay-page) .nav-links a {
  color: var(--reeglo-muted);
  font: 600 13px/1 var(--reeglo-font-semibold);
  transition: color 180ms ease;
}

body:not(.market-home):not(.logistics-page):not(.relay-page) .nav-links a:hover {
  color: var(--reeglo-green-strong);
}

.lang-selector {
  min-height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--reeglo-line);
  border-radius: var(--reeglo-pill);
  background-color: var(--reeglo-surface);
  color: var(--reeglo-ink);
  font: 600 13px/1 var(--reeglo-font-semibold);
}

body:not(.market-home):not(.logistics-page):not(.relay-page) > footer {
  margin: 0;
  padding: 38px max(20px, calc((100vw - 1280px) / 2));
  border-top: 1px solid var(--reeglo-line);
  background: var(--reeglo-bg-deep);
  color: var(--reeglo-muted);
}

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

body:not(.market-home):not(.logistics-page):not(.relay-page) .copyright {
  color: var(--reeglo-muted) !important;
}

.footer-links a,
.footer-lang button {
  color: var(--reeglo-ink) !important;
  font-family: var(--reeglo-font-semibold);
}

/* Reeglo Market home */
body.market-home {
  --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: var(--reeglo-radius);
  --radius-pill: var(--reeglo-pill);
  --border-radius: var(--reeglo-control-radius);
  --shadow-soft: var(--reeglo-shadow-small);
  display: block;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 14% 12%, rgba(22, 134, 79, 0.08), transparent 28%),
    var(--reeglo-bg);
}

.market-home .page {
  width: min(100% - 40px, 1320px);
  max-width: 1320px;
  padding: 0 0 40px;
  gap: 0;
}

.market-home .page > header {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 64px;
  margin-top: 12px;
  padding: 10px 12px 10px 18px;
  border: 1px solid color-mix(in srgb, var(--reeglo-line) 78%, transparent);
  border-radius: var(--reeglo-pill);
  background: color-mix(in srgb, var(--reeglo-surface) 88%, transparent);
  box-shadow: 0 8px 26px rgba(31, 61, 43, 0.06);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.market-home .logo img {
  height: 38px !important;
}

.market-home .header-right {
  gap: 10px;
}

.market-home .header-link {
  color: var(--reeglo-muted);
  font: 600 13px/1 var(--reeglo-font-semibold);
}

.market-home .header-link--inactive {
  display: none;
}

.market-home .header-link--primary {
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-green-strong);
  color: var(--reeglo-on-green);
}

.market-home .theme-toggle {
  width: 42px;
  height: 42px;
  border-color: var(--reeglo-line);
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-surface);
}

.market-home main {
  display: block;
}

.market-home .hero-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 2.32fr);
  gap: clamp(26px, 3vw, 52px);
  align-items: center;
  min-height: calc(100dvh - 88px);
  padding: 34px 0 42px;
}

.market-home .mockup-wrapper {
  justify-content: flex-end;
  position: relative;
}

.market-home .mockup-wrapper::before {
  content: "";
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--reeglo-green-soft);
  filter: blur(0);
}

.market-home .phone-mockup {
  width: min(100%, 270px);
  padding: 6px;
  border: 1px solid rgba(16, 32, 24, 0.22);
  border-radius: 34px;
  background: #18211c;
  box-shadow: 0 28px 70px rgba(16, 32, 24, 0.22);
  transform: rotate(-2.5deg);
}

.market-home .phone-inner {
  padding: 7px;
  border-radius: 28px;
  background: #18211c;
}

.market-home .notch {
  top: 11px;
  width: 74px;
  height: 16px;
  border-radius: var(--reeglo-pill);
  background: #18211c;
}

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

.market-home .hero {
  display: block;
  position: static;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.market-home .hero::before {
  content: none;
}

.market-home .hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
}

.market-home .hero-text {
  max-width: 640px;
}

.market-home h1 {
  max-width: 650px;
  margin: 0 0 18px;
  color: var(--reeglo-ink);
  font: 600 clamp(40px, 4.8vw, 68px) / 0.98 var(--reeglo-font-semibold);
  letter-spacing: -0.052em;
}

.market-home h1 span {
  color: var(--reeglo-green-strong);
}

.market-home .hero-subtitle {
  max-width: 58ch;
  margin: 0 0 22px;
  color: var(--reeglo-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}

.market-home .hero-points {
  gap: 10px;
  color: var(--reeglo-ink);
  font-size: 13px;
  line-height: 1.45;
}

.market-home .hero-points span {
  align-items: flex-start;
}

.market-home .launch-countdown {
  margin-top: 20px;
}

.market-home .launch-countdown-label {
  max-width: 44ch;
  color: var(--reeglo-green-strong);
  font-size: 11px;
  letter-spacing: 0.055em;
}

.market-home .waitlist-card {
  max-width: none;
  padding: 24px;
  border-color: rgba(22, 134, 79, 0.18);
  border-radius: var(--reeglo-radius);
  background: var(--reeglo-surface-strong);
  box-shadow: var(--reeglo-shadow);
}

.market-home .waitlist-title {
  margin-bottom: 8px;
  color: var(--reeglo-ink);
  font-size: 19px;
  line-height: 1.18;
}

.market-home .waitlist-sub {
  margin-bottom: 18px;
  color: var(--reeglo-muted);
  font-size: 13px;
  line-height: 1.45;
}

.market-home form,
.market-home .field-row,
.market-home .inline-fields {
  gap: 12px;
}

.market-home label {
  margin-bottom: 5px;
  color: var(--reeglo-ink);
  font: 600 12px/1.35 var(--reeglo-font-semibold);
}

.market-home input,
.market-home select {
  min-height: 44px;
  padding: 10px 12px;
  border-color: #bdc9c0;
  border-radius: var(--reeglo-control-radius);
  background: var(--reeglo-surface);
  color: var(--reeglo-ink);
}

.market-home input::placeholder {
  color: #69776e;
}

.market-home .role-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.market-home .role-pill {
  min-width: 0;
  justify-content: center;
  padding: 8px;
  border-radius: var(--reeglo-control-radius);
  background: var(--reeglo-bg);
  color: var(--reeglo-muted);
}

.market-home .button-primary {
  min-height: 46px;
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-green-strong);
  color: var(--reeglo-on-green);
  box-shadow: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.market-home .button-primary:hover {
  background: var(--reeglo-green);
  box-shadow: none;
}

.market-home .waitlist-note {
  color: var(--reeglo-muted);
  line-height: 1.45;
}

.market-editorial {
  position: relative;
  width: 100%;
  height: clamp(300px, 38vw, 510px);
  margin: 20px 0 100px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--reeglo-shadow-small);
}

.market-editorial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-home .market-faq {
  max-width: 900px;
  margin: 0 auto 90px;
}

.market-home .market-faq h2 {
  margin-bottom: 10px;
  color: var(--reeglo-ink);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.04em;
}

.market-home .market-faq-intro {
  margin-bottom: 30px;
  color: var(--reeglo-muted);
  font-size: 16px;
}

.market-home .market-faq details {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--reeglo-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.market-home .market-faq details:last-of-type {
  border-bottom: 1px solid var(--reeglo-line);
}

.market-home .market-faq summary {
  padding: 22px 0;
  font-size: 17px;
}

.market-home .market-faq-answer {
  max-width: 72ch;
  padding: 0 48px 24px 0;
  color: var(--reeglo-muted);
  font-size: 15px;
  line-height: 1.65;
}

.market-home footer {
  margin: 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--reeglo-line);
  color: var(--reeglo-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* About page */
.about-page {
  padding: 52px 0 110px;
  background: transparent;
}

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

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

.about-page .hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  grid-template-rows: auto 1fr;
  gap: 16px 60px;
  align-items: end;
  padding: 0;
  text-align: left;
  background: transparent;
  overflow: visible;
}

.about-page .hero::before {
  content: none;
}

.about-page .hero h1 {
  align-self: end;
  max-width: 580px;
  margin: 0;
  color: var(--reeglo-ink);
  font: 600 clamp(48px, 6.2vw, 82px) / 0.98 var(--reeglo-font-semibold);
  letter-spacing: -0.052em;
  text-align: left;
}

.about-page .hero p {
  align-self: start;
  max-width: 34ch;
  margin: 0;
  color: var(--reeglo-muted);
  font-size: 19px;
  line-height: 1.45;
  text-align: left;
}

.about-page .hero-images {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.about-page .hero-images img {
  height: min(68dvh, 690px);
  min-height: 460px;
  border-radius: 28px;
  object-position: center 35%;
}

.about-page .story {
  display: block;
  max-width: 920px;
  margin-right: 0 !important;
  margin-left: auto !important;
  padding: 0;
}

.about-page .story-content h2,
.about-page .values h2,
.about-page .community h2,
.about-page .timeline h2 {
  margin: 0 0 28px;
  color: var(--reeglo-ink);
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1;
  letter-spacing: -0.042em;
  text-align: left;
}

.about-page .story-content p {
  max-width: 64ch;
  padding: 0;
  color: var(--reeglo-muted);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.5;
  text-align: left;
}

.about-page .values {
  padding: 58px;
  border-radius: 28px;
  background: var(--reeglo-bg-deep);
}

.about-page .values-grid {
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--reeglo-line);
  border-radius: var(--reeglo-radius);
  background: var(--reeglo-line);
}

.about-page .value-card {
  min-height: 235px;
  padding: 34px;
  border-radius: 0;
  background: var(--reeglo-surface);
  text-align: left;
}

.about-page .value-card:nth-child(3) {
  grid-column: 1;
}

.about-page .value-card:nth-child(4) {
  grid-column: 2;
}

.about-page .value-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--reeglo-green-soft);
  color: var(--reeglo-green-strong);
  font-size: 19px;
}

.about-page .value-card h3 {
  margin-bottom: 8px;
  color: var(--reeglo-ink);
  font-size: 22px;
}

.about-page .value-card p {
  max-width: 44ch;
  color: var(--reeglo-muted);
  font-size: 15px;
  line-height: 1.55;
}

.about-page .ambition {
  position: relative;
  padding: 88px 56px;
  border-radius: 28px;
  background: var(--reeglo-green-strong);
  color: var(--reeglo-on-green);
  text-align: left;
  overflow: hidden;
}

.about-page .ambition::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255, 255, 255, 0.035), 0 0 0 104px rgba(255, 255, 255, 0.025);
}

.about-page .ambition-content {
  max-width: 900px;
  margin: 0;
}

.about-page .ambition h2 {
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.about-page .ambition p {
  max-width: 64ch;
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
}

.about-page .community {
  padding: 0;
}

.about-page .community-content {
  max-width: 670px;
  margin-bottom: 36px;
  text-align: left;
}

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

.about-page .community-grid {
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.about-page .community-card {
  padding: 34px;
  border: 1px solid var(--reeglo-line);
  border-radius: var(--reeglo-radius);
  background: var(--reeglo-surface);
  text-align: left;
}

.about-page .community-card:first-child {
  grid-row: 1 / span 2;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--reeglo-green-soft);
}

.about-page .community-card h3 {
  margin-bottom: 8px;
  color: var(--reeglo-ink);
  font-size: 22px;
}

.about-page .community-card p {
  max-width: 48ch;
  color: var(--reeglo-muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.about-page .timeline-items {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.about-page .timeline-item {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--reeglo-line);
  border-left: 1px solid var(--reeglo-line);
  border-radius: var(--reeglo-radius);
  background: var(--reeglo-surface);
}

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

.about-page .timeline-item h3 {
  color: var(--reeglo-green-strong);
  font-size: 15px;
}

.about-page .timeline-item p {
  color: var(--reeglo-muted);
  font-size: 14px;
  line-height: 1.55;
}

.download-cta {
  padding: 84px 20px;
  background: var(--reeglo-bg-deep);
}

.download-cta h2 {
  color: var(--reeglo-ink);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.035em;
}

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

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

.contact-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  grid-template-rows: auto minmax(340px, 1fr);
  gap: 30px 70px;
  align-items: start;
}

.contact-page-hero::after {
  content: "";
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  min-height: 430px;
  border-radius: 28px;
  background: url("images/market-editorial-v2.webp") 68% center / cover no-repeat;
  box-shadow: var(--reeglo-shadow-small);
}

.contact-page-hero > h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--reeglo-ink);
  font: 600 clamp(46px, 5.5vw, 76px) / 0.98 var(--reeglo-font-semibold);
  letter-spacing: -0.05em;
  text-align: left;
}

.contact-page-hero > form {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.success-message-container {
  grid-column: 2;
  grid-row: 1;
  margin-top: -2px;
}

.contact-form {
  padding: 36px;
  border: 1px solid var(--reeglo-line);
  border-radius: 24px;
  background: var(--reeglo-surface-strong);
  box-shadow: var(--reeglo-shadow);
}

.contact-form label {
  margin-bottom: 8px;
  color: var(--reeglo-ink);
  font: 600 14px/1.3 var(--reeglo-font-semibold);
}

.contact-form textarea,
.contact-form input[type="text"],
.contact-form input[type="email"] {
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid #b9c5bc;
  border-radius: var(--reeglo-control-radius);
  background: var(--reeglo-surface);
  color: var(--reeglo-ink);
}

.contact-form textarea::placeholder,
.contact-form input::placeholder {
  color: #68766d;
  opacity: 1;
}

.contact-form textarea:focus,
.contact-form input:focus {
  border-color: var(--reeglo-green);
  outline: 3px solid rgba(22, 134, 79, 0.16);
}

.contact-form button[type="submit"] {
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-green-strong);
  color: var(--reeglo-on-green);
  box-shadow: none;
}

/* Legal pages */
.terms-page {
  padding: 64px 0 110px;
  background: transparent;
}

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

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

.terms-page .terms-title,
.terms-page .terms-updated {
  grid-column: 1 / -1;
}

.terms-page .terms-title {
  max-width: 18ch;
  margin: 0 0 16px;
  color: var(--reeglo-ink);
  font: 600 clamp(42px, 5.6vw, 72px) / 1 var(--reeglo-font-semibold);
  letter-spacing: -0.05em;
}

.terms-page .terms-updated {
  margin-bottom: 48px;
  color: var(--reeglo-muted);
}

.terms-page .terms-toc {
  grid-column: 1;
  grid-row: 3 / span 999;
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100dvh - 124px);
  margin: 0;
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--reeglo-line);
  border-radius: var(--reeglo-radius);
  background: var(--reeglo-bg-deep);
}

.terms-page .terms-toc h3 {
  margin-bottom: 14px;
  color: var(--reeglo-ink);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.terms-page .terms-toc ol {
  padding-left: 18px;
}

.terms-page .terms-toc li,
.terms-page .terms-toc a {
  color: var(--reeglo-muted);
  font-size: 12px;
  line-height: 1.45;
}

.terms-page .terms-toc a:hover {
  color: var(--reeglo-green-strong);
}

.terms-page .terms-section {
  grid-column: 2;
  margin: 0 0 52px;
  padding: 0;
  color: var(--reeglo-muted);
  font-size: 16px;
  line-height: 1.72;
}

.terms-page .terms-section h3 {
  margin: 0 0 18px;
  color: var(--reeglo-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.terms-page .terms-section h4,
.terms-page .terms-section h5 {
  color: var(--reeglo-ink);
}

.terms-page .terms-section p {
  margin-bottom: 13px;
}

.terms-page .terms-section li + li {
  margin-top: 6px;
}

/* Logistics landing */
body.logistics-page {
  --bg: var(--reeglo-bg);
  --text-main: var(--reeglo-ink);
  --text-muted: var(--reeglo-muted);
  --accent: var(--reeglo-green);
  --accent-strong: var(--reeglo-green-strong);
  --border-subtle: var(--reeglo-line);
  --radius-lg: var(--reeglo-radius);
  --shadow-soft: var(--reeglo-shadow-small);
  background:
    radial-gradient(circle at 80% 8%, rgba(22, 134, 79, 0.08), transparent 28%),
    var(--reeglo-bg);
  color: var(--reeglo-ink);
}

.logistics-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(100% - 40px, 1280px);
  max-width: 1280px;
  min-height: 64px;
  margin: 12px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid color-mix(in srgb, var(--reeglo-line) 78%, transparent);
  border-radius: var(--reeglo-pill);
  background: color-mix(in srgb, var(--reeglo-surface) 88%, transparent);
  box-shadow: 0 8px 26px rgba(31, 61, 43, 0.06);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.logistics-header__inner {
  min-height: 42px;
}

.logistics-logo img {
  height: 34px;
}

.logistics-nav {
  gap: 24px;
}

.logistics-nav a,
.market-back {
  color: var(--reeglo-muted);
  font: 600 13px/1 var(--reeglo-font-semibold);
}

.market-back {
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-green-strong);
  color: var(--reeglo-on-green);
}

.logistics-main {
  width: min(100% - 40px, 1280px);
  max-width: 1280px;
  padding: 46px 0 110px;
}

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

.logistics-main > section:first-child {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr) !important;
  gap: clamp(32px, 5vw, 70px) !important;
  min-height: min(720px, calc(100dvh - 150px));
  padding: clamp(28px, 4vw, 58px) !important;
  border: 1px solid var(--reeglo-line) !important;
  border-radius: 28px !important;
  background: var(--reeglo-surface-strong) !important;
  box-shadow: var(--reeglo-shadow) !important;
}

.logistics-main > section:first-child > div:first-child {
  grid-column: auto !important;
}

.logistics-main h1 {
  max-width: 11ch;
  color: var(--reeglo-ink) !important;
  font: 600 clamp(48px, 6vw, 78px) / 0.96 var(--reeglo-font-semibold) !important;
  letter-spacing: -0.052em !important;
}

.logistics-main h1 span {
  background: none !important;
  color: var(--reeglo-green-strong) !important;
}

.logistics-main > section:first-child p {
  max-width: 58ch;
  color: var(--reeglo-muted) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

.logistics-main > section:first-child a[href="#process"],
.logistics-main #network a {
  min-height: 48px;
  padding: 0 22px !important;
  border-radius: var(--reeglo-pill) !important;
  background: var(--reeglo-green-strong) !important;
  color: var(--reeglo-on-green) !important;
  box-shadow: none !important;
}

.logistics-main > section:first-child a[href="devenir-point-relais.html"] {
  min-height: 48px;
  padding: 0 22px !important;
  border-color: var(--reeglo-line) !important;
  border-radius: var(--reeglo-pill) !important;
  background: var(--reeglo-bg) !important;
  color: var(--reeglo-ink) !important;
}

.logistics-main .hero-stats {
  gap: 36px;
}

.logistics-main .hero-stats > div > div:first-child {
  color: var(--reeglo-green-strong) !important;
}

.logistics-main > section:first-child > div:last-child {
  grid-column: auto !important;
  height: 540px !important;
  border-radius: var(--reeglo-radius) !important;
}

.logistics-main > section:first-child > div:last-child > div:last-child {
  right: 18px !important;
  bottom: 18px !important;
  left: 18px !important;
  border-radius: 16px !important;
  background: rgba(251, 252, 250, 0.92) !important;
}

#profiles {
  grid-template-columns: 0.9fr 1.1fr !important;
  gap: 20px !important;
}

#profiles > article {
  border: 1px solid var(--reeglo-line) !important;
  border-radius: 24px !important;
  background: var(--reeglo-surface) !important;
  box-shadow: none !important;
}

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

#profiles article > div > div:first-child {
  height: 300px !important;
}

#profiles article > div > div:first-child > div {
  border-radius: 50% !important;
  background: var(--reeglo-surface) !important;
  color: var(--reeglo-green-strong) !important;
  box-shadow: var(--reeglo-shadow-small) !important;
}

#profiles article .p-8 {
  padding: 34px !important;
}

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

#profiles h3 {
  font-size: 30px !important;
}

#profiles p,
#profiles li,
#process p,
#faq p {
  color: var(--reeglo-muted) !important;
}

#profiles i,
#process i {
  color: var(--reeglo-green-strong) !important;
}

#process > div:first-child {
  max-width: 680px !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  text-align: left !important;
}

#process h2 {
  font-size: clamp(38px, 4.6vw, 58px) !important;
  line-height: 1 !important;
}

#process > div:last-child {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 16px !important;
}

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

#process > div:last-child > div:first-child {
  grid-row: 1 / span 2;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--reeglo-green-soft) !important;
}

#process > div:last-child > div > div:first-child {
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--reeglo-surface-strong) !important;
  color: var(--reeglo-green-strong) !important;
}

#network {
  padding: clamp(36px, 5vw, 64px) !important;
  border: 1px solid rgba(22, 134, 79, 0.16);
  border-radius: 28px !important;
  background: var(--reeglo-green-soft) !important;
  color: var(--reeglo-ink) !important;
  box-shadow: none !important;
}

#network > div:first-child {
  display: none;
}

#network h3 {
  color: var(--reeglo-ink) !important;
  font-size: clamp(34px, 4.4vw, 54px) !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
}

#network p {
  color: var(--reeglo-muted) !important;
}

#network div.lg\:col-span-4 span {
  border-color: rgba(22, 134, 79, 0.22) !important;
  background: rgba(255, 255, 255, 0.44) !important;
  color: var(--reeglo-ink) !important;
}

#network div.lg\:col-span-4 span > span {
  display: none;
}

.logistics-main #faq {
  max-width: 900px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.logistics-main #faq > div:first-child {
  margin-bottom: 28px !important;
  text-align: left !important;
}

.logistics-main #faq h2 {
  font-size: clamp(38px, 4.5vw, 56px) !important;
}

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

.logistics-main #faq details:last-of-type {
  border-bottom: 1px solid var(--reeglo-line) !important;
}

.logistics-main #faq summary {
  padding: 22px 0 !important;
  color: var(--reeglo-ink) !important;
  font-family: var(--reeglo-font-semibold) !important;
}

.logistics-main #faq details p {
  max-width: 72ch;
  padding: 0 40px 24px 0 !important;
  color: var(--reeglo-muted) !important;
}

.logistics-footer {
  max-width: 1280px;
  margin-top: 0;
  padding: 34px 20px;
  border-top: 1px solid var(--reeglo-line);
  color: var(--reeglo-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Relay point application */
body.relay-page {
  --bg: var(--reeglo-bg);
  --surface: var(--reeglo-surface);
  --text: var(--reeglo-ink);
  --muted: var(--reeglo-muted);
  --accent: var(--reeglo-green);
  --accent-strong: var(--reeglo-green-strong);
  --border: var(--reeglo-line);
  --shadow: var(--reeglo-shadow-small);
  --radius: var(--reeglo-radius);
  background:
    radial-gradient(circle at 20% 10%, rgba(22, 134, 79, 0.08), transparent 28%),
    var(--reeglo-bg);
}

.relay-page .page {
  width: min(100% - 40px, 1280px);
  max-width: 1280px;
  padding: 0 0 40px;
}

.relay-page .site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 64px;
  margin-top: 12px;
  padding: 10px 12px 10px 18px;
  border: 1px solid color-mix(in srgb, var(--reeglo-line) 78%, transparent);
  border-radius: var(--reeglo-pill);
  background: color-mix(in srgb, var(--reeglo-surface) 88%, transparent);
  box-shadow: 0 8px 26px rgba(31, 61, 43, 0.06);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.relay-page .brand img {
  height: 34px;
  border-radius: 0;
}

.relay-page .site-nav {
  gap: 24px;
}

.relay-page .site-nav a,
.relay-page .back-link {
  color: var(--reeglo-muted);
  font: 600 13px/1 var(--reeglo-font-semibold);
}

.relay-page .site-nav a.back-link {
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-green-strong);
  color: var(--reeglo-on-green);
}

.relay-page main {
  gap: 112px;
  margin-top: 46px;
}

.relay-page .hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  min-height: min(730px, calc(100dvh - 146px));
}

.relay-page .eyebrow {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--reeglo-green-strong);
  font-size: 13px;
}

.relay-page h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--reeglo-ink);
  font: 600 clamp(50px, 6.4vw, 82px) / 0.96 var(--reeglo-font-semibold);
  letter-spacing: -0.052em;
}

.relay-page .lead {
  margin-top: 22px;
  color: var(--reeglo-muted);
  font-size: 18px;
  line-height: 1.55;
}

.relay-page .hero-list {
  gap: 12px;
  color: var(--reeglo-muted);
  font-size: 14px;
}

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

.relay-page .button,
.relay-page .hero-cta {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--reeglo-pill);
  background: var(--reeglo-green-strong);
  color: var(--reeglo-on-green);
  box-shadow: none;
}

.relay-page .button-secondary {
  border-color: var(--reeglo-line);
  background: var(--reeglo-surface);
  color: var(--reeglo-ink);
}

.relay-page .availability {
  color: var(--reeglo-muted);
}

.relay-page .form-card {
  padding: 32px;
  border-color: rgba(22, 134, 79, 0.18);
  border-radius: 24px;
  background: var(--reeglo-surface-strong);
  box-shadow: var(--reeglo-shadow);
}

.relay-page .form-card h2 {
  color: var(--reeglo-ink);
  font-size: 30px;
}

.relay-page .form-card p,
.relay-page .form-note {
  color: var(--reeglo-muted);
}

.relay-page label {
  color: var(--reeglo-ink);
}

.relay-page input,
.relay-page select,
.relay-page textarea {
  min-height: 46px;
  border-color: #b9c5bc;
  border-radius: var(--reeglo-control-radius);
  background: var(--reeglo-surface);
  color: var(--reeglo-ink);
}

.relay-page input::placeholder,
.relay-page textarea::placeholder {
  color: #68766d;
  opacity: 1;
}

.relay-page .section-heading {
  max-width: 700px;
  margin-bottom: 36px;
  text-align: left;
}

.relay-page .section-heading h2,
.relay-page .charter h2 {
  color: var(--reeglo-ink);
  font-size: clamp(38px, 4.7vw, 58px);
  line-height: 1;
  letter-spacing: -0.042em;
}

.relay-page .section-heading p,
.relay-page .charter-heading p {
  color: var(--reeglo-muted);
  font-size: 17px;
  line-height: 1.55;
}

.relay-page .steps {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.relay-page .steps .card:first-child {
  grid-row: 1 / span 2;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: flex-end;
}

.relay-page .card {
  padding: 30px;
  border-color: var(--reeglo-line);
  border-radius: var(--reeglo-radius);
  background: var(--reeglo-surface);
  box-shadow: none;
}

.relay-page .step-number,
.relay-page .charter-eyebrow {
  color: var(--reeglo-green-strong);
  font-family: var(--reeglo-font-semibold);
  letter-spacing: 0;
  text-transform: none;
}

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

.relay-page .conditions .card {
  grid-column: span 4;
}

.relay-page .conditions .card:nth-child(1),
.relay-page .conditions .card:nth-child(5) {
  grid-column: span 7;
}

.relay-page .conditions .card:nth-child(2),
.relay-page .conditions .card:nth-child(6) {
  grid-column: span 5;
}

.relay-page .charter {
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid rgba(22, 134, 79, 0.16);
  border-radius: 28px;
  background: var(--reeglo-green-soft);
}

.relay-page .charter-heading {
  display: block;
  max-width: 760px;
}

.relay-page .charter-heading p {
  margin-top: 18px;
}

.relay-page .charter-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.relay-page .charter-item {
  grid-column: span 4;
  padding: 26px;
  border: 1px solid rgba(22, 134, 79, 0.18);
  border-radius: var(--reeglo-radius);
  background: rgba(255, 255, 255, 0.46);
}

.relay-page .charter-item:nth-child(1),
.relay-page .charter-item:nth-child(5) {
  grid-column: span 5;
}

.relay-page .charter-item:nth-child(2),
.relay-page .charter-item:nth-child(6) {
  grid-column: span 7;
}

.relay-page .charter-icon,
.relay-page .icon {
  border-radius: 50%;
  background: var(--reeglo-surface);
  color: var(--reeglo-green-strong);
}

.relay-page .earnings-card {
  grid-template-columns: 1fr 0.82fr;
  gap: 34px;
  padding: 34px;
  border-color: var(--reeglo-line);
  border-radius: 24px;
  background: var(--reeglo-surface);
  box-shadow: none;
}

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

.relay-page .faq-item {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--reeglo-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.relay-page .faq-item:last-child {
  border-bottom: 1px solid var(--reeglo-line);
}

.relay-page .faq-item summary {
  padding: 22px 0;
}

.relay-page .faq-item .answer {
  max-width: 72ch;
  padding: 0 40px 24px 0;
  color: var(--reeglo-muted);
}

.relay-page footer {
  margin-top: 100px;
  padding: 34px 20px 0;
  border-top: 1px solid var(--reeglo-line);
  color: var(--reeglo-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --reeglo-bg: #111713;
    --reeglo-bg-deep: #18211b;
    --reeglo-surface: #19221c;
    --reeglo-surface-strong: #1e2821;
    --reeglo-ink: #eef4ef;
    --reeglo-muted: #b4c0b7;
    --reeglo-faint: #94a298;
    --reeglo-line: #354138;
    --reeglo-green: #16a34a;
    --reeglo-green-strong: #166534;
    --reeglo-green-soft: #f0fdf4;
    --reeglo-on-green: #ffffff;
    --reeglo-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --reeglo-shadow-small: 0 10px 30px rgba(0, 0, 0, 0.24);
  }

  body.market-home[data-theme="light"] {
    --reeglo-bg: #f3f6f1;
    --reeglo-bg-deep: #e8eee8;
    --reeglo-surface: #fbfcfa;
    --reeglo-surface-strong: #fdfefc;
    --reeglo-ink: #102018;
    --reeglo-muted: #59675f;
    --reeglo-line: #d6ded7;
    --reeglo-green: #16a34a;
    --reeglo-green-strong: #166534;
    --reeglo-green-soft: #f0fdf4;
    --reeglo-on-green: #ffffff;
  }

  .about-page .ambition {
    background: #255d3d;
  }

  body:not(.market-home) .logo img,
  .logistics-logo img,
  .relay-page .brand img {
    filter: brightness(0) invert(1);
  }

  .logistics-main > section:first-child > div:last-child > div:last-child {
    border-color: var(--reeglo-line) !important;
    background: rgba(30, 40, 33, 0.94) !important;
  }

  .logistics-main > section:first-child > div:last-child > div:last-child p {
    color: var(--reeglo-muted) !important;
  }

  .logistics-main > section:first-child > div:last-child > div:last-child p:last-child {
    color: var(--reeglo-ink) !important;
  }

  .contact-form textarea,
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .relay-page input,
  .relay-page select,
  .relay-page textarea,
  .market-home input,
  .market-home select {
    border-color: #526057;
  }

  #profiles img,
  .about-page img,
  .market-editorial img,
  .contact-page-hero::after,
  .logistics-main > section:first-child img {
    filter: brightness(0.86) saturate(0.88);
  }
}

body.market-home[data-theme="dark"] {
  --reeglo-bg: #111713;
  --reeglo-bg-deep: #18211b;
  --reeglo-surface: #19221c;
  --reeglo-surface-strong: #1e2821;
  --reeglo-ink: #eef4ef;
  --reeglo-muted: #b4c0b7;
  --reeglo-line: #354138;
  --reeglo-green: #16a34a;
  --reeglo-green-strong: #166534;
  --reeglo-green-soft: #f0fdf4;
  --reeglo-on-green: #ffffff;
}

body.market-home[data-theme="dark"] .logo img {
  filter: brightness(0) invert(1);
}

@media (min-width: 1081px) {
  .market-home .hero-layout {
    grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.28fr) minmax(320px, 0.9fr);
    grid-template-rows: auto auto auto auto;
    gap: 18px clamp(28px, 3.5vw, 58px);
    align-items: start;
    padding-top: 46px;
  }

  .market-home .hero,
  .market-home .hero-main,
  .market-home .hero-text {
    display: contents;
  }

  .market-home h1 {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 1220px;
    margin: 0 0 18px;
    font-size: clamp(50px, 4.15vw, 60px);
    line-height: 0.98;
  }

  .market-home .mockup-wrapper {
    grid-column: 1;
    grid-row: 2 / span 3;
    align-self: center;
  }

  .market-home .hero-subtitle {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .market-home .hero-points {
    grid-column: 2;
    grid-row: 3;
  }

  .market-home .launch-countdown {
    grid-column: 2;
    grid-row: 4;
  }

  .market-home .waitlist-card {
    grid-column: 3;
    grid-row: 2 / span 3;
  }
}

/* Tablet and mobile */
@media (max-width: 1080px) {
  .market-home .hero-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    padding-top: 56px;
  }

  .market-home .hero-main {
    grid-template-columns: 1fr;
  }

  .market-home .mockup-wrapper {
    position: sticky;
    top: 112px;
  }

  .about-page .timeline-items {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .logistics-main > section:first-child {
    grid-template-columns: 1fr 0.82fr !important;
  }

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

@media (max-width: 900px) {
  .nav-menu-toggle {
    display: inline-flex;
  }

  body:not(.market-home):not(.logistics-page):not(.relay-page) > header nav,
  .logistics-header__inner,
  .relay-page .site-header {
    position: relative;
  }

  body:not(.market-home):not(.logistics-page):not(.relay-page) .nav-links,
  .logistics-nav,
  .relay-page .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(320px, calc(100vw - 40px));
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border: 1px solid var(--reeglo-line);
    border-radius: var(--reeglo-radius);
    background: var(--reeglo-surface-strong);
    box-shadow: var(--reeglo-shadow);
  }

  body:not(.market-home):not(.logistics-page):not(.relay-page) .nav-links.is-open,
  .logistics-nav.is-open,
  .relay-page .site-nav.is-open {
    display: flex;
  }

  body:not(.market-home):not(.logistics-page):not(.relay-page) .nav-links a,
  .logistics-nav a,
  .relay-page .site-nav a:not(.back-link) {
    padding: 12px;
    border-radius: 10px;
  }

  .logistics-header__actions,
  .relay-page .header-actions {
    gap: 10px;
  }

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

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

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

  .contact-page-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 340px auto;
  }

  .contact-page-hero > h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .contact-page-hero::after {
    grid-column: 1;
    grid-row: 2;
    min-height: 340px;
  }

  .contact-page-hero > form {
    grid-column: 1;
    grid-row: 3;
  }

  .success-message-container {
    grid-column: 1;
    grid-row: 3;
  }

  .terms-page .terms-lang {
    grid-template-columns: 1fr;
  }

  .terms-page .terms-title,
  .terms-page .terms-updated,
  .terms-page .terms-toc,
  .terms-page .terms-section {
    grid-column: 1;
  }

  .terms-page .terms-toc {
    grid-row: auto;
    position: static;
    max-height: none;
    margin-bottom: 48px;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 82px;
  }

  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);
  }

  body:not(.market-home):not(.logistics-page):not(.relay-page) > header nav {
    min-height: 64px;
  }

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

  .lang-selector {
    min-height: 38px;
    max-width: 108px;
  }

  .market-home .page > header,
  .logistics-header,
  .relay-page .site-header {
    top: 8px;
    min-height: 58px;
    margin-top: 8px;
    padding: 8px 9px 8px 13px;
  }

  .market-home .page > header,
  .logistics-header__inner,
  .relay-page .site-header {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .market-home .logo,
  .logistics-logo,
  .relay-page .brand {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .market-home .header-right,
  .logistics-header__actions,
  .relay-page .header-actions {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
  }

  .market-home .logo img,
  .logistics-logo img,
  .relay-page .brand img {
    height: 30px !important;
  }

  .market-home .header-link--primary,
  .market-back,
  .relay-page .site-nav a.back-link {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .market-home .theme-toggle,
  .nav-menu-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .logistics-page .market-back {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    font-size: 0;
  }

  .logistics-page .market-back i {
    display: inline-block;
    font-size: 15px;
  }

  .market-home .hero-layout {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 44px 0 70px;
  }

  .market-home .hero {
    order: 1;
    width: 100%;
  }

  .market-home .mockup-wrapper {
    position: relative;
    top: auto;
    order: 2;
    width: 100%;
    margin-top: 18px;
    justify-content: center;
  }

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

  .market-home h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 0.98;
  }

  .market-home .hero-main {
    gap: 34px;
  }

  .market-home .waitlist-card {
    padding: 22px 18px;
  }

  .market-home .role-options {
    grid-template-columns: 1fr;
  }

  .market-editorial {
    height: 380px;
    margin: 0 0 76px;
    border-radius: 22px;
  }

  .market-editorial img {
    object-position: 66% center;
  }

  .market-home .market-faq {
    margin-bottom: 70px;
  }

  .about-page,
  .contact-page,
  .terms-page {
    padding-top: 46px;
    padding-bottom: 80px;
  }

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

  .about-page .hero {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .about-page .hero h1 {
    font-size: clamp(46px, 13.5vw, 64px);
  }

  .about-page .hero-images {
    order: 3;
  }

  .about-page .hero-images img {
    height: 440px;
    min-height: 0;
    border-radius: 22px;
  }

  .about-page .values,
  .about-page .ambition {
    padding: 30px 20px;
    border-radius: 22px;
  }

  .about-page .values-grid,
  .about-page .community-grid,
  .about-page .timeline-items {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .about-page .value-card,
  .about-page .value-card:nth-child(3),
  .about-page .value-card:nth-child(4),
  .about-page .community-card:first-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .about-page .value-card {
    padding: 26px;
  }

  .about-page .value-icon {
    margin-bottom: 24px;
  }

  .about-page .ambition::after {
    width: 220px;
    height: 220px;
  }

  .about-page .ambition p {
    font-size: 17px;
  }

  .contact-page-hero {
    gap: 24px;
  }

  .contact-page-hero > h2,
  .terms-page .terms-title {
    font-size: clamp(42px, 13vw, 60px);
  }

  .contact-form {
    padding: 24px 18px;
  }

  .terms-page .terms-section {
    margin-bottom: 42px;
    font-size: 15px;
  }

  .logistics-main {
    padding-top: 40px;
    padding-bottom: 80px;
  }

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

  .logistics-main > section:first-child {
    padding: 24px !important;
    border-radius: 22px !important;
  }

  .logistics-main h1,
  .relay-page h1 {
    max-width: none;
    font-size: clamp(44px, 13.4vw, 62px) !important;
  }

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

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

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

  #profiles article > div > div:first-child {
    height: 250px !important;
  }

  #process > div:last-child > div:first-child,
  .relay-page .steps .card:first-child {
    grid-row: auto;
    min-height: 0;
  }

  #network {
    padding: 30px 22px !important;
    border-radius: 22px !important;
  }

  .relay-page main {
    gap: 78px;
    margin-top: 40px;
  }

  .relay-page .hero {
    grid-template-columns: 1fr;
  }

  .relay-page .form-grid {
    grid-template-columns: 1fr;
  }

  .relay-page .field-full {
    grid-column: auto;
  }

  .relay-page .form-card {
    padding: 24px 18px;
  }

  .relay-page .conditions,
  .relay-page .charter-grid {
    grid-template-columns: 1fr;
  }

  .relay-page .conditions .card,
  .relay-page .conditions .card:nth-child(1),
  .relay-page .conditions .card:nth-child(2),
  .relay-page .conditions .card:nth-child(5),
  .relay-page .conditions .card:nth-child(6),
  .relay-page .charter-item,
  .relay-page .charter-item:nth-child(1),
  .relay-page .charter-item:nth-child(2),
  .relay-page .charter-item:nth-child(5),
  .relay-page .charter-item:nth-child(6) {
    grid-column: auto;
  }

  .relay-page .charter {
    padding: 30px 20px;
    border-radius: 22px;
  }
}

@media (max-width: 520px) {
  .market-home .header-link--primary i,
  .relay-page .back-link i {
    display: none;
  }

  .market-home .header-link--primary {
    padding: 0 12px;
  }

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

  .relay-page .site-nav a.back-link {
    max-width: 118px;
    white-space: normal;
    text-align: center;
  }

  .market-home .field-row > span {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

@media (prefers-reduced-transparency: reduce) {
  body:not(.market-home):not(.logistics-page):not(.relay-page) > header,
  .market-home .page > header,
  .logistics-header,
  .relay-page .site-header {
    background: var(--reeglo-surface-strong);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
