@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,400,0,0");

:root {
  color-scheme: light;
  --md-sys-color-primary: #0b57d0;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d9e7ff;
  --md-sys-color-on-primary-container: #001a41;
  --md-sys-color-secondary: #006b5f;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #9ef2e3;
  --md-sys-color-on-secondary-container: #00201c;
  --md-sys-color-tertiary: #755a00;
  --md-sys-color-tertiary-container: #ffe082;
  --md-sys-color-on-tertiary-container: #241a00;
  --md-sys-color-surface: #fafbff;
  --md-sys-color-surface-container-low: #f3f6fb;
  --md-sys-color-surface-container: #edf1f7;
  --md-sys-color-surface-container-high: #e6ebf3;
  --md-sys-color-surface-container-highest: #dfe5ee;
  --md-sys-color-on-surface: #18202c;
  --md-sys-color-on-surface-variant: #465365;
  --md-sys-color-outline: #778396;
  --md-sys-color-outline-variant: #c4ccda;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-success: #176b4d;
  --md-sys-shape-small: 8px;
  --md-sys-shape-medium: 12px;
  --md-sys-shape-large: 20px;
  --md-sys-shape-extra-large: 28px;
  --md-sys-elevation-1: 0 1px 2px rgba(24, 32, 44, .08), 0 2px 8px rgba(24, 32, 44, .05);
  --md-sys-elevation-2: 0 6px 18px rgba(24, 32, 44, .09);
  --md-sys-elevation-3: 0 14px 36px rgba(24, 32, 44, .12);
  --md-sys-motion-standard: cubic-bezier(.2, 0, 0, 1);

  /* Compatibility aliases used by the existing pages. */
  --primary: var(--md-sys-color-primary);
  --primary-light: #4f7fd9;
  --primary-dark: #0842a0;
  --primary-strong: #0842a0;
  --primary-soft: var(--md-sys-color-primary-container);
  --accent: var(--md-sys-color-secondary);
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-variant: var(--md-sys-color-surface-container-low);
  --surface-muted: var(--md-sys-color-surface-container-low);
  --on-surface: var(--md-sys-color-on-surface);
  --on-surface-variant: var(--md-sys-color-on-surface-variant);
  --text: var(--md-sys-color-on-surface);
  --text-muted: var(--md-sys-color-on-surface-variant);
  --ink: var(--md-sys-color-on-surface);
  --muted: var(--md-sys-color-on-surface-variant);
  --line: var(--md-sys-color-outline-variant);
  --border: var(--md-sys-color-outline-variant);
  --bg: var(--md-sys-color-surface);
  --radius: var(--md-sys-shape-medium);
  --shadow: var(--md-sys-elevation-2);
  --shadow-soft: var(--md-sys-elevation-1);
}

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

html {
  background: var(--md-sys-color-surface);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #ffffff 0, #f7f9fd 420px, var(--md-sys-color-surface) 100%) !important;
  color: var(--md-sys-color-on-surface) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0 !important;
}

button,
input,
textarea,
select,
.button {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: var(--md-sys-color-primary);
  text-underline-offset: 3px;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #9fc1ff;
  outline-offset: 3px;
}

h1,
h2,
h3,
.headline {
  color: var(--md-sys-color-on-surface) !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

h1,
.headline {
  font-weight: 800;
}

p,
li,
.subhead,
.tagline,
.section-intro {
  color: var(--md-sys-color-on-surface-variant);
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
}

.shell,
main.shell,
.visual-home {
  width: min(100% - 40px, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 72px;
  overflow: visible;
}

/* Shared navigation */
.topbar,
.reference-nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  margin: 0 0 30px;
  padding: 10px 14px;
  border: 1px solid rgba(196, 204, 218, .82);
  border-radius: var(--md-sys-shape-large);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--md-sys-elevation-1);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.brand,
.reference-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  color: var(--md-sys-color-on-surface);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.brand img,
.logo,
.reference-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: var(--md-sys-shape-medium);
  object-fit: contain;
  background: #ffffff;
  box-shadow: none;
}

.brand-name {
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav,
.reference-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a,
.reference-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: var(--md-sys-shape-extra-large);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 160ms var(--md-sys-motion-standard), color 160ms var(--md-sys-motion-standard);
}

.nav a:hover,
.reference-menu a:hover,
.nav a[aria-current="page"],
.reference-menu a[aria-current="page"] {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
}

