@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0B0F;
  --ink: #E8F4FF;
  --muted: #A1A1AA;
  --cyan: #5EC8FF;
  --line: rgba(161, 161, 170, 0.28);
  --card: #12141a;
  --bubble: #171a21;
  --danger: #8ab4c9;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { filter: brightness(1.08); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 100; }

.preview-banner {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.brand img, .brand svg { width: 44px; height: 32px; }
.brand:hover { filter: none; color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.langs { display: flex; gap: 10px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a[aria-current="page"] { color: var(--cyan); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 36px 0 64px;
  border-top: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.lead {
  margin: 0 0 22px;
  font-size: 1.12rem;
  color: #d5e6f3;
  max-width: 38rem;
}
.points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.points li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
}
.btn:hover { filter: brightness(1.06); color: var(--bg); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(340px, 100%);
  background: #0c0d12;
  border: 1px solid #2a2d36;
  border-radius: 36px;
  padding: 12px 10px 16px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(232, 244, 255, 0.03);
}
.phone-bar {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.7rem;
  padding: 4px 14px 10px;
  font-weight: 600;
}
.phone-head {
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.phone-log { display: flex; flex-direction: column; gap: 8px; padding: 0 6px; min-height: 280px; }
.bubble {
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  background: #1a1d26;
  color: #dceaf4;
}
.bubble.me {
  align-self: flex-end;
  background: #232833;
  border-bottom-right-radius: 5px;
}
.bubble.bot { border-bottom-left-radius: 5px; }
.meta { color: var(--muted); font-size: 0.65rem; margin-top: 3px; }
.result-card {
  margin: 8px 6px 0;
  border: 1px solid rgba(94, 200, 255, 0.45);
  background: linear-gradient(180deg, rgba(94, 200, 255, 0.08), rgba(94, 200, 255, 0.02));
  border-radius: 16px;
  padding: 16px 16px 14px;
  text-align: center;
}
.result-card .label {
  color: var(--cyan);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.result-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--cyan);
}
.result-card p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.phone-input {
  margin: 14px 6px 2px;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #2a2d36;
  border-radius: 14px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.8rem;
}
.phone-send {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.section {
  padding: 8px 0 72px;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
  margin: 28px 0 10px;
}
.section .intro { color: var(--muted); max-width: 40rem; margin: 0 0 28px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  min-height: 100%;
}
.step .n {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.step h3 { margin: 10px 0 8px; font-size: 1.05rem; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.exam-panel {
  background: #0c0d12;
  border: 1px solid #2a2d36;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 640px;
}
.exam-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.exam-head h2 { margin: 0; font-size: 1.1rem; }
.exam-head p { margin: 2px 0 0; color: var(--cyan); font-size: 0.8rem; }
.exam-tools {
  padding: 16px 18px 8px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.95rem;
}
label.check input {
  margin-top: 3px;
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
}
.exam-tools textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  background: #111318;
  color: var(--ink);
  border: 1px solid #2a2d36;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.exam-tools textarea:focus { border-color: var(--cyan); outline: none; }
.exam-log {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  min-height: 280px;
  background: #0b0c10;
}
.msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.bot {
  background: #151821;
  border: 1px solid #2a2d36;
  border-bottom-left-radius: 6px;
}
.msg.me {
  align-self: flex-end;
  background: #1b2430;
  color: var(--ink);
  border-bottom-right-radius: 6px;
}
.exam-form {
  padding: 12px 18px 10px;
  border-top: 1px solid var(--line);
  background: #0c0d12;
}
.exam-row { display: flex; gap: 8px; align-items: flex-end; }
.exam-form textarea {
  flex: 1;
  resize: none;
  min-height: 46px;
  max-height: 120px;
  background: #111318;
  color: var(--ink);
  border: 1px solid #2a2d36;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.exam-form textarea:focus { border-color: var(--cyan); outline: none; }
.note {
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}
.note a { color: var(--ink); }

.legal { padding: 28px 0 80px; max-width: 44rem; }
.legal h1 { letter-spacing: -0.04em; }
.legal p, .legal li { color: #d5e6f3; }
.legal .meta { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; }
  .phone { margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .steps { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; }
  .exam-panel { border-radius: 16px; min-height: 70vh; }
}

/* Live layout: chat already open, large, with history. ~40% column on desktop
   (20% of the page width was too narrow for a usable history). Almost full
   screen on a phone. */
.preview-banner { display: none; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.9fr);
  gap: 36px;
  align-items: start;
  padding: 20px 0 64px;
  border-top: 1px solid var(--line);
}
.hero-copy { padding: 16px 0 28px; }
.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.05rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.stage-copy .section { padding-top: 8px; border-top: 0; }
.stage-chat {
  position: sticky;
  top: 12px;
  height: calc(100dvh - 24px);
  min-height: 540px;
}
.exam-panel {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto auto 1fr auto;
}
.exam-tools {
  max-height: 42%;
  overflow: auto;
}
.exam-log { min-height: 0; }
.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mode {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.mode[aria-pressed="true"], .mode.is-on {
  border-color: var(--cyan);
  color: var(--bg);
  background: var(--cyan);
}
.email-row label, .exam-tools label[for] {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.exam-tools input[type="email"],
.exam-tools input[type="url"] {
  width: 100%;
  background: #111318;
  color: var(--ink);
  border: 1px solid #2a2d36;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.exam-tools input:focus { border-color: var(--cyan); outline: none; }
.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quota-bar {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
}

@media (max-width: 880px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 16px;
  }
  .stage-chat {
    position: relative;
    top: 0;
    order: -1;
    height: auto;
    min-height: 92dvh;
  }
  .exam-panel {
    min-height: 92dvh;
    border-radius: 16px;
  }
  .exam-tools { max-height: none; }
}
