:root {
  --ink: #11211f;
  --muted: #64706d;
  --paper: #f8f5ed;
  --paper-strong: #fffdf7;
  --line: rgba(17, 33, 31, 0.12);
  --brand: #314d43;
  --brand-2: #8a6d3b;
  --brand-3: #d8c28a;
  --danger: #8f3d2f;
  --success: #2f6f56;
  --shadow: 0 24px 70px rgba(30, 42, 38, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 194, 138, 0.38), transparent 32rem),
    radial-gradient(circle at top right, rgba(49, 77, 67, 0.18), transparent 28rem),
    var(--paper);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.27;
  background-image:
    linear-gradient(rgba(17, 33, 31, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 33, 31, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
}

code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.45rem;
  background: rgba(49, 77, 67, 0.09);
  color: #243c34;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
}

.compact-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(248, 245, 237, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: #fffdf7;
  background: linear-gradient(135deg, var(--brand), #182a25);
  box-shadow: 0 12px 28px rgba(49, 77, 67, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: -0.1rem;
}

.top-nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a {
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
}

.top-nav a:hover {
  background: rgba(49, 77, 67, 0.08);
  color: var(--ink);
}

.pattern-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(248, 245, 237, 0.76)),
    repeating-linear-gradient(135deg, rgba(49, 77, 67, 0.055) 0 10px, transparent 10px 22px);
  box-shadow: var(--shadow);
}

.pattern-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  right: -110px;
  top: -90px;
  background: radial-gradient(circle, rgba(216, 194, 138, 0.72), rgba(216, 194, 138, 0));
}

.hero,
.flat-hero,
.report-hero {
  margin-top: 32px;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy,
.flat-hero > div,
.report-hero > div,
.lookup-card,
.price-panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.card-kicker,
.flat-card__topline,
.module-status,
.item-id {
  margin: 0 0 0.75rem;
  color: var(--brand-2);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  max-width: 920px;
}

.report-hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.95rem;
}

.button-small {
  min-height: 38px;
  padding: 0.58rem 0.8rem;
  font-size: 0.86rem;
}

.button-primary {
  background: var(--brand);
  color: #fffdf7;
  box-shadow: 0 12px 28px rgba(49, 77, 67, 0.2);
}

.button-secondary {
  background: rgba(255, 253, 247, 0.78);
  border-color: var(--line);
  color: var(--ink);
}

.lookup-card,
.price-panel,
.check-card,
.json-card,
.flat-card,
.module-card,
.not-found-card,
.report-cta-card,
.damage-item-card,
.notice-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, 0.84);
  box-shadow: 0 16px 38px rgba(30, 42, 38, 0.08);
}

.lookup-card,
.price-panel,
.check-card,
.json-card,
.not-found-card,
.notice-panel {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.lookup-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.lookup-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.lookup-row {
  display: flex;
  gap: 0.6rem;
}

.lookup-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1rem;
  font: inherit;
  color: var(--ink);
  background: #fffdf7;
  outline: none;
}

.lookup-row input:focus {
  border-color: rgba(49, 77, 67, 0.55);
  box-shadow: 0 0 0 4px rgba(49, 77, 67, 0.1);
}

.lookup-message {
  min-height: 1.4rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.text-button {
  display: inline;
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.trust-row {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.trust-row div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 247, 0.62);
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  color: var(--brand-2);
  font-size: 0.82rem;
}

.trust-row span {
  margin-top: 0.35rem;
  font-weight: 800;
}

.section,
.section-grid {
  margin: 74px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.steps,
.flat-grid,
.module-grid,
.report-cta-grid,
.evidence-grid {
  display: grid;
  gap: 1rem;
}

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

.steps article,
.flat-card,
.module-card,
.report-cta-card,
.damage-item-card {
  padding: 1.25rem;
}

.steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, 0.62);
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.steps span,
.flat-card p,
.module-card p,
.report-cta-card p,
.check-card p,
.notice-panel p,
.damage-item-card p {
  color: var(--muted);
}

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

.flat-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.flat-card__meta span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(49, 77, 67, 0.08);
  color: #253b35;
  font-size: 0.86rem;
  font-weight: 800;
}

.tiny-note {
  font-size: 0.92rem;
}

.card-link {
  font-weight: 900;
  color: var(--brand);
  text-decoration: none;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.json-card pre {
  margin: 0;
  overflow-x: auto;
}

.json-card code {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--ink);
  line-height: 1.65;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.price-list {
  margin: 0;
}

.price-list div {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding: 0.82rem 0;
}

.price-list div:last-child {
  border-bottom: 0;
}

.price-list dt {
  color: var(--muted);
  font-weight: 800;
}

.price-list dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.compact-price-list {
  margin-top: 1rem;
}

.total-amount {
  display: block;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.07em;
  color: var(--brand);
}

.clean-list,
.numbered-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.clean-list li,
.numbered-list li {
  margin: 0.55rem 0;
}

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

.module-card--live {
  border-color: rgba(47, 111, 86, 0.35);
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(234, 244, 238, 0.86));
}

.module-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

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

.report-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 260px;
}

.mini-metrics {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.mini-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.mini-metrics dt {
  color: var(--muted);
  font-weight: 800;
}

.mini-metrics dd {
  margin: 0;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 16px 38px rgba(30, 42, 38, 0.08);
}

.damage-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.damage-table th,
.damage-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.damage-table th {
  color: var(--brand-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.damage-table tbody tr:last-child td {
  border-bottom: 0;
}

.amount-cell {
  font-weight: 900;
  white-space: nowrap;
}

.category-total-list {
  display: grid;
  gap: 0.3rem;
}

.category-total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.58rem 0;
}

.category-total-row:first-child {
  border-top: 0;
}

.damage-item-list {
  display: grid;
  gap: 1rem;
}

.damage-item-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.damage-item-header h3 {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.muted-line {
  color: var(--muted);
}

.item-amount {
  min-width: max-content;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(49, 77, 67, 0.09);
  color: var(--brand);
  font-size: 1.1rem;
}

.damage-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.damage-meta div {
  padding: 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(49, 77, 67, 0.06);
}

.damage-meta dt {
  color: var(--brand-2);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.damage-meta dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

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

.evidence-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffdf7;
}

.evidence-card img,
.evidence-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8e2d6;
}

.evidence-card--video video {
  aspect-ratio: 16 / 9;
}

.evidence-card figcaption {
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-evidence-note {
  grid-column: 1 / -1;
  padding: 1rem;
  border: 1px dashed rgba(143, 61, 47, 0.35);
  border-radius: var(--radius-md);
  background: rgba(143, 61, 47, 0.05);
}

.notice-panel {
  border-color: rgba(143, 61, 47, 0.24);
}

.site-footer {
  margin: 80px 0 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .hero,
  .flat-hero,
  .report-hero,
  .section-grid,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .trust-row,
  .flat-grid,
  .module-grid,
  .report-cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem 0;
    position: static;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .hero,
  .flat-hero,
  .report-hero {
    margin-top: 18px;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 4rem);
  }

  .lookup-row,
  .site-footer,
  .damage-item-header {
    flex-direction: column;
  }

  .trust-row,
  .flat-grid,
  .module-grid,
  .report-cta-grid,
  .damage-meta,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

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

  .price-list dd {
    text-align: left;
  }
}