/* Shared cards and controls */
.card,
.intro-card,
.promise-section,
.highlight-card,
.pricing-card,
.answer-box,
.source-box,
.table-wrap,
.reference-card,
.page-card,
.info-card,
.content {
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-large);
  background: #ffffff;
  box-shadow: var(--md-sys-elevation-1);
}

.reference-card,
.intro-card,
.promise-section,
.answer-box,
.source-box {
  padding: 28px;
}

.content-card,
.success-tile,
.path-step,
.signal-item,
.compare-item,
.benefit-item,
.step-card {
  border: 1px solid transparent;
  border-radius: var(--md-sys-shape-medium);
  background: var(--md-sys-color-surface-container-low);
  box-shadow: none;
}

.button,
.button-filled,
.button-primary,
.reference-button,
.cta a,
md-filled-button,
md-outlined-button {
  min-height: 48px;
  border-radius: var(--md-sys-shape-extra-large);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

md-filled-button {
  --md-filled-button-label-text-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --md-filled-button-label-text-size: 16px;
  --md-filled-button-label-text-weight: 700;
  --md-filled-button-container-height: 48px;
}

md-outlined-button {
  --md-outlined-button-label-text-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --md-outlined-button-label-text-size: 16px;
  --md-outlined-button-label-text-weight: 700;
  --md-outlined-button-container-height: 48px;
}

md-outlined-text-field {
  --md-outlined-field-input-text-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --md-outlined-field-label-text-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --md-outlined-field-supporting-text-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --md-outlined-field-input-text-size: 16px;
  --md-outlined-text-field-input-text-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --md-outlined-text-field-label-text-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --md-outlined-text-field-supporting-text-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --md-outlined-text-field-input-text-size: 16px;
}

.button-filled,
.button-primary,
.reference-button:not(.secondary) {
  border: 1px solid transparent;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary) !important;
  box-shadow: var(--md-sys-elevation-1);
}

.button-filled:hover,
.button-primary:hover,
.reference-button:not(.secondary):hover {
  background: #0842a0;
  box-shadow: var(--md-sys-elevation-2);
}

.button-outlined,
.button-secondary,
.reference-button.secondary {
  border: 1px solid var(--md-sys-color-outline);
  background: transparent;
  color: var(--md-sys-color-primary) !important;
  box-shadow: none;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--md-sys-shape-small);
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

input,
textarea,
select,
.field,
md-outlined-text-field {
  border-radius: var(--md-sys-shape-small);
  --md-sys-color-primary: #0b57d0;
  --md-sys-color-outline: #778396;
  --md-sys-color-on-surface: #18202c;
  --md-outlined-field-container-shape: 8px;
}

.field {
  border: 1px solid var(--md-sys-color-outline-variant) !important;
  border-radius: var(--md-sys-shape-small) !important;
  background: #ffffff !important;
}

/* Homepage */
.reference-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: 42px;
  min-height: 520px;
}

.hero-copy-panel {
  padding: 34px 0;
}

.hero-copy-panel h1 {
  max-width: 10ch;
  font-size: 64px;
  line-height: 1.04;
  color: #08245c;
}

.hero-copy-panel p {
  max-width: 34ch;
  margin: 22px 0 26px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 20px;
  line-height: 1.55;
}

.hero-visual {
  min-height: 500px;
  overflow: hidden;
  border-radius: var(--md-sys-shape-extra-large);
  background: var(--md-sys-color-primary-container);
  box-shadow: var(--md-sys-elevation-2);
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--md-sys-shape-medium);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--md-sys-elevation-2);
}

.promise-row {
  gap: 16px;
}

