/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

:root {
  --black: #000000;
  --near-black: #1d1d1f;
  --dark-gray: #424245;
  --mid-gray: #6e6e73;
  --light-gray: #f5f5f7;
  --white: #ffffff;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-light: #e8f1fb;
  --section-alt: #f5f5f7;
  --section-dark: #000000;

  --font: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

body {
  font-family: var(--font);
  color: var(--near-black);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== Typography ===== */
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-blue);
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.07;
}

.jp { font-family: var(--font-jp), var(--font); }

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 48px;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  transition: background 0.3s;
}

nav.dark-nav {
  background: rgba(0,0,0,0.85);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--near-black);
}

nav.dark-nav .nav-logo { color: var(--white); }

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-blue);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--apple-blue-light);
  transition: background 0.2s;
}

.nav-cta:hover { background: #d1e6fa; }

/* ===== Sections ===== */
section {
  width: 100%;
  padding: 120px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section.light { background: var(--white); }
section.alt { background: var(--section-alt); }
section.dark {
  background: var(--section-dark);
  color: var(--white);
}

.section-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

/* ===== Hero ===== */
#hero {
  min-height: 100svh;
  background: var(--section-dark);
  color: var(--white);
  justify-content: center;
  padding-top: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  font-family: var(--font-jp), var(--font);
}

.hero-title {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 20px;
  font-family: var(--font-jp), var(--font);
}

.hero-title .accent { color: #f5f5f7; }

.hero-subtitle {
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 40px;
  letter-spacing: -0.01em;
  font-family: var(--font-jp), var(--font);
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
  color: var(--white);
  background: var(--apple-blue);
  padding: 14px 36px;
  border-radius: 980px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--apple-blue-hover); transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-jp), var(--font);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-ghost:hover { color: rgba(255,255,255,0.9); }

.hero-note {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
}

/* Hero visual — floating tablet mockup */
.hero-visual {
  margin-top: 72px;
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.tablet-frame {
  background: #1c1c1e;
  border-radius: 28px;
  padding: 18px;
  box-shadow:
    0 80px 120px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}

.tablet-screen {
  background: #f5f6fa;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* In-screen mini app */
.mini-app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f5f6fa;
  font-family: var(--font-jp), var(--font);
}

.mini-topbar {
  height: 44px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.mini-topbar-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.mini-badge {
  font-size: 11px;
  font-weight: 600;
  background: #eef2ff;
  color: #6366f1;
  padding: 2px 8px;
  border-radius: 8px;
}

.mini-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 24px;
}

/* Handwritten-style calculation canvas */
.calc-canvas {
  background: #fff;
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  min-width: 160px;
  position: relative;
  border: 1.5px solid #e2e8f0;
}

.calc-carry {
  font-size: 13px;
  color: #ef4444;
  font-weight: 700;
  letter-spacing: 0.12em;
  min-height: 18px;
  padding-right: 2px;
  font-family: 'Courier New', monospace;
  align-self: flex-start;
  margin-left: 8px;
}

.calc-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  font-family: 'Courier New', Georgia, monospace;
  line-height: 1.2;
}

.calc-op {
  color: #6366f1;
  margin-right: 2px;
}

.calc-line {
  width: 100%;
  height: 2px;
  background: #1d1d1f;
  border-radius: 1px;
  margin: 6px 0;
}

.calc-answer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  color: #1d1d1f;
  font-family: 'Courier New', Georgia, monospace;
  letter-spacing: -0.02em;
}

.cursor-blink {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: #6366f1;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.mini-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
}

.stat-label { font-size: 10px; font-weight: 600; color: #94a3b8; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
.stat-value { font-size: 18px; font-weight: 800; color: #1d1d1f; letter-spacing: -0.03em; }
.stat-sub { font-size: 10px; color: #64748b; margin-top: 1px; }

.stat-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.stat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #818cf8);
  border-radius: 2px;
  width: 72%;
  animation: progress-anim 2.5s ease-in-out infinite alternate;
}

@keyframes progress-anim { from { width: 60% } to { width: 85% } }

/* ===== Problem Section ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.08);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 64px;
}

.problem-card {
  background: var(--white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

section.alt .problem-card { background: var(--section-alt); }

.problem-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  color: var(--near-black);
}

.problem-icon svg {
  width: 100%;
  height: 100%;
}

.problem-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-family: var(--font-jp), var(--font);
}

.problem-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mid-gray);
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.section-header .label {
  display: block;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.07;
  margin-bottom: 20px;
  font-family: var(--font-jp), var(--font);
}

.section-header p {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: var(--mid-gray);
  letter-spacing: -0.01em;
  font-family: var(--font-jp), var(--font);
}

section.dark .section-header h2 { color: var(--white); }
section.dark .section-header p { color: rgba(255,255,255,0.6); }
section.dark .section-header .label { color: rgba(255,255,255,0.5); }

/* ===== Solution ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
}

.solution-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 40px 32px;
  transition: border-color 0.3s;
}

.solution-card:hover { border-color: rgba(255,255,255,0.25); }

.solution-number {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  font-family: 'Courier New', monospace;
}

.solution-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 12px;
  font-family: var(--font-jp), var(--font);
}

.solution-card p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.01em;
  font-family: var(--font-jp), var(--font);
}

/* ===== Feature — Handwriting Demo ===== */
.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 72px;
}

.feature-text .label { margin-bottom: 16px; }

.feature-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  font-family: var(--font-jp), var(--font);
}

