@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --red-900: #7f0016;
  --red-800: #99001c;
  --red-700: #c8102e;
  --red-600: #d7223d;
  --red-100: #ffe7eb;
  --ink-900: #101820;
  --ink-700: #2f3b48;
  --ink-500: #5a6775;
  --ink-100: #edf2f6;
  --white: #ffffff;
  --accent: #0d3b66;
  --shadow-lg: 0 18px 40px rgba(16, 24, 32, 0.16);
  --shadow-md: 0 8px 24px rgba(16, 24, 32, 0.1);
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 90% 0%, rgba(200, 16, 46, 0.08), transparent 35%),
    radial-gradient(circle at 0% 70%, rgba(13, 59, 102, 0.08), transparent 40%),
    #f8fbfd;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.topbar {
  background: linear-gradient(90deg, var(--red-900), var(--red-700));
  color: var(--white);
  font-size: 0.95rem;
}

.topbar .container {
  padding: 0.45rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dde5eb;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--ink-900);
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--ink-700);
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red-700);
  border-color: var(--red-700);
}

.nav-cta {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--red-700);
  color: var(--white);
  font-weight: 700;
}

/* Higher specificity than `.nav-links a` so CTA text stays white on red.
   Hover feedback here is colour only: changing weight or size inside the nav
   reflows the row and shifts the links beside it. */
.nav-links a.nav-cta,
.nav-links a.btn-primary {
  color: var(--white);
  border-bottom-color: transparent;
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:focus-visible {
  color: var(--white);
  background: var(--red-800);
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.nav-links .btn {
  border-bottom-width: 1px;
}

.nav-links a.btn-outline {
  color: var(--ink-900);
  border-color: var(--ink-500);
}

.nav-links a.btn-outline:hover,
.nav-links a.btn-outline:focus-visible {
  color: var(--red-800);
  background: var(--red-100);
  border-color: var(--red-700);
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: var(--red-700);
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: var(--red-100);
  color: var(--red-800);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-700);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 10px;
  padding: 0.78rem 1.05rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--ink-500);
  color: var(--ink-900);
  background: var(--white);
}

.hero-card {
  background: linear-gradient(160deg, #fff 0%, #fef4f6 100%);
  border: 1px solid #f4c8d0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.3rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1rem;
}

.metric {
  border: 1px solid #efd9dd;
  border-radius: var(--radius-md);
  padding: 0.7rem;
  background: #fff;
}

.metric strong {
  display: block;
  color: var(--red-700);
  font-size: 1.3rem;
  font-family: "Sora", sans-serif;
}

.section {
  padding: 3.6rem 0;
}

.section-head {
  margin-bottom: 1.3rem;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 1.1rem;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  /* Column layout so a card's last element sets the bottom padding, which keeps
     side-by-side cards visually aligned even when the copy runs to a different
     number of lines. */
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--white) 0%, #fbfdfe 100%);
  border: 1px solid #dde5eb;
  padding: 1.35rem;
  box-shadow: 0 4px 10px rgba(21, 33, 48, 0.04);
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  margin-bottom: 0.5rem;
}

/* Content cards only. Form and panel wrappers also use .card and should not
   lift while somebody is typing in them. */
article.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

article.card:hover,
article.card:focus-within {
  transform: translateY(-3px);
  /* Top edge is left alone: `.steps .card` and `.plan-card--featured` use it
     as an accent bar. */
  border-inline-color: #f4c8d0;
  border-bottom-color: #f4c8d0;
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  article.card:hover,
  article.card:focus-within {
    transform: none;
  }
}

.card .tag {
  align-self: flex-start;
  border-radius: 999px;
  background: var(--ink-100);
  padding: 0.22rem 0.7rem;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-700);
}

.card li + li {
  margin-top: 0.3rem;
}

.steps .card {
  border-top: 4px solid var(--red-700);
}

