/* Hero: headline and the stage (web window | test scenario | phone). */

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 88px); }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: .95; font-weight: 800; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); }

/* stage: web | test | phone */
.stage {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; gap: 22px; align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, .62fr);
}
.frame-label { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.frame-label b { color: var(--proven); font-weight: 600; }

.browser { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.url { flex: 1; min-width: 0; font: 12px var(--mono); color: var(--muted); background: var(--surface); border-radius: 6px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.webapp { display: grid; grid-template-columns: 132px 1fr; min-height: 290px; font-size: 13px; }
.side { background: var(--sunk); padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.side strong { font-family: var(--display); font-size: 16px; margin-bottom: 6px; }
.side span { color: var(--muted); padding: 3px 6px; border-radius: 5px; }
.side span.on { background: var(--surface); color: var(--ink); font-weight: 700; }
.webmain { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.webmain h4 { margin: 0; font-family: var(--display); font-size: 19px; }
.webform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.webform label { font-weight: 700; }
.field { border: 1px solid var(--line); border-radius: 5px; padding: 4px 8px; min-width: 90px; background: var(--surface); color: var(--ink); }
.wbtn { border: 1px solid var(--ink); border-radius: 5px; padding: 3px 10px; font-weight: 700; }
table.mini { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.mini th, table.mini td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
table.mini th { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.webfoot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }

.hit { position: relative; box-shadow: 0 0 0 2px var(--accent); border-radius: 5px; }
.tag {
  position: absolute; left: 0; top: calc(100% + 6px); white-space: nowrap; z-index: 2;
  font: 600 10.5px var(--mono); background: var(--accent); color: var(--accent-ink); padding: 2px 6px; border-radius: 4px;
}

.phone {
  width: 100%; max-width: 230px; margin: 0 auto; aspect-ratio: 390 / 844;
  background: var(--ink); border-radius: 34px; padding: 9px; box-shadow: var(--shadow);
}
.screen { height: 100%; background: var(--surface); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; font-size: 12.5px; }
.notch { height: 26px; display: flex; justify-content: center; align-items: center; }
.notch i { width: 64px; height: 16px; border-radius: 10px; background: var(--ink); display: block; }
.app { flex: 1; padding: 8px 14px 0; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.app h4 { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.1; }
.app .lbl { font-weight: 700; font-size: 11.5px; color: var(--muted); }
.app .field { width: 100%; padding: 7px 9px; border-radius: 8px; }
.pbtn { background: var(--ink); color: var(--bg); text-align: center; border-radius: 9px; padding: 7px; font-weight: 700; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; }
.count { color: var(--muted); font-size: 11.5px; }
.tabs { margin-top: auto; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 9.5px; color: var(--muted); padding: 8px 4px 14px; }
.tabs .on { color: var(--accent); font-weight: 700; }
.phone .tag { left: 50%; transform: translateX(-50%); }

.test {
  background: var(--code-bg); color: var(--code-fg); border-radius: 14px; padding: 18px; box-shadow: var(--shadow);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5; min-width: 0;
}
.test .file { color: var(--code-dim); font-size: 11px; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.steps li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline; padding: 4px 6px; border-radius: 6px; }
.steps .k { color: var(--code-hit); }
.steps .ok { color: var(--code-hit); font-size: 11px; }
.steps li { animation: scan 6s infinite; }
.steps li:nth-child(2) { animation-delay: 1.2s; }
.steps li:nth-child(3) { animation-delay: 2.4s; }
.steps li:nth-child(4) { animation-delay: 3.6s; }
.steps li:nth-child(5) { animation-delay: 4.8s; }
@keyframes scan { 0%, 18% { background: rgb(95 224 191 / .14); } 22%, 100% { background: transparent; } }
.test .legend { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #2b3a33; color: var(--code-dim); font-size: 11px; gap: 8px; flex-wrap: wrap; }
.test .legend b { color: var(--code-hit); font-weight: 600; }
.caption { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 70ch; }
