:root {
  --ink: #121826;
  --muted: #5f6f87;
  --line: #d8e1ed;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --green: #07966b;
  --blue: #2364d8;
  --rose: #b2476f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 48%, #edf7f3 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  min-height: 500px;
}

.hero > div,
.score,
.device,
.grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
}

.hero > div {
  padding: clamp(28px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.8vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.score {
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.score div {
  min-height: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--green);
  border-radius: 8px;
}

.score strong {
  display: block;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
}

.score span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

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

.device,
.grid article {
  padding: 24px;
}

.device {
  min-height: 520px;
}

.screen {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfe;
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.screen header {
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.hero-line {
  width: 72%;
  height: 48px;
  border-radius: 8px;
  background: #172033;
}

.copy-line {
  height: 14px;
  border-radius: 999px;
  background: #dce5f1;
}

.copy-line.short { width: 68%; }

.screen button {
  width: 138px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.image-box {
  height: 86px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(35, 100, 216, .20), rgba(178, 71, 111, .18));
}

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

.tablet-grid div {
  min-height: 74px;
  border-radius: 8px;
  background: #e8eef7;
}

.device h2,
.grid h2 {
  margin: 22px 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.device p:not(.label),
.grid p:not(.label) {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.qa ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.qa li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: #304058;
  font-weight: 800;
  line-height: 1.35;
}

.grid article {
  min-height: 250px;
}

.grid article:nth-child(2) .label { color: var(--blue); }
.grid article:nth-child(3) .label { color: var(--rose); }

footer {
  padding: 24px 0 0;
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}

@media (max-width: 900px) {
  .hero,
  .devices,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .device {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 1160px);
    padding-top: 18px;
  }

  .hero > div,
  .score,
  .device,
  .grid article {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.05rem, 12vw, 3.1rem);
  }

  .score div {
    min-height: 92px;
  }
}
