@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("/assets/fonts/ibm-plex-serif-bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f8f7f6;
  --paper-deep: #f0efed;
  --ink: #171918;
  --ink-soft: #5f6361;
  --green: #176b52;
  --green-bright: #0e7a57;
  --orange: #c65d24;
  --red: #176b52;
  --line: rgba(23, 25, 24, 0.1);
  --white: #ffffff;
  --display: "IBM Plex Sans", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(25, 30, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--green);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 246, 0.88);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16rem;
  font-family: "IBM Plex Serif", serif;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-name {
  font-family: "IBM Plex Serif", serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.contrast-word {
  color: var(--orange);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--red);
}

.nav-cta {
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
}

.menu-button {
  display: none;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
}

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

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  align-items: stretch;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5.4rem) 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 600;
}

h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  font-weight: 600;
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.55rem;
  font-weight: 600;
}

.lede {
  max-width: 650px;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #313433;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button.secondary:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.hero-plate {
  position: relative;
  min-width: 0;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background: var(--green);
}

.hero-plate::before,
.hero-plate::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 50%;
}

.hero-plate::before {
  width: 520px;
  height: 520px;
  right: -250px;
  top: -120px;
}

.hero-plate::after {
  width: 320px;
  height: 320px;
  left: -180px;
  bottom: -130px;
}

.plate-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plate-index {
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.record-figure {
  width: min(100%, 350px);
  margin: auto;
  padding: 1.3rem;
  border: 1px solid rgba(255, 253, 248, 0.42);
  transform: rotate(-3deg);
  box-shadow: 20px 24px 0 rgba(0, 0, 0, 0.12);
}

.record-line {
  height: 1px;
  margin: 0.85rem 0;
  background: rgba(255, 253, 248, 0.28);
}

.record-label {
  color: rgba(255, 253, 248, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.record-value {
  margin-top: 0.2rem;
  font-family: var(--display);
  font-size: 1.2rem;
}

.plate-note {
  max-width: 23rem;
  margin-left: auto;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.35;
}

.status-strip {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.status-item {
  min-height: 135px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.status-item:last-child {
  border-right: 0;
}

.status-item strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-size: 1.35rem;
}

.status-item span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.section-head p {
  max-width: 650px;
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  min-height: 300px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.46);
}

.feature-number {
  display: block;
  margin-bottom: 5rem;
  color: var(--red);
  font-family: var(--display);
  font-size: 0.9rem;
}

.feature p,
.card p {
  color: var(--ink-soft);
}

.dark-section {
  color: var(--white);
  background: var(--green);
}

.dark-section .eyebrow,
.dark-section p {
  color: rgba(255, 253, 248, 0.75);
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 253, 248, 0.2);
}

.fit-panel {
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--green);
}

.fit-panel.muted {
  background: #1d4b3f;
}

.check-list {
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.8rem;
  border-top: 1px solid rgba(255, 253, 248, 0.16);
}

.check-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #e28a73;
  font-weight: 700;
}

.content-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.content-band p {
  color: var(--ink-soft);
}

.diagram {
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.diagram-step {
  position: relative;
  padding: 1.2rem 0 1.2rem 2.5rem;
  border-bottom: 1px solid var(--line);
}

.diagram-step:last-child {
  border-bottom: 0;
}

.diagram-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 1.25rem;
  color: var(--red);
  font-family: var(--display);
  font-weight: 700;
}

.quote-band {
  padding: clamp(5rem, 10vw, 10rem) 0;
  text-align: center;
}

