/* The Online Tuition — cPanel static site */

:root {
  --cream: #ffffff;
  --ink: #0f1c2e;
  --teal: #0e7490;
  --teal-dark: #0a5c72;
  --surface: #f4f9fb;
  --line: #d5e3ea;
  --muted: #4a5c6e;
  --tint: #e7f6f8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 28, 46, 0.12);
  --shadow-sm: 0 8px 24px rgba(15, 28, 46, 0.08);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 1.75rem;
  --radius-3xl: 2rem;
  --wrap: 72rem;
  --header: 4.25rem;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

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

a:hover {
  color: var(--teal);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

p {
  text-wrap: pretty;
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: var(--white);
  padding: 0.6rem 1rem;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 3rem));
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4rem;
}

@media (min-width: 640px) {
  .header-inner {
    min-height: var(--header);
  }
}

.header-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--teal);
}

.logo:hover {
  color: var(--teal);
  opacity: 0.92;
}

.logo-mark {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: var(--teal);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-sub {
  margin-top: 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-badge {
  display: none;
  max-width: 22rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .nav-badge {
    display: inline-flex;
  }
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.55rem;
}

.desktop-nav a {
  font-size: 0.9rem;
  color: var(--muted);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

.menu-btn {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.menu-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* Mobile drawer */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 46, 0.35);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(22rem, 100%);
  height: 100%;
  background: var(--cream);
  border-left: 1px solid var(--line);
  padding: 1.25rem 1.25rem 2rem;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow-y: auto;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .drawer {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.drawer h2 {
  font-size: 1.15rem;
}

.drawer-close {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.drawer-note {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.drawer-nav {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drawer-nav a {
  display: block;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.drawer-nav a:hover,
.drawer-nav a.is-active {
  background: var(--surface);
}

.drawer-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.drawer-label {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 550;
  border: 1px solid var(--teal);
  transition: background 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn:active {
  transform: scale(0.98);
}

.btn-outline {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* Typography helpers */

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  padding: 3rem 0 1rem;
}

.page-hero h1 {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.page-hero .lead {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.02rem;
}

.section {
  padding: 3.5rem 0;
}

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

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-head h2,
.prose h2,
.panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.link-teal {
  color: var(--teal);
  font-size: 0.92rem;
}

.link-teal:hover {
  opacity: 0.85;
}

/* Hero */

.hero {
  padding: 2rem 0 2.5rem;
}

@media (min-width: 1024px) {
  .hero {
    padding: 3rem 0;
  }
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-3xl);
  background: var(--cream);
}

.hero-photo {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 78% 50%;
}

.hero-wash {
  display: none;
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--cream) 0%,
    color-mix(in srgb, var(--cream) 90%, transparent) 42%,
    transparent 70%
  );
}

.hero-copy {
  background: var(--cream);
  padding: 1.25rem 1.25rem 1.5rem;
}

.hero-copy h1 {
  margin-top: 1.15rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
}

.hero-copy .lead {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 1rem;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-meta {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-chip {
  display: none;
}

@media (min-width: 1024px) {
  .hero-photo {
    object-position: 68% 50%;
  }

  .hero-wash {
    display: block;
  }

  .hero-copy {
    position: absolute;
    inset: 0 auto 0 0;
    width: 46%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    padding: 2.5rem;
  }

  .hero-chip {
    display: block;
    pointer-events: none;
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cream) 90%, transparent);
    padding: 0.28rem 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--muted);
  }
}

/* Trial banner */

.trial {
  margin-top: 1.4rem;
  max-width: 28rem;
  border: 2px solid var(--teal);
  background: var(--tint);
  border-radius: var(--radius-xl);
  padding: 1rem 1.15rem;
}

.trial p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}

.trial-chip {
  display: inline-block;
  margin-top: 0.75rem;
  border-radius: 0.55rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trial-wide {
  max-width: none;
}

/* Cards */

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

.grid-3 {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  display: grid;
  gap: 1.2rem;
}

.grid-4 {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

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

.card {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  transition: opacity 0.15s ease;
}

.card:hover {
  opacity: 0.96;
}

.card h2,
.card h3 {
  margin-top: 0.45rem;
  font-size: 1.45rem;
}

.card p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card-cta {
  margin-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--teal);
  font-size: 0.9rem;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-3xl);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card .pad {
  padding: 1.2rem 1.25rem 1.35rem;
}

.media-card h3 {
  font-size: 1.2rem;
}

.media-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.faculty-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-3xl);
}

.faculty-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.faculty-card .pad {
  padding: 1.2rem;
}

.faculty-card h3,
.faculty-card h2 {
  font-size: 1.1rem;
}

.faculty-card .muted {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.ticks {
  margin-top: 0.9rem;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ticks svg {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  color: var(--teal);
}

/* Programme rows */

.prog-row {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-3xl);
}

.prog-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prog-row .pad {
  padding: 1.4rem 1.5rem 1.6rem;
}

.prog-row h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}

.prog-row p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .prog-row {
    grid-template-columns: 2fr 3fr;
  }

  .prog-row img {
    aspect-ratio: auto;
    min-height: 13rem;
    height: 100%;
  }

  .prog-row .pad {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
  }
}

/* Frame */

.frame {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-3xl);
  padding: 0.5rem;
}

.frame-inner {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

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

.frame figcaption {
  padding: 0.5rem 0.75rem 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.ratio-16-10 {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.split {
  display: grid;
  gap: 2.4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .split.start {
    align-items: start;
  }
}

.teal-band {
  background: var(--teal);
  color: var(--white);
  border-top: 0;
  border-bottom: 0;
}

.teal-band .kicker {
  color: rgba(255, 255, 255, 0.8);
}

.teal-band p {
  margin-top: 1rem;
  max-width: 34rem;
  opacity: 0.92;
}

.teal-band .frame {
  border-color: rgba(255, 255, 255, 0.2);
  background: color-mix(in srgb, var(--teal) 70%, black);
}

.teal-band .frame figcaption {
  color: rgba(255, 255, 255, 0.75);
}

/* Testimonials */

.testimonials-mask {
  overflow: hidden;
  margin-top: 2rem;
}

.testimonials-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding-inline: 1rem;
  animation: testimonial-marquee 42s linear infinite;
}

.testimonials-mask:hover .testimonials-track {
  animation-play-state: paused;
}

@keyframes testimonial-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.quote-card {
  width: 20rem;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
}

@media (min-width: 640px) {
  .quote-card {
    width: 24rem;
  }
}

.quote-card blockquote {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.quote-card figcaption {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.quote-card .who {
  display: block;
  font-size: 0.9rem;
  font-weight: 550;
}

.quote-card .meta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Path finder */

.finder {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-3xl);
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .finder {
    padding: 2rem;
  }
}

.finder h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.finder .lead {
  margin-top: 0.5rem;
  max-width: 36rem;
  font-size: 0.92rem;
}

.finder-label {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  font-weight: 550;
}

.choice-grid {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .choice-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.choice {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.choice:hover {
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
}

.choice.is-on {
  border-color: var(--teal);
  background: var(--tint);
}

.choice strong {
  display: block;
  font-weight: 550;
}

.choice span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.chips {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  min-height: 2.7rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 0.9rem;
}

.chip:hover {
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
}

.chip.is-on {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.finder-go {
  margin-top: 1.8rem;
}

/* FAQ */

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

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

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 550;
}

.faq-item button svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

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

.faq-item .answer {
  display: none;
  padding: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

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

/* Forms */

.form-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-3xl);
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .form-panel {
    padding: 2rem;
  }
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 550;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  outline: none;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .form-actions {
    flex-direction: row;
    align-items: center;
  }
}

.note {
  font-size: 0.78rem;
  color: var(--muted);
}

.bullet-muted {
  margin-top: 1.4rem;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.bullet-muted li {
  margin-top: 0.4rem;
}

.points {
  margin-top: 1.4rem;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.points li {
  border-left: 2px solid var(--teal);
  padding-left: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.badges {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.crumb {
  font-size: 0.88rem;
  color: var(--muted);
}

.crumb a:hover {
  color: var(--teal);
}

/* Steps */

.steps {
  list-style: none;
  display: grid;
  gap: 1.8rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.step-n {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal);
}

.steps h2 {
  font-size: 1.45rem;
}

.steps p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.note-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
}

.note-card h3 {
  font-size: 1.2rem;
}

.note-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Languages / library */

.tier {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-3xl);
  padding: 1.6rem;
}

.tier.featured {
  border: 2px solid var(--teal);
  background: var(--tint);
}

.tier h2 {
  font-size: 1.5rem;
}

.tier p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.prose {
  max-width: 44rem;
}

.prose p + p,
.prose h2 + p,
.prose ul + p {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.prose ul {
  margin: 1rem 0 0 1.1rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.35rem;
}

.cta-row {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.who-card {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
}

.who-card img {
  width: 6rem;
  height: 6rem;
  border-radius: 0.8rem;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

.who-card h3 {
  font-size: 1.05rem;
}

/* Portal / 404 */

.center-page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 4.5rem 1rem 5rem;
}

.center-page h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.center-page p {
  margin-top: 1rem;
  color: var(--muted);
}

.lang-card {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
}

.lang-card h2 {
  font-size: 1.35rem;
}

.lang-card p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Chatbot */

.chat-root {
  position: fixed;
  right: 1rem;
  bottom: 6rem;
  z-index: 50;
}

@media (min-width: 768px) {
  .chat-root {
    bottom: 1.5rem;
  }
}

.chat-panel {
  display: none;
  margin-bottom: 0.75rem;
  width: min(calc(100vw - 2rem), 22rem);
  height: 28rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.chat-root.is-open .chat-panel {
  display: flex;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--teal);
  color: var(--white);
  padding: 0.8rem 1rem;
}

.chat-head p {
  font-size: 0.92rem;
  font-weight: 600;
}

.chat-head span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.8;
}

.chat-x {
  color: var(--white);
  border-radius: 0.4rem;
  padding: 0.25rem;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.88rem;
}

.bubble {
  max-width: 90%;
  border-radius: 1rem 1rem 1rem 0.4rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
}

.reply {
  margin-left: auto;
  max-width: 90%;
  border-radius: 1rem 1rem 0.4rem 1rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
}

.chat-foot {
  border-top: 1px solid var(--line);
  padding: 0.7rem;
}

.chat-form {
  display: flex;
  gap: 0.45rem;
}

.chat-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--teal);
}

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--white);
}

.chat-toggle {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow);
  margin-left: auto;
}

.chat-toggle:active {
  transform: scale(0.96);
}

.chat-toggle svg {
  width: 1.45rem;
  height: 1.45rem;
}

/* Mobile dock */

.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 95%, transparent);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0.75rem max(0.75rem, env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .dock {
    display: none;
  }
}

.dock-inner {
  max-width: 28rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Footer */

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

.footer-grid {
  display: grid;
  gap: 2.2rem;
  padding: 3.2rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer p.blurb {
  margin-top: 1rem;
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.site-footer h3 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 550;
}

.site-footer ul {
  list-style: none;
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--teal);
}

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

.footer-base p {
  padding: 1.1rem 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.wa-line {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Focus */

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .testimonials-track {
    animation: none !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    transform: none !important;
  }
}
