/* ============================================================
   AIRA — AI RUNNING ANALYSIS
   Design tokens & component styles (per AIRA-DESIGN.md)
   ============================================================ */

:root {
  /* Brand & accent */
  --primary: #0066cc;
  --primary-hover: #0058b3;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;

  /* Surfaces */
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile-1: #272729;
  --tile-2: #2a2a2c;
  --tile-3: #252527;
  --tile-hover: #2c2c2e;
  --black: #000000;

  /* Text */
  --ink: #1d1d1f;
  --on-dark: #ffffff;
  --muted: #cccccc;
  --ink-80: #333333;
  --ink-48: #686868;

  /* Heatmap (data only) */
  --hm-low: #0a4d8a;
  --hm-mid-low: #2a9d8f;
  --hm-mid: #e9c46a;
  --hm-mid-high: #f4a261;
  --hm-high: #e63946;

  /* Status */
  --status-up: #2a9d8f;
  --status-down: #e63946;
  --ai-bubble: #e6f4ff;

  /* Zone */
  --zone-good: #2a9d8f;
  --zone-good-bg: #e6f7f3;
  --zone-caution: #d68b1d;
  --zone-caution-bg: #fdf5e0;
  --zone-alert: #e63946;
  --zone-alert-bg: #fce8eb;
  --zone-proxy: #7a7a7a;

  /* Lines */
  --divider-soft: rgba(0, 0, 0, 0.04);
  --hairline: #e0e0e0;

  /* Shadows (only two allowed) */
  --shadow-product: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
  --shadow-lift: rgba(0, 0, 0, 0.06) 0 8px 24px;
  /* Card elevation — default float + selected (stronger) float */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.14), 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-card-strong: 0 28px 60px rgba(0, 0, 0, 0.20), 0 8px 18px rgba(0, 0, 0, 0.12);

  /* Radius */
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* Spacing */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 17px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-section: 80px;
  --s-airy: 120px;

  --font-en: "Inter", system-ui, -apple-system, sans-serif;
  --font-jp: "Noto Sans JP", "Inter", system-ui, -apple-system, sans-serif;

  --maxw-text: 720px;
  --maxw-read: 980px;
  --maxw-wide: 1280px;
  --maxw-full: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 0;
}

/* tabular numerals everywhere numbers live */
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Typography scale ---------- */
.hero-display {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-feature-settings: "palt" 1;
  margin: 0;
}
.display-lg {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.14;
  letter-spacing: -0.018em;
  font-feature-settings: "palt" 1;
  margin: 0;
}
.display-md {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-feature-settings: "palt" 1;
  margin: 0;
}
.score-mega {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 96px;
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.lead {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0;
}
.tagline {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin: 0;
}
.body-strong {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin: 0;
}
.body {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin: 0;
}
.caption {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 0;
}
.caption-strong {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}
.fine-print {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.wordmark {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Layout primitives ---------- */
.tile { width: 100%; }
.tile-light { background: var(--canvas); color: var(--ink); }
.tile-parchment { background: var(--parchment); color: var(--ink); }
.tile-dark { background: var(--tile-1); color: var(--on-dark); }
.section-pad { padding-top: var(--s-section); padding-bottom: var(--s-section); }
.section-airy { padding-top: var(--s-airy); padding-bottom: var(--s-airy); }
.head-gap { margin-top: 48px; }
.container {
  width: 100%;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.maxw-text { max-width: var(--maxw-text); }
.maxw-read { max-width: var(--maxw-read); }
.maxw-wide { max-width: var(--maxw-wide); }
.maxw-full { max-width: var(--maxw-full); }

/* hero two-column grid — stacks on tablet/mobile */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-jp);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease-out, background 0.18s ease-out, box-shadow 0.18s ease-out;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.95); }
.btn:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }

