/* ============================================================
   AECPulse landing — design system
   Navy foundation, one blue accent for every CTA, photo hero,
   light + dark via token swap.
   ============================================================ */

/* ---------- tokens: light ---------- */
:root {
  --navy-deep: #081426;

  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --elev: #ffffff;
  --ink: #0d1a30;
  --body: #47566a;
  --muted: #5b6880;
  --line: #e3e9f2;

  --accent: #1843ce;
  --accent-strong: #1536a6;
  --accent-wash: rgba(24, 67, 206, .08);

  --r-pill: 999px;
  --r-card: 16px;

  --sh-sm: 0 1px 2px rgba(13, 26, 48, .05), 0 6px 20px rgba(13, 26, 48, .05);
  --sh-md: 0 10px 34px rgba(13, 26, 48, .10);

  --ff: "Plus Jakarta Sans", system-ui, sans-serif;
  --maxw: 1200px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- tokens: dark (token swap only) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1524;
    --bg-alt: #0c1a2e;
    --elev: #10233d;
    --ink: #eef3fb;
    --body: #aab7c9;
    --muted: #8798b0;
    --line: rgba(255, 255, 255, .09);

    --accent: #5b83ff;
    --accent-strong: #7597ff;
    --accent-wash: rgba(91, 131, 255, .14);

    --sh-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --sh-md: 0 12px 38px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* ---------- section framing ---------- */
.section { padding: 136px 0; }
.section__head { max-width: 680px; margin: 0 0 64px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section__head p { font-size: 1.1rem; margin-top: 16px; max-width: 62ch; }
.section__head--center p { margin-left: auto; margin-right: auto; }

/* ---------- buttons (one pill system) ---------- */
.btn {
  --pad: 11px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff); font-weight: 700; font-size: 15px;
  padding: var(--pad); border-radius: var(--r-pill); cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .16s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { --pad: 16px 30px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--accent); color: #fff; }
.btn--outline { background: var(--elev); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--accent); }
.btn--on-dark { background: #fff; color: #0d1a30; }
.btn--on-dark:hover { background: #dfe7f5; }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost-dark:hover { border-color: #fff; }
.link-arrow { font-weight: 700; font-size: 17px; color: var(--ink); display: inline-flex; gap: 6px; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px 0; transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line); padding: 8px 0;
}
/* over the (always light) hero photo the nav keeps light-theme colors */
.nav:not(.scrolled):not(.mobile-open) { --ink: #0d1a30; --bg: #ffffff; --accent: #1843ce; }
.nav__inner { display: flex; align-items: center; gap: 20px; min-height: 46px; }
.nav__brand img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 32px; margin-left: 32px; margin-right: auto; }
.nav__links a { font-weight: 600; font-size: 15px; color: var(--ink); opacity: .8; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: var(--accent); }
.nav__actions { display: flex; gap: 8px; align-items: center; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — full-bleed architectural photo, copy over the sky
   ============================================================ */
.hero {
  /* the photo is light in both themes, so the hero pins light-theme colors */
  --ink: #0d1a30; --body: #2b3a52; --accent: #1843ce; --accent-strong: #1536a6;
  position: relative; overflow: hidden; background: #e9eef4;
  min-height: clamp(640px, 94vh, 920px); display: flex;
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
/* soft light fade behind the copy so text stays readable over the glass */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(240, 244, 249, .94) 0%, rgba(240, 244, 249, .82) 34%, rgba(240, 244, 249, 0) 62%); }
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding-top: 168px; padding-bottom: 48px; }
.hero__copy { max-width: 600px; display: flex; flex-direction: column; gap: 24px; }
.hero__eyebrow { display: block; margin-bottom: 24px; font-size: 14px; line-height: 1.4; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--body); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); line-height: 1.02; letter-spacing: -.035em; }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 27rem; color: var(--body); }
.hero__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 8px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts li { font-size: 14px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .84); padding: 9px 16px; border-radius: var(--r-pill); }

/* ============================================================
   FEATURES — four pillars
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
.pillar { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.pillar svg { width: 28px; height: 28px; color: var(--accent); }
.pillar h3 { font-size: 1.2rem; margin-top: 8px; }
.pillar p { font-size: 1rem; }

/* ============================================================
   AEC BAND — the one dark statement
   ============================================================ */
