/* Clara Clinical landing page. Plain CSS with no build step; Cloudflare Pages serves it as is. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:
    ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: oklch(0.988 0.004 90);
  --surface: oklch(1 0 0);
  --surface-sunken: oklch(0.968 0.006 90);
  --ink: oklch(0.24 0.022 258);
  --ink-muted: oklch(0.47 0.02 258);
  --line: oklch(0.905 0.008 258);
  --line-strong: oklch(0.84 0.012 258);
  --accent: oklch(0.52 0.085 182);
  --accent-ink: oklch(0.43 0.075 182);
  --accent-soft: oklch(0.95 0.03 182);
  --flag-ink: oklch(0.45 0.1 60);
  --flag-soft: oklch(0.965 0.045 85);
  --flag-line: oklch(0.87 0.09 82);
  --pii-ink: oklch(0.45 0.13 25);
  --pii-soft: oklch(0.94 0.04 25);
  --cta-bg: var(--ink);
  --cta-ink: var(--bg);
  --cta-muted: oklch(0.82 0.015 258);
  --shadow: 0 1px 2px oklch(0.24 0.022 258 / 6%), 0 18px 40px -16px oklch(0.24 0.022 258 / 22%);

  --radius: 0.75rem;
  --container: 72rem;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.175 0.012 258);
    --surface: oklch(0.215 0.014 258);
    --surface-sunken: oklch(0.155 0.012 258);
    --ink: oklch(0.95 0.006 258);
    --ink-muted: oklch(0.76 0.014 258);
    --line: oklch(0.3 0.014 258);
    --line-strong: oklch(0.38 0.016 258);
    --accent: oklch(0.74 0.1 182);
    --accent-ink: oklch(0.8 0.09 182);
    --accent-soft: oklch(0.29 0.045 182);
    --flag-ink: oklch(0.86 0.1 82);
    --flag-soft: oklch(0.27 0.045 70);
    --flag-line: oklch(0.42 0.07 70);
    --pii-ink: oklch(0.86 0.08 25);
    --pii-soft: oklch(0.32 0.07 25);
    --cta-bg: oklch(0.26 0.04 182);
    --cta-ink: oklch(0.97 0.006 182);
    --cta-muted: oklch(0.82 0.03 182);
    --shadow: 0 1px 2px oklch(0 0 0 / 30%), 0 20px 44px -16px oklch(0 0 0 / 60%);
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 560;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.button:hover {
  background: color-mix(in oklch, var(--ink) 86%, var(--bg));
}

.button-small {
  min-height: 2.375rem;
  padding: 0.4375rem 1rem;
  font-size: 0.9375rem;
}

.button-quiet {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink-muted);
  background: var(--surface);
}

.button-inverse {
  background: var(--cta-ink);
  color: var(--cta-bg);
}

.button-inverse:hover {
  background: color-mix(in oklch, var(--cta-ink) 88%, var(--cta-bg));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.brand-sheet {
  fill: var(--ink);
}

.brand-lines {
  fill: none;
  stroke: var(--bg);
  stroke-width: 2;
  stroke-linecap: round;
}

.site-nav {
  display: none;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

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

@media (min-width: 52rem) {
  .site-nav {
    display: block;
  }
}

/* Hero */

.hero {
  padding-block: clamp(3rem, 1.5rem + 5vw, 6.5rem) clamp(1rem, 0.5rem + 2vw, 2rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 4.5rem);
  align-items: center;
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 0.625rem 0 0.25rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  vertical-align: 0.0625rem;
}

h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.042em;
}

/* One sentence per line. */
h1 > span {
  display: block;
}

.lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.assurances {
  display: grid;
  gap: 0.625rem;
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.9875rem;
  font-weight: 500;
}

.assurances li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.assurances .icon {
  margin-top: 0.1rem;
  color: var(--accent);
  stroke-width: 2.25;
}

/* Hero figure: a paper letter behind the approval screen */

.hero-figure {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 34rem;
  padding: 2.25rem 0 0 1.25rem;
}

@media (min-width: 64rem) {
  .hero-figure {
    justify-self: end;
    padding: 3rem 0 0 2.5rem;
  }
}

.sheet {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 72%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  transform-origin: top left;
}

.sheet-line {
  display: block;
  height: 0.4375rem;
  border-radius: 999px;
  background: var(--line);
}

.sheet-line:nth-child(2) {
  width: 86%;
}

.sheet-line:nth-child(3) {
  width: 93%;
}

.sheet-line:nth-child(4) {
  width: 58%;
}

