/* ============================================================
   AreaWise — Landing page stylesheet
   Direction A "The Trusted Advisor" · calm · warm · credible
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --bg:            #F6F7F4;
  --surface:       #FFFFFF;
  --navy:          #10233D;
  --ink:           #0B1C30;
  --muted:         #475467;
  --subtle:        #667085;
  --green:         #0D9F4B;
  --green-strong:  #0B7A3C;
  --green-soft:    #E8F5EE;
  --amber:         #946200;
  --amber-soft:    #FBF4E4;
  --star:          #D97706;
  --line:          #E5E9E6;
  --red:           #BA1A1A;

  --radius:        16px;
  --shadow:        0 12px 30px rgba(16, 35, 61, 0.08);
  --max:           1200px;
  --gutter:        8%;

  --fs-h1: clamp(2.25rem, 5vw, 3.5rem);    /* 36 → 56 */
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);  /* 28 → 40 */
  --fs-body: 1.0625rem;                     /* 17 */
  --fs-lede: clamp(1.0625rem, 1.6vw, 1.25rem); /* 17 → 20 */
}

/* ---- Fonts (self-hosted, variable) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  font-weight: 600;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; }
strong { font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 16px; top: -100%;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy); color: #fff;
  border-radius: 8px; text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Inter", sans-serif; font-weight: 600;
  text-decoration: none; line-height: 1;
  border-radius: 999px; border: 0; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--green-strong); color: #fff; }
.btn-primary:hover { background: #086331; }
.btn-primary:active { transform: translateY(1px); }
.btn-lg { font-size: 1.0625rem; padding: 18px 30px; }
.btn-sm { font-size: 0.9375rem; padding: 12px 20px; }
.btn .btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---- Focus visibility ---- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Header ---- */
.site-header {
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
  max-width: none;              /* full-bleed header: logo aligns to viewport, not the 1200px wrap */
  padding-left: clamp(16px, 11vw, 200px); /* logo ≈10–12% from left, above the green mascot */
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 35px; width: auto; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  background-color: var(--bg);
  background-image: url('/assets/img/bcas/homepage-hero-bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.hero-inner {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -28px -40px;
  background: radial-gradient(closest-side, rgba(246, 247, 244, 0.82), rgba(246, 247, 244, 0));
  border-radius: 28px;
  z-index: -1;
}
.eyebrow {
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--green-strong);
  margin: 0 0 20px;
}
.hero h1 { font-size: var(--fs-h1); font-weight: 650; }
.lede {
  font-size: var(--fs-lede); line-height: 1.6; color: #334155; font-weight: 500;
  margin-top: 22px; max-width: 32rem;
  margin-left: auto; margin-right: auto;
}
.hero-actions {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 36px;
}
.hero-foot { margin-top: 14px; }
.launch-note { font-size: 0.875rem; color: var(--subtle); }
.launch-note strong { color: var(--muted); }
.trust-strip {
  display: inline-flex; flex-wrap: wrap; gap: 6px 18px;
  margin-top: 18px; padding: 8px 18px;
  border: 1px solid rgba(16, 35, 61, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(5px);
  justify-content: center;
}
.trust-strip li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; color: var(--ink); font-weight: 500;
}
.trust-strip svg { color: var(--green); flex: none; }

/* ---- Section rhythm ---- */
.value, .features, .trust { padding: 96px 0; }
.features { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 { font-size: var(--fs-h2); font-weight: 640; margin: 0 0 20px; max-width: 22ch; }

/* ---- Value ---- */
.value .eyebrow { color: var(--green-strong); }
.value-lede {
  font-size: var(--fs-lede); line-height: 1.6; color: var(--ink);
  max-width: 46rem;
}
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 48px;
}
.pillars li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 1rem; font-weight: 500; color: var(--ink);
  line-height: 1.4;
}
.pillar-mark {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); margin-top: 7px;
}

/* ---- Features ---- */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 44px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: 0 1px 2px rgba(16, 35, 61, 0.04);
  display: flex; flex-direction: column; gap: 14px;
}
.card-icon { color: var(--green); }
.card h3 { font-family: "Fraunces", serif; font-size: 1.375rem; font-weight: 640; color: var(--navy); }
.card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }
.status {
  position: absolute; top: 20px; right: 20px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 11px; border-radius: 999px;
}
.status-live { background: var(--green-soft); color: var(--green-strong); }
.status-beta { background: var(--amber-soft); color: var(--amber); }

