:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --panel: #ffffff;
  --ink: #1b2430;
  --muted: #667085;
  --line: #d9ded2;
  --green: #11624f;
  --teal: #158070;
  --blue: #345aa8;
  --amber: #a65700;
  --red: #b42318;
  --mint: #e8f5ef;
  --sky: #eef4ff;
  --warm: #fff1d9;
  --rose: #fff0ef;
  --shadow: 0 18px 40px rgba(38, 51, 33, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #fbfcf8 0, var(--bg) 340px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.app-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, auto);
  gap: 20px;
  align-items: start;
  padding: 10px 0 14px;
}

.brand {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(15, 107, 87, 0.24);
}

.brand-mark.compact {
  width: 38px;
  height: 38px;
  font-size: 13px;
  box-shadow: none;
}

.kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-weight: 900;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: 37px;
  line-height: 1.16;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 18px;
}

.lead {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.top-actions,
.export-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.top-actions button {
  white-space: nowrap;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #0b5b4a;
}

button:disabled {
  cursor: not-allowed;
  background: #98a2b3;
}

.ghost {
  color: var(--ink);
  background: #e8ece3;
}

.ghost:hover:not(:disabled) {
  background: #dfe6d8;
}

.ghost:disabled {
  color: #98a2b3;
  background: #eef1eb;
}

.primary {
  width: 100%;
  margin-top: 12px;
  font-size: 17px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 16px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero-copy h2 {
  max-width: 720px;
  font-size: 25px;
  line-height: 1.25;
}

.hero-copy p:not(.eyebrow) {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow,
.step-label {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.before-after,
.mini-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.before-after div,
.mini-before-after div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
  padding: 12px;
}

.before-after div:last-child,
.mini-before-after div:last-child {
  background: var(--sky);
  border-color: #cedaf7;
}

.before-after strong,
.before-after span,
.mini-before-after strong,
.mini-before-after span {
  display: block;
}

.before-after strong,
.mini-before-after strong {
  margin-bottom: 8px;
  color: var(--green);
}

.before-after span,
.mini-before-after span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.capture,
.dashboard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.capture {
  padding: 16px;
  position: sticky;
  top: 16px;
}

.dashboard {
  padding: 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

#status-pill,
.price-chip {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

#status-pill {
  background: #eef1eb;
  color: var(--muted);
}

.price-chip {
  background: var(--warm);
  color: var(--amber);
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  resize: vertical;
  color: var(--ink);
  line-height: 1.55;
  background: #fbfcfa;
}

textarea:focus,
select:focus,
input:focus {
  outline: 3px solid rgba(23, 138, 122, 0.18);
  border-color: var(--teal);
}

.input-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.save-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px;
}

.save-panel strong,
.save-panel span {
  display: block;
}

.save-panel strong {
  font-size: 13px;
}

.save-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.save-actions button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.ghost.danger {
  color: var(--red);
  background: var(--rose);
}

.ghost.danger:hover:not(:disabled) {
  color: #fff;
  background: var(--red);
}

.meta-row label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

select,
input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
}

.notice {
  margin: 12px 0 0;
  border-left: 4px solid var(--amber);
  background: #fff8eb;
  padding: 10px 12px;
  color: var(--amber);
  font-size: 13px;
  line-height: 1.45;
}

.empty-guide {
  min-height: 420px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 18px;
}

.empty-guide h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.empty-guide ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard.has-results .empty-guide {
  display: none;
}

.dashboard:not(.has-results) .result-only {
  display: none;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 104px;
  border-radius: 8px;
  padding: 15px;
  background: #f8faf5;
  border: 1px solid #e4eadc;
}

.metric.income {
  background: var(--sky);
}

.metric.expense {
  background: var(--mint);
}

.metric.review {
  background: var(--warm);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
}

.review-strip {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.review-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-strip strong,
.review-strip span {
  display: block;
}

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

.try-own-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 16px;
  border: 1px solid #cedaf7;
  border-radius: 8px;
  background: var(--sky);
  padding: 14px;
}

.try-own-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.try-own-card p:not(.step-label) {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.try-own-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cards {
  display: grid;
  gap: 10px;
}

.review-needed,
.no-review,
.details-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.review-needed h3,
.no-review h3 {
  margin: 0;
  font-size: 18px;
}

.review-needed p,
.no-review p {
  margin: 6px 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.review-card {
  display: grid;
  gap: 12px;
  border: 1px solid #e9c994;
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
}

.review-card + .review-card {
  margin-top: 10px;
}

.review-card strong,
.review-card span {
  display: block;
}

.review-question {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 900;
}

.review-card span {
  margin-top: 5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-chip {
  min-height: 36px;
  border: 1px solid #d8c095;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

.category-chip:hover {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.review-card details,
.details-panel {
  color: var(--muted);
}

.review-card summary,
.details-panel summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 900;
}

.review-card details .card-fields {
  margin-top: 10px;
}

.no-review {
  background: var(--mint);
}

.details-panel {
  margin-top: 10px;
}

.confirmed-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.confirmed-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #edf1e8;
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px;
}

.confirmed-row div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.confirmed-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.item-card {
  display: grid;
  grid-template-columns: minmax(290px, 0.86fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.card-fields {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) minmax(120px, 1fr) minmax(92px, 0.9fr);
  gap: 8px;
}

.card-fields label {
  min-width: 0;
}

.card-fields label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.type {
  width: max-content;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
  font-style: normal;
}

.type.income {
  background: var(--sky);
  color: var(--blue);
}

.type.expense {
  background: var(--mint);
  color: var(--green);
}

.type.unknown {
  background: var(--warm);
  color: var(--amber);
}

.memo {
  min-width: 0;
}

.memo strong {
  display: inline-block;
  margin-right: 8px;
  font-size: 18px;
}

.memo span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.category-select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.type-select,
.amount-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.type-select.income {
  border-color: rgba(47, 95, 189, 0.34);
  background: var(--sky);
}

.type-select.expense {
  border-color: rgba(15, 107, 87, 0.34);
  background: var(--mint);
}

.type-select.unknown {
  border-color: rgba(177, 92, 0, 0.34);
  background: var(--warm);
}

.export-panel {
  margin-top: 16px;
}

.review-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #e9c994;
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
}

.review-cta h3 {
  margin: 0;
  font-size: 17px;
}

.review-cta p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checklist {
  margin-top: 16px;
  border-radius: 8px;
  background: #f8faf5;
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.6;
}

.checklist ul {
  margin: 0;
  padding-left: 20px;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.sales-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #edd6b7;
  border-radius: 8px;
  background: #fffaf0;
  padding: 18px;
}

.sales-panel p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.price-box {
  border: 1px solid #e9c994;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.price-box strong {
  display: block;
  color: var(--amber);
  font-size: 34px;
  line-height: 1;
}

.price-box span,
.price-box small {
  display: block;
}

.price-box span {
  margin-top: 8px;
  font-weight: 900;
}

.price-box small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.proof-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px 10px;
}

.purchase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #cedaf7;
  border-radius: 8px;
  background: var(--sky);
  padding: 18px;
}

.purchase-panel p:not(.step-label) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.landing-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 46px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 222, 210, 0.86);
  background: rgba(251, 252, 248, 0.92);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1120px, calc(100% - 28px));
  min-height: 62px;
  margin: 0 auto;
}

