/* ==========================================================================
   retailVIA — design tokens
   Visual system matched to client-provided reference: bold sans headlines,
   photography-led sections, pill buttons/badges, navy/green/purple palette.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* brand */
  --navy-950: #0c1c30;
  --navy-800: #142c47;
  --navy-700: #1c3a5c;
  --green-600: #15a251;
  --green-500: #1ec468;
  --green-100: #e3f7ea;
  --purple-600: #5b2fa8;
  --purple-500: #7a45cf;
  --purple-100: #efe6fb;

  /* neutrals */
  --ink: #12161b;
  --ink-soft: #444c55;
  --muted: #66707a;
  --line: #e3e5e2;
  --line-soft: #eef0ed;
  --paper: #ffffff;
  --paper-tint: #f6f7f5;

  /* type */
  --font-display: "Manrope", "Segoe UI", ui-sans-serif, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --content-max: 1220px;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 8vw, 7rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  color: var(--navy-950);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p.lede { font-size: 1.2rem; color: var(--ink-soft); }

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

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--tint { background: var(--paper-tint); }
.section--navy { background: var(--navy-950); color: #e9edef; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #b9c4c9; }

.grid-split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.05fr 0.95fr; align-items: center; }
@media (max-width: 860px) { .grid-split { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.9rem;
}
.section--navy .eyebrow { color: var(--green-500); }
.eyebrow--purple { color: var(--purple-500); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--green-100);
  color: var(--green-600);
}
.badge--purple { background: var(--purple-100); color: var(--purple-600); }

/* ==========================================================================
   Photo placeholders — no licensed imagery yet; swap for real photography.
   ========================================================================== */

.photo-block {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(155deg, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: flex-end;
  min-height: 180px;
}
.photo-block--green { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(155deg, #0e5c37, var(--navy-950)); }
.photo-block--purple { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(155deg, #3a2166, var(--navy-950)); }

.photo-block .cap {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  padding: 0.6rem 0.85rem;
  background: rgba(0,0,0,0.28);
  width: 100%;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--navy-950); }
.brand-word em { font-style: normal; color: var(--green-600); }

.nav-primary { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav-primary a { text-decoration: none; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); padding: 0.35rem 0.05rem; }
.nav-primary a:hover { color: var(--navy-950); }

.nav-primary a.is-soon { color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-primary a.is-soon::after {
  content: "Soon";
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--line-soft);
  color: var(--muted);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.3rem;
  background: var(--green-600);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--green-500); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-primary {
    position: fixed; inset: 78px 0 0 0; background: #fff;
    flex-direction: column; align-items: flex-start;
    padding: 2rem var(--gutter); gap: 1.4rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-primary a { font-size: 1.15rem; }
  body.nav-open .nav-primary { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle .icon-close { display: none; }
  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: inline-flex; }
}

/* ==========================================================================
   Buttons / links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:hover { background: var(--green-500); }

.btn--purple { background: var(--purple-600); color: #fff; }
.btn--purple:hover { background: var(--purple-500); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost-light:hover { border-color: #fff; }

.btn--dark { background: var(--navy-950); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }

.text-link {
  color: var(--navy-950);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  font-weight: 700;
}
.text-link:hover { text-decoration-color: var(--green-600); }
.section--navy .text-link { color: #fff; text-decoration-color: rgba(255,255,255,0.4); }

/* ==========================================================================
   Hero — dark, photo-backed
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 15%, rgba(30,196,104,0.20), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(91,47,168,0.20), transparent 60%);
  pointer-events: none;
}

.hero .wrap { position: relative; padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p.lede { color: #c3cdd0; }

.hero-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.9rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; font-size: 0.92rem; color: #93a0a4; max-width: 44ch; }

.hero-graphic { width: 100%; height: auto; }

/* Light-hero variant, used on interior pages */
.hero--light { background: var(--paper); color: var(--ink); }
.hero--light::before { display: none; }
.hero--light h1 { color: var(--navy-950); }
.hero--light p.lede { color: var(--ink-soft); }

/* ==========================================================================
   Icon / audience cards (photo + icon + text, matches reference's 4-up row)
   ========================================================================== */

.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .card-row { grid-template-columns: 1fr; } }

.icon-card { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.icon-card .photo-block { min-height: 120px; border-radius: 0; }
.icon-card .body { padding: 1.4rem 1.5rem 1.6rem; }
.icon-card h3 { margin-bottom: 0.5rem; }
.icon-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.9rem; }

/* ==========================================================================
   Split panel (green / purple) — mirrors the Supplier/Retailer dual hero
   ========================================================================== */

.split-panels { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split-panels { grid-template-columns: 1fr; } }

.panel { position: relative; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); color: #fff; overflow: hidden; }
.panel--green { background: linear-gradient(155deg, #0e5c37, var(--navy-950) 78%); }
.panel--purple { background: linear-gradient(155deg, #3a2166, var(--navy-950) 78%); }

.panel .eyebrow { color: rgba(255,255,255,0.75); }
.panel h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.9rem; }
.panel p { color: rgba(255,255,255,0.82); }

.check-list { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: 0.55rem; }
.check-list li { display: flex; gap: 0.6rem; font-size: 0.94rem; color: rgba(255,255,255,0.9); }
.check-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* ==========================================================================
   Numbered list with photo thumbnails (Order of Operations)
   ========================================================================== */

.op-list { display: grid; gap: 1.5rem; margin-top: 2rem; }

.op-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.op-item:last-child { border-bottom: 1px solid var(--line); }

.op-num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--green-600); }

.op-item h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.op-item p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

.op-thumb { width: 84px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; }
.op-thumb .photo-block { min-height: 64px; border-radius: var(--radius-sm); }

@media (max-width: 640px) {
  .op-item { grid-template-columns: 1fr; }
  .op-thumb { display: none; }
}

/* ==========================================================================
   Numbered circle process (How It Works) — dark, photo-backed
   ========================================================================== */

.process { position: relative; }

.process-rail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }

.process-rail::before {
  content: "";
  position: absolute; top: 18px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--purple-500));
  opacity: 0.55;
}

.process-step { position: relative; counter-increment: step; }

.process-num {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  position: relative; z-index: 1;
}
.process-num::before { content: counter(step); }

.process-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.94rem; }