.btn-pill {
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 400;
}
.btn-pill:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-pill-hero {
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 500;
}
.btn-pill-hero:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--r-pill);
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 400;
}
.btn-ghost:hover { background: rgba(0, 102, 204, 0.06); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.btn-pearl {
  background: var(--pearl);
  color: var(--ink-80);
  border: 1px solid var(--divider-soft);
  border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
}

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.text-link .arrow { display: inline-block; transition: transform 0.18s ease-out; }
.text-link:hover .arrow { transform: translateX(4px); }
.text-link-dark { color: var(--primary-on-dark); }

/* ---------- Global nav ---------- */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 44px;
  background: var(--black);
  color: var(--on-dark);
  display: flex;
  align-items: center;
}
.global-nav .nav-inner {
  width: 100%;
  max-width: var(--maxw-full);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.global-nav .nav-mark { font-size: 16px; }
.nav-menu {
  display: flex;
  gap: 26px;
  margin: 0 auto;
}
.nav-link {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0;
}
.nav-link:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.global-nav .nav-mark { flex-shrink: 0; }
.nav-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-jp);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.nav-cta:hover { background: var(--primary-hover); }
.nav-cta:active { transform: scale(0.95); }
.hamburger { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 4px; }
.nav-sheet {
  position: absolute;
  top: 44px; left: 0; right: 0;
  background: var(--black);
  padding: 16px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-sheet-link {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-sheet-link:hover { color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card-hover { transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

/* ---------- Coming soon label ---------- */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.coming-soon .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--status-up);
  box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(42, 157, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 157, 143, 0); }
}

/* ---------- Zone badge ---------- */
.zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  padding: 6px 12px 6px 8px;
  font-size: 14px;
  font-weight: 600;
}
.zone-badge.good { background: var(--zone-good-bg); color: #1c6b61; }
.zone-badge.caution { background: var(--zone-caution-bg); color: #8a5a12; }
.zone-badge.alert { background: var(--zone-alert-bg); color: #b22230; }
.zone-badge.proxy { background: var(--canvas); color: var(--ink-48); border: 1px solid var(--hairline); }

/* ---------- AI insight bubble ---------- */
.ai-bubble {
  background: var(--ai-bubble);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}
.ai-bubble .ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ai-bubble .ai-label { color: var(--primary); }

/* ---------- Heatmap legend ---------- */
.hm-legend-bar {
  height: 8px;
  width: 240px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg,
    var(--hm-low) 0%,
    var(--hm-mid-low) 25%,
    var(--hm-mid) 50%,
    var(--hm-mid-high) 75%,
    var(--hm-high) 100%);
}

/* ---------- Sample analysis grid ---------- */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}
.sample-cell { min-width: 0; }
.sample-cell > .card { height: 100%; }
/* keep the dual-frame analysis card compact so both frames sit side by side in one column */
.sample-grid .sample-frames-row { flex-wrap: nowrap; gap: 16px; }
.sample-grid .frame-card { flex: 0 1 180px; }
.sample-grid .frame-card .video-frame { max-width: 180px; }
@media (max-width: 640px) {
  .sample-grid { grid-template-columns: 1fr; gap: 18px; }
  .sample-grid .sample-frames-row { flex-wrap: wrap; }
}

/* ---------- Sample analysis horizontal carousel ---------- */
.sample-rail-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 10px 16px;
  margin-top: 16px;
}
.sample-arrows { display: flex; gap: 8px; }
.sample-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.sample-arrow:hover { border-color: var(--primary); color: var(--primary); }
.sample-arrow:active { transform: scale(0.92); }
.sample-viewport {
  overflow: hidden;
  margin-top: 28px;
  padding: 10px 0 14px;
}
.sample-track {
  display: flex;
  gap: 24px;
  align-items: stretch;
  will-change: transform;
}
.sample-panel {
  flex: 0 0 auto;
  width: min(86%, 820px);
  transition: opacity 0.4s ease;
}
.sample-panel.off { opacity: 0.45; cursor: pointer; transition: opacity 0.25s ease; }
.sample-panel.off:hover { opacity: 0.7; }
.sample-panel.off > .card { pointer-events: none; }
/* selected (active) panel — lift higher + brighter surface */
.sample-panel > .card { transition: box-shadow 0.3s ease, transform 0.3s ease, filter 0.3s ease; }
.sample-panel:not(.off) > .card {
  box-shadow: var(--shadow-card-strong);
  transform: translateY(-4px);
  filter: brightness(1.04);
  border-color: rgba(0, 0, 0, 0.04);
}

.sample-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-48);
  white-space: nowrap;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 14px;
  color: var(--ink-80);
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--primary); }
.footer-link-btn:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }

