/* ============================================================
   EZPal — "Direction C: Warm & Human" redesign
   ------------------------------------------------------------
   Loaded LAST, after style.css / ezpal.css / standalone.css, on
   every page (index, faq, support, privacy, terms). It:

     1. Sets the Direction C tokens (cream ground, teal brand,
        coral/sun accents, Fraunces + Nunito Sans type) and
        applies them over the nav/footer/legal/modal/FAQ chrome
        that style.css/ezpal.css/standalone.css already draw, so
        every page reads as one warm, human system rather than
        Avenor's dark/orange base theme peeking through.
     2. Supplies the actual component styles for index.html's
        rebuilt sections (hero, "who trains together", the
        showcase grid, the your-plan/their-plan story, the pull
        quote, the soft feature grid, the inclusivity panel, and
        the closing dark CTA). These use a fresh `.ez-` prefix
        specifically so they can never collide with style.css's
        unprefixed Avenor theme classes (.hero, .why, .about,
        .contact, .process, .industries, .insights, .solutions —
        all real, all still loaded on this page for their nav/
        footer/reveal/modal/button structural rules).

   ezpal.css / standalone.css are intentionally still loaded and
   still doing real work: `.ezpal` / `.ezpal__inner` / `.legal` /
   `.ezpal__icon-frame` / `.ezpal-modal` / `.faq__*` / the store
   badge+QR block, and the reusable `.ezpal-phone` device frame,
   all keep the exact structure/behavior they had. This file only
   ever recolors/refonts them or adds new sibling components; it
   never changes what a class does structurally.
   ============================================================ */

:root {
  --ez-teal:       #14A38C;
  --ez-teal-dark:  #0F7F6D;
  --ez-teal-tint:  #E4F5F1;
  --ez-ink:        #26221E;
  --ez-cream:      #FBF4EA;
  --ez-cream-2:    #F5EADB;
  --ez-coral:      #F0653C;
  --ez-sun:        #F6B44A;
  --ez-muted:      #6B6357;
  --ez-white:      #FFFFFF;
}

/* ------------------------------------------------------------
   Base type + ground
   ------------------------------------------------------------ */
body {
  background: var(--ez-cream);
  color: var(--ez-ink);
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
}
h1, h2, h3, h4,
.nav__logo-name,
.ez-hero__title,
.ez-who__card h2,
.ez-story h2,
.ez-quote__text,
.ez-features h2,
.ez-feature h3,
.ez-feature--flagship h3,
.ez-for h3,
.ez-cta h2,
.ezpal-modal h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -.01em;
}
.btn,
.form-group input,
.form-group textarea {
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
}

/* Visible, high-contrast focus ring everywhere, on the warm ground. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ez-teal-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   Buttons — one brand action color (teal) everywhere a button
   appears (nav, hero, modal, forms, closing CTA); coral/sun stay
   accent colors (chips, tags, illustration gradients, the quote
   mark) rather than a second competing button color, so a single
   CTA color reads consistently across all five pages.
   ------------------------------------------------------------ */
.btn--primary {
  background: var(--ez-teal);
  border-color: var(--ez-teal);
  color: var(--ez-white);
  box-shadow: 0 8px 22px rgba(20, 163, 140, .22);
}
.btn--primary:hover {
  background: var(--ez-teal-dark);
  border-color: var(--ez-teal-dark);
  box-shadow: 0 10px 26px rgba(15, 127, 109, .3);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--ez-ink);
  border-color: var(--ez-ink);
}
.btn--outline:hover {
  background: rgba(38, 34, 30, .06);
}
/* Outline button used on the dark closing CTA needs light, not
   ink-colored, text/border to stay legible on --ez-ink. */
.ez-cta .btn--outline {
  color: var(--ez-cream);
  border-color: rgba(251, 244, 234, .5);
}
.ez-cta .btn--outline:hover {
  background: rgba(251, 244, 234, .1);
  border-color: var(--ez-cream);
}

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.nav {
  background: rgba(251, 244, 234, .88);
  border-bottom-color: rgba(20, 163, 140, .18);
}
.nav.scrolled {
  background: rgba(251, 244, 234, .97);
  border-bottom-color: rgba(20, 163, 140, .28);
}
.nav__logo-name { color: var(--ez-ink); font-size: 1.05rem; letter-spacing: -.01em; text-transform: none; }
.nav__logo-sub { color: var(--ez-teal-dark); }
.nav__hamburger span { background: var(--ez-ink); }
.nav__links a { color: rgba(38, 34, 30, .68); font-weight: 700; }
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ez-ink); }
.nav__mobile { background: rgba(251, 244, 234, .98); }
.nav__mobile a { color: rgba(38, 34, 30, .7); }
.nav__mobile a:hover { color: var(--ez-ink); }
.nav__mobile-close { color: var(--ez-ink); }

