:root {
  --navy: #1A2B4A;
  --navy-deep: #16233E;
  --yellow: #FFC93C;
  --ink: #1A2B4A;
  --body: #34445F;
  --muted: #4A5A75;
  --grey: #F4F6F9;
  --line: #DCE2EA;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Poppins, Arial, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.02em; }
a { color: var(--ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.mark { background: var(--yellow); color: var(--navy); padding: 0 0.18em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mark-sm { background: var(--yellow); color: var(--navy); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.hl-text { color: var(--yellow); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; border-radius: var(--radius); font-family: inherit; font-size: 18px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #FFD45F; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #22375D; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 16px; }
.btn-block { width: 100%; }

/* Top bar */
.topbar { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.12); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
.wordmark { color: #fff; text-decoration: none; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.wordmark-sm { font-size: 24px; }
.topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.from { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.78); font-size: 13px; font-weight: 500; }
.logo-bainna { height: 22px; width: auto; display: block; }
.logo-edifi { height: 24px; width: auto; display: block; }
.divider { width: 1px; height: 22px; background: rgba(255,255,255,0.35); }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 88px 0 96px; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.chip { display: inline-block; margin: 0; border: 1px solid rgba(255,255,255,0.32); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.92); }
.hero h1 { margin: 24px 0 0; font-size: clamp(38px, 5.2vw, 64px); font-weight: 700; line-height: 1.12; }
.lead { margin: 24px 0 0; max-width: 600px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: rgba(255,255,255,0.86); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.text-link { color: #fff; font-size: 17px; font-weight: 500; text-underline-offset: 5px; }
.text-link:hover { color: var(--yellow); }
.hero-card { flex: 1 1 340px; max-width: 400px; min-width: 0; }
.caption { margin: 12px 0 0; font-size: 13px; color: rgba(255,255,255,0.7); }

.invoice { background: #fff; color: var(--navy); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.invoice-head { display: flex; justify-content: space-between; align-items: baseline; }
.invoice-title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; }
.invoice-no { font-size: 13px; font-weight: 500; color: var(--muted); }
.rule { height: 1px; background: #E3E7EE; }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; font-size: 18px; font-weight: 500; }
.row.flag { background: var(--yellow); font-weight: 600; }
.dot { width: 26px; height: 26px; border-radius: 13px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dot svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.dot.warn { color: var(--yellow); font-size: 16px; font-weight: 700; }
.invoice-foot { font-size: 16px; font-weight: 600; }

/* Dates */
.dates { background: var(--navy-deep); color: #fff; padding: 44px 0; }
.dates-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.dates-intro { flex: 1 1 280px; min-width: 0; }
.dates-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; }
.dates-source { margin: 8px 0 0; font-size: 14px; color: rgba(255,255,255,0.72); }
.date { flex: 1 1 260px; min-width: 0; border-top: 1px solid rgba(255,255,255,0.22); padding-top: 16px; }
.date-big { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.02em; color: var(--yellow); }
.date-label { margin-top: 6px; font-size: 17px; font-weight: 500; }
.date-count { margin-top: 4px; font-size: 15px; color: rgba(255,255,255,0.72); min-height: 1.4em; }

/* Content sections */
.section { padding: 96px 0; }
.section-grey { background: var(--grey); }
.section-tight { padding: 88px 0; }
.section h2, .waitlist h2, .community h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.15; }
.section h2 { max-width: 820px; }
.h2-sm { font-size: clamp(28px, 3.2vw, 40px) !important; }
.section-lead { margin: 20px 0 0; max-width: 720px; font-size: 19px; line-height: 1.6; color: var(--body); }
.cols { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 40px; }
.cols-4 { gap: 36px; }
.cols-2 { margin-top: 40px; }
.col { flex: 1 1 280px; min-width: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.cols-4 .col { flex-basis: 240px; }
.cols-2 .col { flex-basis: 360px; }
.col h3 { margin: 10px 0 0; font-size: 21px; font-weight: 700; }
.cols-2 .col h3 { margin-top: 0; }
.col p { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--body); }
.cols-4 .col p { font-size: 16px; }
.num { margin: 0 !important; font-size: 14px !important; font-weight: 700; letter-spacing: 0.08em; color: var(--muted) !important; }
.tag { display: inline-block; border: 1px solid #C9D2E0; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; }
.tag-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.cols-4 .col h3 { margin-top: 14px; }

.faq { margin-top: 48px; }
.faq-row { display: flex; flex-wrap: wrap; gap: 16px 48px; border-top: 1px solid #D5DCE6; padding: 28px 0; }
.faq-row:last-child { border-bottom: 1px solid #D5DCE6; }
.faq-q { flex: 1 1 320px; min-width: 0; margin: 0; font-size: 22px; font-weight: 600; line-height: 1.4; }
.faq-a { flex: 2 1 420px; min-width: 0; margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }

/* Waitlist */
.waitlist { background: var(--navy); color: #fff; padding: 96px 0; scroll-margin-top: 70px; }
.waitlist-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.waitlist-copy { flex: 1 1 420px; min-width: 0; }
.waitlist h2 { font-size: clamp(32px, 4vw, 50px); color: #fff; }
.ticks { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ticks li { position: relative; padding-left: 42px; font-size: 17px; line-height: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 14px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A2B4A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat; }

.form-card { flex: 1 1 420px; min-width: 0; background: #fff; color: var(--navy); border-radius: var(--radius); padding: 32px; }
.form-card form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field-row .field { flex: 1 1 200px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select { min-height: 48px; border: 1px solid #B8C3D3; border-radius: var(--radius); padding: 10px 14px; font-family: inherit; font-size: 16px; color: var(--navy); background: #fff; width: 100%; }
.consent { display: flex; align-items: flex-start; gap: 12px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--navy); }
.consent label { font-size: 15px; line-height: 1.5; color: var(--body); }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; font-size: 15px; color: #B42318; font-weight: 500; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

.thanks { display: flex; flex-direction: column; gap: 16px; padding: 12px 0; }
.thanks[hidden] { display: none; }
.thanks-icon { width: 56px; height: 56px; border-radius: 28px; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.thanks-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thanks h3 { margin: 0; font-size: 28px; font-weight: 700; }
.thanks p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); }

/* Community */
.community { background: var(--yellow); color: var(--navy); padding: 80px 0; scroll-margin-top: 70px; }
.community-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.community-inner > div { flex: 1 1 520px; min-width: 0; }
.community h2 { font-size: clamp(30px, 3.6vw, 44px); }
.community p { margin: 16px 0 0; max-width: 660px; font-size: 18px; line-height: 1.6; }

/* Footer */
.footer { background: var(--navy-deep); color: #fff; padding: 56px 0 48px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-rule { height: 1px; background: rgba(255,255,255,0.14); margin: 28px 0; }
.small { margin: 0 0 16px; max-width: 820px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.75); }

@media (max-width: 640px) {
  .from > span:first-child { display: none; }
  .topbar-right { gap: 14px; }
  .hero { padding: 56px 0 64px; }
  .section, .section-tight, .waitlist { padding: 64px 0; }
  .form-card { padding: 22px; }
  .topbar .btn-sm { padding: 10px 14px; font-size: 15px; }
  .topbar .from { display: none; }
}

/* FAQ headings use h3 for structure; keep the same look */
h3.faq-q { letter-spacing: normal; }
#faq .faq-q { font-size: 20px; }
.faq-a strong { font-weight: 600; color: var(--ink); }
