/* English Tutor — Home landing (light, warm, premium) */

html:has(body.home) {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


body.home.nav-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

body.home {
  --bg-top: #faf8f5;
  --bg-bottom: #f5f3ef;
  --surface: #ffffff;
  --surface-elevated: #fffefb;
  --border: rgba(30, 58, 95, 0.1);
  --border-strong: rgba(30, 58, 95, 0.16);
  --text: #1a2332;
  --text-muted: #5c6573;
  --text-soft: #7a8494;
  --navy: #1e3a5f;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --purple-soft: rgba(99, 102, 241, 0.12);
  --purple: #6366f1;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  --shadow-sm: 0 1px 2px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 16px 48px rgba(30, 58, 95, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --nav-height: 64px;
  --content-max: 1120px;
  --section-pad-y: clamp(3.5rem, 8vw, 5.5rem);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

body.home a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

/* ——— Layout ——— */

body.home .container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

body.home main {
  overflow-x: clip;
}

body.home .section-heading {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

body.home .section-heading h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

body.home .section-heading p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.65;
}

body.home .section-label-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 1.25rem);
  margin-bottom: 1rem;
}

body.home .section-label-wrap::before,
body.home .section-label-wrap::after {
  content: "";
  flex: 0 1 clamp(1.75rem, 5vw, 3.25rem);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.35) 100%);
}

body.home .section-label-wrap::after {
  background: linear-gradient(270deg, transparent 0%, rgba(37, 99, 235, 0.35) 100%);
}

body.home .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(37, 99, 235, 0.06) 100%);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  white-space: nowrap;
}

body.home .section-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ——— Header ——— */

body.home .site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

body.home .nav-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.home .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

body.home .brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home .brand:hover {
  color: var(--navy);
  opacity: 0.88;
}

body.home .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

body.home .header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  min-width: 0;
}

body.home .site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

body.home .site-nav a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

body.home .site-nav a:hover {
  color: var(--navy);
  background: rgba(30, 58, 95, 0.06);
}

body.home .lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-full);
  background: rgba(30, 58, 95, 0.06);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

body.home .lang-btn,
body.home .nav-toggle,
body.home .site-nav a {
  touch-action: manipulation;
}

body.home .lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  line-height: 1.2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.home .lang-btn:hover {
  color: var(--navy);
}

body.home .lang-btn.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

body.home .nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

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

body.home .nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.home .nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

body.home .nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

/* ——— Buttons ——— */

body.home .btn-primary,
body.home .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.875rem 1.375rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

body.home .btn-primary {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

body.home .btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.42);
  transform: translateY(-1px);
}

body.home .btn-secondary {
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

body.home .btn-secondary:hover {
  color: var(--navy);
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--surface-elevated);
}

body.home .app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.65rem 1.125rem 0.65rem 0.875rem;
  border-radius: var(--radius-md);
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
  min-height: 52px;
}

body.home .app-store-badge:hover {
  color: #fff;
  background: #111;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

body.home .app-store-badge svg,
body.home .app-store-badge .badge-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

body.home .app-store-badge .badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

body.home .app-store-badge .badge-kicker {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

body.home .app-store-badge .badge-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ——— Hero ——— */

body.home .hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

body.home .hero-grid {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

body.home .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--purple-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

body.home .hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

body.home .hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--navy);
}

body.home .hero-content h1 span,
body.home .hero-content h1 .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.home .hero-lead {
  margin: 0 0 0.875rem;
  max-width: 32rem;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}

body.home .hero-subtitle {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
}

body.home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1rem;
}

body.home .hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

body.home .hero-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.14) 0%, rgba(99, 102, 241, 0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.home .hero-screenshot {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  margin-inline: auto;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

body.home .hero-screenshot img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-xl) - 4px);
}

/* ——— Showcase carousel ——— */

body.home .showcase-section {
  padding-block: var(--section-pad-y);
  overflow: hidden;
}

body.home .showcase-scroll {
  margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2rem));
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 58, 95, 0.25) transparent;
}

body.home .showcase-scroll::-webkit-scrollbar {
  height: 6px;
}

body.home .showcase-scroll::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 95, 0.2);
  border-radius: var(--radius-full);
}

body.home .showcase-track {
  display: flex;
  gap: 0.25rem;
  width: max-content;
  padding-bottom: 0.5rem;
}

body.home .showcase-item {
  flex: 0 0 auto;
  width: clamp(200px, 42vw, 260px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.home .showcase-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-md);
}

body.home .showcase-frame img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-lg) - 4px);
  background: var(--bg-top);
}

body.home .showcase-caption h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

body.home .showcase-caption p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ——— Features ——— */

body.home .features-section {
  padding-block: var(--section-pad-y);
}

body.home .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

body.home .feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.375rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.home .feature-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.home .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(99, 102, 241, 0.12) 100%);
  color: var(--blue);
}

