/* Baitoworks landing — cùng bảng màu với bộ slide (video/deck):
   xanh thương hiệu #025ABE, cam nhấn #E6641E, chữ thân #334155. */

:root {
  --blue: #025abe;
  --blue-dark: #01438f;
  --blue-soft: #eff5fc;
  --orange: #e6641e;
  --orange-dark: #c4510f;
  --orange-soft: #fff1e9;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-alt: #f8fafc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 90, 190, 0.1);
  --header-h: 68px;
  --font: 'Be Vietnam Pro', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html[lang='ja'] h1,
html[lang='ja'] h2,
html[lang='ja'] h3,
html[lang='ja'] .stat__value {
  /* Ngắt dòng theo cụm từ thay vì giữa từ (Chrome 119+, trình duyệt khác bỏ qua). */
  word-break: auto-phrase;
}

html[lang='ja'] {
  /* Be Vietnam Pro không có chữ Nhật — để Noto Sans JP lên trước để chữ Latinh và chữ Nhật cùng một font. */
  --font: 'Noto Sans JP', 'Be Vietnam Pro', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__head p {
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(230, 100, 30, 0.3);
}

.btn--primary:hover {
  background: var(--orange-dark);
}

.btn--ghost {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--ghost:hover {
  background: var(--blue-soft);
}

.btn--blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(2, 90, 190, 0.25);
}

.btn--blue:hover {
  background: var(--blue-dark);
}

/* Nút xanh nằm trên nền xanh (khối cuối trang): viền trắng để không chìm. */
.btn--outlined-light {
  border-color: #fff;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 56px;
  font-size: 17px;
}

/* ----------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 54px;
}

.brand__name {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
}

.brand__tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  white-space: nowrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--blue);
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang button {
  border: 0;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 10px;
  min-width: 40px;
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  background: var(--blue);
  color: #fff;
}

.header .btn {
  white-space: nowrap;
  min-height: 42px;
  padding: 8px 18px;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .brand__tag,
  .header .btn {
    display: none;
  }
}

/* Điện thoại nhỏ (320 – 400px): logo + tên + ba nút ngôn ngữ phải vừa một hàng. */
@media (max-width: 400px) {
  .header__inner {
    gap: 10px;
  }
  .brand {
    gap: 6px;
  }
  .brand img {
    width: 44px;
  }
  .brand__name {
    font-size: 18px;
  }
  .lang button {
    min-width: 34px;
    padding: 8px 6px;
  }
}

/* ------------------------------------------------------------------- hero */

.hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(2, 90, 190, 0.1), transparent 70%),
    linear-gradient(#fff, var(--blue-soft));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.hero__sub {
  font-size: 19px;
  color: var(--text);
  max-width: 620px;
}

.hero__visual {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid var(--line);
}

.trust {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--text);
}

.trust li::before {
  content: '✓';
  color: #16a34a;
  font-weight: 800;
  margin-right: 8px;
}

@media (max-width: 960px) {
  .hero {
    padding-top: 40px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* Trên điện thoại form lên ngay sau tiêu đề, ảnh minh họa xuống dưới form. */
  .hero__copy {
    display: contents;
  }
  .hero__visual {
    order: 2;
    margin-top: 0;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-bottom: 4px;
}

.hero__play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.hero__play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 5l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

.hero__play:hover .hero__play-icon {
  background-color: var(--blue-dark);
}

/* ------------------------------------------------------------------ video */

.section--video {
  padding-bottom: 72px;
}

.video {
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
  position: relative;
}

.video__facade {
  all: unset;
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: block;
}

.video__facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
  transition: filter 0.2s;
}

.video__facade:hover img,
.video__facade:focus-visible img {
  filter: brightness(0.7);
}

.video__facade:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orange)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.5 5l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E")
    center / 40px no-repeat;
  box-shadow: 0 10px 30px rgba(230, 100, 30, 0.45);
  transition: transform 0.2s;
}

.video__facade:hover .video__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

@media (max-width: 600px) {
  .video__play {
    width: 64px;
    height: 64px;
    background-size: 30px;
  }
}

/* ------------------------------------------------------------------- form */

.form-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
}

.form-card h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.form {
  display: grid;
  gap: 14px;
}

.form--two {
  grid-template-columns: 1fr 1fr;
}

.form--two .field--full,
.form--two .form__actions {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form--two {
    grid-template-columns: 1fr;
  }
}

.field > label,
.field__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.field .req {
  color: var(--orange);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  /* 16px trở lên để iOS Safari không tự phóng to khi chạm vào ô. */
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 90, 190, 0.15);
}

.field input[aria-invalid='true'],
.field select[aria-invalid='true'] {
  border-color: #dc2626;
}

.field__error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
  min-height: 0;
}

