:root {
  --ink: #101522;
  --muted: #5b6270;
  --line: #d8dde7;
  --paper: #f8f7f3;
  --panel: #ffffff;
  --navy: #17243b;
  --green: #10624f;
  --gold: #b98632;
  --red: #9f2f28;
  --shadow: 0 24px 70px rgba(16, 21, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(248, 247, 243, 0.94);
  border-bottom: 1px solid rgba(16, 21, 34, 0.1);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--green);
  color: white;
  border-radius: 6px;
  font-weight: 800;
}

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

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

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(110deg, rgba(23, 36, 59, 0.98), rgba(18, 77, 65, 0.92)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 80px);
  color: white;
}

.section-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.06rem, 1.8vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #1a140a;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: white;
}

.button.secondary.dark {
  border-color: rgba(16, 21, 34, 0.22);
  color: var(--ink);
}

.tool-section,
.lookup-section,
.calculators-section,
.content-band,
.split-section,
.lawyer-section,
.sources {
  padding: clamp(52px, 7vw, 92px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2,
.split-section h2,
.lawyer-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:not(.section-label),
.lawyer-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-visual,
.ticket-preview,
.tool-card,
.result-card,
.lookup-card,
.calculator-card,
.dos-grid article {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid rgba(16, 21, 34, 0.09);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  align-self: stretch;
  background: #0f1828;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 17, 27, 0.72));
}

.ticket-preview {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  width: min(88%, 390px);
  padding: 18px;
  box-shadow: 0 18px 45px rgba(16, 21, 34, 0.22);
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--line);
}

.ticket-top span,
.risk-strip strong {
  color: var(--muted);
  font-size: 0.85rem;
}

.ticket-top strong {
  font-size: 1.6rem;
}

.risk-strip {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
  margin-top: 16px;
}

.risk-strip div {
  padding: 14px;
  background: #f0f3f5;
  border-radius: 6px;
}

.risk-strip span {
  display: block;
  font-weight: 900;
}

.lookup-section {
  background: #eef2ef;
}

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

.lookup-card {
  padding: 24px;
  box-shadow: none;
}

.lookup-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.lookup-card p {
  color: var(--muted);
}

.lookup-card ul {
  margin: 16px 0 22px;
  padding-left: 20px;
}

.lookup-card li {
  margin: 7px 0;
}

.lookup-form .button {
  width: 100%;
}

.lookup-mode-group,
.contact-method-group {
  margin-bottom: 18px;
}

.radio-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 12px 0;
  color: var(--ink);
  font-weight: 750;
}

input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.lookup-mode-panel {
  display: none;
}

.lookup-mode-panel.active {
  display: block;
}

.consent-row {
  margin: 18px 0;
}

.lookup-result h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.lookup-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f3ef;
  color: var(--green);
  font-weight: 900;
}

.lookup-status.error {
  background: #f8e8e5;
  color: var(--red);
}

.lookup-warning {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 5px solid var(--red);
  background: white;
  color: var(--ink);
}

.calculators-section {
  background: white;
}

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

.calculator-card {
  padding: 24px;
  box-shadow: none;
}

.calculator-card h3 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.tool-output {
  margin-top: 18px;
  padding: 16px;
  border-left: 4px solid var(--green);
  background: #eef6f2;
  color: var(--ink);
}

.tool-output.warning {
  border-left-color: var(--red);
  background: #fbefed;
}

.tool-output h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.tool-output p {
  margin: 0;
  color: var(--muted);
}

.tool-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.tool-link-grid a {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.tool-link-grid a:hover {
  border-color: var(--green);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.tool-card,
.result-card {
  padding: 24px;
}

label,
legend {
  display: block;
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 850;
}

select {
  width: 100%;
  min-height: 48px;
  margin: 0 0 20px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

button {
  font: inherit;
  cursor: pointer;
}

.field-row {
  margin-bottom: 16px;
}

fieldset {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 12px 0;
  color: var(--muted);
  font-weight: 650;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.result-card h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.12;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.result-meta div {
  padding: 14px;
  background: #f1f4f2;
  border-radius: 6px;
}

.result-meta strong {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.result-meta span {
  display: block;
  margin-top: 4px;
  font-weight: 900;
}

.severity {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f3ef;
  color: var(--green);
  font-weight: 900;
}

.severity.high,
.severity.critical {
  background: #f8e8e5;
  color: var(--red);
}

.result-card ul,
.dos-grid ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.result-card li,
.dos-grid li {
  margin: 8px 0;
}

.note {
  margin-top: 18px;
  padding: 14px;
  border-left: 4px solid var(--gold);
  background: #fff8eb;
  color: #473416;
}

.content-band {
  background: white;
}

.media-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.46fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: end;
  margin-bottom: 28px;
}

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

.inline-photo {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 21, 34, 0.16);
}

.inline-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step-list article {
  min-height: 240px;
  padding: 24px;
  background: white;
}

.step-list span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 26px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  font-weight: 900;
}

.step-list h3,
.dos-grid h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.step-list p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.78fr 1.2fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

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

.dos-grid article {
  padding: 24px;
}

.lawyer-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--navy);
  color: white;
}

.lawyer-section p {
  color: rgba(255, 255, 255, 0.78);
}

.lawyer-copy {
  display: grid;
  gap: 24px;
}

.lawyer-photo {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.lawyer-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sources {
  background: white;
}

.sources h2 {
  margin: 0 0 12px;
}

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

.sources li {
  margin: 8px 0;
  color: var(--muted);
}

.sources a {
  color: var(--green);
  font-weight: 800;
}

.subpage-hero {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(110deg, rgba(23, 36, 59, 0.98), rgba(18, 77, 65, 0.92)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 80px);
  color: white;
}

.subpage-hero h1 {
  max-width: 1040px;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
}

.subpage-hero p:not(.section-label) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.subpage-hero .button {
  margin-top: 16px;
}

.subpage-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 64px);
  background: var(--line);
}

.subpage-content article {
  min-height: 260px;
  padding: 26px;
  background: white;
}

.subpage-content h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.subpage-content p,
.subpage-content li {
  color: var(--muted);
}

.faq-section {
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 64px);
  background: white;
}

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

.faq-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
}

.faq-grid h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  gap: 10px;
  padding: 28px clamp(18px, 5vw, 64px);
  background: #0d111b;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.site-footer p {
  max-width: 980px;
  margin: 0;
}

.site-footer a {
  color: white;
}

@media (max-width: 880px) {
  .site-header,
  .hero,
  .tool-grid,
  .lookup-grid,
  .calculator-grid,
  .media-heading,
  .split-section,
  .lawyer-section {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

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

  .step-list,
  .dos-grid,
  .subpage-content,
  .faq-grid,
  .tool-link-grid {
    grid-template-columns: 1fr;
  }

  .step-list article {
    min-height: auto;
  }

  .lawyer-actions {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  .result-meta,
  .risk-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .lawyer-actions .button {
    width: 100%;
  }
}
