/* =========================================================================
   AssociationText — static rebuild (Squarespace → S3/CloudFront)
   Plain CSS, no build step. Token system first, components after.
   Brand: navy #2c618c + orange #fe7f2d, Poppins headings, high-contrast white.
   ========================================================================= */

/* ---- Self-hosted Poppins (latin subset, was Google Fonts) ---- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/poppins-700.woff2') format('woff2');
}

:root {
  /* ---- color ---- */
  --navy:        #2c618c;
  --navy-deep:   #234e70;
  --navy-ink:    #1b3a55;
  --orange:      #fe7f2d;
  --orange-deep: #ef6f1c;
  --white:       #ffffff;
  --ink:         #15212b;   /* primary text */
  --muted:       #5d6b78;   /* secondary text */
  --bg:          #ffffff;
  --bg-alt:      #f4f7fa;   /* soft section wash */
  --line:        #e4eaf0;

  /* ---- type ---- */
  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Helvetica Neue", Arial, "Poppins", sans-serif;

  /* ---- scale ---- */
  --step--1: clamp(0.84rem, 0.8rem + 0.2vw, 0.95rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4:  clamp(2.8rem, 2rem + 4vw, 4.6rem);

  /* ---- space / shape / motion ---- */
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius:   18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow:   0 18px 50px rgba(27, 58, 85, 0.14);
  --shadow-sm: 0 6px 20px rgba(27, 58, 85, 0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 0.4em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: var(--step--1);
  color: var(--orange); margin-bottom: 0.6rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  padding: 0.85em 1.8em; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.btn--lg { font-size: var(--step-0); padding: 1em 2.3em; }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--navy-ink); color: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 0.55rem 2.5rem 0.55rem 1rem; position: relative; text-align: center;
}
.announce p { margin: 0; font-size: var(--step--1); }
.announce a { color: #ffd9bf; text-decoration: underline; text-underline-offset: 2px; }
.announce__close {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--white); font-size: 1.4rem; line-height: 1;
  cursor: pointer; padding: 0.2rem 0.5rem; opacity: 0.8;
}
.announce__close:hover { opacity: 1; }
.announce.is-hidden { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.nav__brand { display: inline-flex; }
.nav__logo { width: clamp(170px, 18vw, 215px); }
.nav__login { padding: 0.55em 1.5em; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__title { margin-bottom: 1rem; }
.hero__title-thin, .hero__title-bold { display: block; }
.hero__title-thin { font-weight: 300; font-size: var(--step-3); color: var(--ink); }
.hero__title-bold { font-weight: 700; font-size: var(--step-4); color: var(--ink); letter-spacing: -0.01em; }
.hero__lede { font-size: var(--step-1); color: var(--muted); max-width: 30ch; margin-bottom: 1.8rem; }
.hero__lede strong { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__media { position: relative; }
.hero__collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas: "main stat" "main small";
  gap: 0.9rem; align-items: stretch;
}
.hero__photo { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; box-shadow: var(--shadow-sm); }
.hero__photo--main { grid-area: main; min-height: 340px; }
.hero__photo--sm { grid-area: small; min-height: 150px; }
.hero__stat {
  grid-area: stat; background: var(--navy); color: var(--white); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 1.3rem;
  border-bottom-right-radius: 64px;
}
.hero__stat-num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }
.hero__stat-label { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; }

.hero__scroll {
  display: block; text-align: center; margin-top: clamp(1.5rem, 4vw, 2.8rem);
  font-family: var(--font-display); font-weight: 500; color: var(--navy-ink);
  text-decoration: none; font-size: var(--step-0); opacity: 0.85;
}
.hero__scroll:hover { opacity: 1; }

/* ---------- metrics + phone ---------- */
.metrics { padding: clamp(2.5rem, 6vw, 5rem) 0; background: var(--bg-alt); }
.metrics__grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: center;
}
.metrics__col { display: flex; flex-direction: column; gap: 1rem; }
.metric {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-0); display: flex; align-items: center; gap: 0.7rem;
  box-shadow: var(--shadow-sm); min-height: 92px;
}
.metric span {
  font-weight: 700; font-size: 1.5em; line-height: 1; flex: 0 0 auto;
  min-width: 1.6em; text-align: center; color: #ffd9bf;
}
.metrics__col--right .metric span { color: #cfe0ee; }

/* phone mockup (CSS recreation of the live demo video) */
.phone {
  --phone-w: clamp(220px, 26vw, 280px);
  width: var(--phone-w);
  border-radius: 40px; background: #0e1b27; padding: 12px;
  box-shadow: 0 30px 60px rgba(15, 33, 49, 0.35); justify-self: center;
}
.phone__screen { background: #f3f5f8; border-radius: 30px; overflow: hidden; height: 520px; display: flex; flex-direction: column; }
.phone__bar {
  background: var(--navy); color: #fff; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1rem; font-family: var(--font-display);
}
.phone__avatar {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.18);
  display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em;
}
.phone__name { font-weight: 600; font-size: 0.95rem; }
.phone__thread { padding: 1rem 0.85rem; display: flex; flex-direction: column; gap: 0.6rem; overflow: hidden; }
.bubble {
  max-width: 82%; padding: 0.6rem 0.85rem; border-radius: 18px; font-size: 0.82rem; line-height: 1.4;
  font-family: var(--font-body);
}
.bubble--in { background: #e4e8ed; color: #1c2a36; align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble--out { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }

.metrics__sponsor { text-align: center; margin: clamp(1.8rem, 4vw, 2.6rem) 0 0; }
.metrics__sponsor a {
  font-family: var(--font-display); font-weight: 600; color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--orange); padding-bottom: 2px;
}
.metrics__sponsor a:hover { color: var(--orange-deep); }

/* ---------- engage / compare ---------- */
.engage { padding: clamp(3rem, 7vw, 6rem) 0; }
.engage__head { text-align: center; max-width: 40ch; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.engage__head h2 { font-size: var(--step-2); font-weight: 700; }
.engage__sub { font-family: var(--font-display); font-weight: 300; font-size: var(--step-1); color: var(--navy); margin: 0; }

.compare { max-width: 760px; margin-inline: auto; }
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.compare__table th, .compare__table td { padding: 0.95rem 1.1rem; text-align: center; font-size: var(--step-0); }
.compare__table thead th { font-family: var(--font-display); font-weight: 700; color: var(--white); background: var(--navy); font-size: var(--step-1); }
.compare__table thead .compare__metric { background: var(--navy-ink); }
.compare__table thead .compare__email { background: var(--navy-deep); font-weight: 500; opacity: 0.92; }
.compare__table tbody th { text-align: left; font-family: var(--font-display); font-weight: 600; color: var(--navy-ink); background: var(--white); }
.compare__table tbody td { background: var(--white); color: var(--muted); font-family: var(--font-display); font-weight: 500; }
.compare__table tbody td.win { color: var(--navy); font-weight: 700; }
.compare__table tbody tr:nth-child(even) th,
.compare__table tbody tr:nth-child(even) td { background: var(--bg-alt); }
.compare__table tbody tr td.win { position: relative; }
.compare__note { font-size: var(--step--1); color: var(--muted); margin-top: 0.9rem; text-align: center; }

/* ---------- flexibility band ---------- */
.flex-band { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.flex-band__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.flex-band__text h2 { font-size: var(--step-2); font-weight: 700; }
.flex-band__text p { color: rgba(255,255,255,0.86); margin: 0; max-width: 56ch; }
.flex-band__badge { justify-self: center; }
.flex-band__badge span {
  display: inline-grid; place-items: center; text-align: center; aspect-ratio: 1; width: clamp(150px, 20vw, 200px);
  border-radius: 50%; border: 3px dashed rgba(255,255,255,0.55); font-family: var(--font-display);
  font-weight: 700; font-size: var(--step-1); padding: 1rem;
}

/* ---------- pricing ---------- */
.pricing { padding: clamp(3rem, 7vw, 6rem) 0; text-align: center; }
.pricing__inner { max-width: 680px; margin-inline: auto; }
.pricing h2 { font-size: var(--step-2); font-weight: 700; }
.pricing__lead { font-size: var(--step-1); color: var(--muted); }
.pricing__credits { display: flex; justify-content: center; gap: 1.2rem; margin: 1.8rem 0; flex-wrap: wrap; }
.credit {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.8rem; min-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
}
.credit__num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); color: var(--navy); line-height: 1; }
.credit__label { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.credit__type { font-family: var(--font-display); font-weight: 700; color: var(--orange); margin-top: 0.5rem; letter-spacing: 0.05em; }
.pricing__note { color: var(--muted); max-width: 48ch; margin: 0 auto 1.8rem; }

/* ---------- try it ---------- */
.try { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--bg-alt); text-align: center; }
.try__inner { max-width: 620px; margin-inline: auto; }
.try h2 { font-size: var(--step-2); font-weight: 700; }
.try__sub { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: var(--step-1); margin-bottom: 0.8rem; }
.try__body { color: var(--muted); margin-bottom: 1.6rem; }
.try__form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.try__form input {
  flex: 1 1 260px; max-width: 320px; padding: 0.85rem 1.1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-pill); font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: var(--white);
}
.try__form input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.try__fineprint { font-size: var(--step--1); color: var(--muted); margin-top: 1rem; }

