:root {
  --blue: #155c99;
  --blue-dark: #0d477a;
  --mint: #65bfae;
  --mint-dark: #2f9887;
  --ink: #132238;
  --muted: #5b6878;
  --soft: #f3f8fa;
  --line: #d8e6ec;
  --surface: #ffffff;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --warning: #9a6700;
  --warning-soft: #fff7df;
  --success: #117a65;
  --success-soft: #e8f8f3;
  --shadow: 0 14px 28px rgba(19, 34, 56, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fbfdfe;
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

body.screening-complete .mobile-sticky-cta {
  display: none;
}

a {
  color: inherit;
}

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

svg {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.2;
}

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

h1 {
  margin: 14px 0;
  color: var(--blue-dark);
  font-size: 2.65rem;
  line-height: 1.05;
}

h2 {
  margin: 10px 0;
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1.12;
}

h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

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

.brand strong {
  color: var(--blue-dark);
  font-size: 1.18rem;
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--soft);
  color: var(--blue-dark);
  outline: none;
}

.mobile-quick-nav {
  display: none;
}

.mobile-only {
  display: none !important;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-switcher button {
  min-width: 42px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.active {
  background: var(--blue);
  color: #fff;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
}

.hero,
.section,
.quick-tools,
.site-footer {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
}

.hero {
  min-height: calc(100dvh - 68px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  padding: 34px 0 22px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(101, 191, 174, 0.45);
  border-radius: 8px;
  background: #eaf8f5;
  color: var(--mint-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button-row.split {
  justify-content: space-between;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 22px rgba(21, 92, 153, 0.18);
}

.btn.secondary {
  border-color: var(--line);
}

.btn.quiet {
  background: var(--soft);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero-visual,
.tool-card,
.assistant-card,
.result-panel,
.danger-item,
.method-grid article,
.about-card,
.embedded-tool,
.lens-card,
.lens-summary,
.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-summary {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.app-summary img {
  width: min(260px, 72%);
  margin: 0 auto;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-list div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.summary-list svg {
  color: var(--mint-dark);
  flex: 0 0 auto;
  margin-top: 3px;
}

.quick-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 0 34px;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 104px;
  padding: 18px;
  text-decoration: none;
}

.tool-card svg {
  width: 30px;
  height: 30px;
  color: var(--blue);
  flex: 0 0 auto;
}

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

.tool-card strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.tool-card span {
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: 44px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.compact-heading h2 {
  font-size: 1.75rem;
}

.assistant-shell {
  max-width: 760px;
  margin: 0 auto;
}

.assistant-card,
.result-panel {
  padding: 18px;
}

.assistant-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.progress {
  height: 10px;
  margin: 12px 0 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eef2;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--mint-dark));
}

.option-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.choice-card,
.area-grid button,
.score-choice {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.choice-card.selected,
.area-grid button.selected,
.score-choice.selected {
  border-color: var(--mint-dark);
  background: #eaf8f5;
  color: #184f46;
}

.choice-check {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mint-dark);
  flex: 0 0 auto;
  font-weight: 900;
}

.choice-card.selected .choice-check {
  border-color: var(--mint-dark);
  background: #fff;
}

.result-header {
  margin-bottom: 18px;
}

.result-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.result-summary > div {
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.result-summary small,
.tool-total span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 850;
}

.result-summary strong,
.tool-total strong {
  color: var(--blue-dark);
  font-size: 1.35rem;
}

.result-explanation {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.risk-emergency > div {
  background: var(--danger-soft);
}

.risk-emergency strong {
  color: var(--danger);
}

.risk-check > div {
  background: var(--warning-soft);
}

.risk-check strong {
  color: var(--warning);
}

.risk-monitor > div,
.risk-low > div {
  background: var(--success-soft);
}

.risk-monitor strong,
.risk-low strong {
  color: var(--success);
}

.result-block {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.medical-detail,
.faq-list details {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.medical-detail summary,
.faq-list summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.medical-detail > div,
.faq-list p {
  padding: 0 16px 16px;
}

.medical-detail h3 {
  margin-top: 0;
}

.clean-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.medical-alert {
  padding: 14px;
  border: 1px solid #efce8c;
  border-radius: 8px;
  background: var(--warning-soft);
  color: #5c4100;
  line-height: 1.55;
}

.embedded-tool {
  margin: 16px 0;
  padding: 16px;
}

.burn-guidance-module {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #b7dcd7;
  border-radius: 8px;
  background: #f7fcfb;
}

.burn-guidance-module > h2 {
  margin-top: 0;
  font-size: 1.55rem;
}

.burn-degree-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.burn-degree-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.burn-degree-card h4 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 1rem;
}

.burn-degree-severe {
  border-color: rgba(180, 35, 24, 0.25);
  background: var(--danger-soft);
}

.burn-degree-moderate {
  border-color: rgba(154, 103, 0, 0.25);
  background: var(--warning-soft);
}

.inhalation-block {
  padding: 16px;
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: 8px;
  background: var(--danger-soft);
}

.special-burn-block {
  padding: 16px;
  border: 1px solid rgba(154, 103, 0, 0.25);
  border-radius: 8px;
  background: var(--warning-soft);
}

.danger-note {
  margin: 12px 0 0;
  color: var(--danger);
  font-weight: 900;
}

.note-text {
  color: var(--muted);
  line-height: 1.55;
}

.area-grid,
.score-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.area-grid button {
  justify-content: space-between;
}

.tool-total {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.score-field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.score-field legend {
  padding: 0 6px;
  color: var(--blue-dark);
  font-weight: 900;
}

.color-dot {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(19, 34, 56, 0.2);
  border-radius: 8px;
  flex: 0 0 auto;
}

.danger-list,
.method-grid {
  display: grid;
  gap: 12px;
}

.danger-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.danger-item svg {
  color: var(--danger);
  flex: 0 0 auto;
  margin-top: 3px;
}

.method-grid article {
  padding: 18px;
}

.trust-list {
  margin-top: 16px;
}

.method-grid svg {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  color: var(--blue);
}

.consult-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 16px;
}

.consult-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.consult-card label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.consult-card label span {
  line-height: 1.35;
}

.consent-line {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  font-weight: 650;
}

.consent-line input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.wide {
  grid-column: 1 / -1;
}

.faq-accordion {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.faq-item button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 0;
  background: #fff;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue);
  flex: 0 0 auto;
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-item div {
  padding: 0 16px 16px;
}

.faq-item p {
  margin: 0;
}

.faq-cta {
  justify-content: center;
}

.consult-result-cta {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.consult-result-cta p {
  margin: 0;
}

.consult-result-cta small {
  color: var(--muted);
  font-weight: 800;
}

.emergency-consult-cta {
  border-color: rgba(180, 35, 24, 0.25);
  background: var(--danger-soft);
}

.danger-btn {
  background: var(--danger);
  color: #fff;
}

.about-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.mobile-sticky-cta {
  position: sticky;
  bottom: 12px;
  z-index: 25;
  width: min(calc(100% - 28px), 520px);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(21, 92, 153, 0.25);
}

.site-footer {
  display: grid;
  gap: 20px;
  padding: 34px 0 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer h3 {
  font-size: 1rem;
}

.site-footer a,
.site-footer span {
  min-height: 32px;
  display: block;
  color: var(--muted);
  text-decoration: none;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
  accent-color: var(--blue);
}

textarea {
  resize: vertical;
}

button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(101, 191, 174, 0.35);
  outline-offset: 2px;
}

.loading-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 900px) {
  .site-header {
    gap: 8px;
    padding-inline: 10px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 1rem;
  }

  .mobile-quick-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    min-width: 0;
  }

  .mobile-quick-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 8px 7px;
    border-radius: 8px;
    color: var(--blue-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-quick-nav a:hover,
  .mobile-quick-nav a:focus-visible {
    background: var(--soft);
  }

  .mobile-toggle {
    display: inline-grid;
    margin-left: 0;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    min-height: calc(100dvh - 68px);
    align-content: start;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    min-height: 48px;
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .site-nav .desktop-link {
    display: none;
  }

  .site-nav .mobile-only {
    display: flex !important;
  }

  .language-switcher {
    align-self: start;
  }
}

@media (min-width: 760px) {
  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 42px;
    padding-top: 54px;
  }

  .quick-tools,
  .danger-list,
  .method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-tools,
  .service-grid,
  .trust-section .method-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .burn-degree-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }

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

  .site-footer {
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr) minmax(180px, 0.6fr);
    padding-bottom: 44px;
  }

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

@media (max-width: 759px) {
  main {
    padding-bottom: 88px;
  }

  body.screening-complete main {
    padding-bottom: 120px;
  }
}

@media (max-width: 480px) {
  .brand span {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .mobile-quick-nav a {
    padding-inline: 6px;
    font-size: 0.74rem;
  }
}
