@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/lexend-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --cream: #fff8ea;
  --paper: #fffdf7;
  --surface: #ffffff;
  --navy: #13253a;
  --navy-deep: #081a30;
  --ink-soft: #4d6274;
  --cyan: #3cc2f2;
  --cyan-deep: #087eab;
  --green: #2fd180;
  --green-deep: #13784a;
  --yellow: #ffd34e;
  --pink: #ff719b;
  --violet: #8a55f7;
  --line: rgba(19, 37, 58, 0.14);
  --shadow-soft: 0 26px 70px rgba(19, 37, 58, 0.16), 0 8px 20px rgba(19, 37, 58, 0.1);
  --display: "Lexend", "Avenir Next", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at 8% 2%, rgba(60, 194, 242, 0.2), transparent 27rem),
    radial-gradient(circle at 94% 20%, rgba(47, 209, 128, 0.14), transparent 25rem),
    var(--cream);
  font-family: var(--body);
  font-synthesis: none;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: radial-gradient(rgba(19, 37, 58, 0.14) 0.65px, transparent 0.65px);
  background-size: 13px 13px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-name,
.web-cta {
  font-family: var(--display);
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.25rem, 6.8vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  color: white;
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border: 3px solid white;
  border-radius: 0.9rem;
  box-shadow: 0 8px 20px rgba(19, 37, 58, 0.15);
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.maft-support {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  line-height: 1.12;
}

.maft-support img {
  width: 1.4rem;
  height: 2rem;
  object-fit: contain;
}

.maft-support small,
.maft-support strong {
  display: block;
}

.maft-support small {
  margin-bottom: 0.12rem;
  font-size: 0.75rem;
}

.maft-support strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan-deep);
}

.nav-pill {
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 24px rgba(19, 37, 58, 0.1);
}

.landing-single-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100svh;
}

.landing-single-screen main {
  display: grid;
  min-height: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.65fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 0;
  padding-block: clamp(0.5rem, 1.5svh, 1.25rem);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(100%, 46rem);
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.75rem, min(5vw, 8svh), 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--cyan-deep);
}

.hero-lead {
  max-width: 32rem;
  margin-bottom: 1.1rem;
  color: #40576c;
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  line-height: 1.5;
}

.primary-action {
  display: flex;
}

.web-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.95rem;
  color: white;
  background: var(--green-deep);
  box-shadow: 0 16px 34px rgba(19, 120, 74, 0.24), 0 4px 10px rgba(8, 26, 48, 0.12);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: box-shadow 180ms ease-out, transform 180ms ease-out;
}

.web-cta:hover {
  box-shadow: 0 20px 42px rgba(19, 120, 74, 0.3), 0 6px 14px rgba(8, 26, 48, 0.14);
  transform: translateY(-2px);
}

.web-cta:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

.hero-product-visual {
  position: relative;
  justify-self: center;
  height: min(62svh, 34rem);
  margin: 0;
  aspect-ratio: 0.62;
  overflow: hidden;
  border: 0.4rem solid var(--navy-deep);
  border-radius: 2rem;
  background: var(--navy-deep);
  box-shadow: 0 22px 54px rgba(19, 37, 58, 0.16), 0 6px 16px rgba(19, 37, 58, 0.1);
}

.hero-product-visual::before {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  z-index: 2;
  width: 3.5rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  content: "";
  transform: translateX(-50%);
}

.hero-product-visual img {
  width: 100%;
  height: 100%;
  border-radius: 1.6rem;
  object-fit: cover;
  object-position: center top;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.landing-single-screen .site-footer {
  background: transparent;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2rem;
}

.landing-single-screen .footer-inner {
  padding-block: 0.45rem;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  color: #40576c;
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan-deep);
}

.legal-page {
  background:
    radial-gradient(circle at 12% 3%, rgba(60, 194, 242, 0.22), transparent 24rem),
    var(--cream);
}

.legal-main {
  width: min(820px, calc(100% - 2rem));
  margin: 2.5rem auto 7rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(19, 37, 58, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(47, 209, 128, 0.18);
  content: "";
}

.legal-hero {
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.legal-hero h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}

.legal-hero p:last-child {
  margin-bottom: 0;
}

.legal-content {
  padding: 3rem clamp(0.25rem, 4vw, 2rem) 0;
}

.legal-content section {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}

.legal-content h3 {
  margin-top: 1.5rem;
}

.legal-content li + li {
  margin-top: 0.5rem;
}

.legal-content a {
  color: #087ca9;
  font-weight: 600;
}

.notice {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(8, 126, 171, 0.24);
  border-radius: 1rem;
  background: rgba(60, 194, 242, 0.12);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-block: 1.5rem;
}

.support-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: white;
}

.support-card p:last-child {
  margin-bottom: 0;
}

.email-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  min-height: 44px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--navy) !important;
  background: white;
  box-shadow: 0 10px 24px rgba(19, 37, 58, 0.12);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.email-cta:hover,
.email-cta:focus-visible {
  box-shadow: 0 14px 30px rgba(19, 37, 58, 0.16);
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  .site-header {
    align-items: center;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .maft-support {
    gap: 0.4rem;
  }

  .maft-support img {
    width: 1.2rem;
    height: 1.75rem;
  }

  .maft-support small {
    font-size: 0.75rem;
  }

  .maft-support strong {
    font-size: 0.78rem;
  }

  .site-nav a:not(.nav-pill) {
    display: none;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .landing-single-screen h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  h2 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(6.75rem, 0.65fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    gap: 0.75rem 0.75rem;
    padding-block: 0.5rem;
  }

  .hero-copy {
    display: contents;
  }

  .hero h1 {
    align-self: center;
    grid-column: 1;
    grid-row: 1;
  }

  .hero-lead {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.45;
  }

  .primary-action {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .web-cta {
    width: 100%;
    min-width: 0;
    min-height: 3.35rem;
    font-size: 1rem;
  }

  .hero-product-visual {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 0.7;
    border-width: 0.35rem;
    border-radius: 1.5rem;
  }

  .hero-product-visual::before {
    top: 0.3rem;
    width: 2.5rem;
    height: 0.25rem;
  }

  .hero-product-visual img {
    border-radius: 1.12rem;
    object-position: center 8%;
  }

  .landing-single-screen .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-block: 0.45rem;
    font-size: 0.75rem;
  }

  .landing-single-screen .footer-links {
    gap: 0 0.75rem;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

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

  .email-cta,
  .web-cta {
    transition: none;
  }
}
