:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.129 0.042 264.695);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.129 0.042 264.695);
  --primary: oklch(0.208 0.042 265.755);
  --primary-foreground: oklch(0.984 0.003 247.858);
  --secondary: oklch(0.968 0.007 247.896);
  --secondary-foreground: oklch(0.208 0.042 265.755);
  --muted: oklch(0.968 0.007 247.896);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --accent: oklch(0.968 0.007 247.896);
  --accent-foreground: oklch(0.208 0.042 265.755);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-soft: oklch(0.96 0.035 27.325);
  --border: oklch(0.929 0.013 255.508);
  --input: oklch(0.929 0.013 255.508);
  --ring: oklch(0.704 0.04 256.788);
  --warning: oklch(0.646 0.222 41.116);
  --warning-soft: oklch(0.97 0.05 84.429);
  --success: oklch(0.6 0.118 184.704);
  --success-soft: oklch(0.96 0.035 184.704);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  background: var(--background);
  color: var(--foreground);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

button {
  appearance: none;
}

code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: var(--muted);
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.shell,
.narrow {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 768px);
}

.case-detail {
  width: min(100% - 32px, 896px);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-weight: 650;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.brand__mark .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.nav a:not(.button),
.nav form {
  display: inline-flex;
}

.nav a:not(.button) {
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: var(--muted-foreground);
}

.nav a:not(.button):hover {
  background: var(--accent);
  color: var(--foreground);
  text-decoration: none;
}

.button {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0 1rem;
  box-shadow: 0 1px 2px oklch(0.129 0.042 264.695 / 16%);
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: oklch(0.25 0.045 265.755);
  border-color: oklch(0.25 0.045 265.755);
  color: var(--primary-foreground);
  text-decoration: none;
}

.button--small {
  min-height: 2rem;
  font-size: 0.75rem;
  padding-inline: 0.75rem;
}

.button--secondary {
  background: var(--background);
  border-color: var(--border);
  color: var(--foreground);
}

.button--secondary:hover {
  background: var(--accent);
  border-color: var(--border);
  color: var(--accent-foreground);
}

.button--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted-foreground);
  box-shadow: none;
}

.button--ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--foreground);
}

.button--icon {
  width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.flash-wrap {
  margin-top: 1rem;
}

.flash,
.form-errors {
  border-radius: 6px;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
}

.flash {
  margin-bottom: 0.625rem;
}

.flash--notice {
  background: var(--success-soft);
  color: oklch(0.35 0.1 184.704);
}

.flash--alert,
.form-errors {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.landing-hero {
  width: min(100% - 32px, 768px);
  margin-inline: auto;
  padding: 5rem 0 3rem;
  text-align: center;
}

.landing-hero h1 {
  margin: 0;
  color: var(--foreground);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.review-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.5rem;
}

.review-score {
  display: inline-grid;
  gap: 0.125rem;
  min-width: 8.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 28px oklch(0.129 0.042 264.695 / 8%);
  color: var(--card-foreground);
  padding: 0.625rem 0.875rem;
  text-align: left;
}

.review-stars {
  color: oklch(0.72 0.16 84.429);
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.review-score__text {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 650;
}

.review-proof__note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 18rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  transform: rotate(-2deg);
}

.drawn-arrow {
  width: 5.5rem;
  height: auto;
  color: var(--primary);
  flex: 0 0 auto;
}

.lead {
  max-width: 700px;
  margin: 1.5rem auto 0;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.55;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-foreground);
  font-size: 0.75rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted-foreground);
  font-weight: 700;
  text-transform: uppercase;
}

.pill {
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  padding: 0.25rem 0.75rem;
}

.pill .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.landing-hero .button {
  min-height: 2.5rem;
  padding-inline: 2rem;
}

.actions form,
.section-heading form {
  display: inline-flex;
  margin: 0;
}

.section-heading .actions {
  justify-content: flex-end;
  margin-top: 0;
}

.form .actions {
  justify-content: flex-start;
  margin-top: 0;
}

.section,
.page {
  padding: 2.5rem 0;
}

.home-index .section.shell {
  width: min(100% - 32px, 1088px);
  padding: 3rem 0 4rem;
}

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

.feature-grid--alpha {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.feature,
.content-band,
.empty-state,
.inbox-band,
.auth-card,
.case-row,
.state-card,
.timeline-item,
.document-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
}

.feature {
  min-height: 15.5rem;
  padding: 1.5rem;
}

.feature__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.feature h2,
.feature h3,
.content-band h2,
.empty-state h2,
.inbox-band h2,
.auth-card h1 {
  margin: 0;
}