body.home .feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home .feature-icon svg [fill="currentColor"],
body.home .feature-icon svg.filled {
  fill: currentColor;
  stroke: none;
}

body.home .feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

body.home .feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ——— Tutors ——— */

body.home .tutors-section {
  padding-block: var(--section-pad-y);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
}

body.home .tutors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

body.home .tutor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

body.home .tutor-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 3px solid rgba(37, 99, 235, 0.15);
  box-shadow: var(--shadow-sm);
}

body.home .tutor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.home .tutor-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

body.home .tutor-role {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

body.home .tutor-card p {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ——— Scenarios ——— */

body.home .scenarios-section {
  padding-block: var(--section-pad-y);
}

body.home .scenario-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-md);
}

body.home .scenario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

body.home .scenario-chip,
body.home .chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--bg-top);
  border: 1px solid var(--border);
}

body.home .scenario-chip.highlight,
body.home .chip.highlight {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ——— Progress ——— */

body.home .progress-section {
  padding-block: var(--section-pad-y);
}

body.home .progress-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

body.home .progress-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

body.home .progress-copy p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

body.home .progress-stats {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

body.home .progress-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: center;
  font-size: 0.875rem;
}

body.home .progress-stat span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

body.home .progress-stat span:last-child {
  color: var(--navy);
  font-weight: 700;
}

body.home .progress-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(30, 58, 95, 0.08);
  overflow: hidden;
}

body.home .progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent-gradient);
}

body.home .progress-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
}

body.home .progress-visual img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: calc(var(--radius-xl) - 4px);
}

/* ——— AI providers ——— */

body.home .providers-section {
  padding-block: var(--section-pad-y);
}

body.home .providers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

body.home .provider-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

body.home .providers-note {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ——— Premium ——— */

body.home .premium-section {
  padding-block: var(--section-pad-y);
}

body.home .premium-banner {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.04) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: var(--shadow-md);
}

body.home .premium-banner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

body.home .premium-banner p {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

body.home .premium-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

body.home .premium-pill {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
}

/* ——— Download CTA ——— */

body.home .cta-section,
body.home #download {
  padding-block: var(--section-pad-y);
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

body.home .cta-panel {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

body.home .cta-panel h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

body.home .cta-panel p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

body.home .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

/* ——— Footer ——— */

body.home .site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 2.5rem;
  border-top: 1px solid var(--border);
  background: rgba(245, 243, 239, 0.6);
}

body.home .footer-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

body.home .site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

body.home .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

body.home .footer-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

body.home .footer-links a:hover {
  color: var(--blue);
}

/* ——— Responsive ——— */

@media (min-width: 430px) {
  body.home .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  body.home .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.home .hero-screenshot {
    width: min(100%, 300px);
    margin-inline: 0;
    margin-left: auto;
  }

  body.home .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  body.home .tutors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.home .progress-layout {
    grid-template-columns: 1fr 1fr;
  }

  body.home .providers-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  body.home .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  body.home {
    --nav-height: 72px;
  }

  body.home .site-nav a {
    padding: 0.5rem 1rem;
  }

  body.home .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body.home .hero-screenshot {
    width: min(100%, 340px);
  }

  body.home .showcase-item {
    width: 240px;
  }
}

@media (min-width: 1440px) {
  body.home {
    --content-max: 1200px;
  }

  body.home .hero-screenshot {
    width: 360px;
  }

  body.home .showcase-item {
    width: 260px;
  }

  body.home .features-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  body.home .site-nav {
    display: none;
  }

  body.home .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--nav-height) + 8px);
    right: clamp(1rem, 4vw, 1.25rem);
    left: clamp(1rem, 4vw, 1.25rem);
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    max-height: calc(100dvh - var(--nav-height) - 1.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.home .site-nav.is-open a {
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
  }

  body.home.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.home .site-header {
    position: sticky;
  }


  body.home .nav-inner {
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
  }

  body.home .brand {
    flex: 1 1 auto;
    font-size: clamp(0.8125rem, 3.4vw, 1rem);
  }

  body.home .section-label {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }


  body.home .nav-toggle {
    display: inline-flex;
    order: -1;
    margin-right: 0.25rem;
  }

  body.home .brand {
    margin-right: auto;
    min-width: 0;
  }

  body.home .lang-switch {
    position: relative;
    z-index: 210;
    margin-left: 0.375rem;
    flex-shrink: 0;
  }

  body.home .lang-btn {
    font-size: 1rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 374px) {
  body.home .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.home .hero-actions .app-store-badge,
  body.home .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  body.home .lang-switcher {
    order: -1;
  }
}


/* ——— Site fixes: showcase, phone shells, legal pages, nav ——— */

body.home .lang-switch,
body.home .lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  margin-left: 0.25rem;
  border-radius: var(--radius-full);
  background: rgba(30, 58, 95, 0.06);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

body.home .site-nav a.active {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
}

body.home .hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--navy);
}