.pricing-band {
  background: linear-gradient(90deg, var(--red-900), var(--red-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pricing-band .price {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
}

.maple-divider {
  margin: 1.4rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  color: var(--red-700);
  font-weight: 700;
}

.maple-divider img {
  width: 20px;
  height: 20px;
}

form {
  display: grid;
  gap: 0.8rem;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--ink-700);
}

input,
select,
textarea {
  font: inherit;
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid #cdd7df;
  background: #fff;
  /* Grid items default to min-width:auto; without this a control keeps its
     intrinsic width and pushes the page wider than the viewport. */
  min-width: 0;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--red-700);
  outline-offset: 1px;
  border-color: var(--red-700);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.notice {
  color: var(--ink-500);
  font-size: 0.95rem;
}

.form-error-summary {
  border: 2px solid var(--red-800);
  background: var(--red-100);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.form-error-summary h3 {
  font-size: 1rem;
  color: var(--red-800);
  margin-bottom: 0.4rem;
}

.form-error-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.form-error-summary a {
  color: var(--red-800);
  font-weight: 600;
  text-decoration: underline;
}

.field-error {
  color: var(--red-800);
  font-weight: 600;
  font-size: 0.95rem;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border: 2px solid var(--red-800);
}

.form-message.is-success {
  color: #0b5d1e;
  font-weight: 600;
}

/* The generic label rule is a grid, which would centre a lone checkbox. */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--ink-700);
}

.checkbox-field input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.25rem 0 0;
  padding: 0;
  accent-color: var(--red-700);
}

.checkbox-field .field-error {
  flex-basis: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

.btn[disabled]:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
}

/* Honeypot: off-screen rather than display:none so naive bots still fill it. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-field {
  border: 1px solid #cdd7df;
  border-radius: var(--radius-md);
  background: var(--ink-100);
  padding: 0.85rem 1rem;
}

.captcha-field label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.captcha-field .captcha-question {
  font-weight: 700;
  color: var(--ink-900);
}

.captcha-field input {
  max-width: 6rem;
}

.captcha-field .field-error {
  flex-basis: 100%;
}

.toast-stack {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
  z-index: 1000;
  display: grid;
  gap: 0.6rem;
  width: min(100% - 2rem, 26rem);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border-left: 6px solid #0b5d1e;
  background: var(--white);
  color: var(--ink-900);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.25s ease;
}

.toast--error {
  border-left-color: var(--red-800);
}

.toast-icon {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #0b5d1e;
}

.toast--error .toast-icon {
  color: var(--red-800);
}

.toast-text {
  flex: 1;
  font-size: 0.97rem;
}

.toast-close {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-500);
}

.toast-close:focus-visible {
  outline: 3px solid var(--red-700);
  outline-offset: 1px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

footer {
  margin-top: 3rem;
  background: #101820;
  color: #d6dee6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  padding: 2.1rem 0;
}

.footer-grid h2,
.footer-grid h3,
.footer-grid h4 {
  color: #fff;
}

.footer-grid h2 {
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid #2f3b48;
  padding: 0.8rem 0 1.3rem;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.65s ease forwards;
}

.reveal.delay-1 { animation-delay: 0.15s; }
.reveal.delay-2 { animation-delay: 0.3s; }
.reveal.delay-3 { animation-delay: 0.45s; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 0.75rem;
  z-index: 1200;
  padding: 0.75rem 1.1rem;
  background: var(--white);
  color: var(--red-800);
  font-weight: 700;
  border: 2px solid var(--red-700);
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--red-700);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

/* Keeps targets clear of the sticky header (WCAG 2.2 - 2.4.11 Focus Not Obscured). */
:target,
[id] {
  scroll-margin-top: 130px;
}

