:root {
  --dark: #22301c;
  --hero: #283422;
  --cta: #253321;
  --cream: #eeebe4;
  --card: #f6f4f1;
  --bdd: #e6e2d8;
  --orange: #b27822;
  --orange-d: #9c6819;
  --gold: #dcb079;
  --green-circle: #31531e;
  --ink: #2c3823;
  --muted: #5d6350;   /* AA: 5.68:1 on cards, 4.82:1 on the darker BDD card */
  --line: #e0ddd3;
  --radius: 16px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: 'Poppins', sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section[id] { scroll-margin-top: 110px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-weight: 600; font-family: 'Poppins', sans-serif;
  border-radius: 12px; padding: 13px 24px; font-size: 15px;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: #a06810; color: #fff; }   /* 4.69:1 with white text → WCAG AA */
.btn-orange:hover { background: #85560f; box-shadow: 0 6px 18px rgba(178,120,34,.35); }
.btn-dark { background: #23311c; color: #fff; }
.btn-dark:hover { background: #2f4126; }

/* ---------- Header ---------- */
.site-header {
  background: var(--dark); position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #f3efe6; }
.brand img { height: 76px; width: auto; }
.site-footer .brand img { height: 112px; }
.brand .word { letter-spacing: .32em; font-weight: 600; font-size: 22px; }
.brand .rule { color: var(--orange); letter-spacing: -2px; font-size: 20px; opacity: .8; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: #d7dccb; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-links a.btn-orange { color: #fff; }   /* keep AA contrast; beat .nav-links a specificity */
.nav-toggle { display: none; background: none; border: 0; color: #f3efe6; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: #f3efe8; padding: 60px 0 76px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.badge {
  display: inline-block; border: 1px solid rgba(220,176,121,.5); color: var(--gold);
  border-radius: 8px; padding: 7px 14px; font-size: 12px; letter-spacing: .18em;
  font-weight: 600; margin-bottom: 26px;
}
.hero h1 { font-size: 52px; line-height: 1.1; font-weight: 600; letter-spacing: -.5px; }
.hero h1 .gold { color: var(--gold); display: block; margin-top: 6px; }
.hero p.lede { color: #cdd3c3; font-size: 17px; max-width: 520px; margin: 24px 0 30px; }
.signup { display: flex; gap: 10px; max-width: 500px; background: #fff; padding: 7px;
  border-radius: 14px; }
.signup input {
  flex: 1; border: 0; outline: none; padding: 12px 14px; font-size: 15px;
  color: #333; background: transparent; font-family: inherit;
}
.signup .btn { white-space: nowrap; }
.hero .assure { display: flex; align-items: center; gap: 8px; color: #b9c0ab; font-size: 14px; margin-top: 16px; }

/* Phone trio built from the real app screens */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 24px 0; }
.phone {
  border-radius: 26px; overflow: hidden; background: #101610;
  box-shadow: 0 26px 46px rgba(0,0,0,.42);
  width: 33%; aspect-ratio: 851 / 2048;   /* uniform frame; every screen is normalized to this ratio */
}
.phone img { display: block; width: 100%; height: 100%; object-fit: contain; }   /* contain = never crop, never zoom */
.phone--center { z-index: 3; }
.phone--left  { z-index: 1; transform: rotate(-8deg); margin: 34px -5% 0 0; }
.phone--right { z-index: 1; transform: rotate(8deg);  margin: 34px 0 0 -5%; }
.phone--center:hover { transform: translateY(-6px); transition: transform .2s ease; }

/* ---------- Feature strip ---------- */
.section { padding: 66px 0; }
.strip { margin-top: -46px; position: relative; z-index: 5; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2x4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(34,48,28,.10); }
.card .ico {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--muted); }
.ico svg { width: 26px; height: 26px; }
.ico-green { background: #e7ecdd; color: var(--green-circle); }
.ico-orange { background: #f5e7d1; color: var(--orange); }

/* ---------- Section headings ---------- */
.sec-title { text-align: center; font-size: 34px; font-weight: 600; color: var(--ink); margin-bottom: 44px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.step .num {
  flex: none; width: 44px; height: 44px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
  font-family: 'Poppins', sans-serif; font-size: 18px;
}
.step:nth-child(1) .num { background: var(--green-circle); }
.step:nth-child(2) .num { background: #a06810; }   /* white numeral → AA contrast */
.step:nth-child(3) .num { background: var(--green-circle); }
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- BDD ---------- */
.bdd-card {
  background: var(--bdd); border-radius: 22px; padding: 46px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: center;
}
.bdd-left h2 { font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.2; display: flex; gap: 18px; align-items: flex-start; }
.bdd-badge { width: 58px; height: 58px; flex: none; border-radius: 50%; border: 2px solid #cfc8b5;
  display: flex; align-items: center; justify-content: center; color: var(--orange); background: #efeadd; }
.bdd-left p { color: #545a47; margin: 18px 0 26px; font-size: 15.5px; }
.bdd-list { display: flex; flex-direction: column; gap: 22px; }
.bdd-item { display: flex; gap: 14px; align-items: flex-start; }
.bdd-item .dot { width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; }
.bdd-item:nth-child(1) .dot { background: var(--green-circle); }
.bdd-item:nth-child(2) .dot { background: var(--orange); }
.bdd-item:nth-child(3) .dot { background: var(--green-circle); }
.bdd-item h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.bdd-item p { font-size: 14px; color: var(--muted); margin: 2px 0 0; }

/* ---------- CTA ---------- */
.cta-wrap { padding: 20px 0 70px; }
.cta {
  background: var(--cta); border-radius: 22px; color: #f2efe7; padding: 42px 46px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
}
.cta img { width: 128px; }
.cta h2 { font-size: 28px; font-weight: 600; line-height: 1.2; }
.cta h2 .gold { color: var(--gold); }
.cta p { color: #c4cbb7; font-size: 15px; margin-top: 8px; max-width: 340px; }
.cta-form { width: 340px; }
.cta-form .signup { max-width: none; margin-bottom: 10px; }
.cta-form .signup .btn { width: 100%; }
.cta-form .signup { flex-direction: column; }
.cta-form .priv { color: var(--gold); font-size: 13px; display: flex; gap: 7px; align-items: center; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cbd0c0; padding: 54px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto; gap: 32px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 13.5px; color: #9aa389; max-width: 220px; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 34px; height: 34px; border: 1px solid #3c4a33; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #cbd0c0; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.foot-col h3 { color: var(--gold); font-size: 12px; letter-spacing: .12em; margin-bottom: 16px; font-weight: 600; }
.foot-col a { display: block; font-size: 14px; color: #b6bda9; margin-bottom: 11px; }
.foot-col a:hover { color: #fff; }
.trust { border: 1px solid #3c4a33; border-radius: 12px; padding: 16px 18px; max-width: 230px; }
.trust .t { display: flex; gap: 9px; align-items: center; color: #e6e9dd; font-weight: 600; font-size: 14px; }
.trust p { font-size: 12.5px; color: #9aa389; margin-top: 6px; }
.copy { text-align: center; color: var(--gold); font-size: 13px; margin-top: 40px; opacity: .85; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: #23311c; color: #fff; padding: 14px 22px; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3); font-size: 15px; z-index: 100;
  transition: transform .35s cubic-bezier(.2,.8,.2,1); border-left: 4px solid var(--orange);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 560px; margin: 0 auto; }
  .hero h1 { font-size: 42px; }
  .grid-4, .grid-2x4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .bdd-card, .cta { grid-template-columns: 1fr; text-align: left; }
  .cta { text-align: center; justify-items: center; }
  .cta-form, .cta p { width: auto; max-width: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 96px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 20px 28px; gap: 18px; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-4, .grid-2x4, .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .signup { flex-direction: column; }
  .signup .btn { width: 100%; }
  .sec-title { font-size: 26px; }
  .bdd-card, .cta { padding: 30px 22px; }
}