body.home img.hero-screenshot,
body.home img.hero-screenshot--pair {
  width: 100%;
  max-width: min(100%, 420px);
  height: auto;
  max-height: min(58vh, 480px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 16px 36px rgba(30, 58, 95, 0.14));
}

body.home .showcase {
  padding-block: var(--section-pad-y);
  overflow: hidden;
}

body.home .showcase .container {
  overflow: hidden;
}

body.home .showcase-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 58, 95, 0.25) transparent;
  padding: 0.25rem 0 1rem;
  margin: 0;
  max-width: 100%;
}

body.home .showcase-carousel::-webkit-scrollbar {
  height: 6px;
}

body.home .showcase-carousel::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 95, 0.2);
  border-radius: var(--radius-full);
}

body.home .showcase-track {
  display: flex;
  gap: 0.25rem;
  width: max-content;
  max-width: none;
  padding: 0.25rem 0.125rem 0.5rem;
}

body.home .showcase-item {
  flex: 0 0 auto;
  width: clamp(148px, 22vw, 196px);
  max-width: 196px;
}

body.home .phone-shell {
  background: linear-gradient(160deg, #3a3a40 0%, #1c1c1f 100%);
  border-radius: 20px;
  padding: 3px;
  box-shadow: 0 8px 22px rgba(30, 58, 95, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.home .phone-shell__screen {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

body.home .phone-shell__screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1242 / 2688;
  object-fit: cover;
  object-position: center top;
}

body.home .showcase-caption h3 {
  margin: 0.875rem 0 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

body.home .showcase-caption p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

body.home .features,
body.home .scenarios,
body.home .providers,
body.home .premium,
body.home .progress-section {
  padding-block: var(--section-pad-y);
}

body.home .app-store-badge__kicker,
body.home .app-store-badge__title {
  display: block;
}

body.home .app-store-badge {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0.65rem 1.25rem;
}

body.home .app-store-badge__kicker {
  font-size: 0.625rem;
  font-weight: 500;
  opacity: 0.85;
}

body.home .app-store-badge__title {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Legal / sub pages — same shell as home */
body.home .legal-content {
  max-width: calc(var(--content-max) + 48px);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 4rem);
}

body.home .legal-content .page-header {
  margin-bottom: 1.25rem;
}

body.home .legal-content .page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.2;
}

body.home .legal-content .page-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-style: italic;
}

body.home .legal-content .page-intro {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

body.home .legal-content .content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

body.home .legal-content .content-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

body.home .legal-content .content-card p {
  margin: 0 0 1rem;
}

body.home .legal-content .content-card p:last-child {
  margin-bottom: 0;
}

body.home .legal-content .content-card ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

body.home .legal-content .content-card li {
  margin-bottom: 0.5rem;
}

body.home .legal-content .content-card li strong {
  color: var(--navy);
}

body.home .legal-content .content-card a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.home .legal-content .contact-link {
  display: inline-flex;
  padding: 0.625rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none !important;
}

@media (min-width: 768px) {
  body.home .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  body.home .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.home .showcase-item {
    width: clamp(160px, 18vw, 200px);
  }
}

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

@media (min-width: 768px) {
  body.home .site-nav {
    order: 1;
    margin-left: auto;
  }

  body.home .lang-switch {
    order: 2;
  }
}

/* ——— Enhanced sections: scenarios, progress, AI ——— */

body.home .section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(99, 102, 241, 0.14) 100%);
  color: var(--blue);
  flex-shrink: 0;
}

body.home .section-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home .section-icon--ai {
  margin: 0 auto 0.875rem;
}

body.home .scenario-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}

body.home .scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

body.home .scenario-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.125rem 0.75rem;
  background: var(--bg-top);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.home .scenario-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

body.home .scenario-card .section-icon {
  margin-bottom: 0.625rem;
}

body.home .scenario-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

body.home .progress-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

body.home .progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.375rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.home .progress-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.home .progress-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
}

body.home .progress-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

body.home .providers .providers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

body.home .providers .provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

body.home .providers .provider-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.home .provider-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

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

  body.home .progress-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  body.home .providers .providers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.home .legal-content .content-card.privacy-notice {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, var(--surface) 100%);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
}

body.home .legal-content .content-card.privacy-notice h2 {
  color: var(--blue);
  font-size: 1.2rem;
}

body.home .legal-content .content-card.privacy-notice p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--navy);
}

body.home .legal-content .content-card.privacy-notice strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
}


body.home .about-app,
body.home .gemini-google-section {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

body.home .info-card {
  max-width: 42rem;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
}

body.home .info-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

body.home .info-card p + p {
  margin-top: 1rem;
}

body.home .about-legal-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
