/* ==========================================================================
   Truvado Marketplace — Shared Stylesheet
   One file, every page. Change a token here and it cascades site-wide.
   Brand: "The Protector" — strong, dependable, warm.
   ========================================================================== */

/* ---- 1. Brand tokens ---------------------------------------------------- */
:root {
  /* Brand palette */
  --teal:        #2A7D6F;
  --teal-light:  #5EC4B4;
  --amber:       #E8955A;
  --night:       #1C2B3A;
  --stone:       #E8E6E1;
  --slate:       #C8C5BE;
  --ash:         #8E8C86;
  --offwhite:    #F0EDE8;

  /* Derived / functional */
  --page:        #FBFAF8;   /* warm near-white page background */
  --ink:         #25302B;   /* body text — warm dark */
  --ink-soft:    #4C5A53;   /* secondary text */
  --teal-dark:   #21655A;   /* button hover */
  --amber-dark:  #D87E42;   /* amber hover */
  --line:        #DEDBD4;   /* hairline borders */

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;

  /* Shadows — soft, warm, never harsh */
  --shadow-sm: 0 1px 2px rgba(28,43,58,.05), 0 2px 8px rgba(28,43,58,.05);
  --shadow-md: 0 4px 12px rgba(28,43,58,.07), 0 12px 32px rgba(28,43,58,.08);
  --shadow-lg: 0 18px 50px rgba(28,43,58,.14);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- 2. Reset & base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--night);
}

::selection { background: var(--amber); color: #fff; }

:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- 3. Layout helpers -------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.measure { max-width: 60ch; }
.measure-narrow { max-width: 48ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 2px;
}
.eyebrow--center::before { display: none; }

/* Background bands */
.bg-stone   { background: var(--stone); }
.bg-night   { background: var(--night); color: var(--offwhite); }
.bg-night h1, .bg-night h2, .bg-night h3 { color: #fff; }
.bg-teal    { background: var(--teal); color: #fff; }
.bg-teal h1, .bg-teal h2, .bg-teal h3 { color: #fff; }

/* ---- 4. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease), color .2s var(--ease); white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--amber); color: #fff; box-shadow: 0 6px 18px rgba(232,149,90,.35); }
.btn--primary:hover { background: var(--amber-dark); color: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(232,149,90,.42); }

.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(42,125,111,.28); }
.btn--teal:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--night); border-color: var(--slate); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); background: #fff; }

.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---- 4b. Welcome band (under the header, blends into the hero) --------- */
.welcome {
  position: relative; text-align: center; padding: 44px 0 32px;
  background:
    radial-gradient(680px 280px at 50% -28%, rgba(94,196,180,.34), transparent 62%),
    radial-gradient(520px 220px at 82% 120%, rgba(232,149,90,.12), transparent 60%),
    linear-gradient(180deg, rgba(94,196,180,.13) 0%, rgba(251,250,248,0) 100%);
}
.welcome-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; color: var(--teal); letter-spacing: -.01em; }
.welcome-slogan { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--night); margin-top: 8px; max-width: 56ch; margin-inline: auto; }

/* ---- 5. Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,248,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }

/* Logo lockup (inline SVG icon + wordmark) */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand:hover { color: inherit; }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; color: var(--night); }
.brand-sub { font-size: .58rem; font-weight: 600; letter-spacing: .34em; color: var(--teal); margin-top: 4px; }

/* Header logo sized up — scoped to the header so the footer lockup is unaffected */
.site-header .brand-mark { width: 48px; height: 48px; border-radius: 13px; }
.site-header .brand-name { font-size: 1.5rem; }
.site-header .brand-sub { font-size: .62rem; }

/* PNG logo lockups (real brand assets from /assets/logos/) */
.site-header .brand-logo { height: 60px; width: auto; display: block; }
.site-footer .brand-logo { height: 42px; width: auto; display: block; }
.cta-logo { height: 88px; width: auto; display: block; margin: 0 auto 22px; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: .96rem; position: relative; padding-block: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--amber); border-radius: 2px; transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--night); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--night); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* The CTA inside the nav list is only for the mobile dropdown */
@media (min-width: 721px) { .nav-links .btn--primary { display: none; } }

/* Mobile menu toggle */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--night);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---- 6. Hero ------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 520px at 78% -8%, rgba(94,196,180,.20), transparent 60%),
    radial-gradient(900px 460px at 0% 110%, rgba(232,149,90,.13), transparent 55%),
    var(--page);
  padding-block: clamp(60px, 9vw, 116px);
}
/* faint dot grid for texture */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(28,43,58,.05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-top: 18px; }
.hero h1 .accent { color: var(--teal); }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); margin-top: 22px; max-width: 38ch; }
.hero-tagline { margin-top: 6px; font-weight: 600; color: var(--night); }

.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.trust-row li { display: flex; align-items: center; gap: 9px; list-style: none;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft); }

/* signup card */
.signup-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 30px; box-shadow: var(--shadow-lg);
}
.signup-card h3 { font-size: 1.32rem; }
.signup-card p.sub { color: var(--ink-soft); font-size: .96rem; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--night); }
.field input {
  font-family: var(--font); font-size: 1rem; padding: 14px 16px;
  border: 1.5px solid var(--slate); border-radius: var(--radius-sm); background: var(--page);
  color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus { outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(42,125,111,.12); }
.form-note { font-size: .8rem; color: var(--ash); margin-top: 14px; line-height: 1.5; }
.form-note a { text-decoration: underline; }
.form-success {
  display: none; align-items: flex-start; gap: 12px; padding: 18px;
  background: rgba(94,196,180,.14); border: 1px solid var(--teal-light);
  border-radius: var(--radius-sm); color: var(--night);
}
.form-success.show { display: flex; }

/* badge chip used inline */
.badge-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  background: rgba(232,149,90,.14); color: var(--amber-dark); border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}

/* Hero trust badges only — solid teal so they're on-brand and stand out more */
.trust-row .badge-chip {
  background: var(--teal); color: #fff; padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(42,125,111,.22);
}

/* ---- 7. Cards & grids --------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

.icon-badge {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(42,125,111,.10); color: var(--teal); margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* numbered steps */
.step-num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night); color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 16px;
}

/* check list */
.check-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.check-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--amber);
  display: grid; place-items: center; margin-top: 1px;
}
.check-list .tick svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.4; }

/* ---- 8. CTA band -------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(94,196,180,.25), transparent 70%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; }

/* ---- 9. Footer ---------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--slate); padding-block: 60px 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--teal-light); }
.footer-blurb { margin-top: 18px; font-size: .92rem; color: var(--slate); max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--slate); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.10);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p, .footer-bottom address {
  font-size: .82rem; color: var(--ash); font-style: normal; line-height: 1.6;
}

/* ---- 10. Motion: staggered reveal on load ------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .7s var(--ease) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .30s; }
.reveal.d4 { animation-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; }
}

/* ---- 11. Responsive ----------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--page); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s var(--ease); align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 15px 0; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav .btn--primary.desktop-cta { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}