/* MyExamly landing page (myexamly.uz). Plain CSS, no build step. Colours and
   type follow the app's tokens (web/src/theme/tokens.ts): Inter, slate
   neutrals, blue #2563EB. */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --soft: #f8fafc;
  --chip: #f1f5f9;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --navy: #0f172a;
  --good: #047857;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

section[id] {
  scroll-margin-top: 16px;
}

.section {
  padding: 88px 0;
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
}

.section--soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--rule {
  border-top: 1px solid var(--line);
}

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

h1,
.h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  line-height: 1.1;
}

.h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.section-head {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn--secondary {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: #94a3b8;
  color: var(--ink);
}

.btn--lg {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font-size: 16px;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  padding: 10px 0;
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
}

.lang a,
.lang span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
}

.lang a:hover {
  background: var(--chip);
}

.lang [aria-current] {
  background: var(--navy);
  color: #fff;
}

@media (max-width: 420px) {
  .header-actions .btn--secondary {
    display: none;
  }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-visual {
  flex: 1 1 440px;
  min-width: 0;
}

@media (max-width: 640px) {
  .hero-inner {
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 56px;
  }
}

.hero-sub {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.free-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--good);
}

.free-note .icon {
  flex: none;
  width: 20px;
  height: 20px;
  stroke-width: 2.25;
}

/* Sample marks table in the hero */

.mock {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.mock-head,
.mock-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.mock-head {
  border-bottom: 1px solid var(--line);
}

.mock-foot {
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  font-size: 14px;
}

.mock-foot strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.mock-meta {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.tag {
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--chip);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
}

.mock table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.mock th {
  padding: 10px 20px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.mock td {
  padding: 12px 20px;
  border-top: 1px solid var(--chip);
  white-space: nowrap;
}

.mock .num {
  padding-left: 12px;
  padding-right: 12px;
  text-align: right;
}

.mock .pct {
  font-weight: 600;
}

/* On a phone the sample table would scroll sideways; the percentage and the
   level carry the point, so the raw score goes. */
@media (max-width: 480px) {
  .mock .col-ball {
    display: none;
  }

  .mock th,
  .mock td {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Names wrap rather than push the level column off the card. */
  .mock td {
    white-space: normal;
  }

  .mock-head,
  .mock-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 360px) {
  .mock th,
  .mock td {
    padding-left: 10px;
    padding-right: 10px;
  }

  .mock .band {
    white-space: normal;
  }
}

.band {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.band--low {
  background: #fee2e2;
  color: #991b1b;
}

.band--below {
  background: #ffedd5;
  color: #9a3412;
}

.band--mid {
  background: #fef3c7;
  color: #854d0e;
}

.band--good {
  background: #dcfce7;
  color: #166534;
}

.band--top {
  background: #dbeafe;
  color: #1e40af;
}

/* Numbers strip ---------------------------------------------------------- */

.stats {
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
  text-align: center;
}

.stat-num {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* Cards ------------------------------------------------------------------ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.card > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.card--roomy {
  gap: 16px;
  padding: 28px;
}

.card--roomy h3 {
  font-size: 20px;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--chip);
  color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.checklist--lg {
  font-size: 16px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checklist .icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
  stroke-width: 2.25;
}

.checklist a {
  font-weight: 600;
}

/* Telegram bot ----------------------------------------------------------- */

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.split > * {
  flex: 1 1 420px;
  min-width: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.tg-handle {
  font-size: 15px;
  color: var(--muted);
}

.chat {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  overflow: hidden;
  background: #0e1621;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #17212b;
  border-bottom: 1px solid #0b121a;
}

.chat-head svg {
  flex: none;
}

.chat-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.chat-sub {
  display: block;
  font-size: 13px;
  color: #8fa1b3;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px;
}

.bubble {
  align-self: flex-start;
  max-width: 85%;
  margin: 0;
  padding: 10px 14px;
  background: #182533;
  border-radius: 14px 14px 14px 4px;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.bubble--media {
  align-self: stretch;
  max-width: none;
  padding: 6px;
}

.bubble figcaption {
  padding: 8px 8px 4px;
  font-size: 14px;
}

.chart-frame {
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
}

.chart-frame svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: Inter, system-ui, sans-serif;
}

/* Steps ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

/* Reviews ---------------------------------------------------------------- */

.review {
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.review blockquote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.review blockquote p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
}

.quote-mark {
  width: 28px;
  height: 28px;
  fill: var(--line-2);
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--line);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
}

.reviewer-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.reviewer-role {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* Demo request ----------------------------------------------------------- */

.demo {
  background: var(--navy);
  color: #fff;
}

.demo .eyebrow {
  color: #93c5fd;
}

.demo .lead {
  color: #cbd5e1;
}

.demo .checklist {
  color: #e2e8f0;
}

.demo .checklist .icon {
  color: #93c5fd;
}

.demo :focus-visible {
  outline-color: #93c5fd;
}

.demo .form-card :focus-visible {
  outline-color: var(--accent);
}

.demo-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px;
}

.demo-copy {
  flex: 1 1 400px;
  min-width: 0;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #334155;
  font-size: 15px;
  color: #cbd5e1;
}

.contact-lines a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.contact-lines a:hover {
  text-decoration: underline;
}

.form-card {
  flex: 1 1 440px;
  min-width: 0;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  color: var(--ink);
}

@media (max-width: 480px) {
  .form-card {
    padding: 24px 20px;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form h3,
.success h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  /* 16px keeps iOS Safari from zooming the page when a field gets focus. */
  font-size: 16px;
}

textarea.input {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.input:focus-visible {
  outline-offset: 1px;
  border-color: var(--accent);
}

/* The honeypot: off-screen for people and screen readers, still in the DOM
   for bots that fill every field. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.5;
}

.success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0;
}

.success h3 {
  font-size: 22px;
}

.success p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: #dcfce7;
  color: var(--good);
}

.success-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.25;
}

/* FAQ -------------------------------------------------------------------- */

/* Narrower text, same left edge as every other section. */
.faq > * {
  max-width: 800px;
}

.faq .section-head {
  margin-bottom: 32px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 32px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand img {
  align-self: flex-start;
  height: 28px;
  width: auto;
}

.footer-brand p {
  margin: 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-col {
  flex: 0 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-col--wide {
  flex-basis: 320px;
}

.footer-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a {
  color: var(--ink);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col address {
  font-style: normal;
  line-height: 1.5;
  color: var(--muted);
}

.copyright {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
