@font-face {
  font-family: "AR Essence";
  src: url("fonts/ar-essence.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-warm: #fff6f0;
  --text: #151b20;
  --muted: #66727d;
  --primary: #e7773f;
  --primary-dark: #bd552c;
  --accent: #f7b733;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c4a;
  --whatsapp-font: "WhatsApp", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand-font: "AR Essence", "Trebuchet MS", sans-serif;
  --ink: #101820;
  --ink-soft: #1d2a32;
  --border: #dde3e8;
  --shadow: 0 22px 55px rgba(16, 24, 32, 0.12);
  --environment-indicator-height: 0px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--ink);
  line-height: 1.65;
}

/*
 * AR Essence se reserva para la marca del header y los encabezados
 * de sección. El resto de la interfaz permanece en Inter.
 */
h2,
.eyebrow,
.brand strong {
  font-family: var(--brand-font);
}

main {
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: var(--environment-indicator-height) 0 auto;
  z-index: 50;
  padding: calc(1.2rem + env(safe-area-inset-top, 0px)) 0 1.2rem;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.94) 0%, rgba(16, 24, 32, 0.68) 100%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  transition: background 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease, padding 0.28s ease;
}

.environment-indicator {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: calc(7px + env(safe-area-inset-top, 0px)) 16px 7px;
  color: #422006;
  background: #fef3c7;
  border-bottom: 1px solid #f59e0b;
  font-size: .82rem;
  line-height: 1.35;
  text-align: center;
}

