:root {
  color-scheme: light;
  --ink: #182033;
  --muted: #5b6678;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --line: #d8e1eb;
  --teal: #0b7a75;
  --teal-dark: #085d59;
  --blue: #263c7a;
  --blue-soft: #e9eefc;
  --gold: #f4b942;
  --coral: #e66d56;
  --green-soft: #e7f5f1;
  --shadow: 0 24px 70px rgba(24, 32, 51, 0.16);
  --soft-shadow: 0 12px 34px rgba(24, 32, 51, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.56;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(11, 122, 117, 0.36);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(24, 32, 51, 0.08);
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1200px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(24, 32, 51, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.nav-links a:not(.button) {
  padding: 10px 0;
}

.nav-links a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.15;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 12px 26px rgba(11, 122, 117, 0.25);
}

.button.primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 16px 32px rgba(11, 122, 117, 0.28);
}

.button.secondary {
  color: var(--ink);
  border-color: rgba(24, 32, 51, 0.16);
  background: rgba(255, 255, 255, 0.88);
}

.button.secondary:hover {
  border-color: rgba(11, 122, 117, 0.38);
}

.hero {
  position: relative;
  min-height: 525px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(24, 32, 51, 0.08);
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 1) 0%, rgba(246, 248, 251, 0.96) 42%, rgba(246, 248, 251, 0.68) 70%, rgba(246, 248, 251, 0.12) 100%),
    url("ankipilot-ui.png") right center / min(880px, 64vw) auto no-repeat,
    linear-gradient(135deg, #f6f8fb 0%, #eef8f5 58%, #fff4e6 100%);
}

.hero-inner,
.section-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy {
  width: min(640px, 100%);
  padding: 44px 0 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.72rem, 5.1vw, 4.45rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 3.05rem);
  line-height: 1.04;
}

h3 {
  margin: 0;
}

.hero-copy .lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: #3d485a;
  font-size: clamp(1.08rem, 2.1vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

section {
  padding: 88px 0;
}

.proof-strip {
  padding: 0;
  border-top: 1px solid rgba(24, 32, 51, 0.08);
  border-bottom: 1px solid rgba(24, 32, 51, 0.08);
  background: #ffffff;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-grid div {
  min-height: 116px;
  padding: 24px 24px 24px 0;
  border-right: 1px solid rgba(24, 32, 51, 0.08);
}

.proof-grid div:last-child {
  border-right: 0;
}

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

.proof-grid strong {
  color: var(--blue);
  font-size: 1.04rem;
}

.proof-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.93rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: start;
}

.problem-section,
.why-section {
  background: #ffffff;
}