/* compact frame progress bar (replaces the 16-dot scrubber) */
.frame-progress {
  position: relative;
  width: 120px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  overflow: hidden;
}
.frame-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--primary);
  border-radius: var(--r-pill);
  transition: width 0.45s linear;
}
.sample-panel > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sample-panel-kicker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.sample-panel-kicker .num {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.sample-panel-kicker .t {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.sample-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}
.sample-dots { display: flex; gap: 8px; justify-content: center; }
.sample-dots .d {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hairline); border: none; padding: 0; cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.sample-dots .d.on { background: var(--primary); width: 24px; border-radius: var(--r-pill); }
@media (max-width: 833px) {
  .sample-panel { width: 90%; }
}
@media (max-width: 640px) {
  .sample-panel { width: 92%; }
  .sample-track { gap: 16px; }
}

/* ---------- Reveal animation ----------
   Resting state is VISIBLE; the entrance is a one-shot keyframe added with .in.
   This way a paused render-clock (hidden tab) never traps content hidden. */
.reveal { opacity: 1; }
.reveal.in { animation: revealUp 0.55s ease-out; }
.reveal.d1.in { animation-delay: 0.1s; }
.reveal.d2.in { animation-delay: 0.2s; }
.reveal.d3.in { animation-delay: 0.3s; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.dot-pop { }
.dot-pop.in { animation: dotPop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1); transform-box: fill-box; transform-origin: center; }
@keyframes dotPop { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Hero running strobe ---------- */
.run-strobe {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  aspect-ratio: 460 / 500;
}
.run-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; z-index: 1; }
.run-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

/* figures: resting opacity = --op (freeze-safe), one-shot entrance.
   NO fill-mode: the entrance only animates 0→--op while the clock runs; the
   resting (visible) value is the fallback, so a paused render-clock (background
   tab) can never trap the figure at opacity:0. Same strategy as .reveal. */
.runfig { opacity: var(--op, 1); }
.runfig.in { animation: strideIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes strideIn {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: var(--op, 1); transform: none; }
}

/* speed lines stream straight backward (left→right motion) */
.speed-lines line { animation: speedDrift 1.6s ease-in-out infinite; transform-box: fill-box; }
@keyframes speedDrift {
  0%   { transform: translateX(-10px); opacity: 0.35; }
  50%  { transform: translateX(8px); opacity: 1; }
  100% { transform: translateX(-10px); opacity: 0.35; }
}

/* floating merit chips */
.run-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--hairline);
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(20, 30, 48, 0.12);
  white-space: nowrap;
  z-index: 2;
}
.run-chip.ai { padding: 8px 13px; border-color: rgba(0, 102, 204, 0.28); }
.run-chip-ic { display: inline-flex; flex-shrink: 0; }
.run-chip-t { font-family: var(--font-jp); font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.2; letter-spacing: 0.01em; }
.run-chip-v { font-size: 13px; font-weight: 600; color: var(--ink-80); line-height: 1.3; margin-top: 2px; }
.run-chip-v b { font-weight: 700; }
.run-chip-pulse {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}
.run-chip-pulse::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 1.5px solid var(--primary);
  animation: chipPulse 1.8s ease-out infinite;
}
@keyframes chipPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (max-width: 1023px) {
  .run-strobe { max-width: 480px; }
}
@media (max-width: 640px) {
  .run-chip { padding: 7px 10px; gap: 7px; }
  .run-chip-t { font-size: 11px; }
  .run-chip-v { font-size: 12px; }
}

/* ---------- How it works step icons ---------- */
.step-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}

/* benefit card */
.benefit-card {
  background: #323234;
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 3px 8px rgba(0, 0, 0, 0.30);
  transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.benefit-card:hover { background: #38383b; border-color: rgba(41, 151, 255, 0.45); transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55), 0 6px 14px rgba(0, 0, 0, 0.35); }
.benefit-sub { list-style: none; margin: 16px 0 0; padding: 0; }
.benefit-sub li {
  font-size: 14px; color: var(--muted); line-height: 2;
  padding-left: 16px; position: relative;
}
.benefit-sub li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary-on-dark);
}