.quote-band blockquote {
  max-width: 950px;
  margin: auto;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.quote-band cite {
  display: block;
  margin-top: 2rem;
  color: var(--red);
  font-family: var(--body);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-band {
  padding: 0 0 6rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 6rem);
  color: var(--white);
  background: var(--red);
}

.cta-panel h2 {
  max-width: 12ch;
}

.cta-panel p {
  max-width: 620px;
  color: rgba(255, 253, 248, 0.82);
}

.cta-panel .button {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.page-hero {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
}

.page-hero .lede {
  max-width: 760px;
}

.page-index {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 4rem 0 7rem;
}

.side-note {
  position: sticky;
  top: 110px;
  align-self: start;
  padding-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.prose {
  max-width: 790px;
}

.prose h2 {
  margin: 4.2rem 0 1.2rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2.5rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  margin: 0.55rem 0;
}

.callout {
  margin: 2.5rem 0;
  padding: 1.5rem 1.7rem;
  border-left: 4px solid var(--red);
  background: var(--white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.5);
}

.tag {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-list {
  display: grid;
  gap: 0.85rem;
  border-top: 0;
}

.article-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.76);
  text-decoration: none;
}

.article-card:hover h2 {
  color: var(--green);
}

.article-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  transition: color 180ms ease;
}

.article-card p {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
}

.article-arrow {
  font-size: 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.site-footer {
  padding: 4rem 0 2rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  background: #f3f2f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 3rem;
}

.footer-grid p {
  max-width: 420px;
  color: var(--ink-soft);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-links strong {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #777b78;
  font-size: 0.75rem;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    padding: 1.2rem 1rem 1.5rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .section-head,
  .content-band,
  .page-index {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-plate {
    min-height: 570px;
  }

  .status-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .status-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-number {
    margin-bottom: 2rem;
  }

  .feature {
    min-height: auto;
  }

  .side-note {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 16px;
  }

  .nav-shell {
    min-height: 66px;
  }

  .nav-links {
    top: 66px;
  }

  .hero-copy {
    padding-inline: 1.2rem;
  }

  h1 {
    overflow-wrap: anywhere;
    font-size: clamp(2.9rem, 15vw, 4.5rem);
  }

  .fit-grid,
  .card-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .article-card .tag {
    grid-column: 1 / -1;
    margin: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Homepage direction: quiet, product-led, and deliberately narrow. */
.home-hero {
  padding: clamp(5rem, 10vw, 9rem) 0 3rem;
  text-align: center;
}

.home-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 500;
}

.status-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.home-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.home-hero .lede {
  max-width: 720px;
  margin: 1.8rem auto 0;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.home-hero .actions {
  justify-content: center;
}

.legacy-proof {
  padding: 0 0 clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.legacy-proof::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  background: var(--line);
}

.legacy-proof-copy span,
.legacy-proof-metric strong {
  display: block;
  color: var(--ink);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
}

.legacy-proof-copy span {
  font-size: 1rem;
}

.legacy-proof-copy p,
.legacy-proof-metric span {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.legacy-proof-metric {
  max-width: 270px;
}

.legacy-proof-metric strong {
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.company-version {
  margin-right: 0.45rem;
  color: var(--green-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
}

.legacy-proof > a {
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.legacy-proof > a:hover {
  text-decoration: underline;
}

.product-stage {
  padding: 1rem 0 clamp(5rem, 10vw, 9rem);
}

.app-frame {
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid rgba(23, 25, 24, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(30, 35, 33, 0.12);
}

.app-bar {
  height: 54px;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eeefed;
  background: #fbfbfa;
}

.traffic-lights {
  display: flex;
  gap: 0.42rem;
}

.traffic-lights span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #d9dbd9;
}

.app-title {
  color: #777b78;
  font-size: 0.75rem;
  font-weight: 500;
}

.app-shell {
  min-height: 620px;
  display: grid;
  grid-template-columns: 210px 1fr;
  background: #f7f8f6;
}

.app-sidebar {
  padding: 1.3rem 0.9rem;
  border-right: 1px solid #e9ebe8;
  background: #fff;
}

.app-brand {
  padding: 0.3rem 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.app-nav {
  display: grid;
  gap: 0.25rem;
}

.app-nav span {
  padding: 0.62rem 0.7rem;
  border-radius: 9px;
  color: #696d6a;
  font-size: 0.78rem;
}

.app-nav .active {
  color: var(--ink);
  background: #edf4f0;
  font-weight: 600;
}

.app-main {
  min-width: 0;
  padding: 1.7rem;
}

.breadcrumbs {
  margin-bottom: 1.2rem;
  color: #858986;
  font-size: 0.7rem;
}

.patient-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.8rem;
}

.ui-card {
  padding: 1.25rem;
  border: 1px solid #e6e8e5;
  border-radius: 16px;
  background: #fff;
}

.patient-name {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.patient-name h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.patient-name p,
.ui-muted {
  margin: 0.25rem 0 0;
  color: #777b78;
  font-size: 0.76rem;
}

.ui-badge {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #155e48;
  background: #e7f3ed;
  font-size: 0.68rem;
  font-weight: 600;
}

.patient-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.ui-label {
  display: block;
  margin-bottom: 0.18rem;
  color: #969a97;
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ui-value {
  font-size: 0.76rem;
  font-weight: 500;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.metric span {
  color: #818582;
  font-size: 0.66rem;
}

.meta-strip {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  border: 1px solid #e6e8e5;
  border-radius: 12px;
  color: #737774;
  background: rgba(255,255,255,0.7);
  font-size: 0.66rem;
}

.tabs-card {
  margin-top: 0.8rem;
  padding: 0;
  overflow: hidden;
}

.ui-tabs {
  padding: 0 1.1rem;
  display: flex;
  gap: 1.4rem;
  border-bottom: 1px solid #e8eae7;
  overflow: hidden;
}

.ui-tab {
  padding: 0.9rem 0;
  color: #777b78;
  font-size: 0.69rem;
  white-space: nowrap;
}

.ui-tab.active {
  color: var(--ink);
  border-bottom: 2px solid var(--green);
  font-weight: 600;
}

.visit-table {
  padding: 0.2rem 1.1rem 1rem;
}

.visit-row {
  display: grid;
  grid-template-columns: 88px 1fr 120px 18px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid #eef0ed;
  font-size: 0.7rem;
}

.visit-row:last-child {
  border-bottom: 0;
}

.visit-date,
.visit-vet {
  color: #7c807d;
}

.visit-reason {
  font-weight: 500;
}

.product-caption {
  max-width: 680px;
  margin: 2rem auto 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-align: center;
}

.home-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.home-section-heading {
  max-width: 820px;
  margin: 0 auto 4rem;
  text-align: center;
}

.home-section-heading h2 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.home-section-heading p {
  max-width: 650px;
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-card {
  min-height: 410px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(23, 25, 24, 0.06);
  border-radius: 24px;
  background: #efefed;
}

.home-card:nth-child(2) {
  background: #f1f5f2;
}

.home-card:nth-child(3) {
  background: #f1f0ed;
}

.home-card h3 {
  max-width: 13ch;
  font-size: 1.8rem;
}

.home-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.card-visual {
  min-height: 180px;
  display: grid;
  place-items: center;
}

.visual-stack {
  width: 78%;
  position: relative;
}

.visual-sheet {
  height: 58px;
  margin-top: -10px;
  border: 1px solid #dde1dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(30,35,33,.05);
}

.visual-sheet:nth-child(1) { width: 72%; margin-left: 14%; opacity: .55; }
.visual-sheet:nth-child(2) { width: 86%; margin-left: 7%; opacity: .76; }
.visual-sheet:nth-child(3) { height: 84px; }

.thread-visual {
  width: 90%;
  display: grid;
  gap: 0.65rem;
}

.thread-item {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(30,35,33,.04);
  font-size: 0.67rem;
}

.thread-item.child {
  width: 88%;
  margin-left: auto;
  border-left: 2px solid var(--green);
}

.module-visual {
  width: 88%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.module-chip {
  padding: 0.85rem 0.6rem;
  border: 1px solid #e1e3e0;
  border-radius: 12px;
  color: #777b78;
  background: rgba(255,255,255,.72);
  font-size: 0.66rem;
  text-align: center;
}

.module-chip.active {
  color: #145d47;
  border-color: #bbd8cd;
  background: #e8f3ee;
  font-weight: 600;
}

.workflow-section {
  background: var(--white);
}

.workflow-flow {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.workflow-step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.workflow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.76rem;
  width: 0.76rem;
  height: 1px;
  background: #cfd2cf;
}

.workflow-step:last-child::after {
  display: none;
}

.workflow-step span {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
}

.workflow-step strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.workflow-note {
  max-width: 690px;
  margin: 2rem auto 0;
  color: var(--ink-soft);
  text-align: center;
}

.migration-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  background: #eeefed;
}

.migration-copy {
  padding: clamp(2.5rem, 6vw, 5rem);
}

.migration-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.migration-copy p {
  max-width: 520px;
  color: var(--ink-soft);
}

.migration-visual {
  min-height: 520px;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  place-items: center;
  background: #f1f6f3;
}

.migration-list {
  width: min(100%, 420px);
  padding: 1rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.migration-item {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-bottom: 1px solid #eceeeb;
}

.migration-item:last-child { border-bottom: 0; }

.migration-check {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 0.7rem;
}

.migration-item strong { display: block; font-size: 0.82rem; }
.migration-item span { color: #858986; font-size: 0.68rem; }

.home-quote {
  padding: clamp(6rem, 12vw, 11rem) 0;
  text-align: center;
}

.home-quote blockquote {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.home-quote p {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.home-final {
  padding: 0 0 7rem;
}

.home-final-panel {
  padding: clamp(3rem, 8vw, 6.5rem);
  border-radius: 28px;
  background: #eef3f0;
  text-align: center;
}

.home-final-panel h2 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.home-final-panel p {
  max-width: 620px;
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
}

.home-final-panel .actions { justify-content: center; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 150px 1fr; }
  .app-main { padding: 1rem; }
  .patient-grid { grid-template-columns: 1fr; }
  .home-card-grid { grid-template-columns: 1fr; }
  .home-card { min-height: 360px; }
  .workflow-flow { grid-template-columns: 1fr 1fr; }
  .workflow-step:nth-child(2)::after { display: none; }
  .migration-panel { grid-template-columns: 1fr; }
  .migration-visual { min-height: 380px; }
}

@media (max-width: 650px) {
  .home-hero { padding-top: 4rem; }
  .home-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .legacy-proof { grid-template-columns: 1fr; gap: 1.35rem; }
  .legacy-proof-metric { max-width: none; }
  .app-frame { border-radius: 20px; }
  .app-shell { grid-template-columns: 1fr; min-height: auto; }
  .app-sidebar { display: none; }
  .app-main { padding: 0.8rem; }
  .patient-details { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .meta-strip { gap: 0.7rem; }
  .visit-row { grid-template-columns: 72px 1fr 14px; }
  .visit-vet { display: none; }
  .workflow-flow { grid-template-columns: 1fr; }
  .workflow-step::after { display: none; }
  .home-quote blockquote { font-size: clamp(2.3rem, 12vw, 3.8rem); }
}

/* Secondary pages: persistent orientation with homepage-level finish. */
.page-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 0;
  background: linear-gradient(180deg, #f8f7f6 0%, #f4f3f1 100%);
}

.page-hero .shell {
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(23, 25, 24, 0.05);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
}

.page-hero .eyebrow {
  margin-bottom: 1.25rem;
  color: var(--green);
}

.page-hero .eyebrow::before {
  display: none;
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 6.5vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero .lede {
  max-width: 720px;
  margin-top: 1.5rem;
}

.page-index {
  grid-template-columns: 240px minmax(0, 860px);
  justify-content: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding: clamp(4rem, 8vw, 7rem) 0 8rem;
}

.side-note {
  top: 104px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.5;
}

.side-note p {
  margin: 0.55rem 0 0;
}

.side-nav {
  display: grid;
  gap: 0.22rem;
}

.side-nav-title {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.side-nav a {
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
  color: var(--ink-soft);
  text-decoration: none;
}

.side-nav a:hover {
  color: var(--ink);
  background: #edf3ef;
}

.prose {
  max-width: 860px;
}

.prose h2 {
  margin: 5rem 0 1.25rem;
  font-size: clamp(2.25rem, 4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.prose h3 {
  letter-spacing: -0.035em;
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.72;
}

.company-section {
  scroll-margin-top: 110px;
}

.company-section + .company-section {
  margin-top: 5rem;
}

.company-section > h2 {
  margin-top: 0.7rem;
}

.company-timeline {
  position: relative;
  margin-top: 2.5rem;
}

.company-timeline::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  bottom: 0.65rem;
  left: 4.55rem;
  width: 1px;
  background: var(--line);
}

.company-milestone {
  position: relative;
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 1.8rem;
  padding: 0 0 2.7rem;
}

.company-milestone:last-child {
  padding-bottom: 0;
}

.company-milestone::before {
  content: "";
  position: absolute;
  top: 0.48rem;
  left: 4.25rem;
  width: 0.62rem;
  height: 0.62rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: #aab0ac;
  box-shadow: 0 0 0 1px var(--line);
}

.company-milestone-current::before {
  background: var(--green);
}

.company-milestone time {
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 500;
}

.company-milestone h3 {
  margin: 0;
  font-size: 1.35rem;
}

.company-milestone p {
  margin: 0.45rem 0 0;
}

.company-evidence {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border: 1px solid #dce8e2;
  border-radius: 20px;
  background: #eef5f1;
}

.company-evidence strong {
  display: block;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.company-evidence p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.callout {
  margin: 2.5rem 0;
  padding: 1.5rem 1.7rem;
  border: 1px solid #dce8e2;
  border-left: 1px solid #dce8e2;
  border-radius: 16px;
  background: #eef5f1;
}

.card-grid {
  gap: 0.85rem;
}

.card {
  padding: 1.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.field input,
.field select,
.field textarea {
  border-radius: 10px;
}

.product-section {
  padding: 0 0 5.5rem;
  scroll-margin-top: 110px;
}

.product-section + .product-section {
  padding-top: 5.5rem;
  border-top: 1px solid var(--line);
}

.section-label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-section h2 {
  max-width: 13ch;
  margin-top: 0;
}

.section-lede {
  max-width: 700px;
  margin-bottom: 2rem;
  font-size: 1.08rem !important;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 2rem;
}

.product-feature {
  min-height: 220px;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.product-feature-wide {
  grid-column: 1 / -1;
  min-height: 250px;
  background: #f0f4f1;
}

.feature-icon {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 3.5rem;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #e2eee8;
  font-size: 0.65rem;
  font-weight: 600;
}

.product-feature h3 {
  margin: 0 0 0.5rem;
}

.product-feature p {
  margin: 0;
  font-size: 0.92rem;
}

.clinical-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.clinical-grid article {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clinical-grid article:nth-child(2n) { border-right: 0; }
.clinical-grid article:nth-last-child(-n+2) { border-bottom: 0; }

.clinical-grid strong,
.clinical-grid span {
  display: block;
}

.clinical-grid strong {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.clinical-grid span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.care-thread {
  margin-top: 2rem;
  padding: 1.1rem;
  display: grid;
  gap: 0.65rem;
  border-radius: 22px;
  background: #f0f2ef;
}

.care-thread-item {
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(23,25,24,.06);
  border-radius: 15px;
  background: #fff;
}

.care-thread-item.child {
  width: calc(100% - 2rem);
  margin-left: auto;
  border-left: 3px solid var(--green);
}

.care-thread-item span,
.care-thread-item strong,
.care-thread-item small {
  display: block;
}

.care-thread-item span {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 600;
}

.care-thread-item strong {
  margin: 0.18rem 0;
}

.care-thread-item small {
  color: var(--ink-soft);
}

.optional-section {
  padding: 3rem !important;
  border: 0 !important;
  border-radius: 24px;
  background: #f1f1ef;
}

.optional-section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.optional-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.optional-modules span {
  padding: 0.58rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.7);
  font-size: 0.78rem;
}

.page-end-panel {
  margin-top: 5rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: 22px;
  background: #edf4f0;
}

.page-end-panel h3 {
  max-width: 18ch;
  margin: 0;
}

.holding-panel {
  min-height: 380px;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.holding-panel h2 {
  max-width: 15ch;
  margin-top: 0;
}

.holding-panel p {
  max-width: 600px;
}

@media (max-width: 900px) {
  .page-index {
    grid-template-columns: 1fr;
  }

  .side-note {
    position: static;
  }

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

@media (max-width: 650px) {
  .page-hero .shell {
    padding: 2rem 1.35rem;
    border-radius: 20px;
  }

  .page-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.2rem);
  }

  .page-index {
    padding-top: 2.5rem;
  }

  .side-nav,
  .product-feature-grid,
  .clinical-grid {
    grid-template-columns: 1fr;
  }

  .company-timeline::before { left: 3.55rem; }
  .company-milestone { grid-template-columns: 3.6rem 1fr; gap: 1.35rem; }
  .company-milestone::before { left: 3.25rem; }

  .clinical-grid article,
  .clinical-grid article:nth-child(2n),
  .clinical-grid article:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .clinical-grid article:last-child {
    border-bottom: 0;
  }

  .product-feature-wide {
    grid-column: auto;
  }

  .optional-section {
    padding: 1.6rem !important;
  }

  .page-end-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Pricing: simple choices first, institutional depth second. */
.pricing-page-index {
  grid-template-columns: 190px minmax(0, 1fr);
  max-width: var(--max);
}

.pricing-content {
  min-width: 0;
}

.pricing-section {
  padding-bottom: 6rem;
  scroll-margin-top: 110px;
}

.pricing-section + .pricing-section {
  padding-top: 6rem;
  border-top: 1px solid var(--line);
}

.pricing-tabs {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 3.5rem;
  padding: 0.32rem;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.pricing-tab {
  min-height: 44px;
  padding: 0.62rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.pricing-tab:hover {
  color: var(--ink);
}

.pricing-tab.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 3px 12px rgba(25, 30, 28, 0.08);
}

.pricing-tab:focus-visible,
.comparison-scroll:focus-visible {
  outline: 3px solid rgba(23, 107, 82, 0.28);
  outline-offset: 3px;
}

.pricing-panel[hidden] {
  display: none;
}

.pricing-intro {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.pricing-intro h2,
.pricing-terms h2 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.pricing-intro p {
  max-width: 690px;
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.plan-card {
  min-height: 590px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
}

.plan-card-featured {
  border-color: rgba(23, 107, 82, 0.25);
  background: #eef4f0;
}

.plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan-kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-badge {
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  color: #145d47;
  background: #dcebe4;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-card h3 {
  max-width: 13ch;
  margin: 1.1rem 0 2.4rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.plan-price {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.35rem;
}

.plan-price > span {
  padding-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.plan-price strong {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.plan-price small {
  grid-column: 2;
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.plan-features {
  margin: 2.8rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.plan-button {
  width: 100%;
  background: var(--green);
  border-color: var(--green);
}

.plan-button:hover {
  background: #105d46;
}

.institution-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
}

.institution-copy {
  padding: clamp(2.2rem, 5vw, 4.5rem);
}

.institution-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.institution-copy p {
  max-width: 560px;
  margin: 1.2rem 0 2rem;
  color: var(--ink-soft);
}

.institution-features {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  align-content: center;
  gap: 0.7rem;
  background: #eef2ef;
}

.institution-features div {
  padding: 1.15rem;
  border: 1px solid rgba(23, 25, 24, 0.06);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
}

.institution-features span,
.institution-features strong,
.institution-features small {
  display: block;
}

.institution-features span {
  margin-bottom: 0.55rem;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
}

.institution-features strong {
  font-size: 0.94rem;
}

.institution-features small {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.73rem;
  line-height: 1.45;
}

.comparison-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.comparison-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
}

.comparison-table thead th {
  height: 130px;
  vertical-align: bottom;
  background: #f4f3f1;
}

.comparison-table thead th:first-child,
.comparison-table tbody th {
  width: 34%;
  color: var(--ink);
  background: #f0efec;
  text-align: left;
}

.comparison-table thead th:first-child,
.comparison-table tbody tr:not(.comparison-group) > th {
  position: sticky;
  left: 0;
  z-index: 2;
}

.comparison-table thead th:first-child {
  z-index: 3;
}

.comparison-table thead th:last-child,
.comparison-table tbody td:last-child {
  background: rgba(232, 238, 234, 0.44);
}

.comparison-table thead span,
.comparison-table thead small {
  display: block;
}

.comparison-table thead span {
  color: var(--ink);
  font-size: 0.88rem;
}

.comparison-table thead small {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 400;
}

.comparison-table tbody th {
  font-weight: 500;
}

.comparison-table .comparison-group th {
  padding-top: 2rem;
  color: var(--green);
  background: #e8eeea;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.feature-check {
  width: 1.35rem;
  height: 1.35rem;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}

.feature-dash {
  color: #aaa9a5;
}

.comparison-note {
  max-width: 820px;
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.trust-note {
  margin-top: 1.25rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid #d8e5de;
  border-radius: 16px;
  background: #edf4f0;
}

.trust-note strong,
.trust-note p,
.trust-note a { display: block; }
.trust-note p { margin: 0.35rem 0 0.7rem; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.55; }
.trust-note a { color: var(--green); font-size: 0.78rem; font-weight: 700; }

.footer-grid-expanded {
  grid-template-columns: 1.35fr 0.75fr 0.9fr 1.2fr;
}

.footer-brand p { max-width: 280px; }
.footer-contact { margin-top: 1.2rem; display: grid; gap: 0.25rem; }
.footer-contact a { color: var(--ink-soft); font-size: 0.82rem; text-decoration: none; }
.footer-contact a:hover { color: var(--green); }

.contact-options,
.trust-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 1.5rem 0 3rem; }
.contact-options a,
.trust-status-grid div { padding: 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.74); text-decoration: none; }
.contact-options span,
.contact-options strong,
.trust-status-grid span,
.trust-status-grid strong { display: block; }
.contact-options span,
.trust-status-grid span { color: var(--ink-soft); font-size: 0.72rem; }
.contact-options strong,
.trust-status-grid strong { margin-top: 0.25rem; font-size: 0.88rem; }

.legal-page {
  align-items: start;
}

.legal-side-nav {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 0.75rem;
}

.legal-side-nav a {
  font-size: 0.72rem;
  line-height: 1.35;
}

.legal-prose {
  max-width: 860px;
}

.legal-summary {
  margin-bottom: 3.5rem;
  padding: 1.5rem 1.65rem;
  border: 1px solid #d8e5de;
  border-radius: 18px;
  background: #edf4f0;
}

.legal-summary strong,
.legal-summary p {
  display: block;
}

.legal-summary p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.legal-prose h2 {
  scroll-margin-top: 110px;
  padding-top: 0.2rem;
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
}

.legal-prose h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.legal-prose p,
.legal-prose li {
  font-size: 0.93rem;
  line-height: 1.75;
}

.legal-prose code {
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  color: var(--ink);
  background: #eeece9;
  font-size: 0.86em;
}

.legal-callout {
  margin: 2.2rem 0;
  padding: 1.4rem 1.55rem;
  border: 1px solid #d8e5de;
  border-radius: 16px;
  color: var(--ink);
  background: #edf4f0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.refund-guarantee {
  margin-top: 1rem;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-radius: 22px;
  background: #edf4f0;
}

.refund-guarantee > .section-label,
.refund-guarantee > h3,
.refund-guarantee > p {
  grid-column: 1 / -1;
}

.refund-guarantee h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.refund-guarantee > p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
}

.refund-guarantee > div {
  padding: 1rem;
  border: 1px solid rgba(23, 25, 24, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.refund-guarantee span,
.refund-guarantee strong {
  display: block;
}

.refund-guarantee > div span {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.refund-guarantee > div strong {
  margin-top: 0.25rem;
  font-size: 0.84rem;
}

.pricing-terms {
  padding-bottom: 0;
}

.terms-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.terms-grid p {
  margin: 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.terms-grid strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .pricing-page-index {
    grid-template-columns: 1fr;
  }

  .institution-card {
    grid-template-columns: 1fr;
  }

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

  .legal-side-nav {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 650px) {
  .pricing-tabs {
    width: 100%;
    border-radius: 18px;
  }

  .pricing-tab {
    width: 50%;
    padding-inline: 0.65rem;
    border-radius: 14px;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .plan-grid,
  .terms-grid,
  .contact-options,
  .trust-status-grid,
  .footer-grid-expanded,
  .refund-guarantee {
    grid-template-columns: 1fr;
  }

  .refund-guarantee > .section-label,
  .refund-guarantee > h3,
  .refund-guarantee > p {
    grid-column: auto;
  }

  .plan-card {
    min-height: 540px;
  }

  .pricing-section {
    padding-bottom: 4.5rem;
  }

  .pricing-section + .pricing-section {
    padding-top: 4.5rem;
  }

  .comparison-scroll {
    margin-right: -1rem;
    border-radius: 20px 0 0 20px;
  }

  .comparison-table {
    min-width: 760px;
  }
}
