:root {
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --bg: oklch(100% 0 0);
  --ink: oklch(19% 0 0);
  --ink-soft: oklch(48% 0 0);
  --line: oklch(90% 0 0);
  --card: oklch(98.5% 0 0);
  --muted: oklch(96% 0 0);
  --brand: #d21f26;
  --brand-dark: #a8181e;
  --radius-sm: 2px;
  --radius: 6px;
  --max: 68rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site {
  min-height: 100vh;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 4rem));
  }
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

@media (min-width: 640px) {
  :root {
    --header-h: 4.75rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  height: 2.75rem;
}

.logo img {
  height: 2.75rem;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: inline-flex;
  margin-right: -0.5rem;
  padding: 0.5rem;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
  background: var(--bg);
  padding: 1.5rem 1.25rem 2rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid var(--line);
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
}

.mobile-cta {
  width: 100%;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  background: var(--muted);
  border-color: color-mix(in oklab, var(--brand) 45%, transparent);
  color: var(--brand);
}

.header .btn-sm {
  display: none;
}

@media (min-width: 640px) {
  .header .btn-sm {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  padding: 7.5rem 0 4rem;
}

@media (min-width: 640px) {
  .hero {
    padding: 9.5rem 0 5rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3.5rem;
  }
}

.hero-logo {
  width: min(220px, 58vw);
  height: auto;
  margin: 0 0 0.25rem;
}

.hero-title {
  margin: 1.1rem 0 0;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

.hero-kicker {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-lead {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .hero-lead {
    font-size: 1.125rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

/* Sections */
.section {
  border-top: 1px solid var(--line);
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 5rem 0;
  }
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-soft);
}

.label-xs {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label .rule {
  width: 2rem;
  height: 1px;
  background: var(--line);
}

.section h2 {
  margin: 1.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .section h2 {
    font-size: 1.875rem;
  }
}

.prose {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .prose {
    font-size: 1rem;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  gap: 1px;
  margin: 2rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
  padding: 0;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  background: var(--bg);
  padding: 1.5rem;
}

.steps p {
  margin: 0.75rem 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.panel {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .panel {
    padding: 2.5rem;
  }
}

.price {
  margin: 0;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

@media (min-width: 640px) {
  .price {
    font-size: 3.75rem;
  }
}

.free-lesson .price {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .free-lesson .price {
    font-size: 2rem;
  }
}

.price-note {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.price-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 800px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.price-card {
  margin-top: 0;
}

.price-card h3 {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.price-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.price-list strong {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.speaking-note {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ink {
  color: var(--ink);
}

a.ink:hover {
  color: var(--brand);
}

.notes {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.notes li + li {
  margin-top: 0.5rem;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .row {
    flex-direction: row;
    align-items: center;
  }
}

.hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.hint strong,
.hint span {
  color: var(--ink);
  font-weight: 400;
}

.mt-6 {
  margin-top: 1.5rem;
}

/* Speaking levels */
.levels p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.level-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.level {
  min-width: 5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.level:hover {
  background: var(--muted);
}

.level.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.level-action {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.footer-brand {
  letter-spacing: 0.28em;
  color: var(--ink);
}

.footer-logo {
  display: block;
  height: 3.25rem;
}

.footer-logo img {
  height: 3.25rem;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer a:hover {
  color: var(--brand);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: flex-end;
  justify-content: center;
}

.modal.open {
  display: flex;
}

@media (min-width: 640px) {
  .modal {
    align-items: center;
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: color-mix(in oklab, var(--ink) 30%, transparent);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .modal-card {
    border-radius: var(--radius);
    padding: 2.25rem;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-close svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.modal h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal .lead {
  margin: 0.75rem 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.facts div {
  background: var(--bg);
  padding: 1rem;
}

.facts dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal .stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.modal .btn {
  width: 100%;
}

.modal .center {
  text-align: center;
}

/* Reveal: without JS content stays visible for search engines */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.faq-list {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.faq-list details {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.faq-list details p {
  margin: 0.75rem 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
