/**
 * KhanBook — royal blue + silver.
 */

:root {
  /* Colour */
  --bg: #060b18;
  --bg-soft: #0b1224;
  --card: #111c33;
  --card-hi: #16233d;
  --line: rgba(192, 199, 209, 0.14);
  --line-strong: rgba(59, 130, 246, 0.45);

  --accent: #3b82f6;
  --accent-hi: #60a5fa;
  --accent-deep: #1d4ed8;
  --silver: #c0c7d1;
  --white: #ffffff;
  --muted: #94a3b8;
  --success: #25d366;
  --warn: #f59e0b;

  /* Type */
  --font-heading: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 9999px;

  --shadow: 0 18px 50px rgba(2, 6, 20, 0.55);
  --glow: 0 0 24px rgba(59, 130, 246, 0.35);
}

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

body.khanbook-body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.15;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
}

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

::selection {
  background: var(--accent);
  color: var(--white);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-sm);
}

/* Layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap--narrow {
  max-width: 880px;
}

.section {
  padding: 5.5rem 0;
}

.section--tight {
  padding: 3.5rem 0;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--accent-hi);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.h-section {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h-section span {
  color: var(--accent-hi);
}

.lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

/* Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--white);
  box-shadow: var(--glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.45);
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
}

.btn--wa {
  background: var(--success);
  color: #05231a;
}

.btn--wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
}

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

/* Header ------------------------------------------------------------ */
.topbar {
  background: linear-gradient(90deg, var(--accent-deep), #0b1224);
  border-bottom: 1px solid var(--line);
  color: var(--silver);
  font-size: 0.82rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}

.topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar__note svg {
  width: 15px;
  height: 15px;
  color: var(--warn);
}

.topbar__contacts {
  display: flex;
  gap: 1.25rem;
}

.topbar__contacts a {
  color: var(--silver);
  font-weight: 600;
  text-decoration: none;
}

.topbar__contacts a:hover {
  color: var(--white);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(6, 11, 24, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 11px;
  box-shadow: var(--glow);
}

.brand__mark svg {
  width: 21px;
  height: 21px;
  color: var(--white);
}

.brand em {
  color: var(--accent-hi);
  font-style: normal;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--silver);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav a:hover,
.nav a.is-current {
  color: var(--white);
}

.nav a:hover::after,
.nav a.is-current::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 5.5rem;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(700px 380px at 88% 20%, rgba(29, 78, 216, 0.18), transparent 70%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 199, 209, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 199, 209, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__title span {
  display: block;
  color: var(--accent-hi);
}

.hero__copy {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--silver);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero__badge svg {
  width: 18px;
  height: 18px;
  color: var(--accent-hi);
}

/* Signup card */
.signup {
  padding: 2rem;
  background: linear-gradient(160deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.signup__head {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.signup__title {
  font-size: 1.35rem;
  font-weight: 700;
}

.signup__title span {
  color: var(--accent-hi);
}

.signup__sub {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.signup__steps {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.signup__steps li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2.75rem;
  color: var(--silver);
  font-size: 0.95rem;
  counter-increment: step;
}

.signup__steps li::before {
  content: counter(step);
  position: absolute;
  top: 0.55rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--accent-hi);
  font-size: 0.8rem;
  font-weight: 700;
}

.signup__note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Stat band --------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.stat {
  padding: 2rem 1.25rem;
  background: var(--bg-soft);
  text-align: center;
}

.stat__value {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
}

.stat__value span {
  color: var(--accent-hi);
}

.stat__label {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Step cards -------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.step {
  position: relative;
  padding: 2.25rem 1.75rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.step__num {
  position: absolute;
  top: -18px;
  left: 1.75rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 13px;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: var(--glow);
}

.step h3 {
  margin-top: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.step p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Feature list ------------------------------------------------------ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature:hover {
  transform: translateX(4px);
  background: var(--card-hi);
}

.feature svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--accent-hi);
}

.feature h4 {
  font-size: 1rem;
  font-weight: 700;
}

.feature p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Platform rows ----------------------------------------------------- */
.rows {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.row:last-child {
  border-bottom: 0;
}

.row:hover {
  background: var(--card-hi);
}

.row__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--accent-hi);
}

.row__icon svg {
  width: 20px;
  height: 20px;
}

.row__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.row__name {
  margin-top: 0.15rem;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
}

.row__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-hi);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.row__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.row__cta:hover svg {
  transform: translateX(3px);
}

/* Exchange logos ---------------------------------------------------- */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.logo-card {
  display: block;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.logo-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}

.logo-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Panel page -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 2.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--silver);
  font-size: 0.86rem;
  font-weight: 600;
}

.chip svg {
  width: 15px;
  height: 15px;
  color: var(--accent-hi);
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 360px;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.tile {
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
}

.tile:nth-child(odd) {
  transform: translateY(-14px);
}

.tile__value {
  color: var(--accent-hi);
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.tile__label {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Posts ------------------------------------------------------------- */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.post:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.post__media {
  height: 190px;
  overflow: hidden;
  background: var(--bg-soft);
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__media--empty {
  display: grid;
  place-items: center;
  color: rgba(59, 130, 246, 0.5);
}

.post__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.post__meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post__title {
  margin-top: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.post__title a {
  color: var(--white);
  text-decoration: none;
}

.post__title a:hover {
  color: var(--accent-hi);
}

.post__excerpt {
  flex: 1;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.post__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: var(--accent-hi);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.post__more svg {
  width: 15px;
  height: 15px;
}

/* FAQ --------------------------------------------------------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.25s ease;
}

.faq-item.is-open {
  border-color: var(--line-strong);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-q svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-hi);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-q svg {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 1.5rem 1.35rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.faq-item.is-open .faq-a {
  display: block;
}

/* CTA band ---------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 2rem;
  background: linear-gradient(120deg, var(--accent-deep) 0%, #0b1224 55%, var(--bg) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta p {
  max-width: 32rem;
  margin: 0.9rem auto 2rem;
  color: var(--silver);
}

/* Article ----------------------------------------------------------- */
.prose {
  color: var(--silver);
}

.prose h2 {
  margin: 2.75rem 0 1rem;
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 700;
}

.prose h3 {
  margin: 2rem 0 0.75rem;
  color: var(--accent-hi);
  font-size: 1.2rem;
  font-weight: 700;
}

.prose p {
  margin-bottom: 1.15rem;
  line-height: 1.8;
}

.prose ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  line-height: 1.9;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: var(--white);
}

.prose table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: rgba(59, 130, 246, 0.12);
  color: var(--white);
  font-weight: 700;
}

.prose tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

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

.cta-inline {
  margin: 3rem 0;
  text-align: center;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--silver);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-col h3 {
  margin-bottom: 1.1rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.65rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-hi);
}

.footer-warn {
  padding: 1.35rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--r-sm);
}

.footer-warn h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--warn);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-warn svg {
  width: 17px;
  height: 17px;
}

.footer-warn p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

/* Floating WhatsApp -------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 58px;
  padding: 0 1.4rem 0 1.05rem;
  background: var(--success);
  border-radius: var(--r-full);
  color: #05231a;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(2, 6, 20, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* Reveals ------------------------------------------------------------ */
.kb-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.kb-reveal--in {
  opacity: 1;
  transform: none;
}

/* Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__grid,
  .split {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .masthead__cta {
    display: none;
  }

  .topbar__contacts a + a {
    display: none;
  }
}

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

  .tile:nth-child(odd) {
    transform: none;
  }

  .tiles,
  .stats {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 44px 1fr;
  }

  .row__cta {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .wa-float {
    width: 58px;
    padding: 0;
    justify-content: center;
  }

  .wa-float span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