/* ------------------------------------------------------------
   Shared page shell — `.ezpal` is still the outer wrapper on
   faq.html/support.html/privacy.html/terms.html (and supplies
   the `#ezpal-hero` fixed-nav clearance on those pages).
   ------------------------------------------------------------ */
.ezpal {
  background: var(--ez-cream);
  border-top-color: var(--ez-teal);
}
.ezpal__chip,
.ez-chip {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ez-teal-dark);
  background: var(--ez-cream-2);
  border: 1px solid rgba(20, 163, 140, .3);
  border-radius: 999px;
  padding: 7px 15px;
}

/* ------------------------------------------------------------
   Legal typography (privacy.html / terms.html / faq.html /
   support.html share `.legal`) — shell/typography only, the
   body copy itself is untouched.
   ------------------------------------------------------------ */
.legal__notice {
  background: var(--ez-cream-2);
  border-color: rgba(20, 163, 140, .3);
  color: rgba(38, 34, 30, .85);
}
.legal h1 { letter-spacing: -.02em; }
.legal h2, .legal h3 { color: var(--ez-ink); }
.legal__meta { color: rgba(38, 34, 30, .55); }
.legal p, .legal ul, .legal td { color: rgba(38, 34, 30, .82); }
.legal strong { color: var(--ez-ink); }
.legal a { color: var(--ez-teal-dark); }
.legal th { color: var(--ez-ink); }
.legal th, .legal td { border-bottom-color: rgba(20, 163, 140, .18); }
.legal table { color: rgba(38, 34, 30, .78); }

/* ------------------------------------------------------------
   FAQ (faq.html)
   ------------------------------------------------------------ */
.faq__jumpnav a {
  color: var(--ez-teal-dark);
  background: var(--ez-cream-2);
  border-color: rgba(20, 163, 140, .3);
}
.faq__jumpnav a:hover {
  background: rgba(20, 163, 140, .18);
  border-color: var(--ez-teal);
}
.faq__item { border-color: rgba(20, 163, 140, .22); background: var(--ez-white); }
.faq__item summary { color: var(--ez-ink); }
.faq__item summary::after { color: var(--ez-teal-dark); border-color: rgba(20, 163, 140, .35); }
.faq__item[open] summary { background: var(--ez-cream-2); border-bottom-color: rgba(20, 163, 140, .22); }
.faq__item summary:hover { background: rgba(20, 163, 140, .08); }
.faq__item p { color: rgba(38, 34, 30, .82); }
.faq__item p a { color: var(--ez-teal-dark); }

/* ------------------------------------------------------------
   Footer (all pages)
   ------------------------------------------------------------ */
.footer { background: var(--ez-cream); border-top-color: rgba(20, 163, 140, .18); }
.footer__copy, .footer__legal a, .footer__col a { color: rgba(38, 34, 30, .6); }
.footer__legal a:hover, .footer__col a:hover { color: var(--ez-ink); }
.footer__bottom { border-top-color: rgba(20, 163, 140, .18); }
/* style.css's `.footer__legal{display:flex;gap:20px}` never wraps, so on
   narrow phones six links (Privacy Policy through "Avenor Solutions ->")
   forced a single row wider than the viewport and the last one or two
   links ran off-screen. Wrapping the row is the fix; nothing above this
   breakpoint changes since there's already room for one row there. */
.footer__legal { flex-wrap: wrap; row-gap: 10px; }
.footer__social-link {
  color: rgba(38, 34, 30, .6);
  border-color: rgba(20, 163, 140, .28);
}
.footer__social-link:hover,
.footer__social-link:focus-visible {
  color: var(--ez-cream);
  background: var(--ez-teal);
  border-color: var(--ez-teal);
}

/* ------------------------------------------------------------
   Contact modal ("Get in touch" — index/faq/support/privacy/
   terms all load this markup via main.js's initContactModal)
   ------------------------------------------------------------ */
