:root {
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-300: #5eead4;
  --brand-400: #2dd4bf;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-900: #134e4a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --info: #3b82f6;
  --info-soft: #eff6ff;
  --success: #22c55e;
  --success-soft: #f0fdf4;
  --paper: #fdfbf7;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 60px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 28px 90px rgba(15, 23, 42, 0.15);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  color: var(--slate-900);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 28%),
    linear-gradient(180deg, #fbfffe 0%, #f7fbff 42%, #ffffff 100%);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a.button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
}

.texture::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 80%);
  pointer-events: none;
}

.section {
  position: relative;
  padding: 32px 20px;
}

.section-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 20px 0;
}

.topbar-inner {
  width: min(100%, calc(var(--content-width) + 20px));
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand-400), var(--brand-700));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.28);
}

.brand-wording strong {
  display: block;
  font-size: 1rem;
}

.brand-wording span {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-500);
  font-weight: 500;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--slate-600);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  background: var(--brand-50);
  color: var(--brand-800);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 180ms ease-out,
    background-color 180ms ease-out,
    border-color 180ms ease-out,
    color 180ms ease-out,
    box-shadow 180ms ease-out;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 18px 35px rgba(20, 184, 166, 0.28);
}

.button-secondary {
  color: var(--brand-800);
  border-color: rgba(20, 184, 166, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--brand-50);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 184, 166, 0.16);
  background: rgba(240, 253, 250, 0.75);
  color: var(--brand-900);
  font-size: 0.88rem;
  font-weight: 600;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.12);
}

.hero {
  padding-top: 28px;
  padding-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.legal-heading h1 {
  margin: 18px 0 12px;
  font-family: "Newsreader", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 7vw, 6rem);
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--slate-600);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-list li {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.9;
}

.orb-a {
  inset: 24px auto auto 10px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.22), transparent 66%);
}

.orb-b {
  inset: auto 8px 96px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 68%);
}

.device-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.device {
  width: min(100%, 360px);
  padding: 18px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.9));
  box-shadow: var(--shadow-lg);
}

.device-screen {
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(20, 184, 166, 0.12);
}

.device-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

.screen-block {
  padding: 18px;
}

.screen-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.screen-subtitle {
  margin: 0 0 18px;
  color: var(--slate-500);
  font-size: 0.95rem;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.mini-metric {
  padding: 12px 10px;
  border-radius: 18px;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  text-align: center;
}

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

.mini-metric span {
  color: var(--slate-500);
  font-size: 0.72rem;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.item-card,
.scan-card,
.panel,
.feature-card,
.flow-card,
.scenario-card,
.legal-card,
.footer-card {
  border: 1px solid rgba(203, 213, 225, 0.76);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.item-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
}

.item-card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
}

.item-card-meta strong {
  display: block;
  margin-bottom: 4px;
}

.item-card-meta span,
.item-card-date span {
  color: var(--slate-500);
  font-size: 0.82rem;
}

.item-card-date {
  text-align: right;
}

.scan-card {
  position: absolute;
  right: -4px;
  bottom: -12px;
  width: min(100%, 300px);
  padding: 18px;
  border-radius: 24px;
}

.scan-card h3,
.panel h3,
.cta-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.scan-card p,
.panel p,
.feature-card p,
.flow-card p,
.scenario-card p,
.legal-intro p,
.footer-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.scan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.scan-badges span {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-brand {
  background: var(--brand-50);
  color: var(--brand-800);
}

.badge-warning {
  background: var(--warning-soft);
  color: #92400e;
}

.badge-info {
  background: var(--info-soft);
  color: #1d4ed8;
}

.metrics-grid,
.feature-grid,
.flow-grid,
.scenario-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

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

.panel,
.feature-card,
.flow-card,
.scenario-card,
.legal-card,
.footer-card,
.cta-card {
  border-radius: var(--radius-md);
}

.panel {
  padding: 22px;
}

.panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.panel span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--brand-800);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.section-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--slate-600);
  font-size: 1.02rem;
  line-height: 1.7;
}

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

.feature-card,
.flow-card,
.scenario-card,
.footer-card {
  padding: 24px;
}

.feature-icon,
.flow-step {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 18px;
}

.feature-card h3,
.flow-card h3,
.scenario-card h3,
.footer-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

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