.nav-links a,
.mega-col li a,
.breadcrumb a {
  min-height: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .toast {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid,
  .pricing-band {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid #dde5eb;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }
}

@media (max-width: 700px) {
  .hero,
  .section {
    padding: 2.5rem 0;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .form-grid,
  .metric-row,
  .footer-grid,
  .pricing-band,
  .topbar .container {
    grid-template-columns: 1fr;
  }

  .topbar .container {
    display: grid;
  }
}

.has-mega {
  position: static;
}

.mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink-700);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.mega-toggle:hover,
.mega-toggle.active,
.mega-toggle[aria-expanded="true"] {
  color: var(--red-700);
  border-color: var(--red-700);
}

.mega-toggle .chev {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.mega-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.mega-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 3px solid var(--red-700);
  border-bottom: 1px solid #dde5eb;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 0;
  z-index: 1000;
}

.has-mega.open .mega-panel {
  display: block;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem 1.6rem;
}

.mega-col--wide {
  grid-column: span 2;
}

/* Heading level varies by page depth, so the rule cannot key off one element. */
.mega-col h2,
.mega-col h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 1px solid #e5ecf1;
  padding-bottom: 0.45rem;
  margin-bottom: 0.55rem;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.mega-col--wide ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem 1.2rem;
}

.mega-col li a {
  display: block;
  padding: 0.28rem 0;
  color: var(--ink-700);
  font-weight: 500;
  border-radius: 6px;
}

.mega-col li a:hover {
  color: var(--red-700);
}

.mega-note {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.92rem;
}

.mega-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5ecf1;
}

@media (max-width: 980px) {
  .has-mega {
    width: 100%;
  }

  .mega-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .mega-panel {
    position: static;
    box-shadow: none;
    border: 0;
    border-top: 1px solid #e5ecf1;
    padding: 0.6rem 0 0.2rem;
  }

  .mega-panel .container {
    width: 100%;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mega-col--wide {
    grid-column: auto;
  }

  .mega-foot .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .mega-col--wide ul {
    grid-template-columns: 1fr;
  }
}

/* The flagship product sits ahead of the catalogue columns and is highlighted
   so it does not read as just another category. */
.mega-col--feature {
  background: linear-gradient(160deg, #fff 0%, #fef4f6 100%);
  border: 1px solid #f4c8d0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem 0.9rem;
}

.mega-col--feature h2,
.mega-col--feature h3 {
  color: var(--red-800);
  border-bottom-color: #f4c8d0;
}

/* ---------------------------------------------------------------------------
   Shared section building blocks
   These were scoped to /products until the home page adopted the same
   patterns. Product pages still load them from here, before product.css.
--------------------------------------------------------------------------- */

.section--tint {
  background: rgba(237, 242, 246, 0.6);
  border-top: 1px solid #e5ecf1;
  border-bottom: 1px solid #e5ecf1;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.check-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-700);
}

.check-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red-700);
  font-weight: 700;
}

.faq-item {
  border: 1px solid #dde5eb;
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 0 0.95rem;
  margin-bottom: 0.7rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.8rem 0;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--red-700);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item p {
  margin: 0 0 0.95rem;
  color: var(--ink-700);
}

.cta-panel {
  background: linear-gradient(90deg, var(--red-900), var(--red-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
}

.cta-panel h2 {
  color: var(--white);
}

.cta-panel p {
  max-width: 68ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.cta-panel .btn-outline {
  background: var(--white);
  border-color: var(--white);
  color: var(--red-800);
}

.cta-panel .btn-outline:hover,
.cta-panel .btn-outline:focus-visible {
  background: var(--red-100);
  color: var(--red-900);
}

.cta-panel .btn-primary {
  background: var(--white);
  color: var(--red-800);
}

.cta-panel :focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* Footer with a fourth supporting-navigation column. */
.footer-grid--wide {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.footer-legal {
  color: #9fb0c0;
  margin: 0.4rem 0 0;
}

@media (max-width: 980px) {
  .footer-grid--wide {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .footer-grid--wide {
    grid-template-columns: 1fr;
  }
}