.ezpal-modal__backdrop { background: rgba(38, 34, 30, .55); }
.ezpal-modal__panel { background: var(--ez-cream); }
.ezpal-modal__close { color: rgba(38, 34, 30, .5); }
.ezpal-modal__close:hover { color: var(--ez-ink); }
.ezpal-modal h2 { color: var(--ez-ink); }
.ezpal-modal__lede { color: rgba(38, 34, 30, .7); }
.ezpal-modal .form-group input,
.ezpal-modal .form-group textarea {
  background: var(--ez-white);
  border-color: rgba(20, 163, 140, .3);
  color: var(--ez-ink);
}
.ezpal-modal .form-group input::placeholder,
.ezpal-modal .form-group textarea::placeholder { color: rgba(38, 34, 30, .35); }
.ezpal-modal .form-group input:focus,
.ezpal-modal .form-group textarea:focus {
  border-color: var(--ez-teal);
  box-shadow: 0 0 0 3px rgba(20, 163, 140, .15);
}
.ezpal-modal .form-group label { color: rgba(38, 34, 30, .55); }
.form__status--success { background: rgba(20, 163, 140, .1); border-color: rgba(20, 163, 140, .35); color: var(--ez-teal-dark); }
.form__status--error { background: rgba(240, 101, 60, .1); border-color: rgba(240, 101, 60, .35); color: #C24A28; }

/* Support page's own inline form (support.html) reuses .form-group,
   already covered by the rules above via cascade order, plus its
   own submit button which is .btn--primary (also covered). */

/* ============================================================
   INDEX.HOME — Direction C page-specific components
   ============================================================ */

.ez-hero { padding-top: 168px; padding-bottom: 24px; }
@media (max-width: 600px) { .ez-hero { padding-top: 140px; } }

.ez-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
}
.ez-hero__copy, .ez-hero__art { min-width: 0; }
.ez-hero__title {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 18px 0 16px;
  color: var(--ez-ink);
}
.ez-hero__title-accent { font-style: italic; color: var(--ez-teal-dark); }
.ez-hero__lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ez-muted);
  max-width: 46ch;
  margin-bottom: 26px;
}
.ez-hero__ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ez-hero__note { color: var(--ez-muted); font-weight: 700; font-size: .9rem; }

.ez-hero__art {
  position: relative;
  background: linear-gradient(150deg, var(--ez-sun), var(--ez-coral));
  border-radius: 34px;
  padding: 30px;
  min-height: 400px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ez-hero__art::before {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  background: rgba(255, 255, 255, .16);
  border-radius: 50%;
  top: -56px; right: -56px;
}
.ez-hero__art .ezpal-phone--hero { width: min(230px, 68vw); }

@media (max-width: 900px) {
  .ez-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .ez-hero__copy { text-align: left; }
  .ez-hero__art { order: -1; min-height: 320px; }
}

/* ── Who trains together ── */
.ez-who { padding: 8px 0 12px; }
.ez-who__card {
  background: var(--ez-cream-2);
  border-radius: 34px;
  padding: 56px 32px;
  text-align: center;
}
.ez-who__card h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 10px; }
.ez-who__sub { color: var(--ez-muted); font-size: 1.05rem; max-width: 52ch; margin: 0 auto 32px; }
.ez-who__grid { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ez-person {
  background: var(--ez-white);
  border-radius: 20px;
  padding: 20px 22px;
  min-width: 150px;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ez-person:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(38, 34, 30, .1); }
.ez-person__icon { font-size: 28px; margin-bottom: 8px; }
.ez-person b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; margin-bottom: 2px; }
.ez-person span { color: var(--ez-muted); font-size: .875rem; }

/* ── Showcase grid (reuses .ezpal-phone / .reveal, restyled tiles) ── */
.ez-showcase { padding: 12px 0; }
.ez-showcase__heading { font-size: 1.5rem; margin-bottom: 26px; color: var(--ez-ink); }
.ez-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.ez-showcase__item {
  background: var(--ez-white);
  border: 1px solid rgba(20, 163, 140, .18);
  border-radius: 24px;
  padding: 16px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity .6s ease, transform .55s cubic-bezier(.4,0,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.ez-showcase__item.reveal { transform: translateY(28px) scale(.97); }
.ez-showcase__item.reveal.in-view { transform: none; }
.ez-showcase__item.reveal:hover {
  border-color: var(--ez-teal);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(38, 34, 30, .14);
}
@media (prefers-reduced-motion: reduce) {
  .ez-showcase__item.reveal,
  .ez-showcase__item.reveal.in-view,
  .ez-showcase__item.reveal:hover {
    transform: none;
    transition: opacity .3s ease, border-color .25s ease, box-shadow .25s ease;
  }
}
.ez-showcase__caption h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--ez-ink); }
.ez-showcase__caption p { font-size: .875rem; line-height: 1.6; color: var(--ez-muted); }