.approval {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.approval-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.approval-kicker {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.approval-patient {
  margin-top: 0.25rem;
  font-size: 1.0625rem;
  font-weight: 650;
}

.approval-patient span {
  margin-left: 0.375rem;
  color: var(--ink-muted);
  font-weight: 450;
}

.approval-visit {
  display: grid;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  text-align: right;
}

.approval-visit strong {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.approval-flag {
  display: flex;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--flag-line);
  border-radius: 0.625rem;
  background: var(--flag-soft);
  color: var(--flag-ink);
  font-size: 0.875rem;
}

.approval-flag .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.0625rem;
}

.approval-forms {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.approval-forms li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  padding: 0.6875rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
}

.form-badge {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.approval-form-text {
  display: grid;
  gap: 0.125rem;
}

.approval-form-name {
  font-weight: 600;
}

.approval-form-detail {
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.channel {
  padding: 0.1875rem 0.5625rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.approval-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem;
  border-radius: 0.625rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.approval-button .icon {
  stroke-width: 2.25;
}

.hero-figure figcaption {
  margin-top: 0.875rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* Sections */

.section {
  padding-block: clamp(4rem, 2.5rem + 5vw, 7rem);
}

.section-tinted {
  border-block: 1px solid var(--line);
  background: var(--surface-sunken);
}

.section-head {
  max-width: 44rem;
}

.section-head h2 {
  font-size: clamp(1.875rem, 1.35rem + 2.1vw, 2.75rem);
  letter-spacing: -0.032em;
}

.section-lead {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.fineprint {
  max-width: 46rem;
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* How it works */

.steps {
  display: grid;
  gap: 2rem 1.5rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.step-number {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
}

.step h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.25rem;
}

.step p {
  color: var(--ink-muted);
  font-size: 1rem;
}

/* What the AI sees */

.redaction {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 60rem) {
  .redaction {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.pane {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.875rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* An arrow between panes: pointing down when stacked, right when side by side. */
.pane + .pane::before {
  content: "";
  position: absolute;
  top: -1.75rem;
  left: 50%;
  width: 0.625rem;
  height: 0.625rem;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: translateX(-50%) rotate(45deg);
}

@media (min-width: 60rem) {
  .pane + .pane::before {
    top: 50%;
    left: -1.375rem;
    transform: translateY(-50%) rotate(-45deg);
  }
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pane-step {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.letter {
  font-size: 0.96875rem;
  line-height: 1.75;
}

.pii {
  padding: 0.0625em 0.25em;
  border-radius: 0.25rem;
  background: var(--pii-soft);
  color: var(--pii-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.token {
  padding: 0.0625em 0.375em;
  border: 1px dashed color-mix(in oklch, var(--accent) 60%, transparent);
  border-radius: 0.3125rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.84em;
  font-weight: 500;
  white-space: nowrap;
}

.extracted {
  display: grid;
  gap: 0.625rem;
}

.extracted div {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px dashed var(--line);
}

.extracted div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.extracted dt {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.extracted dd {
  margin: 0;
  font-size: 0.9375rem;
}

.extracted q {
  quotes: "“" "”";
}

.match {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.375rem;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.match .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.5;
}

/* Safeguards */

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.125rem;
  border-radius: 0.625rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.96875rem;
}

/* Forms */

.forms {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .forms {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 68rem) {
  .forms {
    grid-template-columns: repeat(4, 1fr);
  }
}

.form-card {
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 0.375rem;
  background: var(--surface);
}

.form-code {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-code span {
  color: var(--ink-muted);
  font-weight: 500;
}

.form-card h3 {
  font-size: 1.125rem;
}

.ticks {
  display: grid;
  gap: 0.625rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* A ticked form checkbox. */
.ticks li {
  position: relative;
  padding-left: 1.75rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--ink-muted);
  border-radius: 0.1875rem;
}

.ticks li::after {
  content: "";
  position: absolute;
  top: 0.375rem;
  left: 0.3125rem;
  width: 0.375rem;
  height: 0.5625rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* Questions */

.faq-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
    align-items: start;
    gap: 4rem;
  }
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A plus that turns into a minus when open. */
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 0.875rem;
  height: 0.875rem;
  background:
    linear-gradient(var(--ink-muted), var(--ink-muted)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink-muted), var(--ink-muted)) center / 2px 100% no-repeat;
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  background-size:
    100% 2px,
    2px 0;
}

.faq summary:hover {
  color: var(--accent-ink);
}

.faq p {
  max-width: 40rem;
  padding-bottom: 1.5rem;
  color: var(--ink-muted);
}

/* Call to action */

.cta {
  padding-block: 0 clamp(4rem, 2.5rem + 5vw, 7rem);
}

.cta-inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: clamp(2rem, 1.25rem + 3.5vw, 3.75rem);
  border-radius: 1.25rem;
  background: var(--cta-bg);
  color: var(--cta-ink);
}

@media (min-width: 48rem) {
  .cta-inner {
    grid-template-columns: 1fr auto;
  }
}

.cta h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  letter-spacing: -0.03em;
}

.cta p {
  max-width: 34rem;
  margin-top: 0.75rem;
  color: var(--cta-muted);
  font-size: 1.0625rem;
}

/* Footer */

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: grid;
  gap: 0.625rem;
}

.brand-footer {
  margin-bottom: 0.375rem;
  font-size: 1rem;
}

.brand-footer .brand-mark {
  width: 1.5rem;
  height: 1.5rem;
}

/* Page not found */

.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding-block: 3rem;
}

.not-found main {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  max-width: 32rem;
}

.not-found h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
}

.not-found .lead {
  margin-top: 0;
}
