@import url("/forms.css");

:root {
  --navy: #142c48;
  --blue: #1d5c8f;
  --teal: #0f9e91;
  --pale: #eef7f5;
  --ink: #16283e;
  --muted: #64748b;
  --line: #dbe4eb;
  --white: #fff;
  --red: #c7443e;
  --amber: #d98d2b;
  --shadow: 0 20px 50px rgba(20, 44, 72, 0.13);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: #fff;
  padding: 0.8rem 1rem;
  z-index: 999;
}
.skip:focus {
  top: 1rem;
}
.header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 5rem);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 228, 235, 0.8);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.2rem;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header nav > a {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.93rem;
}
.menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}
.btn {
  border: 0;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  padding: 0.9rem 1.2rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 158, 145, 0.2);
}
.btn:hover {
  filter: brightness(0.94);
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}
.btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: none;
}
.btn.small {
  padding: 0.65rem 0.9rem;
}
.hero {
  max-width: 1440px;
  margin: auto;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 5vw, 5rem);
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-copy {
  max-width: 660px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 850;
  color: var(--teal);
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0.8rem 0 1.3rem;
  color: var(--navy);
}
h2 {
  font-size: clamp(1.9rem, 3.3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0.7rem 0 1rem;
}
h3 {
  color: var(--navy);
}
.hero p,
.section > p,
.split p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 700px;
}
.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.6rem 0;
}
.trust {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.trust li:before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
  margin-right: 0.35rem;
}
.hero-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 7vw, 7rem);
  max-width: 1500px;
  margin: auto;
}
.steps,
.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.steps article,
.modules article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.steps article > b,
.modules article > span {
  color: var(--teal);
  font-size: 0.85rem;
}
.steps h3,
.modules h3 {
  margin: 0.5rem 0;
}
.steps p,
.modules p {
  color: var(--muted);
  margin: 0;
}
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  align-items: center;
  background: var(--pale);
  max-width: none;
}
.split > div:first-child {
  padding-left: max(0px, calc((100vw - 1500px) / 2));
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.feature-list div {
  padding: 1.4rem;
  border-radius: 16px;
  background: #fff;
  display: grid;
  gap: 0.4rem;
}
.feature-list span {
  color: var(--muted);
}
.dark {
  background: var(--navy);
  max-width: none;
}
.dark h2 {
  color: #fff;
}
.dark .eyebrow {
  color: #68d6ca;
}
.dark .modules article {
  background: #1b3a5c;
  border-color: #315270;
}
.dark .modules h3 {
  color: #fff;
}
.dark .modules p {
  color: #c9d6e3;
}
.proof {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}
.proof ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.proof li {
  border: 1px solid var(--line);
  padding: 1.1rem;
  border-radius: 14px;
}
.proof li:before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
  margin-right: 0.5rem;
}
.cta {
  text-align: center;
  padding: 5rem 1rem;
  background: linear-gradient(135deg, #edf9f6, #eaf1f8);
}
.cta .actions {
  justify-content: center;
}
.cta p {
  color: var(--muted);
}
footer {
  background: #0d2137;
  color: #d2dde8;
  padding: 3rem clamp(1rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
footer .brand {
  color: #fff;
}
footer div {
  display: flex;
  gap: 1.3rem;
  justify-content: flex-end;
}
footer small {
  grid-column: 1/-1;
  color: #92a6ba;
  border-top: 1px solid #29425b;
  padding-top: 1.3rem;
  margin-top: 1rem;
}
dialog {
  border: 0;
  border-radius: 22px;
  padding: 2rem;
  max-width: 580px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: rgba(9, 24, 40, 0.68);
  backdrop-filter: blur(4px);
}
dialog .close {
  position: absolute;
  right: 1rem;
  top: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}
dialog form {
  display: grid;
  gap: 1rem;
}
dialog label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--navy);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7e1;
  border-radius: 10px;
  padding: 0.8rem;
  background: #fff;
  color: var(--ink);
}
.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 500;
  font-size: 0.9rem;
}
.consent input {
  width: auto;
  margin-top: 0.25rem;
}
.form-error {
  color: var(--red);
  margin: 0;
  min-height: 1.2rem;
}
.success {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dff6ef;
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 900;
}
#toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  transform: translateY(120px);
  transition: 0.25s;
  z-index: 100;
}
#toast.show {
  transform: none;
}
@media (max-width: 900px) {
  .header nav > a:not(:last-of-type) {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-img {
    order: -1;
    max-height: 400px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .modules {
    grid-template-columns: 1fr 1fr;
  }
  .split,
  .proof {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .header {
    height: 68px;
  }
  .menu {
    display: block;
  }
  .header nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 64px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--shadow);
    align-items: stretch;
    flex-direction: column;
  }
  .header nav.open {
    display: flex;
  }
  .header nav > a:not(:last-of-type) {
    display: block;
  }
  .hero {
    padding-top: 2rem;
  }
  .hero-img {
    border-radius: 18px;
  }
  .steps,
  .modules,
  .feature-list,
  .proof ul {
    grid-template-columns: 1fr;
  }
  .actions .btn {
    width: 100%;
  }
  footer {
    grid-template-columns: 1fr;
  }
  footer div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 2.45rem;
  }
}

/* Professional footer */
.site-footer .brand {
  width: max-content;
  font-size: 0;
}
.site-footer .brand img.footer-logo {
  width: clamp(230px, 20vw, 320px);
  height: auto;
  object-fit: contain;
}
.footer-brand p {
  margin-top: 1.35rem;
}
@media (max-width: 640px) {
  .site-footer .brand img.footer-logo {
    width: min(260px, 75vw);
  }
}
.site-footer {
  display: block;
  background: #0d2137;
  color: #d2dde8;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1rem, 7vw, 7rem) 2rem;
}
.footer-main {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(360px, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.site-footer .brand {
  color: #fff;
  font-size: 1.32rem;
  width: max-content;
}
.site-footer .brand img {
  width: 42px;
  height: 42px;
}
.footer-brand p {
  max-width: 460px;
  margin: 1.1rem 0 0;
  color: #aebfd0;
  font-size: 1rem;
  line-height: 1.7;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
}
.site-footer .footer-nav > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.72rem;
}
.footer-nav strong {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}
.footer-nav a {
  color: #b9c8d7;
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: #68d6ca;
}
.site-footer .footer-bottom {
  max-width: 1500px;
  margin: 3.25rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(146, 166, 186, 0.24);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.footer-bottom small {
  grid-column: auto;
  border: 0;
  padding: 0;
  margin: 0;
  color: #8298ad;
  font-size: 0.8rem;
  line-height: 1.6;
}
.footer-bottom .technical-note {
  max-width: 720px;
  text-align: right;
}
@media (max-width: 640px) {
  .site-footer {
    padding: 3rem 1.25rem 1.5rem;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .site-footer .footer-bottom {
    margin-top: 2.5rem;
    flex-direction: column;
    gap: 0.45rem;
  }
  .footer-bottom .technical-note {
    text-align: left;
  }
}

/* Compact legal pages and improve touch targets on phones. */
@media (max-width: 640px) {
  .legal {
    padding: 2rem 1.2rem 3rem !important;
  }
  .legal h1 {
    font-size: 2.25rem !important;
    line-height: 1.08;
  }
  .legal h2 {
    font-size: 1.35rem !important;
    margin-top: 1.8rem !important;
  }
  .legal p {
    font-size: 1rem;
  }
  .legal .back {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    margin-bottom: 1.25rem !important;
  }
  .legal a {
    min-height: 44px;
  }
}