/* ── Story: your plan, their plan ── */
.ez-story { padding: 28px 0; }
.ez-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.ez-story h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 14px 0 16px; max-width: 15ch; color: var(--ez-ink); }
.ez-story p { font-size: 1.05rem; color: var(--ez-muted); max-width: 44ch; margin-bottom: 14px; }
.ez-tick { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 18px; }
.ez-tick li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ez-ink); }
.ez-tick__dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ez-teal); color: var(--ez-white);
  display: grid; place-items: center; font-size: .8rem; flex: none;
  font-family: 'Nunito Sans', sans-serif;
}
.ez-story__art {
  background: linear-gradient(150deg, var(--ez-teal), var(--ez-teal-dark));
  border-radius: 30px;
  padding: 30px;
  display: grid;
  place-items: center;
}
.ez-story__art .ezpal-phone--tile { width: min(220px, 70vw); }
@media (max-width: 900px) {
  .ez-story__grid { grid-template-columns: 1fr; gap: 30px; }
  .ez-story__art { order: -1; }
}

/* ── Quote ── */
.ez-quote { text-align: center; padding: 24px 0 8px; }
.ez-quote__text {
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-style: italic;
  font-weight: 600;
  max-width: 20ch;
  margin: 0 auto 14px;
  line-height: 1.25;
  color: var(--ez-ink);
}
.ez-quote__by { color: var(--ez-muted); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── Soft feature grid ── */
.ez-features { padding: 28px 0; }
.ez-features h2 { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 32px; color: var(--ez-ink); }
.ez-feature--flagship {
  background: var(--ez-teal);
  border: 1px solid var(--ez-teal);
  color: var(--ez-white);
  border-radius: 24px;
  padding: 30px 30px 28px;
  margin-bottom: 18px;
}
.ez-feature--flagship .ez-feature__tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ez-white);
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.ez-feature--flagship h3 { font-size: 1.3rem; margin-bottom: 8px; }
.ez-feature--flagship p { color: rgba(255, 255, 255, .92); font-size: 1rem; max-width: 62ch; }

.ez-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ez-feature {
  background: var(--ez-white);
  border-radius: 22px;
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border: 1px solid rgba(20, 163, 140, .14);
}
.ez-feature:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(38, 34, 30, .1); border-color: var(--ez-teal); }
.ez-feature__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--ez-cream-2);
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.ez-feature__new {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  color: var(--ez-coral);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
}
.ez-feature h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--ez-ink); }
.ez-feature p { color: var(--ez-muted); font-size: .9rem; line-height: 1.55; }

@media (max-width: 760px) {
  .ez-feature-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .ez-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Inclusivity / "who it's for" panel ── */
.ez-for { padding: 20px 0 28px; }
.ez-for__card {
  max-width: 800px;
  background: var(--ez-cream-2);
  border-radius: 26px;
  padding: 40px;
}
.ez-for h3 { font-size: 1.5rem; margin-bottom: 14px; color: var(--ez-ink); }
.ez-for p { font-size: 1rem; line-height: 1.75; color: rgba(38, 34, 30, .8); }
.ez-for p + p { margin-top: 14px; }
@media (max-width: 600px) { .ez-for__card { padding: 28px; } }

/* ── Closing CTA (dark, warm) ── */
.ez-cta { padding: 8px 0 72px; }
.ez-cta__card {
  background: var(--ez-ink);
  color: var(--ez-cream);
  border-radius: 34px;
  padding: 64px 32px;
  text-align: center;
}
.ez-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; color: var(--ez-white); }
.ez-cta p {
  color: #C9BFB2;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.ez-cta__actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

/* The verbatim badge+QR block (`.ezpal__store-cta` etc, ezpal.css)
   sits inside this dark card — recolor its text for legibility on
   --ez-ink without touching its markup/structure. */
.ez-cta .ezpal__badge-label { color: var(--ez-cream); }
.ez-cta .ezpal__store-or { color: rgba(251, 244, 234, .55); }
.ez-cta .ezpal__store-qr { border-color: rgba(251, 244, 234, .18); }

@media (max-width: 600px) {
  .ez-cta__card { padding: 44px 22px; border-radius: 26px; }
}

/* ── Generic section rhythm (index.html only) ── */
.ez-page { padding: 0 0 8px; }
.ez-page > * + * { margin-top: 8px; }