.comparison-card {
  overflow: hidden;
  border: 1px solid rgba(24, 32, 51, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.comparison-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(24, 32, 51, 0.08);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row span {
  padding: 18px 20px;
  color: #344154;
}

.comparison-row span + span {
  border-left: 1px solid rgba(24, 32, 51, 0.08);
  color: var(--teal-dark);
  font-weight: 760;
  background: #f1faf7;
}

.comparison-row.muted-row span {
  color: var(--ink);
  background: #f4f7fb;
  font-weight: 850;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 42px;
  align-items: center;
}

.product-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(24, 32, 51, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list,
.plan-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plan-list li {
  position: relative;
  padding-left: 30px;
  color: #344154;
}

.check-list li::before,
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 5px #d9f2ed;
}

.band-dark {
  color: #f9fbf8;
  background: linear-gradient(135deg, #17233b 0%, #20395c 55%, #0f5d5a 100%);
}

.band-dark .eyebrow {
  color: #9ce2d5;
}

.band-dark .section-heading p,
.band-dark .muted {
  color: #cfdae4;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.compact-grid {
  align-self: stretch;
}

.feature-card,
.step-card,
.price-card {
  min-height: 100%;
  border: 1px solid rgba(24, 32, 51, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

.band-dark .feature-card,
.band-dark .step-card,
.band-dark .faq-grid article {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.feature-card h3,
.step-card h3,
.price-card h3,
.faq-grid h3 {
  font-size: 1.12rem;
}

.feature-card p,
.step-card p,
.price-card p,
.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.band-dark .feature-card p,
.band-dark .step-card p,
.band-dark .faq-grid p {
  color: #d2dee6;
}

.icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--gold);
  font-weight: 950;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(11, 122, 117, 0.46);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}

.plan-label {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
}

.plan-list {
  margin-bottom: 24px;
}

.price-card .button {
  margin-top: auto;
}

.launch-note,
.small {
  color: var(--muted);
  font-size: 0.94rem;
}

.launch-note {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.faq-grid article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
}

.final-cta {
  background: linear-gradient(135deg, #eef8f5 0%, #f7f9fd 56%, #fff5e9 100%);
}

.final-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border: 1px solid rgba(24, 32, 51, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
}

.final-card h2 {
  max-width: 760px;
}

.final-card p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
}

.footer {
  padding: 34px 0;
  border-top: 1px solid rgba(24, 32, 51, 0.1);
  color: var(--muted);
  background: #ffffff;
}

.footer-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

.disclaimer {
  width: min(1200px, calc(100% - 40px));
  margin: 18px auto 0;
  color: #768194;
  font-size: 0.85rem;
}

.page {
  padding: 76px 0 96px;
}

.page article {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px;
  border: 1px solid rgba(24, 32, 51, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(24, 32, 51, 0.08);
}

.page h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.page h2 {
  margin-top: 34px;
}

.page p,
.page li {
  color: #415064;
}

.page code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef3f4;
}

.page pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid rgba(24, 32, 51, 0.1);
  border-radius: var(--radius);
  background: #f3f7f8;
}

.page pre code {
  padding: 0;
  background: transparent;
}

.support-flow {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.support-step {
  padding: 22px;
  border: 1px solid rgba(24, 32, 51, 0.1);
  border-radius: var(--radius);
  background: #f8fafb;
}

.support-step h2 {
  margin-top: 0;
}

.support-step ol,
.support-step ul {
  margin-bottom: 0;
}

.copy-row {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 0;
}

.copy-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(24, 32, 51, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  border-color: rgba(11, 122, 117, 0.38);
}

.diagnostic-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.diagnostic-list li::before {
  content: "Check";
  display: inline-block;
  margin-right: 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .hero {
    min-height: auto;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(246, 248, 251, 0.99) 0%, rgba(246, 248, 251, 0.94) 50%, rgba(246, 248, 251, 0.74) 100%),
      url("ankipilot-ui.png") center bottom / 790px auto no-repeat,
      linear-gradient(135deg, #f6f8fb 0%, #eef8f5 56%, #fff4e6 100%);
  }

  .hero-copy {
    padding: 40px 0 330px;
  }

  .proof-grid,
  .grid.three,
  .grid.two,
  .workflow,
  .split,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid div {
    min-height: auto;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(24, 32, 51, 0.08);
  }

  .proof-grid div:last-child {
    border-bottom: 0;
  }

  .price-card.featured {
    transform: none;
  }

  .final-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  .nav,
  .hero-inner,
  .section-inner,
  .footer-inner,
  .disclaimer,
  .page article {
    width: min(100% - 28px, 1200px);
  }

  .nav-links .nav-cta {
    display: none;
  }

  .nav {
    min-height: auto;
    gap: 10px;
    padding: 12px 0;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    gap: 4px 14px;
    font-size: 0.88rem;
  }

  .nav-links a[href="#medical"],
  .nav-links a[href="#quality"] {
    display: none;
  }

  .hero-copy {
    padding: 26px 0 160px;
  }

  h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.2rem);
    line-height: 1.02;
  }

  .page h2 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .hero-copy .lede {
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .button,
  .final-card .button {
    width: 100%;
  }

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

  .comparison-row span + span {
    border-left: 0;
    border-top: 1px solid rgba(24, 32, 51, 0.08);
  }

  section {
    padding: 68px 0;
  }

  .final-card,
  .page article {
    padding: 28px 22px;
  }

  .copy-row,
  .page-actions {
    justify-content: stretch;
  }

  .copy-button,
  .page-actions .button {
    width: 100%;
  }
}
