/* BundleMath marketing site
   Newsreader and Figtree are used under the SIL Open Font License.
   License texts: /assets/fonts/OFL-Newsreader.txt and OFL-Figtree.txt */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-500-normal.woff2") format("woff2");
}

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

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

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-500-normal.woff2") format("woff2");
}

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

:root {
  --navy: #1e2a5a;
  --teal: #14b8a6;
  --white: #ffffff;
  --line: #d5deec;
  --wash: #f4f7fb;
  --serif: "Newsreader", "Liberation Serif", "Palatino Linotype", Palatino, serif;
  --sans: "Figtree", "Liberation Sans", "Segoe UI", sans-serif;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

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

a {
  color: var(--navy);
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--teal);
}

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

::selection {
  background: var(--navy);
  color: var(--white);
}

h1,
h2,
h3,
.amount,
.formula figcaption {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h1 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(2.45rem, 5vw, 3.85rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.section h2::after,
.final-cta h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.75rem;
  background: var(--teal);
}

h3 {
  margin: 0;
  font-size: 1.7rem;
}

p {
  margin: 0 0 1rem;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 0.75rem;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--white);
  border-top: 4px solid var(--teal);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

.brand img,
.footer-brand img {
  display: block;
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}

.nav a {
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
}

.hero {
  padding: 3.25rem 0 3.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--teal);
  flex: none;
}

.subhead {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
}

.lede {
  max-width: 65ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  border-color: var(--teal);
  text-decoration: none;
}

.btn:disabled {
  background: #e6ebf3;
  color: var(--navy);
  border-color: #c9d2e3;
  cursor: not-allowed;
}

.status {
  max-width: 46rem;
  margin: 0;
}

.formula {
  margin: 0;
  padding: 1.35rem 1.35rem 1.2rem;
  background: var(--wash);
  border: 1px solid var(--line);
}

.formula img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
}

.formula figcaption {
  margin: 1rem 0 0.8rem;
  font-size: 1.55rem;
}

.calc {
  margin: 0;
  padding-left: 1.2rem;
}

.calc li + li {
  margin-top: 0.35rem;
}

.calc-result {
  margin: 1rem 0 0;
  font-weight: 600;
}

.section {
  padding: 3.5rem 0;
}

.prose {
  max-width: 68ch;
}

.prose p:last-child,
.narrow p:last-child {
  margin-bottom: 0;
}

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 46rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  border-bottom: 3px solid var(--teal);
  padding-bottom: 0.15rem;
}

.steps {
  counter-reset: step;
}

.band {
  background: var(--wash);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 1.35rem 1.35rem 1.15rem;
}

.plan-pro {
  border-top-color: var(--teal);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0.45rem 0 0.9rem;
}

.amount {
  font-size: 3rem;
  line-height: 1;
}

.unit {
  font-weight: 600;
}

.plan ul {
  margin: 0;
  padding-left: 1.15rem;
}

.plan li + li {
  margin-top: 0.4rem;
}

.plan-cta,
.after-plans {
  margin-top: 1.5rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.85rem;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "";
  display: block;
  width: 0.85rem;
  height: 2px;
  background: var(--navy);
  top: 1.35rem;
}

.faq details p {
  max-width: 65ch;
  margin: 0 0 1rem;
}

.final-cta {
  background: var(--navy);
  color: var(--white);
}

.final-cta h2 {
  max-width: 14em;
  color: var(--white);
}

.final-cta .status {
  color: var(--white);
  margin-top: 0.75rem;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.4rem 0 2rem;
}

.site-footer a {
  color: var(--white);
}

.footer-contact {
  margin: 1rem 0 0.8rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin-bottom: 0.9rem;
}

.footer-line,
.preview-note {
  margin: 0;
}

.preview-note {
  margin-top: 0.85rem;
  max-width: 42rem;
}

.page {
  padding: 2.75rem 0 4rem;
}

.narrow {
  max-width: 42rem;
}

.draft {
  background: var(--wash);
  border-left: 4px solid var(--teal);
  padding: 0.9rem 1rem;
}

.contact-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  padding: 1.15rem 1.2rem 0.4rem;
  margin: 1.25rem 0 1.5rem;
}

.contact-card a {
  font-size: 1.25rem;
  font-weight: 600;
}

.page h2 {
  margin-top: 2.1rem;
  font-size: 1.55rem;
}

.page ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.page li + li {
  margin-top: 0.35rem;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

@media (min-width: 720px) {
  .wrap {
    width: min(1080px, calc(100% - 4rem));
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .plans {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

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

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