/* ---------- Plan table ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 833px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}
.plan-card {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.plan-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-card-strong);
  transform: translateY(-6px);
  filter: brightness(1.04);
}
.plan-card.featured:hover { transform: translateY(-9px); box-shadow: var(--shadow-card-strong); }
.plan-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-jp);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 16px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.28);
}
.plan-name {
  font-family: var(--font-jp);
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.plan-price {
  display: flex; align-items: baseline; gap: 1px;
  margin-top: 14px;
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.plan-price .cur { font-size: 23px; font-weight: 700; }
.plan-price .amt { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.plan-price .per { font-size: 16px; font-weight: 500; color: var(--ink-48); margin-left: 5px; font-family: var(--font-jp); }
.plan-divider { height: 1px; background: var(--hairline); margin: 22px 0; }
.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-80); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.plan-check { flex-shrink: 0; margin-top: 1px; color: var(--primary); display: inline-flex; }
.plan-desc { font-size: 14px; color: var(--ink-48); line-height: 1.6; margin-top: 20px; }

/* 都度払い supplementary note */
.plan-note {
  display: flex; align-items: baseline; gap: 8px 14px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 14px 20px;
  background: var(--pearl);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
.plan-note .pn-label {
  font-size: 13px; font-weight: 600;
  color: var(--ink-80);
  letter-spacing: -0.005em;
}
.plan-note .pn-body { font-size: 13px; color: var(--ink-48); line-height: 1.6; }
.plan-note .pn-body b { color: var(--ink-80); font-weight: 600; }

/* price columns */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.price-col .price-num { display: flex; align-items: baseline; gap: 8px; }
.strike { position: relative; }
.strike::after {
  content: ""; position: absolute; left: 0; top: 52%;
  height: 4px; background: var(--ink-48); width: 100%;
}
.strike.in::after { animation: strikeGrow 0.5s ease-out 0.2s; }
@keyframes strikeGrow { from { width: 0; } to { width: 100%; } }

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .hero-display { font-size: 48px; }
}
@media (max-width: 1023px) {
  .nav-menu { display: none; }
  .hamburger { display: block; }
  .nav-right .nav-cta { display: none; }
}
@media (max-width: 833px) {
  .section-pad { padding-top: 56px; padding-bottom: 56px; }
  .section-airy { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 640px) {
  /* type — scale the whole hierarchy down a notch */
  .hero-display { font-size: 38px; }
  .display-lg { font-size: 30px; }
  .display-md { font-size: 25px; }
  .lead { font-size: 19px; line-height: 1.5; }
  .tagline { font-size: 18px; }
  .body, .body-strong { font-size: 15.5px; line-height: 1.65; }
  .caption { font-size: 13px; }
  .caption-strong { font-size: 13px; }
  .score-mega { font-size: 68px; }

  /* spacing — tighter gutters + less nested padding */
  .container { padding-left: 16px; padding-right: 16px; }
  .card { padding: 18px; }
  .ai-bubble { padding: 16px; }
  .benefit-card { padding: 22px; }

  /* vertical rhythm — let one section/item fit the viewport */
  .section-pad { padding-top: 40px; padding-bottom: 40px; }
  .section-airy { padding-top: 44px; padding-bottom: 44px; }
  .head-gap { margin-top: 28px; }
  h2 + .head-gap { margin-top: 24px; }
  .sample-viewport { margin-top: 18px; }
  .sample-controls { margin-top: 12px; }
  .sample-rail-head { margin-top: 6px; }
  .sample-panel-kicker { margin-bottom: 12px; }

  .price-grid { grid-template-columns: 1fr; gap: 28px; }
  .price-col { text-align: center; }
  .price-col .price-num { justify-content: center; }
}
@media (max-width: 419px) {
  .hero-display { font-size: 32px; }
  .score-mega { font-size: 64px; }
  .section-pad { padding-top: 32px; padding-bottom: 32px; }
  .section-airy { padding-top: 36px; padding-bottom: 36px; }
  .head-gap { margin-top: 22px; }
  .card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .dot-pop { transform: scale(1); }
  .runfig { opacity: var(--op, 1); animation: none; }
  .speed-lines line { animation: none; }
  .run-chip-pulse::after { animation: none; }
  .strike::after { width: 100%; }
  .drill-modal-overlay, .drill-modal-card { animation: none; }
}

/* ---------- Drill video unavailable modal ---------- */
.drill-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 29, 31, 0.32);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  animation: drillFade 0.22s ease-out;
}
.drill-modal-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: 0 18px 50px rgba(20, 30, 48, 0.22);
  padding: 36px 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  animation: drillPop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drillFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drillPop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