.feature h2,
.feature h3 {
  color: var(--card-foreground);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.content-band h2,
.inbox-band h2,
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature p,
.muted,
.empty-state p,
.inbox-band p,
.timeline-item p,
.document-card p,
.fine-print {
  color: var(--muted-foreground);
  line-height: 1.55;
}

.feature p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.product-tour {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.product-shot {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 24px 72px oklch(0.129 0.042 264.695 / 12%);
}

.product-shot__image {
  display: block;
  width: 100%;
  height: auto;
}

.section-heading--center {
  justify-content: center;
  text-align: center;
}

.section-heading--center > div {
  max-width: 44rem;
}

.section-heading--center h2 {
  justify-content: center;
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.15;
}

.section-heading--center .muted {
  margin: 0.75rem 0 0;
}

.screen-stack {
  display: grid;
  gap: 1.5rem;
}

.screen-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 20px 60px oklch(0.129 0.042 264.695 / 8%);
  color: var(--card-foreground);
}

.screen-preview--large {
  min-height: 28rem;
}

.screen-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--accent);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  padding: 0.65rem 0.875rem;
}

.screen-chrome span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: oklch(0.78 0.016 255.508);
}

.screen-chrome strong {
  margin-left: 0.35rem;
  color: var(--foreground);
  font-weight: 650;
}

.screen-body {
  padding: 1.15rem;
}

.screen-preview--large .screen-body {
  padding: 1.35rem;
}

.local-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: oklch(0.35 0.1 184.704);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

.screen-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.screen-heading-row h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.screen-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.35rem 0.55rem;
}

.screen-badge--serious {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.screen-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.screen-check {
  display: grid;
  gap: 0.25rem;
  border-left: 3px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  padding: 0.8rem;
}

.screen-check span,
.screen-callout span,
.screen-score span,
.screen-columns span {
  color: var(--muted-foreground);
}

.screen-check span,
.screen-callout span {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.screen-check strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.screen-check--serious {
  border-left-color: var(--destructive);
}

.screen-check--watch {
  border-left-color: var(--ring);
}

.screen-check--concern {
  border-left-color: var(--warning);
}

.screen-check--good {
  border-left-color: var(--success);
}

.screen-callout {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem;
}

.screen-callout span {
  color: oklch(0.984 0.003 247.858 / 72%);
}

.screen-callout strong {
  font-size: 1rem;
  line-height: 1.35;
}

.timeline-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem 0.8rem;
  margin-top: 1.25rem;
}

.timeline-preview > span {
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--accent);
}

.timeline-preview strong {
  display: block;
  color: var(--foreground);
  font-size: 0.85rem;
  line-height: 1.3;
}

.timeline-preview p {
  margin: 0.2rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  line-height: 1.45;
}

.screen-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.screen-list li {
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0 0 0.75rem 1rem;
}

.screen-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.screen-list li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.screen-score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.screen-score strong {
  color: var(--foreground);
  font-size: 2rem;
  line-height: 1;
}

.screen-meter {
  height: 0.55rem;
  overflow: hidden;
  margin-top: 0.8rem;
  border-radius: 999px;
  background: var(--accent);
}

.screen-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

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

.screen-columns span {
  border-radius: 6px;
  background: var(--accent);
  font-size: 0.78rem;
  line-height: 1.25;
  padding: 0.55rem;
}

.screen-preview--settings {
  border-color: oklch(0.6 0.118 184.704 / 44%);
}

.settings-preview {
  display: grid;
  gap: 0.9rem;
}

.settings-preview h2 {
  margin: 0.15rem 0 0;
  color: var(--foreground);
  font-size: 1.05rem;
  line-height: 1.2;
}

.settings-preview p {
  margin: 0.45rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  line-height: 1.45;
}

.settings-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  text-transform: uppercase;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0.75rem;
}

.settings-toggle {
  position: relative;
  width: 2.35rem;
  height: 1.3rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--border);
}

.settings-toggle span {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 1px 3px oklch(0.129 0.042 264.695 / 18%);
}

.settings-toggle--on {
  background: var(--success);
}

.settings-toggle--on span {
  left: 1.22rem;
}

.settings-storage-flow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 0.75rem;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.85rem;
}

.settings-storage-flow span,
.settings-storage-flow strong {
  font-size: 0.78rem;
  line-height: 1.25;
}

.settings-storage-flow span {
  color: oklch(0.984 0.003 247.858 / 72%);
}

.settings-storage-flow strong {
  justify-self: end;
}

.download-section {
  padding-top: 1.5rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.download-panel,
.app-store-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
}

.download-panel {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-height: 15rem;
  padding: 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.download-panel--recommended {
  border-color: var(--primary);
  box-shadow: 0 20px 60px oklch(0.129 0.042 264.695 / 10%);
}

.download-panel__label {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--accent);
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  text-transform: uppercase;
}

.download-panel--recommended .download-panel__label {
  background: var(--primary);
  color: var(--primary-foreground);
}