/* ---- CTA band ---- */
.cta-band {
  background: var(--green-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center; padding: 88px 0;
}
.cta-band h2 { margin: 0 auto 16px; }
.cta-band p {
  font-size: var(--fs-lede); color: var(--muted);
  max-width: 34rem; margin: 0 auto 32px;
}

/* ---- Trust ---- */
.trust .eyebrow { color: var(--green-strong); }
.sources {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px;
}
.sources li {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.0625rem;
  color: var(--navy);
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.trust-points {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px;
  max-width: 46rem;
}
.trust-points li {
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; color: var(--ink);
}
.trust-points svg { color: var(--green); flex: none; }

/* ---- Section lede (shared) ---- */
.section-lede {
  font-size: var(--fs-lede); line-height: 1.6; color: var(--muted);
  max-width: 46rem; margin-top: 20px;
}

/* ---- Problem ---- */
.problem { padding: 96px 0; }
.problem .eyebrow { color: var(--green-strong); }

/* ---- Difference ---- */
.difference {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.difference .eyebrow { color: var(--green-strong); }
.promise {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.promise li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 28px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.promise strong { font-family: "Fraunces", serif; font-size: 1.375rem; font-weight: 640; color: var(--navy); }
.promise span { font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }

/* ---- How it works ---- */
.how { padding: 96px 0; }
.how .eyebrow { color: var(--green-strong); }
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  margin-top: 48px;
}
.steps li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-strong);
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 0.9375rem;
  margin-bottom: 8px;
}
.steps strong { font-size: 1.0625rem; color: var(--navy); }
.steps li > span:last-child { font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }
.transform {
  margin-top: 40px; padding: 16px 22px; display: inline-block;
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.0625rem; color: var(--navy);
  background: var(--surface); border: 1px dashed var(--line); border-radius: 12px;
}

/* ---- Trust points (A2 pillars) ---- */
.trust-points li { flex-direction: column; align-items: flex-start; gap: 6px; }
.trust-points strong { font-size: 1.0625rem; color: var(--navy); }
.trust-points span { font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }

/* ---- Hero helper (quick links) ---- */
.helper { font-size: 0.9375rem; color: var(--ink); }
.helper-link {
  display: inline-block;
  font-family: "Inter", sans-serif; font-size: 0.875rem; font-weight: 600;
  color: var(--ink); background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 35, 61, 0.16); border-radius: 999px; cursor: pointer;
  padding: 5px 13px; line-height: 1.2; text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 35, 61, 0.08);
}
.helper-link:hover { color: var(--green-strong); background: #fff; border-color: var(--green); }
.helper-link:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 999px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy); color: #c6d0dc;
  padding: 40px 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.footer-inner img { height: 27px; width: auto; opacity: 0.95; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.footer-links a {
  font-size: 0.875rem; color: #c6d0dc; text-decoration: none; padding: 6px 4px;
}
.footer-links a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.footer-meta { font-size: 0.8125rem; color: #8ea0b5; }
.footer-version { font-size: 0.7rem; color: #8ea0b5; text-align: right; padding: 2px 20px 12px; }

.footer-links a.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; color: #c6d0dc; border-radius: 8px; }
.footer-links a.footer-social:hover { color: #ffffff; background: rgba(255,255,255,0.08); text-decoration: none; }
.footer-links a.footer-social svg { display: block; }

/* ---- Legal / static prose pages ---- */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 6px; }
.legal .legal-date { font-size: 0.875rem; color: var(--subtle); margin-bottom: 28px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.legal h3 { font-size: 1.125rem; margin: 24px 0 10px; }
.legal p, .legal li { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 1.4em; margin: 14px 0; }
.legal ul li + li { margin-top: 8px; }
.legal a { color: var(--green-strong); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--navy); }
.legal strong { color: var(--ink); }

/* ---- Scroll reveal (only when JS is present) ---- */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .btn-arrow { transition: none; }
  .btn:hover .btn-arrow { transform: none; }
}

/* Desktop: full-width illustration with balanced height (v0.9.3) */
@media (min-width: 1025px) {
  .hero { min-height: clamp(620px, 47vw, 740px); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  :root { --gutter: 20px; }
  .header-inner { padding-left: 20px; }
  .hero { padding: 48px 0 64px; }
  .hero-inner::before { inset: -28px 0; } /* clip glow horizontally — prevents viewport overflow */
  .lede { max-width: none; }
  .trust-strip { gap: 10px 18px; }
  .problem, .difference, .how, .trust { padding: 64px 0; }
  .promise { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-points { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; justify-content: center; }
  .cta-band .btn-lg { width: auto; min-width: 240px; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .sources li { font-size: 0.9375rem; padding: 8px 14px; }
  .steps { grid-template-columns: 1fr; }
  .transform { display: block; }

  /* Header: match Area Detail mobile header (height, padding, logo size) */
  .header-inner { min-height: 70px; padding: 0 15px; }
  .brand img { height: 29px; }

  /* Mobile hero: portrait illustration, mascots fully visible below the search */
  .hero {
    background-image: url('/assets/img/bcas/homepage-hero-mobile.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    aspect-ratio: 941 / 1672;
    padding: 32px 0 0;
    display: flex;
    flex-direction: column;
  }
  .hero-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
  }
  .hero-foot {
    margin-top: auto;
    padding-bottom: 24px;
  }
}

@media (max-width: 430px) {
  :root { --fs-h1: 2.2rem; }
  .section-lede { font-size: 1.0625rem; }
}

@media (max-width: 320px) {
  :root { --fs-h1: 2rem; }
}
@media(max-width:800px){.brand-logo{height:28px;width:auto}}