.feature-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--mid-gray);
  letter-spacing: -0.01em;
  font-family: var(--font-jp), var(--font);
  margin-bottom: 16px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.feature-bullets li {
  font-size: 15px;
  color: var(--dark-gray);
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.feature-bullets li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--apple-blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Large handwriting demo visual */
.handwriting-demo {
  position: relative;
}

.demo-frame {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 12px 40px rgba(0,0,0,0.08),
    0 0 0 1px rgba(0,0,0,0.06);
  position: relative;
}

/* Ruled paper lines */
.ruled-paper {
  position: absolute;
  inset: 40px;
  pointer-events: none;
  overflow: hidden;
}

.ruled-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 39px,
    #e8eef4 39px,
    #e8eef4 40px
  );
}

.demo-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: 'Courier New', monospace;
}

.demo-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.demo-problem-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-blue);
  font-family: var(--font-jp), var(--font);
  letter-spacing: 0.04em;
}

.demo-step {
  font-size: 12px;
  color: #94a3b8;
  font-family: var(--font-jp), var(--font);
}

/* The actual handwritten calculation display */
.demo-calc {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 16px 20px 20px;
  background: rgba(248,250,252,0.6);
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  gap: 2px;
  min-height: 180px;
  position: relative;
}

.demo-carry-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-right: 6px;
  min-height: 22px;
  font-size: 14px;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.3em;
  font-family: 'Courier New', monospace;
}

.demo-num-row {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: 0.08em;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-operator {
  color: #6366f1;
  font-size: 0.8em;
}

.demo-divider {
  width: 100%;
  height: 2.5px;
  background: #1d1d1f;
  border-radius: 1px;
  margin: 8px 0 10px;
}

.demo-answer-row {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.demo-answer-pending {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  color: #d1d5db;
  letter-spacing: 0.08em;
}

/* Handwritten-style annotation — pencil stroke */
.pencil-annotation {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
  font-family: var(--font-jp), var(--font);
}

/* Stamp correct */
.stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 20px;
  font-weight: 800;
  opacity: 0.85;
  transform: rotate(-12deg);
  font-family: var(--font-jp), var(--font);
}

/* Tabs for showing different problem types */
.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.demo-tab {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 980px;
  border: 1.5px solid #e2e8f0;
  color: var(--mid-gray);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-jp), var(--font);
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.demo-tab.active {
  background: var(--near-black);
  color: var(--white);
  border-color: var(--near-black);
}

/* ===== Curriculum ===== */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 64px;
}

.curriculum-card {
  padding: 32px 28px;
  background: rgba(255,255,255,0.04);
  transition: background 0.2s;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.curriculum-card:hover { background: rgba(255,255,255,0.08); }

.unit-number {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.08em;
  padding-top: 2px;
  min-width: 28px;
}

.curriculum-card-body {}

.curriculum-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
  font-family: var(--font-jp), var(--font);
}

.curriculum-card p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
}

.curriculum-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-plus { background: rgba(99,102,241,0.25); color: #a5b4fc; }
.tag-minus { background: rgba(239,68,68,0.2); color: #fca5a5; }

/* Column headers */
.curriculum-col-header {
  grid-column: span 1;
  padding: 20px 28px;
  background: rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.curriculum-col-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: -0.02em;
  font-family: var(--font-jp), var(--font);
}

/* ===== Pricing ===== */
.pricing-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-card.free {
  background: var(--section-alt);
  border: 1.5px solid #e2e8f0;
}

.pricing-card.paid {
  background: var(--near-black);
  color: var(--white);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--apple-blue);
  padding: 4px 16px;
  border-radius: 980px;
  white-space: nowrap;
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
}

.pricing-plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-jp), var(--font);
}

.pricing-card.paid .pricing-plan-name { color: rgba(255,255,255,0.45); }