.environment-indicator strong {
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

.environment-indicator--local { color: #164e63; background: #cffafe; border-color: #06b6d4; }
.environment-indicator--unknown { color: #7f1d1d; background: #fee2e2; border-color: #ef4444; }

@media (max-width: 680px) {
  .environment-indicator { align-items: stretch; flex-direction: column; gap: 1px; }
}

.site-header.is-at-top {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  background: rgba(16, 24, 32, 0.94);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: max-content;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #ead9c7;
  box-shadow: 0 14px 28px rgba(231, 119, 63, 0.24);
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand strong {
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.reviews-link a:hover,
.link:hover {
  color: var(--primary);
}

.nav-links a:focus-visible,
.nav-btn:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible,
.carousel-btn:focus-visible,
.carousel-dot:focus-visible {
  outline: 3px solid rgba(247, 183, 51, 0.8);
  outline-offset: 3px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #ffffff;
  font-family: var(--whatsapp-font);
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.24);
}

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

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.36);
  color: #ffffff;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 19, 24, 0.92) 0%, rgba(13, 19, 24, 0.76) 38%, rgba(13, 19, 24, 0.32) 70%, rgba(13, 19, 24, 0.16) 100%),
    linear-gradient(180deg, rgba(13, 19, 24, 0.28) 0%, rgba(13, 19, 24, 0.2) 48%, rgba(13, 19, 24, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 9rem 0 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #e78151;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 1.2rem;
  font-size: clamp(2.3rem, 3.57vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 0 0 1.8rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.03rem, 1.4vw, 1.22rem);
}

.hero-actions,
.cta-actions,
.trust-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.92rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.course-card:hover,
.feature-list article:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(231, 119, 63, 0.28);
}

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

.btn-whatsapp {
  background: var(--whatsapp);
  font-family: var(--whatsapp-font);
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.28);
}

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

.btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: var(--ink);
  color: #ffffff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin-top: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats div {
  min-height: 106px;
  padding: 1.15rem;
  background: rgba(16, 24, 32, 0.58);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.section {
  padding: 5.4rem 0;
}

.section-white {
  background: #ffffff;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading h2,
.section-copy h2,
.trust-grid h2,
.cta-box h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.07vw, 2.01rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p,
.section-copy p,
.cta-box p {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.course-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.45rem;
  border: 1px solid rgba(231, 119, 63, 0.34);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  box-shadow: var(--shadow);
}

.course-card h3,
.feature-list h3,
.process-steps h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1.38rem;
  line-height: 1.2;
}

.course-card p,
.feature-list p,
.process-steps p,
.testimonial-slide p {
  margin: 0;
  color: var(--muted);
}

.link {
  margin-top: auto;
  color: var(--primary-dark);
  font-weight: 900;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 3rem;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 2rem;
}

.section-copy .btn {
  margin-top: 1.8rem;
}

.section-checklist {
  display: grid;
  gap: 0.85rem;
  margin: 1.3rem 0 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 750;
}

.section-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.section-checklist li::before {
  content: "✓";
  color: #e78151;
  font-weight: 900;
  line-height: 1.2;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-list article {
  min-height: 230px;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(16, 24, 32, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-list span {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: #e78151;
  font-size: 0.85rem;
  font-weight: 900;
}

.process-block {
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(900px, 100%);
  margin: 0 auto;
}

.process-steps article {
  position: relative;
  min-height: 245px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(16, 24, 32, 0.07);
  text-align: left;
}

.process-steps span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 1.35rem;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.trust-band {
  padding: 3.4rem 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 58%, var(--primary-dark) 100%);
}

.trust-band .eyebrow {
  color: #e78151;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.testimonials-section {
  display: grid;
  gap: 2rem;
}

.google-summary-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(231, 119, 63, 0.2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(16, 24, 32, 0.09);
}

.google-summary-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 900;
}

.google-summary-brand p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.google-summary-logo {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.google-logo-icon {
  width: 32px;
  height: 32px;
}

.google-rating-text {
  display: grid;
  gap: 0.15rem;
}

.google-rating-text strong {
  font-size: 2.4rem;
  line-height: 1;
}

.stars,
.google-summary-card .stars {
  color: #f2b01e;
  letter-spacing: 0.08em;
}

.google-review-count {
  text-align: right;
  color: var(--muted);
}

.google-review-count strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}

.google-review-count span {
  color: #e78151;
}

.carousel-shell {
  display: grid;
  gap: 1rem;
  width: min(1010px, 100%);
  margin: 0 auto;
}

.carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.7rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  padding: 0 0.5rem;
}

.testimonial-slide {
  flex: 0 0 330px;
  min-width: 330px;
  min-height: 245px;
  padding: 1.35rem;
  scroll-snap-align: center;
  border: 1px solid rgba(231, 119, 63, 0.2);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.08);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: grid;
  gap: 0.15rem;
}

.testimonial-author strong {
  font-size: 1rem;
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.88rem;
}

.testimonial-text {
  min-height: 9rem;
}

.testimonial-slide p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.carousel-btn {
  min-height: 44px;
  padding: 0.75rem 1.05rem;
  touch-action: manipulation;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-weight: 900;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  touch-action: manipulation;
  cursor: pointer;
  border: 1px solid rgba(16, 24, 32, 0.28);
  border-radius: 50%;
  background: transparent;
}

.carousel-dot.active {
  background: var(--primary);
}

.testimonial-empty,
.testimonial-error {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.08);
}

.reviews-link {
  text-align: center;
}

.reviews-link a {
  color: #e78151;
  font-size: calc(1rem - 2pt);
  font-weight: 400;
}

.reviews-link a:hover {
  color: #e78151;
}

.course-card .link {
  color: #e78151;
  font-size: calc(1rem - 2pt);
  font-weight: 400;
}

.course-card .link:hover {
  color: #e78151;
}

.course-card .link {
  padding-top: 0.7rem;
}

.faq-section {
  display: grid;
  gap: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  width: min(860px, 100%);
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.07);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 64px;
  padding: 1rem 1.15rem;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
}

.faq-trigger:focus-visible {
  outline: 3px solid rgba(247, 183, 51, 0.8);
  outline-offset: -3px;
}

.faq-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(231, 119, 63, 0.12);
  color: #e78151;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid rgba(16, 24, 32, 0.07);
}