@media (max-width: 780px) {
  .process-rail { grid-template-columns: 1fr; gap: 2rem; }
  .process-rail::before { display: none; }
}

/* ==========================================================================
   Credibility / founder card
   ========================================================================== */

.credibility { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

.founder-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--navy-950), var(--green-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
}

@media (max-width: 640px) {
  .credibility { grid-template-columns: 92px 1fr; }
  .founder-photo { font-size: 1.4rem; }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.audience-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 2.2rem; }
@media (max-width: 720px) { .audience-picker { grid-template-columns: repeat(2, 1fr); } }

.audience-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.audience-picker label {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: #fff;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}

.audience-picker input:checked + label { border-color: var(--green-600); color: var(--navy-950); background: var(--green-100); }
.audience-picker input:focus-visible + label { outline: 2px solid var(--green-600); outline-offset: 2px; }

.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--navy-950); }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }

.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(30, 196, 104, 0.16);
}
.field textarea { min-height: 130px; resize: vertical; }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.consent input { margin-top: 0.25rem; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  display: none;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  border: 1px solid var(--green-500);
  color: var(--navy-950);
  margin-bottom: 1.6rem;
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.conditional-fields[hidden] { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-950); color: #b9c4c9; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 0.86rem; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: #b9c4c9; text-decoration: none; font-size: 0.94rem; }
.footer-grid a:hover { color: #fff; }

.footer-brand .brand-word { color: #fff; }
.footer-brand p { color: #8b9a9e; font-size: 0.92rem; margin-top: 0.9rem; }

.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding-top: 1.6rem; font-size: 0.82rem; color: #728086; }
.footer-bottom a { color: #8b9a9e; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Coming soon pages
   ========================================================================== */

.soon-hero { min-height: 66vh; display: flex; align-items: center; }
.soon-hero p.lede { margin-bottom: 2rem; }

/* ==========================================================================
   Utility
   ========================================================================== */

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.max-measure { max-width: var(--measure); }
