:root {
  color: #17211f;
  background: #f6f7f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  --ink: #17211f;
  --muted: #66756f;
  --line: #dfe5de;
  --paper: #ffffff;
  --wash: #eef3ee;
  --teal: #17675e;
  --teal-dark: #103f3a;
  --green: #8bbf66;
  --coral: #d96f57;
  --gold: #c49337;
  --blue: #446d9b;
  --shadow: 0 18px 42px rgba(27, 45, 38, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(246, 247, 244, .96) 420px),
    #f6f7f4;
}

body,
html {
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 6vw, 84px);
  color: white;
  background: rgba(16, 63, 58, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand::before {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), #ffffff);
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.brand span {
  color: #cfe9bd;
}

nav {
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
.link {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, .88);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

nav a:hover,
.link:hover {
  color: white;
  background: rgba(255, 255, 255, .11);
  transform: translateY(-1px);
}

.nav-cta {
  color: #113b35;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.nav-cta:hover {
  color: #113b35;
  background: white;
}

.short-label {
  display: none;
}

.link {
  border: 0;
  background: none;
  cursor: pointer;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.safety-ribbon,
.notice,
.soft-note {
  border: 1px solid #cddfce;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 12px 14px;
  color: #315148;
  background: #eff7ed;
}

.safety-ribbon {
  margin-bottom: 22px;
  font-size: 14px;
}

.notice {
  margin-bottom: 18px;
}

.soft-note {
  margin: 0 0 18px;
  background: #f7fbf6;
}

.hero,
.login-shell,
.showcase-grid,
.review-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
}

.intro-hero {
  min-height: 440px;
  padding: clamp(36px, 7vw, 82px) 0 44px;
}

.hero-copy {
  animation: rise-in .55s ease both;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(40px, 6vw, 72px);
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

.lead {
  max-width: 690px;
  color: #41514c;
  font-size: 20px;
}

.lead.small {
  font-size: 16px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 850;
}

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

.hero-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(218, 228, 218, .95);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(247, 250, 247, .93));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(23, 103, 94, .08),
    0 22px 52px rgba(27, 45, 38, .11);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: float-in .65s ease both;
}

.hero-preview::before {
  position: absolute;
  inset: 0 0 auto;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0));
  content: "";
}

.hero-preview:hover {
  border-color: #c7d6c9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(23, 103, 94, .08),
    0 28px 58px rgba(27, 45, 38, .16);
  transform: translateY(-4px) scale(1.01);
}

.preview-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.preview-top h2 {
  font-size: 24px;
}

.decision-chip,
.chip,
.risk {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.decision-chip {
  color: #966012;
  background: #fff9e9;
  border: 1px solid #e8c15a;
}

.preview-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip.amber {
  color: #8f5e0f;
  background: #fff8e9;
  border: 1px solid #f0d17a;
}

.chip.green {
  color: #168963;
  background: #edf8f1;
  border: 1px solid #aee0c4;
}

.chip.coral {
  color: #9f301f;
  background: #fff2ed;
  border: 1px solid #f2beb0;
}

.preview-list {
  position: relative;
  display: grid;
  gap: 10px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid #dfe7df;
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 20px rgba(27, 45, 38, .04);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.preview-row:hover {
  border-color: #bfd1c2;
  background: white;
  transform: translateX(4px);
}

.preview-row span {
  font-weight: 800;
}

.risk.high {
  color: #9f301f;
  background: #fff0ef;
  border: 1px solid #f1b9b5;
}

.risk.medium {
  color: #8f5e0f;
  background: #fff8e9;
  border: 1px solid #f0d17a;
}

.risk.ready {
  color: #168963;
  background: #edf8f1;
  border: 1px solid #aee0c4;
}

.preview-note {
  position: relative;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  overflow: hidden;
  border-radius: 8px;
  background: #e8eee8;
  box-shadow: var(--shadow);
  transform: rotate(.6deg);
  animation: float-in .7s ease both;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-band {
  padding: 44px 0;
}

.problems-section {
  margin: 18px calc(50% - 50vw) 0;
  padding: clamp(38px, 6vw, 68px) max(24px, calc(50vw - 580px));
  background:
    linear-gradient(180deg, rgba(238, 243, 238, .88), rgba(246, 247, 244, .98));
  border-block: 1px solid rgba(223, 229, 222, .9);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.widget-section {
  position: relative;
  isolation: isolate;
}

.widget-heading {
  border: 1px solid rgba(223, 229, 222, .9);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(241, 247, 241, .82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(23, 103, 94, .06),
    0 18px 38px rgba(27, 45, 38, .08);
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(218, 228, 218, .95);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 22px 52px rgba(27, 45, 38, .08);
}

.problem-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 34px 28px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 251, 247, .92));
  border-right: 1px solid rgba(218, 228, 218, .95);
  border-bottom: 1px solid rgba(218, 228, 218, .95);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.problem-card:nth-child(3n) {
  border-right: 0;
}

.problem-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.problem-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, 0));
  content: "";
}

