/* AllyVero landing page — draft preview
   Palette sampled from brand asset 01-inline-classic.jpg */

:root {
  --navy: #082048;
  --navy-deep: #04122c;
  --navy-soft: #15305f;
  --gold: #c0a078;
  --gold-soft: #d4bc98;
  --gold-deep: #9a7a52;
  --cream: #f7f3ea;
  --cream-deep: #efe7d8;
  --ink: #1a2438;
  --muted: #5c677a;
  --line: rgba(8, 32, 72, 0.12);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 32, 72, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(192, 160, 120, 0.18), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(8, 32, 72, 0.06), transparent 55%),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-deep);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.preview-banner {
  background: var(--navy-deep);
  color: #e8eef8;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(192, 160, 120, 0.35);
}

.preview-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.preview-banner strong {
  color: var(--gold-soft);
  font-weight: 600;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 234, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(8, 32, 72, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  color: inherit;
  flex: 0 1 auto;
  min-width: 0;
}

.brand:hover,
.brand:focus-visible {
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 76px;
  height: 76px;
  flex: none;
  display: block;
}

.brand__word {
  height: 44px;
  width: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.brand__name {
  font-weight: 700;
  font-size: 2rem; /* 32px */
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
}

.brand__tag {
  font-size: 0.9375rem; /* 15px */
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1.35rem;
}

.nav a:not(.btn) {
  text-decoration: none;
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 1.125rem; /* 18px */
  line-height: 1.2;
}

.nav a:not(.btn):hover,
.nav a:not(.btn):focus-visible {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.9rem 1.45rem;
  font: inherit;
  font-weight: 650;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav .btn {
  font-size: 1.0625rem; /* 17px header CTA */
  padding: 0.85rem 1.35rem;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Primary: cream/white text on navy — beat a / .nav a cascade for all states */
.btn-primary,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:focus,
a.btn-primary:focus-visible,
.nav a.btn-primary,
.nav a.btn-primary:link,
.nav a.btn-primary:visited,
.nav a.btn-primary:hover,
.nav a.btn-primary:active,
.nav a.btn-primary:focus,
.nav a.btn-primary:focus-visible,
button.btn-primary,
button.btn-primary:hover,
button.btn-primary:focus,
button.btn-primary:focus-visible {
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(8, 32, 72, 0.18);
}

.btn-primary:hover,
a.btn-primary:hover,
.nav a.btn-primary:hover,
button.btn-primary:hover {
  background: var(--navy-soft);
  color: var(--white);
}

.btn-primary:focus-visible,
a.btn-primary:focus-visible,
.nav a.btn-primary:focus-visible,
button.btn-primary:focus-visible {
  color: var(--white);
}

.btn-secondary,
a.btn-secondary,
a.btn-secondary:link,
a.btn-secondary:visited,
a.btn-secondary:hover,
a.btn-secondary:active,
a.btn-secondary:focus,
a.btn-secondary:focus-visible {
  background: transparent;
  border-color: rgba(8, 32, 72, 0.22);
  color: var(--navy);
  text-decoration: none;
}

.btn-secondary:hover,
a.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-gold,
a.btn-gold,
a.btn-gold:link,
a.btn-gold:visited,
a.btn-gold:hover,
a.btn-gold:active,
a.btn-gold:focus,
a.btn-gold:focus-visible,
button.btn-gold,
button.btn-gold:hover,
button.btn-gold:focus,
button.btn-gold:focus-visible {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--navy-deep);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(154, 122, 82, 0.22);
}

.btn-gold:hover,
a.btn-gold:hover,
button.btn-gold:hover {
  color: var(--navy-deep);
  filter: brightness(1.03);
}

/* Secondary CTA on dark navy panel — keep light text in all states */
.cta-box .btn-secondary,
.cta-box a.btn-secondary,
.cta-box a.btn-secondary:link,
.cta-box a.btn-secondary:visited,
.cta-box a.btn-secondary:hover,
.cta-box a.btn-secondary:active,
.cta-box a.btn-secondary:focus,
.cta-box a.btn-secondary:focus-visible {
  color: #f7f3ea;
  border-color: rgba(247, 243, 234, 0.4);
  background: transparent;
}

.cta-box .btn-secondary:hover,
.cta-box a.btn-secondary:hover {
  color: var(--white);
  border-color: rgba(247, 243, 234, 0.75);
}

.btn[aria-disabled="true"],
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy);
  font-weight: 700;
}

.hero h1 span {
  display: block;
  color: var(--gold-deep);
  font-weight: 650;
  font-size: 0.52em;
  letter-spacing: 0.01em;
  margin-top: 0.55rem;
}

.lede {
  margin: 1.25rem 0 0;
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero__note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
}

.hero-card__logo {
  width: min(100%, 340px);
  margin: 0.5rem auto 1.25rem;
  border-radius: 12px;
}

.hero-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.hero-card__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: var(--cream);
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(192, 160, 120, 0.18);
}

.hero-card__list strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.hero-card__list span {
  color: var(--muted);
  font-size: 0.94rem;
}

section {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: 0 10px 30px rgba(8, 32, 72, 0.04);
  min-height: 100%;
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(192, 160, 120, 0.16);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1px solid rgba(192, 160, 120, 0.35);
}

.card h3 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step__num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 0.3rem;
  color: var(--navy);
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--navy-soft);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.privacy {
  background:
    linear-gradient(180deg, rgba(8, 32, 72, 0.03), transparent),
    var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy .panel {
  background: rgba(255, 255, 255, 0.82);
}

.privacy ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.privacy li + li {
  margin-top: 0.45rem;
}

.cta {
  padding-bottom: 4rem;
}

.cta-box {
  background:
    radial-gradient(700px 240px at 15% 0%, rgba(192, 160, 120, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #e8eef8;
  border-radius: 28px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--white);
}

.cta-box p {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  color: rgba(232, 238, 248, 0.86);
}

.cta-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
  align-items: center;
}

.cta-box__hint {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: rgba(232, 238, 248, 0.72);
  max-width: 38rem;
}

.site-footer {
  padding: 2rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.site-footer strong {
  color: var(--navy);
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 44, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 80;
}

.dialog-backdrop[open],
.dialog-backdrop.is-open {
  display: flex;
}

.dialog {
  width: min(100%, 440px);
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(4, 18, 44, 0.28);
}

.dialog h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
}

.dialog p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.dialog__actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .nav {
    gap: 0.4rem 1rem;
  }

  .nav a:not(.btn) {
    font-size: 1.05rem;
  }

  .brand__mark {
    width: 70px;
    height: 70px;
  }

  .brand__name {
    font-size: 1.875rem; /* 30px */
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .cards,
  .split {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: var(--shadow);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header__inner {
    position: relative;
  }

  .brand__mark {
    width: 64px;
    height: 64px;
  }

  .brand__name {
    font-size: 1.75rem; /* 28px */
  }

  .brand__tag {
    font-size: 0.9rem;
  }

  .nav a:not(.btn) {
    font-size: 1.125rem;
  }

  .nav .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero {
    padding-top: 2.4rem;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand__mark {
    width: 56px;
    height: 56px;
  }

  .brand__name {
    font-size: 1.5rem; /* 24px */
  }

  .brand__tag {
    font-size: 0.85rem;
  }

  .hero-card {
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .site-header {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