.band { background: var(--navy-deep); color: rgba(255, 255, 255, .78); padding: 120px 0; }
.band__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 20px; }
.band p { font-size: 1.1rem; max-width: 52ch; }
.band__phases { list-style: none; display: grid; }
.band__phases li { display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: 1.1rem; }
.band__phases li:first-child { border-top: 1px solid rgba(255, 255, 255, .12); }
.band__phases span { width: 36px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #8fa9ff; }

/* ============================================================
   SWITCH — short, checkable comparison
   ============================================================ */
.switch { max-width: 900px; margin: 0 auto; overflow-x: auto; }
.switch__table { width: 100%; border-collapse: collapse; min-width: 560px; }
.switch__table th, .switch__table td { text-align: left; padding: 18px 20px; font-size: 1rem; border-bottom: 1px solid var(--line); }
.switch__table thead th { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.switch__table tbody th { font-weight: 700; color: var(--ink); width: 22%; }
.switch__table td { color: var(--muted); }
.switch__table .switch__us { color: var(--ink); font-weight: 700; background: var(--accent-wash); }
.switch__table thead .switch__us { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   PRICING — seat calculator
   ============================================================ */
.calc { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--elev); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-md); overflow: hidden; }
.calc__main { padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.calc__label { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.calc__seats { font-size: 1.1rem; color: var(--muted); }
.calc__seats output { font-weight: 800; font-size: 3.2rem; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.calc__range { --fill: 11%; -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: var(--r-pill); cursor: pointer; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line) var(--fill)); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: var(--sh-sm); }
.calc__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: var(--sh-sm); }
.calc__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -8px; }
.calc__result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px 0 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.calc__result--contact { grid-template-columns: minmax(0, 1fr); }
.calc__result > div { display: flex; flex-direction: column; gap: 4px; }
.calc__caption { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.calc__num { font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc__num small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.calc__side { background: var(--bg-alt); padding: 48px; display: flex; flex-direction: column; gap: 18px; }
.calc__side h3 { font-size: 1rem; }
.calc__side h3 + * { margin-bottom: 14px; }
.calc__list { list-style: none; display: grid; gap: 10px; }
.calc__list li { font-size: .96rem; color: var(--ink); padding-left: 22px; position: relative; }
.calc__list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.calc__tiers { list-style: none; display: grid; }
.calc__fine { font-size: .9rem; color: var(--muted); text-align: center; margin-top: -8px; }
.calc__tiers li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: .96rem; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.calc__tiers b { color: var(--ink); }
.calc__tiers li.is-active { background: var(--accent-wash); color: var(--accent); font-weight: 700; }
.calc__tiers li.is-active b { color: var(--accent); }
.addon { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--r-card); }
.addon h3 { font-size: 1.15rem; margin: 6px 0 6px; }
.addon p { font-size: .98rem; max-width: 62ch; }
.addon__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { padding: 136px 0; }
.cta__inner { background: var(--navy-deep); color: #fff; border-radius: 24px; padding: 88px 40px; text-align: center; }
.cta__inner h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta__inner p { color: rgba(255, 255, 255, .75); font-size: 1.1rem; margin: 16px auto 32px; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: 56px 0 28px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-bottom: 36px; }
.footer__logo { font-weight: 800; font-size: 22px; color: #fff; }
.footer__logo b { color: #8fa9ff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; font-size: .95rem; }
.footer__links a:hover, .footer__legal a:hover { color: #fff; }
.footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }

/* ============================================================
   LEGAL — privacy policy and terms pages
   ============================================================ */
.legal { padding: 152px 0 120px; }
.legal__inner { max-width: 820px; }
.legal__head { padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal__head h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); letter-spacing: -.03em; }
.legal__date { margin-top: 14px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.legal section { padding-top: 40px; }
.legal h2 { display: flex; gap: 10px; font-size: 1.35rem; line-height: 1.3; margin-bottom: 14px; }
.legal h2 span { color: var(--accent); font-variant-numeric: tabular-nums; }
.legal p, .legal li { font-size: 1rem; }
.legal p + p, .legal p + ul, .legal ul + p, .legal p + .legal__table { margin-top: 14px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-strong); }
.legal ul { list-style: none; display: grid; gap: 10px; }
.legal ul li { padding-left: 22px; position: relative; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal__caps { font-size: .92rem !important; letter-spacing: .01em; color: var(--ink); }
.legal__contact { font-style: normal; color: var(--ink); padding: 20px 24px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-card); }
.legal__table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.legal__table table { width: 100%; min-width: 600px; border-collapse: collapse; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 14px 18px; font-size: .95rem; border-bottom: 1px solid var(--line); }
.legal__table tbody tr:last-child > * { border-bottom: 0; }
.legal__table thead th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.legal__table tbody th { font-weight: 700; color: var(--ink); width: 22%; }
.legal__table td:last-child { width: 28%; }
.footer__legal a[aria-current="page"] { color: #fff; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .addon { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 760px) {
  .nav__inner { flex-wrap: wrap; }
  .nav__brand { order: 1; margin-right: auto; }
  .nav__toggle { order: 2; display: flex; }
  .nav__links { order: 3; }
  .nav__actions { order: 4; }
  .nav__links, .nav__actions { flex-basis: 100%; margin: 0; display: none; }
  .nav.mobile-open { background: var(--bg); box-shadow: var(--sh-md); }
  .nav.mobile-open .nav__links { display: flex; flex-direction: column; gap: 0; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
  .nav.mobile-open .nav__links a { padding: 15px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav.mobile-open .nav__actions { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 6px; }
  .nav.mobile-open .nav__actions .btn { width: 100%; }
  .hero { min-height: 0; }
  .hero__photo { object-position: 72% 100%; }
  /* on narrow screens the copy can sit over the facade, so soften the top of the photo */
  .hero::before { background: linear-gradient(180deg, rgba(240, 244, 249, .92) 0%, rgba(240, 244, 249, .75) 55%, rgba(240, 244, 249, 0) 85%); }
  .hero__inner { padding-top: 120px; }
  .section, .cta { padding: 88px 0; }
  .band { padding: 88px 0; }
  .cta__inner { padding: 56px 22px; }
  .legal { padding: 112px 0 88px; }
  .calc__main, .calc__side { padding: 28px 22px; }
  .calc__num { font-size: 2.1rem; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .container { padding-inline: 18px; }
  .hero__cta .btn, .cta__btns .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