.problem-card:hover {
  z-index: 1;
  background: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 24px 44px rgba(27, 45, 38, .12);
  transform: translateY(-4px) scale(1.01);
}

.problem-card h3 {
  max-width: 280px;
  margin: 6px auto 0;
  font-size: 21px;
  line-height: 1.25;
}

.problem-card p {
  max-width: 260px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.problem-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3f8f6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 10px 20px rgba(27, 45, 38, .08);
}

.problem-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.problem-icon.teal {
  color: #42a991;
  background: #edf8f4;
}

.problem-icon.amber {
  color: #e1a51a;
  background: #fff8e9;
}

.problem-icon.blue {
  color: #0d5c92;
  background: #eef6fb;
}

.problem-icon.green {
  color: #168963;
  background: #edf8f1;
}

.problem-icon.coral {
  color: #dd6742;
  background: #fff2ed;
}

.problem-icon.violet {
  color: #7f49df;
  background: #f4efff;
}

.story-step,
.showcase-panel,
.mini-product,
.side-guide,
.flow-widget {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px rgba(27, 45, 38, .07);
}

.story-step::before,
.glass-widget::before,
.side-guide::before {
  position: absolute;
  inset: 0 0 auto;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0));
  content: "";
}

.story-step {
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(244, 248, 244, .9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(23, 103, 94, .08),
    0 10px 30px rgba(27, 45, 38, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.story-step:hover,
.card:hover,
.mini-product:hover,
.flow-widget:hover,
.showcase-panel:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: #c7d6c9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(23, 103, 94, .08),
    0 22px 46px rgba(27, 45, 38, .13);
}

.step-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-weight: 850;
}

.showcase-grid {
  align-items: stretch;
  margin: 26px 0 10px;
}

.showcase-panel,
.mini-product,
.side-guide {
  padding: 24px;
}

.glass-widget {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(240, 246, 240, .86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(23, 103, 94, .08),
    0 16px 38px rgba(27, 45, 38, .09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mini-product {
  background: #17211f;
  color: white;
}

.dark-widget {
  background:
    linear-gradient(145deg, rgba(35, 51, 47, 1), rgba(18, 31, 28, 1));
  border-color: rgba(255, 255, 255, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    0 18px 42px rgba(27, 45, 38, .16);
}

.mini-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
}

.mini-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfe9bd;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .10);
}

.mini-row em {
  color: #f6df9f;
  font-style: normal;
  font-weight: 800;
}

.mini-row.danger {
  border-left: 4px solid var(--coral);
}

.mini-row.calm {
  border-left: 4px solid var(--blue);
}

.mini-note {
  margin-top: 20px;
  color: #c6d7d2;
}

.easy-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.flow-widget {
  min-height: 190px;
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.flow-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(145deg, var(--teal), var(--blue));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 10px 18px rgba(23, 103, 94, .18);
  font-size: 13px;
  font-weight: 900;
}

.login-shell {
  min-height: 560px;
}

.login-story {
  padding: 12px 0;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-list span {
  border-radius: 8px;
  padding: 10px 12px;
  background: #eaf1e8;
  color: #315148;
  font-weight: 800;
}

.card {
  padding: 22px;
  margin: 16px 0;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: rise-in .38s ease both;
}

.narrow {
  max-width: 470px;
  width: 100%;
  margin: 0 auto;
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.heading h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dashboard-grid .card:first-child {
  border-top: 4px solid var(--teal);
}

.dashboard-grid .card:last-child {
  border-top: 4px solid var(--gold);
}

.metric h2 {
  color: var(--teal-dark);
  font-size: 42px;
  margin: 4px 0;
}

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

.review-form-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.side-guide {
  position: sticky;
  top: 92px;
  background: #fdfbf5;
}

.side-guide ol {
  margin: 16px 0 0;
  padding-left: 20px;
}

.finding,
.source-card {
  border-top: 1px solid #edf1ed;
  padding: 16px 0;
}

.finding:first-of-type,
.source-card:first-of-type {
  border-top: 0;
}

.finding-form {
  border: 1px solid #e3e9e2;
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
  background: #f8faf7;
}

.source-card h3 {
  margin: 0 0 4px;
}

.source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.source-grid {
  display: grid;
  grid-template-columns: 1fr 110px 110px 1.4fr;
  gap: 18px;
  align-items: start;
}

.severity,
.pill,
.warning {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 850;
  text-transform: capitalize;
  white-space: nowrap;
}

.severity {
  text-transform: uppercase;
}

.severity.red {
  background: #ffe7df;
  color: #9f301f;
}

.severity.yellow {
  background: #fff3cb;
  color: #755800;
}

.severity.green {
  background: #e6f2e7;
  color: #17675e;
}

.pill {
  background: #e8f1e7;
  color: #315148;
}

.pill.selected {
  background: var(--teal);
  color: white;
}

.warning {
  background: #ffe7df;
  color: #9f301f;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.error {
  border-radius: 8px;
  padding: 10px 12px;
  color: #8f2424;
  background: #fff0ef;
}

label {
  display: block;
  margin: 14px 0;
  color: #263531;
  font-weight: 800;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #becdc5;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 103, 94, .13);
}

button,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  color: white;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(23, 103, 94, .18);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

button:hover,
.button:hover {
  background: var(--teal-dark);
  box-shadow: 0 16px 30px rgba(23, 103, 94, .24);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--teal-dark);
  background: white;
  box-shadow: inset 0 0 0 1px #c9d8cf;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid #edf1ed;
}

th {
  color: #4f625c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

tr {
  transition: background .18s ease;
}

tbody tr:hover {
  background: #f7faf7;
}

td,
p,
li,
.muted,
.finding,
.card {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.path-cell {
  display: inline-block;
  max-width: 100%;
  font-size: 13px;
}

code {
  border-radius: 6px;
  padding: 2px 6px;
  background: #eef3ee;
}

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(.6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(.6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 980px) {
  header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  nav {
    width: 100%;
    margin: 0 -2px;
    padding: 2px 2px 6px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .app-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a,
  .link {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
  }

  .full-label {
    display: none;
  }

  .short-label {
    display: inline;
  }

  .hero,
  .login-shell,
  .showcase-grid,
  .review-form-layout {
    grid-template-columns: 1fr;
  }

  .intro-hero,
  .login-shell {
    min-height: auto;
  }

  .intro-hero {
    padding-top: 20px;
  }

  .story-steps {
    grid-template-columns: 1fr 1fr;
  }

  .problem-grid {
    grid-template-columns: 1fr 1fr;
  }

  .problem-card:nth-child(3n) {
    border-right: 1px solid rgba(218, 228, 218, .95);
  }

  .problem-card:nth-child(2n) {
    border-right: 0;
  }

  .problem-card:nth-last-child(-n + 3) {
    border-bottom: 1px solid rgba(218, 228, 218, .95);
  }

  .problem-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .easy-flow {
    grid-template-columns: 1fr;
  }

  .side-guide {
    position: static;
  }
}

@media (max-width: 700px) {
  header {
    position: sticky;
  }

  .brand {
    font-size: 17px;
  }

  .brand::before {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  main {
    width: min(100% - 24px, 1160px);
    margin-top: 14px;
    margin-bottom: 40px;
  }

  .safety-ribbon,
  .notice,
  .soft-note {
    padding: 10px 12px;
    font-size: 13px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  h2 {
    font-size: 25px;
  }

  .lead {
    font-size: 17px;
  }

  .hero,
  .login-shell,
  .showcase-grid,
  .review-form-layout {
    gap: 18px;
  }

  .intro-hero {
    padding: 14px 0 26px;
  }

  .hero-preview,
  .showcase-panel,
  .mini-product,
  .side-guide,
  .card,
  .story-step,
  .flow-widget {
    padding: 16px;
  }

  .preview-top {
    display: grid;
    gap: 10px;
  }

  .preview-top h2 {
    font-size: 21px;
  }

  .decision-chip,
  .chip,
  .risk,
  .pill,
  .warning,
  .severity {
    white-space: normal;
  }

  .preview-row {
    padding: 12px;
    gap: 10px;
  }

  .preview-row:hover,
  .story-step:hover,
  .card:hover,
  .mini-product:hover,
  .flow-widget:hover,
  .showcase-panel:hover,
  .hero-preview:hover,
  .problem-card:hover {
    transform: none;
  }

  .heading {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .grid,
  .story-steps,
  .easy-flow,
  .problem-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .problem-card,
  .problem-card:nth-child(2n),
  .problem-card:nth-child(3n),
  .problem-card:nth-last-child(-n + 2),
  .problem-card:nth-last-child(-n + 3) {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid rgba(218, 228, 218, .95);
  }

  .problems-section {
    margin-inline: calc(50% - 50vw);
    padding: 30px 12px;
  }

  .problem-card {
    align-items: flex-start;
    min-height: auto;
    padding: 22px 18px;
    text-align: left;
  }

  .problem-card h3,
  .problem-card p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .problem-card h3 {
    font-size: 19px;
  }

  .problem-card:last-child {
    border-bottom: 0;
  }

  .source-card {
    padding: 14px 0;
  }

  .source-meta {
    gap: 6px;
  }

  .mini-row {
    display: grid;
    padding: 13px;
  }

  .trust-list span {
    padding: 9px 10px;
    font-size: 13px;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-actions,
  .hero-actions .button,
  form button:not(.link),
  .heading .button {
    width: 100%;
  }

  th,
  td {
    padding: 12px 10px;
  }
}

@media (max-width: 430px) {
  main {
    width: min(100% - 18px, 1160px);
  }

  nav {
    gap: 6px;
  }

  nav a,
  .link {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .safety-ribbon {
    margin-bottom: 14px;
  }

  h1 {
    font-size: 31px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-preview,
  .card {
    border-radius: 8px;
  }

  .preview-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-shell {
    gap: 14px;
  }

  input,
  select,
  textarea {
    padding: 11px;
  }
}
