:root {
  color-scheme: light;
  --ink: #071827;
  --muted: #536a7b;
  --line: #c8ddea;
  --soft: #eef7fb;
  --panel: #ffffff;
  --accent: #0075c8;
  --accent-dark: #004a86;
  --cyan: #00c7ef;
  --navy: #071827;
  --gold: #d59b2f;
  --warning: #7a4e12;
  --shadow: 0 22px 58px rgba(2, 40, 74, 0.16);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(0, 199, 239, 0.1), transparent 34%),
    linear-gradient(180deg, #f7fcff 0%, var(--soft) 46%, #ffffff 100%);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(200, 221, 234, 0.85);
  background: rgba(248, 252, 255, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
}

.hero-logo {
  display: block;
  width: min(320px, 78vw);
  height: auto;
  margin: 0 0 24px;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  flex-wrap: wrap;
}

nav a {
  color: #24485f;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

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

.diagnosis-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(36px, 7vw, 86px) 0 42px;
}

.intro {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--navy);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(0, 117, 200, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  color: #14364d;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
}

.diagnosis-panel,
.repair-summary,
.info-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.diagnosis-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  position: relative;
  overflow: hidden;
}

.diagnosis-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #14364d;
}

.pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(0, 199, 239, 0.18);
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

textarea,
select {
  width: 100%;
  border: 1px solid #bed4e3;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 172px;
  padding: 14px;
  resize: vertical;
  line-height: 1.45;
}

select {
  height: 46px;
  padding: 0 12px;
}

input {
  width: 100%;
  height: 48px;
  border: 1px solid #bed4e3;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

textarea:focus,
input:focus,
select:focus {
  outline: 3px solid rgba(0, 199, 239, 0.2);
  border-color: var(--accent);
}

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

.primary-action {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent) 62%, #00a7d7);
  font-weight: 800;
  cursor: pointer;
}

.secondary-action {
  display: grid;
  min-height: 50px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: linear-gradient(135deg, #003b6b, var(--accent-dark));
}

.small-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 0 38px;
}

.status-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
}

.status-step span {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #dbeaf3;
  font-weight: 800;
}

.status-step.active {
  color: var(--ink);
  border-color: rgba(0, 117, 200, 0.45);
  background: #fff;
}

.status-step.active span {
  color: #fff;
  background: var(--accent);
}

.result-section {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  padding: 42px 0 62px;
  border-top: 1px solid var(--line);
}

.result-section:not([hidden]) {
  display: grid;
}

.result-copy {
  align-self: center;
}

.result-copy p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}

.repair-summary {
  display: grid;
  gap: 14px;
  padding: 22px;
  box-shadow: none;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-row span {
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 34px 0 56px;
}

.info-grid article {
  min-height: 180px;
  padding: 22px;
  box-shadow: none;
  border-top: 4px solid var(--accent);
}

.info-grid p,
.problems-section p,
.faq-section p,
.pricing-band p,
.support-band p {
  color: var(--muted);
  line-height: 1.55;
}

.store-band,
.pricing-band,
.support-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.store-actions {
  display: grid;
  gap: 14px;
}

.store-button {
  display: grid;
  gap: 2px;
  width: min(100%, 280px);
  min-height: 76px;
  justify-items: start;
  border: 0;
  border-radius: 8px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(135deg, #071827, #003b6b);
  cursor: pointer;
}

.store-button span {
  font-size: 0.82rem;
  font-weight: 700;
}

.store-button strong {
  font-size: 1.22rem;
}

.support-band {
  padding-bottom: 78px;
}

.problems-section,
.faq-section {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

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

.problem-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.problem-grid article,
.faq-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.problem-grid h3,
.faq-list h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.22;
}

.problem-grid p,
.faq-list p {
  margin-bottom: 0;
}

.admin-main {
  width: min(980px, calc(100% - 32px));
}

.admin-panel {
  padding: clamp(36px, 7vw, 78px) 0;
}

.admin-login {
  display: grid;
  gap: 16px;
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-error {
  width: min(100%, 640px);
  border: 1px solid rgba(213, 155, 47, 0.42);
  border-radius: 8px;
  padding: 14px 16px;
  color: #5d3a07;
  background: rgba(213, 155, 47, 0.12);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-stats article {
  display: grid;
  gap: 12px;
  min-height: 142px;
  align-content: center;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 800;
}

.admin-stats strong {
  font-size: 2.4rem;
  line-height: 1;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .diagnosis-shell,
  .result-section,
  .problem-grid,
  .faq-list,
  .store-band,
  .pricing-band,
  .support-band {
    grid-template-columns: 1fr;
  }

  .diagnosis-shell {
    min-height: auto;
  }

  .field-grid,
  .status-band,
  .info-grid,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.65rem;
  }
}