.faq-content p {
  margin: 0.95rem 0 0;
  color: var(--muted);
}

.cta-section {
  background: #ffffff;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(420px, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid rgba(231, 119, 63, 0.24);
  border-radius: 8px;
  background: var(--surface-warm);
  box-shadow: 0 16px 40px rgba(16, 24, 32, 0.08);
}

.cta-box h2 {
  max-width: 620px;
}

.cta-copy {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.2rem 0;
}

.cta-copy h2 {
  margin-bottom: 0.15rem;
}

.cta-copy p {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 0.62rem;
  min-width: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 43px;
  padding: 0.68rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  line-height: 1.35;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(102, 114, 125, 0.82);
}

.form-row textarea {
  min-height: 118px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(247, 183, 51, 0.36);
  border-color: rgba(231, 119, 63, 0.52);
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-recaptcha {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.contact-status:empty {
  display: none;
}

.contact-status.success {
  color: var(--whatsapp-dark);
}

.contact-status.error {
  color: var(--primary-dark);
}

.cta-box .recaptcha-disclaimer {
  margin: -0.15rem 0 0;
  color: rgba(102, 114, 125, 0.68);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.cta-box .recaptcha-disclaimer a {
  color: rgba(102, 114, 125, 0.78);
  font-weight: 600;
}

.grecaptcha-badge {
  visibility: hidden;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.contact-actions .btn {
  width: 100%;
  font-size: 1rem;
}

.footer {
  padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom, 0px));
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1.05fr auto;
  gap: 1.8rem;
}

.footer strong {
  display: block;
  margin-bottom: 0.7rem;
  color: #ffffff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand strong {
  margin-bottom: 0;
  font-family: inherit;
  font-size: 0.8rem;
  line-height: 1.4;
}

.footer p,
.footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid p,
.footer-grid a {
  font-size: 0.74rem;
  line-height: 1.4;
}

.footer-grid strong {
  font-size: 0.8rem;
}

.footer a {
  display: block;
  margin-bottom: 0.45rem;
}

.footer .footer-brand {
  display: inline-flex;
  margin-bottom: 0.7rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  justify-content: center;
}

.footer-social .social-links {
  justify-content: center;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  margin-bottom: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
}

.footer .social-links a:hover {
  border-color: rgba(231, 119, 63, 0.55);
  background: rgba(231, 119, 63, 0.14);
  color: #ffffff;
}

.social-links svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.social-links span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.6rem;
}

.footer-meta-start,
.footer-meta-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-meta-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-meta-start {
  justify-self: start;
}

.footer-meta .footer-social {
  justify-self: center;
}

.footer-meta-end {
  justify-self: end;
  justify-content: flex-end;
}

.footer-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
}

.footer-meta a {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-meta a:hover {
  color: var(--primary);
}

.footer-credit {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 0.38rem;
  width: max-content;
  max-width: 100%;
  line-height: 1;
  white-space: nowrap;
}

.footer-credit img {
  display: inline-block;
  width: 22px;
  height: 20px;
  object-fit: contain;
  transform: translateY(-1px);
}

.footer-credit a {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 0.38rem;
  color: inherit;
}

.site-version {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}

.legal-page .site-header {
  background: var(--ink);
}

.legal-page .site-header.is-at-top {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.legal-page .site-header.is-scrolled {
  background: rgba(16, 24, 32, 0.94);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.legal-hero {
  padding: 10.2rem 0 4.6rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 62%, var(--primary-dark) 100%);
}

.legal-hero .eyebrow {
  color: #e78151;
}

.legal-header {
  max-width: 820px;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(2.76rem, 5.75vw, 5.64rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-header p {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.legal-section {
  padding-top: 4rem;
}

.legal-content {
  display: grid;
  gap: 1.1rem;
  max-width: 900px;
}

.legal-content article {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.44rem;
  line-height: 1.25;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
}

.legal-content ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  list-style: disc;
}

.legal-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.not-found-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--ink);
}

.not-found-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.not-found-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 19, 24, 0.94) 0%, rgba(13, 19, 24, 0.82) 42%, rgba(13, 19, 24, 0.42) 72%, rgba(13, 19, 24, 0.2) 100%),
    linear-gradient(180deg, rgba(13, 19, 24, 0.2) 0%, rgba(13, 19, 24, 0.88) 100%);
}