.promise {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

.line-icon,
.icon,
.step-dot {
  color: var(--md-sys-color-primary);
}

.path-steps .path-step .step-dot {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.path-steps .path-step .step-dot .line-icon {
  color: var(--md-sys-color-on-primary) !important;
}

.reference-grid,
.content-stack {
  gap: 24px;
}

.content-stack {
  margin-top: 24px;
}

.content-section h2,
.reference-card h2 {
  font-size: 30px;
  line-height: 1.2;
}

.quote-card,
.cta-card {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.cta-card p {
  color: var(--md-sys-color-on-secondary-container) !important;
}

.cta-card .paper-plane {
  border-color: rgba(0, 107, 95, .2);
  background: rgba(0, 107, 95, .1);
}

.cta-card .paper-plane svg {
  fill: var(--md-sys-color-secondary) !important;
}

.reference-contact {
  gap: 24px;
}

.contact-form-card {
  background: #ffffff;
}

/* Company and pricing pages */
.header,
.hero {
  margin-top: 32px;
}

.header h1,
.hero .headline {
  font-size: 48px;
  line-height: 1.08;
}

.hero-copy,
.hero-panel {
  padding: 32px;
}

.pricing-card.featured,
.pricing-card.promo {
  border-color: #83aaf2;
  background: #f7faff;
}

.feature-list .material-symbols-rounded,
.compare-item .material-symbols-rounded {
  color: var(--md-sys-color-success);
}

/* Resource and editorial pages */
main.shell > .hero {
  padding: 46px 0 24px;
}

main.shell > .hero h1 {
  max-width: 18ch;
  margin: 12px 0 18px;
  font-size: 48px;
  line-height: 1.07;
}

main.shell > .hero .lead {
  max-width: 760px;
  font-size: 20px;
}

.answer-box {
  border-left: 5px solid var(--md-sys-color-secondary);
}

.steps li,
.cluster li,
.reference {
  border-color: var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-medium);
  background: #ffffff;
  box-shadow: none;
}

.steps li::before,
.step-number {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

th {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.cta {
  border: 1px solid #a9c4d9;
  border-radius: var(--md-sys-shape-large);
  background: linear-gradient(135deg, #d6e6ff 0%, #cdece3 100%);
  color: var(--md-sys-color-on-surface);
  box-shadow: var(--md-sys-elevation-1);
}

.cta p {
  color: var(--md-sys-color-on-surface-variant);
}

.cta a {
  background: #f7faff;
  border: 1px solid #829fca;
  color: var(--md-sys-color-primary);
  box-shadow: none;
}

/* Shared footer */
.footer,
.site-footer,
.reference-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 15px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.7fr);
  align-items: start;
  gap: 28px;
}

.footer-groups,
.reference-footer {
  display: grid;
  gap: 14px;
}

.footer-links,
.reference-footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.footer-links a,
.reference-footer a {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.footer-context {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

@media (max-width: 900px) {
  .reference-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy-panel h1 {
    max-width: 12ch;
    font-size: 54px;
  }

  .hero-visual {
    min-height: 460px;
  }
}

@media (max-width: 768px) {
  .shell,
  main.shell,
  .visual-home {
    width: min(100% - 28px, 720px);
    max-width: 720px;
    padding: 14px 0 56px;
  }

  .topbar,
  .reference-nav {
    top: 8px;
    min-height: 68px;
    margin-bottom: 22px;
    padding: 8px 10px;
    border-radius: var(--md-sys-shape-medium);
  }

  .brand img,
  .logo,
  .reference-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-name,
  .reference-brand {
    font-size: 19px;
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  .nav,
  .reference-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-medium);
    background: #ffffff;
    box-shadow: var(--md-sys-elevation-3);
  }

  .nav.open,
  .reference-menu.open {
    display: flex;
  }

  .nav a,
  .reference-menu a {
    width: 100%;
    justify-content: flex-start;
    border-radius: var(--md-sys-shape-small);
  }

  .reference-hero {
    min-height: auto;
  }

  .hero-copy-panel {
    padding: 24px 4px 12px;
  }

  .hero-copy-panel h1,
  .header h1,
  .hero .headline,
  main.shell > .hero h1 {
    max-width: 15ch;
    font-size: 40px;
    line-height: 1.08;
  }

  .hero-copy-panel p,
  main.shell > .hero .lead {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 410px;
    border-radius: var(--md-sys-shape-large);
  }

  .promise-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-card,
  .intro-card,
  .promise-section,
  .answer-box,
  .source-box,
  .hero-copy,
  .hero-panel {
    padding: 22px;
  }

  .content-section h2,
  .reference-card h2 {
    font-size: 26px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .reference-footer nav {
    justify-content: flex-start;
  }

  .footer-context {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand-name {
    display: none;
  }

  .hero-copy-panel h1,
  .header h1,
  .hero .headline,
  main.shell > .hero h1 {
    font-size: 36px;
  }

  .promise-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: .01ms;
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}
