:root {
  color-scheme: light dark;
  --font-sans: "Aptos", "Segoe UI Variable Text", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --bg: #f4f7f5;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --bg-elevated-strong: rgba(255, 255, 255, 0.92);
  --surface: #ffffff;
  --surface-muted: #edf4f1;
  --surface-contrast: #0f172a;
  --text: #16211d;
  --text-soft: #51635c;
  --text-faint: #6d7f77;
  --line: rgba(23, 41, 34, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --good: #11795b;
  --good-soft: rgba(17, 121, 91, 0.12);
  --warn: #b36a07;
  --warn-soft: rgba(179, 106, 7, 0.14);
  --risk: #b42318;
  --risk-soft: rgba(180, 35, 24, 0.12);
  --neutral: #475467;
  --neutral-soft: rgba(71, 84, 103, 0.1);
  --shadow-lg: 0 28px 60px rgba(11, 30, 25, 0.12);
  --shadow-md: 0 18px 40px rgba(11, 30, 25, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --page-max: 1200px;
}

:root[data-theme="dark"] {
  --bg: #0b1311;
  --bg-elevated: rgba(16, 25, 23, 0.78);
  --bg-elevated-strong: rgba(16, 25, 23, 0.92);
  --surface: #111a18;
  --surface-muted: #172420;
  --surface-contrast: #f3f7f5;
  --text: #edf7f3;
  --text-soft: #a7bbb3;
  --text-faint: #8ca299;
  --line: rgba(236, 249, 243, 0.08);
  --line-strong: rgba(236, 249, 243, 0.16);
  --accent: #4fd1c5;
  --accent-strong: #8ce7de;
  --accent-soft: rgba(79, 209, 197, 0.14);
  --good: #4cc38e;
  --good-soft: rgba(76, 195, 142, 0.14);
  --warn: #f8b44c;
  --warn-soft: rgba(248, 180, 76, 0.15);
  --risk: #ff8d80;
  --risk-soft: rgba(255, 141, 128, 0.14);
  --neutral: #c0ccd8;
  --neutral-soft: rgba(192, 204, 216, 0.12);
  --shadow-lg: 0 32px 72px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 20px 42px rgba(0, 0, 0, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1311;
    --bg-elevated: rgba(16, 25, 23, 0.78);
    --bg-elevated-strong: rgba(16, 25, 23, 0.92);
    --surface: #111a18;
    --surface-muted: #172420;
    --surface-contrast: #f3f7f5;
    --text: #edf7f3;
    --text-soft: #a7bbb3;
    --text-faint: #8ca299;
    --line: rgba(236, 249, 243, 0.08);
    --line-strong: rgba(236, 249, 243, 0.16);
    --accent: #4fd1c5;
    --accent-strong: #8ce7de;
    --accent-soft: rgba(79, 209, 197, 0.14);
    --good: #4cc38e;
    --good-soft: rgba(76, 195, 142, 0.14);
    --warn: #f8b44c;
    --warn-soft: rgba(248, 180, 76, 0.15);
    --risk: #ff8d80;
    --risk-soft: rgba(255, 141, 128, 0.14);
    --neutral: #c0ccd8;
    --neutral-soft: rgba(192, 204, 216, 0.12);
    --shadow-lg: 0 32px 72px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 20px 42px rgba(0, 0, 0, 0.24);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.13), transparent 28%),
    radial-gradient(circle at top right, rgba(180, 35, 24, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 25%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--page-max));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.site-header,
.site-footer,
.hero-panel,
.trust-strip,
.summary-panel,
.panel,
.analyzer-card,
.message-card {
  animation: fade-rise 420ms ease both;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-elevated-strong), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 6px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.08rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(11, 30, 25, 0.16);
}

.brand-caption {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-layout {
  display: grid;
  gap: 22px;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-copy,
.analyzer-card,
.panel,
.trust-card,
.summary-panel,
.message-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  padding: 28px;
}

.hero-branding {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-logo-frame {
  width: clamp(96px, 24vw, 148px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(79, 209, 197, 0.2), transparent 55%),
    linear-gradient(180deg, var(--surface-muted), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(11, 30, 25, 0.16);
}

.hero-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.hero-branding-copy {
  display: grid;
  gap: 8px;
}

.hero-kicker,
.hero-tagline {
  margin: 0;
}

.hero-kicker {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-tagline {
  max-width: 30ch;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-accent {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: transparent;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 66ch;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero-points {
  margin: 22px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
}

.analyzer-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.analysis-form {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

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

.url-input {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated-strong);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.url-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: translateY(-1px);
}

.field-hint,
.footer-note,
.panel-subtitle,
.check-detail,
.link-note,
.report-meta small,
.meta-chip span:last-child,
.resource-title {
  color: var(--text-soft);
}

.field-hint,
.form-alert,
.demo-card p,
.trust-card p,
.site-footer p {
  margin: 0;
  line-height: 1.55;
}

.form-alert {
  min-height: 24px;
  font-size: 0.92rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.inline-button {
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f4fffc;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.22);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.inline-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.demo-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-header h2 {
  margin: 0;
  font-size: 1rem;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.demo-url {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-elevated-strong);
  border: 1px dashed var(--line-strong);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.trust-strip {
  display: grid;
  gap: 14px;
}

.trust-card {
  padding: 20px;
}

.trust-card h2,
.panel-header h2,
.summary-copy h2,
.recommendation-copy h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.result-section {
  display: grid;
  gap: 18px;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip {
  display: inline-grid;
  gap: 4px;
  min-width: 160px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.meta-chip span:first-child {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.meta-chip span:last-child {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.summary-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

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

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.status-badge,
.tone-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.tone-positive,
.status-good {
  background: var(--good-soft);
  color: var(--good);
}

.tone-warning,
.status-caution {
  background: var(--warn-soft);
  color: var(--warn);
}

.tone-negative,
.status-risk {
  background: var(--risk-soft);
  color: var(--risk);
}

.tone-unavailable,
.tone-neutral {
  background: var(--neutral-soft);
  color: var(--neutral);
}

.summary-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.summary-priority {
  font-size: 1rem;
}

.summary-copy p,
.recommendation-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.summary-score {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-muted), transparent);
  border: 1px solid var(--line);
}

.summary-sidecard {
  align-content: start;
}

.score-overline {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidecard-status {
  font-size: 1.15rem;
}

.score-value {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.score-value-muted {
  font-size: clamp(2.1rem, 6vw, 3rem);
}

.score-caption {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.score-trace {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.summary-reasons {
  display: grid;
  gap: 12px;
  margin: 2px 0 2px;
}

.reason-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.reason-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reason-label {
  font-weight: 700;
}

.score-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text-soft);
}

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

.panel-slot,
.panel-slot-full {
  min-width: 0;
}

.panel {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 22px;
}

.panel-header {
  display: grid;
  gap: 6px;
}

.check-list,
.rule-list,
.bullet-list,
.link-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-row,
.rule-row,
.external-link-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.check-topline,
.rule-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.check-label,
.rule-label {
  font-weight: 700;
}

.check-detail,
.rule-detail {
  font-size: 0.93rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated-strong);
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.check-link-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.review-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--neutral-soft);
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.resource-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.resource-title {
  margin: 0;
  font-size: 0.96rem;
}

.action-stack {
  display: grid;
  gap: 10px;
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.step-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.step-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.step-label {
  font-weight: 700;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.action-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.action-button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f4fffc;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.rule-impact {
  font-weight: 800;
}

.panel-note {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.external-link-card a {
  font-weight: 700;
  text-decoration: none;
}

.external-link-card a:hover {
  text-decoration: underline;
}

.recommendation-grid {
  display: grid;
  gap: 16px;
}

.highlight-grid {
  display: grid;
  gap: 14px;
}

.highlight-block {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.highlight-block h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.55;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.highlight-positive {
  color: var(--good);
  background: linear-gradient(180deg, var(--good-soft), transparent 120%);
}

.highlight-negative {
  color: var(--risk);
  background: linear-gradient(180deg, var(--risk-soft), transparent 120%);
}

.message-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.message-card {
  width: min(100%, 640px);
  padding: 28px;
}

.message-card h1 {
  margin: 16px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
}

.message-card p {
  color: var(--text-soft);
  line-height: 1.6;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.legal-shell {
  padding-bottom: 56px;
}

.legal-layout {
  display: grid;
  gap: 22px;
}

.legal-sidebar {
  align-self: start;
}

.legal-nav {
  display: grid;
  gap: 10px;
}

.legal-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.legal-nav a[aria-current="page"] {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, var(--accent-soft), transparent 120%);
}

.legal-content {
  display: grid;
  gap: 22px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.legal-ready-pill[data-state="ready"] {
  background: var(--good-soft);
  color: var(--good);
}

.legal-ready-pill[data-state="pending"] {
  background: var(--warn-soft);
  color: var(--warn);
}

.legal-warning {
  border: 1px solid rgba(179, 106, 7, 0.26);
  background: linear-gradient(180deg, var(--warn-soft), transparent 130%);
}

.legal-warning h2,
.legal-article h2,
.legal-article h3 {
  margin-top: 0;
}

.legal-warning p,
.legal-article p,
.legal-article li,
.legal-card p,
.legal-card li {
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-summary-grid {
  display: grid;
  gap: 14px;
}

.legal-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.legal-card .inline-button {
  margin-top: 8px;
}

.legal-definition-list {
  display: grid;
  gap: 6px 18px;
  margin: 0 0 26px;
}

.legal-definition-list dt {
  font-weight: 700;
  color: var(--text);
}

.legal-definition-list dd {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.legal-definition-list a,
.legal-article a,
.site-footer a {
  color: var(--accent-strong);
}

.legal-placeholder {
  color: var(--warn);
}

.site-footer {
  margin-top: 24px;
  padding: 18px 4px 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.footer-note a:hover {
  text-decoration: underline;
}

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}

.loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 10px var(--accent-soft);
  animation: pulse-dot 1.3s ease infinite;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (min-width: 720px) {
  .page-shell {
    width: min(calc(100% - 48px), var(--page-max));
    padding-top: 28px;
  }

  .field-stack {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .hero-panel {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: stretch;
  }

  .analyzer-card {
    grid-template-rows: 1fr auto;
  }

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

  .summary-grid {
    grid-template-columns: 1.6fr 0.8fr;
    align-items: start;
  }

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

  .report-grid-wide {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .panel-slot-wide {
    grid-column: span 1;
  }

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

  .legal-layout {
    grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
    align-items: start;
  }

  .legal-sidebar {
    position: sticky;
    top: 20px;
  }

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

  .legal-definition-list {
    grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .summary-panel {
    padding: 28px;
  }

  .panel {
    padding: 24px;
  }

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

  .report-grid-wide {
    grid-template-columns: 1.4fr 0.9fr;
  }

  .report-grid-wide .panel-slot-wide {
    grid-column: auto;
  }

  .recommendation-grid {
    grid-template-columns: 1.1fr 1fr;
  }

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

@media (max-width: 719px) {
  .hero-branding {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--page-max));
    padding-top: 14px;
  }

  .site-header {
    padding: 12px;
    border-radius: 20px;
  }

  .hero-copy,
  .analyzer-card,
  .panel,
  .summary-panel,
  .message-card {
    padding: 20px;
  }

  .brand-mark {
    gap: 10px;
    padding-right: 0;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hero-logo-frame {
    width: 108px;
    border-radius: 24px;
  }

  .hero-logo-frame img {
    border-radius: 18px;
  }

  .legal-nav a {
    padding: 11px 12px;
  }
}