.not-found-content {
  position: relative;
  z-index: 2;
  padding: 9rem 0 4rem;
}

.not-found-content .eyebrow {
  color: #f7b733;
}

.not-found-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.6rem, 11.5vw, 10.35rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.not-found-subtitle {
  max-width: 720px;
  margin: 1.45rem 0 0;
  color: #ffffff;
  font-size: clamp(1.84rem, 3.91vw, 3.62rem);
  font-weight: 900;
  line-height: 1.05;
}

.not-found-content p:not(.not-found-subtitle) {
  max-width: 650px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.not-found-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
}

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(760px, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid rgba(231, 119, 63, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.98);
  color: var(--text);
  box-shadow: 0 18px 46px rgba(16, 24, 32, 0.18);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-notice.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(0.75rem);
}

.cookie-notice-copy {
  display: grid;
  gap: 0.2rem;
}

.cookie-notice strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cookie-notice-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cookie-notice-actions a {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.cookie-notice-actions a:hover {
  color: var(--ink);
}

.cookie-notice .btn {
  min-height: 42px;
  padding: 0.7rem 1rem;
  white-space: nowrap;
}

@media (max-width: 1020px) {
  .site-header {
    background: var(--ink);
  }

  .site-header.is-at-top {
    background: transparent;
  }

  .site-header.is-scrolled {
    background: rgba(16, 24, 32, 0.94);
  }

  .nav-row {
    position: relative;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: grid;
    gap: 5px;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    margin-top: 0.7rem;
    padding: 0.6rem;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(16, 24, 32, 0.96);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
    backdrop-filter: none;
  }

  .nav-links.is-open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-btn {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 8rem;
  }

  .legal-hero {
    padding-top: 7rem;
  }

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

  .section-copy {
    position: static;
  }

  .course-card {
    min-height: auto;
  }

  .process-steps,
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-actions {
    justify-content: flex-start;
  }

  .cta-box {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .cta-copy {
    align-content: start;
  }
}

@media (max-width: 860px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1.2rem, 1160px);
  }

  .section {
    padding: 3.8rem 0;
  }

  .hero {
    min-height: calc(100svh - 80px);
  }

  .hero-content {
    padding: clamp(10.6rem, 34vh, 13.5rem) 0 1.8rem;
  }

  .legal-hero {
    padding-top: 7.05rem;
  }

  .hero-image {
    object-fit: contain;
    object-position: center top;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(13, 19, 24, 0.5) 0%, rgba(13, 19, 24, 0.28) 58%, rgba(13, 19, 24, 0.1) 100%),
      linear-gradient(0deg, rgba(13, 19, 24, 0.98) 0%, rgba(13, 19, 24, 0.92) 28%, rgba(13, 19, 24, 0.72) 48%, rgba(13, 19, 24, 0.24) 72%, rgba(13, 19, 24, 0.04) 100%);
  }

  .course-grid,
  .process-steps,
  .feature-list,
  .google-summary-card {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
  }

  .hero-stats div {
    display: grid;
    align-content: center;
    min-height: 92px;
    padding: 0.7rem 0.45rem;
    text-align: center;
  }

  .hero-stats strong {
    margin-bottom: 0.35rem;
    font-size: clamp(1.35rem, 9vw, 2rem);
  }

  .hero-stats span {
    max-width: 9ch;
    margin: 0 auto;
    font-size: clamp(0.62rem, 2.8vw, 0.8rem);
    line-height: 1.18;
  }

  .btn,
  .nav-btn,
  .contact-actions,
  .contact-actions .btn,
  .trust-actions,
  .trust-actions .btn {
    width: 100%;
  }

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

  .section-heading.centered {
    text-align: left;
  }

  .section-heading.centered .eyebrow {
    justify-content: flex-start;
  }

  .google-review-count {
    text-align: left;
  }

  .testimonial-slide {
    flex-basis: min(300px, calc(100vw - 2.1rem));
    min-width: min(300px, calc(100vw - 2.1rem));
  }

  .carousel-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0.7rem;
    justify-content: stretch;
    flex-wrap: nowrap;
  }

  .carousel-btn {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .carousel-btn::before {
    font-size: 1.55rem;
    line-height: 1;
  }

  .carousel-btn.prev::before {
    content: "<";
  }

  .carousel-btn.next::before {
    content: ">";
  }

  .carousel-dots {
    min-width: 0;
    gap: 0.45rem;
  }

  .footer {
    padding: 2.2rem 0 calc(2.2rem + env(safe-area-inset-bottom, 0px));
  }

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

  .footer-grid > div {
    grid-column: 1 / -1;
  }

  .footer strong {
    margin-bottom: 0.35rem;
  }

  .footer-grid p,
  .footer-grid a {
    font-size: 0.74rem;
  }

  .footer-grid strong {
    font-size: 0.8rem;
  }

  .footer-brand {
    margin-bottom: 0.45rem;
  }

  .footer a {
    margin-bottom: 0.25rem;
  }

  .footer .social-links {
    justify-content: center;
    gap: 0.55rem;
  }

  .footer .social-links a {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1rem;
    margin-top: 1.45rem;
    padding-top: 0.85rem;
    text-align: center;
  }

  .footer-meta-end {
    justify-content: center;
    gap: 0.7rem 1rem;
  }

  .footer-social {
    order: 1;
    flex: 0 0 100%;
  }

  .footer-meta-start {
    display: contents;
  }

  .footer-meta-links {
    display: contents;
  }

  .footer-meta-links a[data-footer-page="privacy"] {
    order: 2;
    flex: 0 0 auto;
  }

  .footer-meta-links a[data-footer-page="terms"] {
    order: 2;
    flex: 0 0 auto;
  }

  .footer-meta-end {
    order: 4;
    flex: 0 0 100%;
  }

  .footer-copy {
    order: 3;
    grid-column: auto;
    grid-row: auto;
    flex: 0 0 100%;
    justify-self: auto;
  }

  .footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.28rem;
    width: auto;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  .footer-credit img {
    flex: 0 0 auto;
  }

  .footer-credit a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.28rem;
    min-width: 0;
    text-align: center;
    white-space: normal;
  }

  .footer-meta .site-version {
    font-size: 0.68rem;
  }

  .legal-actions,
  .legal-actions .btn,
  .not-found-actions,
  .not-found-actions .btn {
    width: 100%;
  }

  .not-found-hero {
    min-height: auto;
  }

  .not-found-content {
    padding: 8.2rem 0 3.2rem;
  }

  .not-found-image {
    object-fit: contain;
    object-position: center top;
  }

  .not-found-overlay {
    background:
      linear-gradient(90deg, rgba(13, 19, 24, 0.48) 0%, rgba(13, 19, 24, 0.24) 70%, rgba(13, 19, 24, 0.1) 100%),
      linear-gradient(0deg, rgba(13, 19, 24, 0.98) 0%, rgba(13, 19, 24, 0.92) 42%, rgba(13, 19, 24, 0.34) 76%, rgba(13, 19, 24, 0.05) 100%);
  }

  .cookie-notice {
    left: 0.85rem;
    right: 0.85rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    grid-template-columns: 1fr;
    width: auto;
    padding: 0.9rem;
    transform: none;
  }

  .cookie-notice.is-hiding {
    transform: translateY(0.75rem);
  }

  .cookie-notice-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .cookie-notice-actions a {
    text-align: center;
  }

  .cookie-notice .btn {
    width: 100%;
  }
}