.site-brand,
.site-nav {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  justify-content: center;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

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

.header-cta {
  min-height: 38px;
  padding: 0 14px;
}

.landing-hero {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
}

.landing-nav,
.landing-brand,
.landing-nav-actions,
.landing-actions {
  display: flex;
  align-items: center;
}

.landing-nav {
  justify-content: space-between;
  gap: 16px;
}

.landing-status {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.landing-brand {
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.landing-nav-actions,
.landing-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.button-link,
.text-link {
  display: inline-grid;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button-link {
  padding: 0 16px;
  color: #fff;
  background: var(--green);
}

.button-link:hover {
  background: #0b5b4a;
}

.disabled-link,
.disabled-link:hover {
  color: #475467;
  background: #e8ece3;
  cursor: not-allowed;
}

.secondary-link {
  color: var(--ink);
  background: #e8ece3;
}

.secondary-link:hover {
  background: #dfe6d8;
}

.buy-link {
  white-space: nowrap;
}

.price-button {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

.text-link {
  color: var(--green);
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 28px;
  align-items: center;
  padding-top: 12px;
}

.landing-copy h1 {
  max-width: 790px;
  font-size: 56px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.landing-copy,
.hero-visual,
.hero-demo-card {
  min-width: 0;
}

.landing-actions {
  margin-top: 22px;
}

.section-actions {
  margin-top: 16px;
}

.mobile-hero-cta {
  display: none;
}

.landing-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.launch-warning {
  margin: 16px 0 0;
  border-left: 4px solid var(--amber);
  background: #fff8eb;
  padding: 12px 14px;
  color: var(--amber);
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  margin: 0;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual picture,
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.hero-visual img {
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(12, 32, 27, 0.16));
  pointer-events: none;
}

.hero-demo-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(20, 31, 26, 0.16);
  padding: 14px;
  backdrop-filter: blur(10px);
}

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

.demo-card-head span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.demo-toggle {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.demo-flow {
  position: relative;
  min-height: 210px;
}

.demo-pane {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 14px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.demo-pane.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.demo-pane.before {
  border: 1px solid var(--line);
  background: #fbfcfa;
}

.demo-pane.after {
  border: 1px solid #cedaf7;
  background: var(--sky);
}

.demo-pane strong {
  color: var(--green);
}

.demo-pane span {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.demo-pane b {
  color: var(--ink);
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.demo-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 6px 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.landing-section {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.section-head.compact {
  margin-bottom: 16px;
}

.section-head.compact h2,
.landing-section h2 {
  max-width: 760px;
  font-size: 26px;
  line-height: 1.25;
}

.landing-section p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.value-grid article,
.purchase-grid article,
.scope-grid article {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 14px;
}

.value-grid strong,
.purchase-grid strong,
.scope-grid strong {
  display: block;
  color: var(--green);
  font-size: 17px;
}

.scope-grid ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.landing-section.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: center;
  border-color: #edd6b7;
  background: #fffaf0;
}

.landing-price {
  background: #fff;
}

.target-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.target-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 800;
}

.document-shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.document-hero,
.document-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.document-hero {
  padding: 24px;
}

.document-hero h1 {
  font-size: 40px;
}

.document-hero p:not(.step-label),
.document-section p {
  color: var(--muted);
  line-height: 1.7;
}

.document-section {
  margin-top: 16px;
  padding: 20px;
}

.document-section h2 {
  font-size: 22px;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.legal-list div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
}

.legal-list dt {
  color: var(--green);
  font-weight: 900;
}

.legal-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.notice-block {
  border-color: #e9c994;
  background: #fffaf0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.site-footer a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
}

@media (max-width: 900px) {
  .topbar,
  .layout,
  .hero-panel,
  .sales-panel,
  .purchase-panel,
  .before-after,
  .mini-before-after,
  .review-cta,
  .try-own-card,
  .landing-hero-grid,
  .landing-section.split,
  .value-grid,
  .purchase-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: stretch;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .try-own-actions {
    justify-content: stretch;
  }

  .save-panel {
    grid-template-columns: 1fr;
  }

  .save-actions {
    justify-content: stretch;
  }

  .save-actions button {
    flex: 1;
  }

  .try-own-actions button {
    flex: 1;
  }

  .top-actions button {
    flex: 1;
  }

  .capture {
    position: static;
  }

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

  .item-card {
    grid-template-columns: 1fr;
  }

  .card-fields {
    grid-template-columns: 1fr;
  }

  .confirmed-row {
    grid-template-columns: 1fr;
  }

  .legal-list div {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 30px;
  }

  .landing-copy h1 {
    font-size: 40px;
  }
}

@media (max-width: 620px) {
  .site-header-inner {
    min-height: 58px;
  }

  .site-brand span:last-child {
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta {
    min-height: 36px;
  }

  .landing-shell {
    width: 100%;
    padding: 14px 14px 46px;
  }

  .document-shell {
    width: 100%;
    padding: 14px 14px 42px;
  }

  .document-hero h1 {
    font-size: 30px;
  }

  .landing-hero-grid,
  .landing-copy,
  .hero-visual,
  .hero-demo-card {
    width: min(100%, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-visual picture,
  .hero-visual img {
    min-height: 500px;
  }

  .hero-demo-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
  }

  .demo-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-flow {
    min-height: 230px;
  }

  .landing-nav {
    align-items: flex-start;
  }

  .landing-nav,
  .landing-nav-actions,
  .landing-actions {
    flex-direction: column;
  }

  .landing-nav-actions,
  .landing-actions {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .landing-nav-actions .button-link,
  .landing-actions .button-link,
  .landing-actions button {
    width: max-content;
    max-width: calc(100vw - 28px);
  }

  .landing-nav-actions {
    align-items: stretch;
  }

  .landing-copy h1 {
    max-width: 320px;
    font-size: 30px;
    line-height: 1.16;
    word-break: break-all;
  }

  .landing-copy .lead,
  .landing-note {
    max-width: 320px;
    word-break: break-all;
  }

  .landing-copy .landing-actions,
  .landing-copy > .landing-note {
    display: none;
  }

  .mobile-hero-cta {
    display: grid;
    gap: 8px;
    justify-items: start;
    width: min(100%, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
}