.flow-step {
  background: linear-gradient(135deg, var(--brand-50), rgba(219, 234, 254, 0.8));
  color: var(--brand-800);
  font-weight: 800;
  font-size: 1.15rem;
}

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

.scenario-card {
  position: relative;
  overflow: hidden;
}

.scenario-card::after {
  position: absolute;
  inset: auto -20px -20px auto;
  width: 120px;
  height: 120px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 70%);
}

.cta-band {
  padding-bottom: 80px;
}

.cta-card {
  padding: 28px;
  border: 1px solid rgba(20, 184, 166, 0.16);
  background:
    linear-gradient(140deg, rgba(20, 184, 166, 0.1), rgba(255, 255, 255, 0.82));
  box-shadow: var(--shadow-md);
}

.cta-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.cta-card-copy h2 {
  margin: 0 0 10px;
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cta-card-copy p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.footer {
  padding-top: 0;
  padding-bottom: 40px;
}

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

.footer-card h3 {
  margin-bottom: 12px;
}

.footer-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-card a {
  text-decoration: none;
  color: var(--slate-700);
}

.footer-card a:hover,
.footer-card a:focus-visible {
  color: var(--brand-800);
  outline: none;
}

.footer-note {
  margin-top: 22px;
  color: var(--slate-500);
  font-size: 0.92rem;
}

.legal-shell {
  min-height: 100vh;
  padding-bottom: 48px;
}

.legal-hero {
  padding-top: 28px;
  padding-bottom: 18px;
}

.legal-card {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(253, 251, 247, 0.95), rgba(255, 255, 255, 0.92));
}

.legal-heading h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
  margin-top: 14px;
}

.legal-intro {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: start;
}

.legal-aside {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(203, 213, 225, 0.7);
}

.legal-aside strong {
  display: block;
  margin-bottom: 8px;
}

.legal-tabs-wrap {
  padding-top: 8px;
}

.legal-tabs {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: var(--shadow-sm);
}

.legal-tab {
  padding: 12px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--slate-600);
  font-weight: 600;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.legal-tab:hover,
.legal-tab:focus-visible,
.legal-tab.is-active {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: var(--white);
  outline: none;
}

.legal-article {
  width: min(100%, 860px);
  margin: 22px auto 0;
  padding: 40px 28px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(253, 251, 247, 0.98), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: var(--shadow-md);
}

.legal-article-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--slate-200);
}

.legal-article-header h2 {
  margin: 0 0 6px;
  font-family: "Newsreader", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
}

.legal-article-header p {
  margin: 0;
  color: var(--slate-600);
}

.legal-kicker {
  color: var(--brand-800);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.legal-section p,
.legal-section li {
  color: var(--slate-700);
  line-height: 1.82;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-footer {
  width: min(100%, 860px);
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--slate-500);
  font-size: 0.94rem;
}

.legal-footer a {
  color: var(--brand-800);
}

.noscript-shell {
  max-width: 680px;
  margin: 80px auto;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.brand-food {
  background: linear-gradient(135deg, var(--success), #15803d);
}

.brand-docs {
  background: linear-gradient(135deg, var(--info), #1d4ed8);
}

.brand-meds {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
}

.surface-brand {
  background: linear-gradient(135deg, var(--brand-50), rgba(204, 251, 241, 0.6));
}

.surface-info {
  background: linear-gradient(135deg, var(--info-soft), rgba(219, 234, 254, 0.5));
}

.surface-warning {
  background: linear-gradient(135deg, var(--warning-soft), rgba(254, 243, 199, 0.56));
}

.surface-success {
  background: linear-gradient(135deg, var(--success-soft), rgba(220, 252, 231, 0.5));
}

.surface-danger {
  background: linear-gradient(135deg, var(--danger-soft), rgba(254, 226, 226, 0.56));
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.68), rgba(255, 255, 255, 0.9));
}

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

  .feature-grid,
  .flow-grid,
  .scenario-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cta-card-top {
    display: grid;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-inline: 14px;
  }

  .topbar-inner,
  .section,
  .legal-article {
    padding-inline: 16px;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-bottom: 40px;
  }

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

  .device {
    width: 100%;
  }

  .scan-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .metrics-grid,
  .feature-grid,
  .flow-grid,
  .scenario-grid,
  .footer-grid,
  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .legal-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .legal-article-header,
  .legal-footer {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