.download-panel h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.download-panel p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.55;
}

.download-panel .button {
  align-self: end;
  width: fit-content;
  margin-top: auto;
}

.hardware-note {
  max-width: 46rem;
  margin: 1rem auto 0;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.device-code {
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent);
  padding: 1rem;
  overflow-wrap: anywhere;
}

.device-code code {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.app-store-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
}

.app-store-card h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: 0;
  line-height: 1.15;
}

.app-store-card .muted {
  margin: 0.75rem 0 0;
}

.app-store-card__status {
  display: grid;
  gap: 0.25rem;
  min-width: 12rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem;
}

.app-store-card__status span {
  color: oklch(0.984 0.003 247.858 / 72%);
  font-size: 0.82rem;
  line-height: 1.35;
}

.content-band a:not(.button),
.markdown-body a {
  color: var(--primary);
}

.disclaimer {
  width: min(100% - 32px, 672px);
  margin-inline: auto;
  padding: 4rem 0;
  text-align: center;
}

.disclaimer h2 {
  margin: 0;
  font-size: 1.5rem;
}

.page-heading,
.case-header,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page h1,
.case-header h1 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.875rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
}

.back-link {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.back-link:hover {
  color: var(--foreground);
}

.empty-state {
  margin-top: 2.5rem;
  border-style: dashed;
  padding: 2.5rem;
  text-align: center;
}

.case-list,
.timeline,
.document-list {
  display: grid;
  gap: 0.75rem;
}

.case-list {
  margin-top: 1.5rem;
}

.case-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.case-row:hover,
.state-card:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.case-row__title {
  font-size: 1rem;
  font-weight: 600;
}

.case-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.375rem 0.625rem;
  white-space: nowrap;
}

.health-badge--good {
  background: var(--success-soft);
  color: oklch(0.35 0.1 184.704);
}

.health-badge--watch {
  background: var(--accent);
  color: var(--muted-foreground);
}

.health-badge--concern {
  background: var(--warning-soft);
  color: oklch(0.45 0.14 70.08);
}

.health-badge--serious {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.summary-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  font-size: 0.875rem;
}

.content-band {
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.content-band--plain {
  border: 0;
  background: transparent;
  padding: 0;
}

.preserve,
pre.preserve {
  white-space: pre-wrap;
}

.inbox-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.inbox-code-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inbox-code-row code {
  flex: 1;
}

.health-panel {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.25rem;
}

.health-panel__summary {
  display: grid;
  gap: 0.5rem;
}

.health-panel__summary h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.oversight-section {
  margin-top: 1.5rem;
}

.oversight-section .section-heading {
  align-items: flex-start;
}

.oversight-section .section-heading p {
  max-width: 48rem;
  margin: 0.35rem 0 0;
}

.oversight-grid,
.oversight-two-column {
  display: grid;
  gap: 1rem;
}

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

.oversight-two-column {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-top: 1rem;
  align-items: start;
}

.oversight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  padding: 1rem;
}

.oversight-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.oversight-card h3,
.oversight-card h4 {
  margin: 0;
}

.oversight-card h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.oversight-card h4 {
  font-size: 0.875rem;
  line-height: 1.35;
}

