/* Mellow Mile Distributors: site styles (Leaf Road brand) */
:root {
  --sage: #5E7D4F;
  --sage-dark: #4D6A40;
  --sage-deep: #3C5432;
  --sage-light: #A7C493;
  --mist: #EEF2EA;
  --mist-2: #E3EADD;
  --char: #22262A;
  --ink: #2A2F34;
  --muted: #545B61;
  --line: #D5DDCF;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(34, 38, 42, 0.06), 0 8px 24px rgba(34, 38, 42, 0.06);
  --wrap: 1160px;
}

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

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

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

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

a { color: var(--sage-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }

h1, h2, h3, h4 { color: var(--char); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--char); color: var(--white); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 200; }
.skip-link:focus { left: 8px; color: var(--white); }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font: inherit; font-weight: 600; font-size: 16px;
  color: var(--white); background: var(--sage-dark);
  border: 2px solid var(--sage-dark); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--char); border-color: var(--char); }
.btn-ghost:hover { background: var(--char); color: var(--white); border-color: var(--char); }
.btn-light { background: var(--white); color: var(--char); border-color: var(--white); }
.btn-light:hover { background: var(--mist); color: var(--char); border-color: var(--mist); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 15px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 39px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 26px; font-weight: 700; color: var(--char); letter-spacing: -0.02em; }
.brand-name span { color: var(--sage-dark); }
.brand-sub { font-size: 10px; font-weight: 500; letter-spacing: 0.42em; color: var(--char); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a { padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--radius-sm); }
.site-nav a:hover { background: var(--mist); color: var(--char); }
.site-nav a[aria-current="page"] { color: var(--sage-dark); font-weight: 600; }
.site-nav a.btn { color: var(--white); margin-left: 6px; border-radius: 999px; padding: 8px 20px; }
.site-nav a.btn:hover { background: var(--sage-deep); color: var(--white); }

.nav-toggle { display: none; min-height: 44px; padding: 8px 16px; font: inherit; font-weight: 600; background: var(--white); color: var(--char); border: 2px solid var(--char); border-radius: 999px; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .site-nav a.btn { margin: 8px 0 0; }
}

/* Sections */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.bg-mist { background: var(--mist); }
.bg-char { background: var(--char); color: #D9DED6; }
.bg-char h2, .bg-char h3 { color: var(--white); }
.bg-char a { color: var(--sage-light); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 14px; }
.bg-char .eyebrow { color: var(--sage-light); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.bg-char .lead { color: #C9D0C4; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { background: var(--mist); padding: 96px 0 104px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 span { color: var(--sage-dark); }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(340px, 80%); height: auto; }
.page-hero { background: var(--mist); padding: 80px 0 72px; }
.page-hero .lead { margin-bottom: 0; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { width: 180px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.bg-mist .card { border-color: var(--mist-2); }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.bg-mist .card-icon { background: var(--mist-2); }
.card-icon svg { width: 24px; height: 24px; stroke: var(--sage-dark); }

.panel { border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 6px; }
.panel-sage { background: var(--sage-dark); color: #E8EEE3; }
.panel-sage h3 { color: var(--white); font-size: 1.6rem; }
.panel-char { background: var(--char); color: #D9DED6; }
.panel-char h3 { color: var(--white); font-size: 1.6rem; }
.panel ul { margin: 8px 0 24px; padding-left: 20px; }
.panel li { margin-bottom: 6px; }
.panel .btn { align-self: flex-start; margin-top: auto; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--sage-dark); margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.bg-char .checklist li::before { background-color: var(--sage-dark); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.notice { border: 1px solid var(--line); border-left-width: 1px; background: var(--mist); border-radius: var(--radius); padding: 24px 28px; }
.notice strong { color: var(--char); }

/* CTA band */
.cta-band { background: var(--sage-dark); color: #E8EEE3; padding: 72px 0; }
.cta-band h2 { color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-ghost { color: var(--white); border-color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--char); }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 15px; color: var(--char); }
.field .hint { font-size: 14px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid #B9C3B2; border-radius: var(--radius-sm);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage-dark); box-shadow: 0 0 0 3px rgba(77, 106, 64, 0.22); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--sage-dark); flex: none; }
.hidden-field { position: absolute; left: -9999px; }
.req { color: #9B2C1F; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--char); color: #B9C1B5; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-name span { color: var(--sage-light); }
.site-footer .brand-sub { color: #D5DDCF; }
.site-footer h4 { color: var(--white); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #D5DDCF; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-tag { margin-top: 16px; max-width: 360px; }
.disclaimer { border-top: 1px solid #3A4046; margin-top: 48px; padding-top: 24px; font-size: 13px; line-height: 1.6; color: #A9B1A5; }
.disclaimer p { margin: 0 0 10px; }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 1000; background: rgba(34, 38, 42, 0.92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.age-gate[hidden] { display: none; }
.age-card { background: var(--white); border-radius: 20px; padding: 44px 36px; max-width: 460px; width: 100%; text-align: center; }
.age-card svg { width: 44px; height: 57px; margin: 0 auto 18px; }
.age-card h2 { font-size: 1.8rem; }
.age-card p { color: var(--muted); }
.age-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.age-denied { font-weight: 600; color: var(--char); margin-top: 20px; }