/* ---------- onboarding ---------- */
.onboard { padding: clamp(3rem, 7vw, 6rem) 0; text-align: center; }
.onboard__inner { max-width: 600px; margin-inline: auto; }
.onboard h2 { font-size: var(--step-2); font-weight: 700; }
.onboard__sub { font-family: var(--font-display); font-weight: 500; color: var(--muted); font-size: var(--step-1); margin-bottom: 1.6rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,0.82); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.site-footer__brand img { filter: brightness(0) invert(1); width: 200px; margin-bottom: 0.8rem; }
.site-footer__tag { font-size: var(--step--1); color: rgba(255,255,255,0.6); margin: 0; max-width: 32ch; }
.site-footer h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); color: var(--white); margin-bottom: 0.7rem; }
.site-footer__contact p, .site-footer__links p { margin: 0 0 0.4rem; font-size: var(--step--1); }
.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer__legal { padding-top: 1.6rem; }
.site-footer__legal p { font-size: 0.78rem; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 90ch; }
.site-footer__copy { margin-top: 0.8rem; color: rgba(255,255,255,0.45); }

/* ---------- floating CTA ---------- */
.float-cta {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 60;
  background: var(--orange); color: var(--white); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  padding: 0.85em 1.4em; border-radius: var(--radius-pill); box-shadow: var(--shadow);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.float-cta:hover { background: var(--orange-deep); transform: translateY(-2px); }

/* ---------- scroll-reveal (fail-open: visible unless html.js-anim set) ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-anim .reveal { opacity: 1 !important; transform: none !important; } }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .metrics__col--left { order: 1; }
  .phone { order: 3; grid-column: 1 / -1; }
  .metrics__col--right { order: 2; }
  .flex-band__grid { grid-template-columns: 1fr; text-align: center; }
  .flex-band__text p { margin-inline: auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero__title-bold { font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -0.02em; }
  .hero__title-thin { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }

  .metrics__grid { grid-template-columns: 1fr; }
  .metrics__col { order: unset !important; }
  .phone { grid-column: auto; order: unset !important; margin: 0.5rem auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .compare__table th, .compare__table td { padding: 0.7rem 0.6rem; font-size: var(--step--1); }
}

/* 404 error page (moved out of inline styles so a strict CSP can drop 'unsafe-inline') */
.error-hero { text-align: center; padding: 6rem 0; }
.error-hero__code { font-size: clamp(3rem, 10vw, 6rem); margin: 0 0 0.25em; }
.error-hero__title { margin: 0 0 0.5em; }
.error-hero__text { margin: 0 0 2rem; }