.oversight-card p {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

.oversight-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.oversight-status--good {
  background: var(--success-soft);
  color: oklch(0.35 0.1 184.704);
}

.oversight-status--watch {
  background: var(--accent);
  color: var(--muted-foreground);
}

.oversight-status--concern {
  background: var(--warning-soft);
  color: oklch(0.45 0.14 70.08);
}

.oversight-status--serious {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.oversight-fact {
  display: grid;
  gap: 0.35rem 0.75rem;
  grid-template-columns: 5rem minmax(0, 1fr);
  margin: 0.875rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
}

.oversight-fact dt {
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.oversight-fact dd {
  margin: 0;
  color: var(--foreground);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.readiness-card .oversight-card__top strong {
  color: var(--foreground);
  font-size: 1.35rem;
  line-height: 1;
}

.readiness-meter {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent);
}

.readiness-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

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

.health-grid h3 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.check-list,
.signal-list {
  display: grid;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.45;
}

.check-list li::before {
  position: absolute;
  left: 0.125rem;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.signal {
  display: grid;
  gap: 0.25rem;
  border-left: 3px solid var(--border);
  border-radius: 6px;
  background: var(--muted);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
}

.signal span {
  color: var(--muted-foreground);
  line-height: 1.45;
}

.signal--concern {
  border-left-color: var(--warning);
}

.signal--serious {
  border-left-color: var(--destructive);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.compact-form {
  margin-top: 0;
}

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

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

.field label {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--input);
  border-radius: 6px;
  background: var(--background);
  color: var(--foreground);
  padding: 0.625rem 0.75rem;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ring);
  outline: 3px solid oklch(0.704 0.04 256.788 / 22%);
}

.form-errors p {
  margin: 0 0 0.375rem;
  font-weight: 700;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.25rem;
}

.auth-page {
  width: min(100% - 32px, 420px);
  padding: 4rem 0;
}

.auth-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 3px oklch(0.129 0.042 264.695 / 8%);
}

.auth-card h1 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.auth-card .button {
  width: 100%;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}

.auth-alt {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-align: center;
}

.button--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 0.25rem;
  box-shadow: none;
  color: #3c4043;
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.button--google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  color: #3c4043;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1), 0 1px 3px 1px rgba(60, 64, 67, 0.05);
}

.button--google:active {
  background: #f1f3f4;
}

.button--google__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.button--google__logo svg {
  width: 100%;
  height: 100%;
}

.button--google__text {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .auth-page {
    padding: 2rem 0;
  }

  .auth-card {
    padding: 1.5rem 1rem;
  }
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 2rem;
}

.state-card {
  min-height: 5.5rem;
  display: grid;
  gap: 0.25rem;
  align-content: start;
  padding: 1rem;
}

.state-card span {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.state-card strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.fact-list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
}

.fact-list div {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
}

.fact-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.fact-list dt {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.fact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.fact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
}

.timeline-item {
  padding: 1rem;
}

.timeline-item__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.timeline-item h3 {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.timeline-item p,
.timeline-item pre {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.timeline-kind {
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 700;
  padding: 0.1875rem 0.45rem;
}

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

.document-card {
  padding: 0.875rem;
}

.document-card h3 {
  margin: 0.5rem 0;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}

.markdown-body {
  color: var(--foreground);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  line-height: 1.2;
}

.markdown-body code,
.markdown-body pre {
  white-space: pre-wrap;
}

.fine-print {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  font-size: 0.75rem;
}

.pricing-page .current-plan-banner {
  margin-bottom: 2rem;
}

.pricing-page .plan-price {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 650;
}

.pricing-page .plan-interval {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.pricing-page .plan-features {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.pricing-page .plan-features li + li {
  margin-top: 0.375rem;
}

.pricing-page .download-panel .button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .feature-grid,
  .download-grid,
  .health-grid,
  .detail-grid,
  .document-list,
  .oversight-grid,
  .oversight-two-column,
  .product-tour,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .page-heading,
  .case-header,
  .section-heading,
  .inbox-band,
  .app-store-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem 0;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-index .site-header__inner {
    min-height: 57px;
    align-items: center;
    flex-direction: row;
    padding: 0;
  }

  .home-index .nav {
    flex-wrap: nowrap;
  }

  .home-index .nav a:not(.button) {
    padding-inline: 0.5rem;
  }

  .home-index .nav__optional {
    display: none !important;
  }

  .landing-hero {
    padding: 3rem 0 2.5rem;
  }

  .review-proof {
    gap: 0.5rem;
    margin-bottom: 0.875rem;
  }

  .review-score {
    min-width: 7rem;
    padding: 0.55rem 0.65rem;
  }

  .review-stars {
    font-size: 0.875rem;
  }

  .review-proof__note {
    max-width: 12.5rem;
    font-size: 0.78rem;
  }

  .drawn-arrow {
    width: 3rem;
  }

  .landing-hero h1 {
    font-size: 2.1rem;
  }

  .lead {
    font-size: 1rem;
  }

  .oversight-card__top {
    flex-direction: column;
  }

  .readiness-lists {
    grid-template-columns: 1fr;
  }

  .oversight-fact {
    grid-template-columns: 1fr;
  }

  .home-index .section.shell {
    padding: 2.5rem 0 3rem;
  }

  .product-tour,
  .screen-stack {
    gap: 1rem;
  }

  .screen-preview--large {
    min-height: auto;
  }

  .screen-body,
  .screen-preview--large .screen-body {
    padding: 0.9rem;
  }

  .screen-mini-grid,
  .screen-columns,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .section-heading--center h2,
  .app-store-card h2 {
    font-size: 1.55rem;
  }

  .download-panel {
    min-height: auto;
  }

  .download-panel .button {
    width: 100%;
  }

  .screen-heading-row,
  .screen-score {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-grid,
  .case-row {
    grid-template-columns: 1fr;
  }

  .case-row,
  .page-heading,
  .case-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .inbox-code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button--icon {
    width: 100%;
  }
}

@media print {
  .site-header,
  .flash-wrap,
  .actions,
  .button,
  .back-link,
  .inbox-band,
  .compact-form,
  .health-panel,
  .document-list {
    display: none !important;
  }

  body,
  .content-band,
  .timeline-item {
    background: white;
  }
}