.pricing-price {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card.free .pricing-price { color: var(--near-black); }
.pricing-card.paid .pricing-price { color: var(--white); }

.pricing-period {
  font-size: 17px;
  font-weight: 400;
  color: var(--mid-gray);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  font-family: var(--font-jp), var(--font);
}

.pricing-card.paid .pricing-period { color: rgba(255,255,255,0.45); }

.pricing-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.pricing-card.paid .pricing-divider { background: rgba(255,255,255,0.1); }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-features li {
  font-size: 15px;
  color: var(--dark-gray);
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.pricing-card.paid .pricing-features li { color: rgba(255,255,255,0.75); }

.pricing-features li::before {
  content: '✓';
  font-size: 13px;
  font-weight: 700;
  color: var(--apple-blue);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card.paid .pricing-features li::before { color: #5ac8fa; }

.pricing-cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: 980px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.pricing-card.free .pricing-cta {
  background: transparent;
  border: 1.5px solid #d2d2d7;
  color: var(--near-black);
}

.pricing-card.free .pricing-cta:hover { border-color: var(--apple-blue); color: var(--apple-blue); text-decoration: none; }

.pricing-card.paid .pricing-cta {
  background: var(--apple-blue);
  color: var(--white);
}

.pricing-card.paid .pricing-cta:hover { background: var(--apple-blue-hover); text-decoration: none; }

.pricing-compare {
  text-align: center;
  margin-top: 32px;
}

.pricing-compare p {
  font-size: 15px;
  color: var(--mid-gray);
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.pricing-compare strong { color: var(--near-black); }

/* ===== Comparison Section ===== */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 64px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  font-family: var(--font-jp), var(--font);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.compare-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  padding: 14px 20px;
}

.compare-table thead th.ours {
  color: var(--white);
  background: rgba(0,113,227,0.2);
  border-bottom: 2px solid var(--apple-blue);
}

.compare-table tbody td {
  color: rgba(255,255,255,0.6);
}

.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.compare-table tbody td.ours {
  color: var(--white);
  background: rgba(0,113,227,0.06);
  font-weight: 600;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,113,227,0.2);
}

.compare-check svg { width: 12px; height: 12px; stroke: var(--apple-blue); }

.compare-x {
  color: rgba(255,255,255,0.2);
  font-size: 16px;
  font-weight: 300;
}

.compare-note {
  text-align: center;
  margin-top: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.compare-note p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
}

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

/* ===== Parent Section ===== */
.parent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.parent-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 28px;
  border: 1.5px solid #e8e8ed;
  transition: box-shadow 0.3s, transform 0.3s;
}

.parent-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.parent-card-icon {
  width: 48px;
  height: 48px;
  background: var(--apple-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--apple-blue);
}

.parent-card-icon svg {
  width: 24px;
  height: 24px;
}

.parent-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
  font-family: var(--font-jp), var(--font);
}

.parent-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--mid-gray);
  letter-spacing: -0.01em;
  font-family: var(--font-jp), var(--font);
}

/* ===== Final CTA ===== */
#cta-final {
  text-align: center;
  padding: 140px 24px;
}

.cta-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 20px;
  font-family: var(--font-jp), var(--font);
}

.cta-sub {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  margin-bottom: 44px;
  letter-spacing: -0.01em;
  font-family: var(--font-jp), var(--font);
}

/* ===== Footer ===== */
footer {
  background: var(--black);
  padding: 48px 24px 64px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
  gap: 24px;
}

.footer-brand {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.02em;
  font-family: var(--font-jp), var(--font);
}

.footer-brand span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: -0.01em;
  font-family: var(--font-jp), var(--font);
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.75); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
}

.footer-note {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-jp), var(--font);
  letter-spacing: -0.01em;
  max-width: 360px;
  line-height: 1.5;
  text-align: right;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2,0,0,1), transform 0.7s cubic-bezier(0.2,0,0,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  section { padding: 80px 20px; }

  .problem-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-layout { grid-template-columns: 1fr; gap: 48px; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .pricing-layout { grid-template-columns: 1fr; max-width: 480px; }
  .parent-grid { grid-template-columns: 1fr; gap: 16px; }

  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 12px 10px; }

  .footer-top { flex-direction: column; }
  .footer-note { text-align: left; }

  .mini-stats { display: none; }

  nav { padding: 0 16px; }
}

@media (max-width: 480px) {
  section { padding: 64px 16px; }
  .tablet-frame { padding: 12px; }
  .hero-visual { margin-top: 48px; }
}

/* ===== Misc ===== */
.divider-line {
  width: 40px;
  height: 2px;
  background: var(--apple-blue);
  border-radius: 1px;
  margin: 0 auto 40px;
}

section.dark .divider-line { background: rgba(255,255,255,0.2); }

.highlight-number {
  color: var(--apple-blue);
}

section.dark .highlight-number { color: #5ac8fa; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-blue);
  background: var(--apple-blue-light);
  padding: 5px 12px;
  border-radius: 980px;
  letter-spacing: -0.01em;
  font-family: var(--font-jp), var(--font);
}