.choice {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.choice label {
  position: relative;
  flex: 1 1 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
}

.choice input {
  /* Nút radio thật nằm chồng lên đúng ô của nó (label là relative). Không có hai dòng đó thì ô ẩn
     ăn `width: 100%` của `.field input` và định vị theo khung trang — trang bị cuộn ngang. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.choice input:checked + span {
  color: var(--blue);
}

.choice label:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.choice label:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(2, 90, 190, 0.25);
}

.form__note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.form__status {
  border-radius: 12px;
  padding: 16px;
  font-weight: 600;
}

.form__status--ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form__status--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* -------------------------------------------------------------- stats bar */

.stats {
  background: var(--blue);
  color: #fff;
  padding: 36px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.stat__pre,
.stat__label {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.stat__pre {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.stat__value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin: 2px 0 4px;
}

@media (max-width: 600px) {
  .stats__grid {
    gap: 8px;
  }
  .stat {
    padding: 0 4px;
  }
  .stat__value {
    font-size: 34px;
  }
  .stat__pre {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .stat__label {
    font-size: 13px;
    line-height: 1.35;
  }
}

/* ---------------------------------------------------------------- pains */

.pains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pain {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px;
}

.pain__icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.pain h3 {
  font-size: 18px;
}

.pain p {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1000px) {
  .pains {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .pain {
    padding: 18px 16px;
  }
  .pain h3 {
    font-size: 16px;
  }
  .pain p {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .pains {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------- features */

.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}

.feature + .feature {
  border-top: 1px solid var(--line);
}

.feature--flip .feature__media {
  order: -1;
}

.feature__num {
  font-weight: 800;
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 1px;
}

.feature h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--blue);
  margin-top: 6px;
}

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

.feature li {
  padding-left: 30px;
  position: relative;
}

.feature li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23025ABE' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.feature__value {
  display: flex;
  gap: 10px;
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  margin: 0;
}

.feature__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.feature__media--plain {
  max-width: 440px;
  justify-self: center;
  border: 0;
  box-shadow: none;
  background: none;
}

.feature__media--duo {
  display: grid;
  grid-template-columns: 1fr 0.34fr;
  gap: 16px;
  align-items: center;
  border: 0;
  box-shadow: none;
  background: none;
  overflow: visible;
}

.feature__media--duo img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature--flip .feature__media {
    order: 0;
  }
}

/* ---------------------------------------------------------------- compare */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15.5px;
}

.compare th,
.compare td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  background: var(--bg-alt);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.compare tbody th {
  color: var(--ink);
  font-weight: 700;
  width: 22%;
}

.compare .is-us {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.compare thead .is-us {
  background: var(--blue);
  color: #fff;
}

.compare tr:last-child > * {
  border-bottom: 0;
}

.compare__note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

/* ------------------------------------------------------------------ steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
}

.step p {
  margin: 0;
  font-size: 15.5px;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- pricing */

.principles {
  list-style: none;
  padding: 0;
  margin: -24px 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.principles li {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 999px;
}

.principles li::before {
  content: '✓ ';
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan--featured {
  border-color: var(--orange);
  box-shadow: 0 14px 40px rgba(230, 100, 30, 0.18);
}

.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--blue);
}

.plan__cap {
  color: var(--muted);
  font-size: 15px;
  margin: 2px 0 14px;
}

.plan__price {
  font-size: 42px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.plan__price small {
  font-size: 18px;
  font-weight: 700;
}

.plan__unit {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 20px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  flex: 1;
  align-content: start;
}

.plan li {
  padding-left: 26px;
  position: relative;
}

.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

.plan li.is-base {
  font-weight: 700;
  color: var(--ink);
}

.plans__note {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .plan--featured {
    order: -1;
  }
}


/* -------------------------------------------------------------- downloads */

.section--tight {
  padding: 64px 0;
}

.docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin-inline: auto;
}

.doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.doc:hover,
.doc:focus-visible {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.doc__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.doc__body {
  flex: 1;
  min-width: 0;
}

.doc__title {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.doc__meta {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.doc__dl {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3v10m-4-4l4 4 4-4M4 16h12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

button.doc {
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

/* ----------------------------------------------------------------- dialog */

.dialog {
  width: min(440px, calc(100% - 32px));
  border: 0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  color: var(--text);
}

.dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.dialog__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
}

.dialog__close:hover {
  background: var(--bg-alt);
}

.dialog__title {
  font-size: 20px;
  padding-right: 32px;
  margin-bottom: 8px;
}

.dialog__doc {
  display: inline-block;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 8px;
  padding: 4px 10px;
  margin: 0 0 10px;
}

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

.dialog__done {
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.dialog .form__status {
  margin-bottom: 14px;
}

.dialog__done .form__status {
  margin: 0;
}

@media (max-width: 700px) {
  .docs {
    grid-template-columns: 1fr;
  }
}

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

.faq {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--blue);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0 0 18px;
  font-size: 16px;
}

/* -------------------------------------------------------------- final CTA */

.final {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
}

.final__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.final h2 {
  color: #fff;
}

.final__lead {
  font-size: 18px;
  opacity: 0.92;
}

.final__alt {
  margin-top: 24px;
  font-size: 15px;
  opacity: 0.9;
}

.final__alt a {
  color: #fff;
  font-weight: 700;
}

.final .form-card {
  color: var(--text);
}

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

/* ----------------------------------------------------------------- footer */

.footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 48px 0 28px;
  font-size: 15px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

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

.footer__brand img {
  width: 72px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 12px;
}

.footer__copy {
  border-top: 1px solid #1e293b;
  margin-top: 36px;
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------- mobile sticky CTA bar */

.mobile-cta {
  display: none;
}

@media (max-width: 760px) {
  .mobile-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(110%);
    transition: transform 0.2s;
  }
  .mobile-cta.is-visible {
    transform: none;
  }
  .mobile-cta .btn {
    flex: 1;
    min-height: 50px;
    padding: 10px;
  }
  body {
    padding-bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
