/* ==========================================================================
   Nobigo AI — blue Nobigo-style theme
   Tokens mirror nobigo.ai design system
   ========================================================================== */

:root {
  /* Nobigo brand blues */
  --blue: #0079d6;
  --blue-bright: #0096ff;
  --blue-sky: #2db9ff;
  --blue-deep: #04203f;
  --blue-navy: #073f7d;
  --blue-mid: #0a63b4;
  --blue-soft: #ecf5fd;
  --blue-line: #cfe4f5;

  /* Nobigo orange CTA */
  --orange: #faa61a;
  --orange-deep: #ff8e1c;
  --orange-soft: #fff4e2;

  /* Neutrals (Nobigo) */
  --ink: #1d2228;
  --muted: #545e68;
  --line: #e2e8ee;
  --line-strong: #d5dce0;
  --surface: #fff;
  --surface-sunken: #ecf2f5;

  --radius: 16px;
  --pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(4, 32, 63, 0.08);
  --shadow-md: 0 8px 24px rgba(4, 32, 63, 0.10);
  --shadow-lg: 0 24px 60px rgba(4, 32, 63, 0.18);
  --font: "Inter", system-ui, sans-serif;
  --font-head: "Plus Jakarta Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

.container { width: min(1120px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 700; }
.text-light { color: #f2f8ff; }
.center { text-align: center; margin-top: 3rem; }

.accent { color: var(--blue-bright); }

/* ---------- announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-navy));
  color: #dbeeff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}
.announce a { color: #ffc76e; text-decoration: underline; margin-left: 0.35rem; font-weight: 600; }
.announce a:hover { color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-sky), var(--blue));
  color: #fff;
  font-family: var(--font-jp);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 121, 214, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links > a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links > a:hover { color: var(--blue); }
.nav-links > a.active { color: var(--blue); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- buttons (Nobigo pill style) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--pill);
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(250, 166, 26, 0.38);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(250, 166, 26, 0.48); }
.btn-blue {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 121, 214, 0.32);
}
.btn-blue:hover { box-shadow: 0 12px 26px rgba(0, 121, 214, 0.42); }
.btn-ghost { color: #dbeeff; border-color: rgba(255, 255, 255, 0.30); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-outline { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #eaf5ff; }
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- hero (Nobigo hero-base gradient) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    var(--gradient-hero, linear-gradient(135deg, #2db9ff 0%, #0096ff 55%, #0079d6 100%)),
    linear-gradient(174deg, #04203f 0%, #073f7d 32%, #0a63b4 62%, #0b74d0 82%, #0a5aa4 100%);
  color: #eaf5ff;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 7vw, 6.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(32rem 32rem at 73% 42%, rgba(120, 214, 255, 0.5) 0%, rgba(96, 200, 255, 0.22) 38%, rgba(70, 180, 255, 0.07) 62%, transparent 78%),
    radial-gradient(38rem 30rem at 4% 96%, rgba(255, 152, 40, 0.22) 0%, rgba(255, 152, 40, 0.06) 45%, transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: var(--pill);
  margin-bottom: 1.2rem;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.1rem;
}
.hero-copy p { font-size: 1.08rem; color: #d6ecff; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 2.4rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1.4rem;
}
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.45rem; font-weight: 900; color: #fff; }
.hero-stats span { font-size: 0.82rem; color: #b9dcff; }

/* hero right column: mascot + mock exam */
.hero-visual { position: relative; padding-top: 1.5rem; }
.hero-mascot {
  position: absolute;
  top: -1.2rem;
  right: -0.4rem;
  width: clamp(120px, 13vw, 168px);
  z-index: 3;
  filter: drop-shadow(0 14px 24px rgba(4, 32, 63, 0.35));
  animation: floatY 5s ease-in-out infinite;
}
.mock-window {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transform: rotate(1.2deg);
  color: var(--ink);
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.mock-url {
  margin-left: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.15rem 0.6rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-exam { padding: 1.1rem 1.2rem 1.2rem; }
.mock-exam-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.mock-badge {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}
.mock-section { font-family: var(--font-jp); font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.mock-timer {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.mock-q-text { font-family: var(--font-jp); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.mock-q-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.9rem; }
.mock-options { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-jp);
  font-size: 0.88rem;
  color: var(--muted);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0.45rem 0.7rem;
}
.opt.selected { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.opt-key {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}
.opt.selected .opt-key { background: var(--blue); border-color: var(--blue); color: #fff; }
.mock-audio { margin-bottom: 0.9rem; }
.audio-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-sunken);
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  padding: 0.5rem 0.7rem;
}
.audio-play {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.6rem;
  cursor: default;
}
.audio-wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.audio-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--blue-bright);
  animation: wave 1.1s ease-in-out infinite;
}
.audio-wave i:nth-child(odd) { height: 9px; animation-delay: 0.15s; }
.audio-wave i:nth-child(even) { height: 16px; }
.audio-wave i:nth-child(3n) { animation-delay: 0.3s; }
.audio-wave i:nth-child(4n) { animation-delay: 0.45s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.15); }
}
.audio-note { font-size: 0.72rem; color: var(--muted); margin-left: auto; }
.mock-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.mock-submit {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--pill);
  font-size: 0.75rem;
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 0.7rem 0.95rem;
  color: var(--ink);
  z-index: 2;
}
.float-card strong { display: block; font-size: 0.85rem; }
.float-card span:not(.fc-icon) { font-size: 0.75rem; color: var(--muted); }
.fc-icon { font-size: 1.3rem; }
.fc-1 { top: 42%; left: -1.6rem; animation: floatY 6s ease-in-out 0.4s infinite; }
.fc-2 { bottom: -1.3rem; right: 4%; animation: floatY 5s ease-in-out 0.8s infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- mascot ---------- */
.hero-mascot svg { width: 100%; height: auto; display: block; }
.mascot-wave { position: relative; }
.mascot-bubble {
  position: absolute;
  top: -2.3rem;
  right: -0.6rem;
  background: #fff;
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 12px 12px 3px 12px;
  padding: 0.35rem 0.7rem;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.mascot-inline { display: inline-block; width: 1.6em; height: 1.6em; vertical-align: -0.45em; margin-right: 0.3em; }

/* ---------- payment strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--surface-sunken); }
.strip-inner { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1rem 0; }
.strip-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.strip-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.badge-pay {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.3rem 0.85rem;
}

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface-sunken); }
.section-blue-soft { background: linear-gradient(180deg, #f4faff, #ecf5fd); }
.section-head { max-width: 46rem; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.section-head p { color: var(--muted); margin-top: 0.8rem; font-size: 1.02rem; }
.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
}
.eyebrow-light { color: #7fd0ff; }

.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card p { color: var(--muted); font-size: 0.94rem; margin-top: 0.5rem; }

/* ---------- exam cards ---------- */
.exam-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.exam-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.exam-head h3 { font-size: 1.5rem; }
.exam-tag {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: var(--pill);
  padding: 0.25rem 0.8rem;
  font-weight: 500;
}
.exam-card ul { margin: 0.9rem 0; padding-left: 1.2rem; }
.exam-card li { margin: 0.35rem 0; color: var(--ink); font-size: 0.95rem; }
.exam-card > p { color: var(--muted); font-size: 0.95rem; }
.exam-note {
  background: var(--surface-sunken);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  color: var(--ink);
}

/* ---------- country guide ---------- */
.country-hero {
  background: linear-gradient(174deg, var(--blue-deep) 0%, var(--blue-navy) 45%, var(--blue-mid) 100%);
  color: #eaf5ff;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.country-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(30rem 30rem at 78% 30%, rgba(120, 214, 255, 0.35), transparent 70%);
  pointer-events: none;
}
.country-hero .section-head { text-align: left; margin: 0; position: relative; }
.country-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; color: #fff; }
.country-hero p { color: #c3e2ff; max-width: 40rem; margin-top: 0.8rem; }

.legend {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.2rem;
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--pill);
  padding: 0.3rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }

.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.14rem 0.45rem;
  white-space: nowrap;
}
.tag-visa { background: #ffe3e0; color: #b3261e; }
.tag-admission { background: var(--blue-soft); color: var(--blue); }
.tag-program { background: var(--orange-soft); color: #a05e00; }
.tag-skills { background: #e8f7ee; color: #137a45; }
.tag-none { background: #eef1f4; color: var(--muted); }

.country-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.6rem;
  overflow: hidden;
}
.country-block.top-pick { border-color: var(--blue-line); box-shadow: 0 10px 32px rgba(0, 121, 214, 0.10); }
.country-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.6rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.country-flag {
  display: inline-block;
  width: 48px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(4, 32, 63, 0.10);
  box-shadow: 0 3px 8px rgba(0, 121, 214, 0.18);
  flex-shrink: 0;
}
.country-flag svg { width: 100%; height: 100%; display: block; }
.mini-flag {
  display: inline-block;
  width: 26px;
  height: 17px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(4, 32, 63, 0.12);
  vertical-align: -2px;
  margin-right: 0.45rem;
}
.mini-flag svg { width: 100%; height: 100%; display: block; }
.flag-row { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-top: 1.4rem; position: relative; }
.flag-row svg {
  width: 34px;
  height: 23px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 10px rgba(4, 32, 63, 0.25);
}
.country-head h3 { font-size: 1.3rem; }
.country-priority {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: var(--pill);
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.country-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.country-table th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: var(--surface-sunken);
  padding: 0.6rem 1.6rem;
}
.country-table td { padding: 0.75rem 1.6rem; border-top: 1px solid var(--line); vertical-align: top; }
.country-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.country-table .route-note { color: var(--muted); font-size: 0.85rem; }
.country-note {
  margin: 0 1.6rem 1.3rem;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 0.65rem 0.95rem;
  font-size: 0.87rem;
  color: var(--ink);
}
.mini-country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mini-country {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.mini-country h4 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.mini-country p { font-size: 0.83rem; color: var(--muted); }
.mini-country .tag { margin: 0.35rem 0.25rem 0 0; }

.exam-dir {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}
.exam-dir th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: var(--surface-sunken);
  padding: 0.7rem 1.2rem;
}
.exam-dir td { padding: 0.7rem 1.2rem; border-top: 1px solid var(--line); }
.exam-dir td:first-child { font-weight: 700; }
.exam-dir tr td:nth-child(2), .exam-dir th:nth-child(2) { color: var(--blue); font-weight: 600; }
.exam-dir-wrap { overflow-x: auto; border-radius: var(--radius); }

.sources-list { display: grid; gap: 0.5rem; margin-top: 1.2rem; }
.sources-list a { color: var(--blue); font-size: 0.88rem; text-decoration: none; word-break: break-all; }
.sources-list a:hover { text-decoration: underline; }

.notice {
  background: var(--orange-soft);
  border: 1px solid #ffdca3;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  font-size: 0.93rem;
  color: #6b4a00;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.notice .notice-icon { font-size: 1.4rem; line-height: 1.3; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-bottom: 0.5rem; }
.step {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.step h3 { color: #fff; margin-bottom: 0.5rem; }
.step p { color: #bcdcff; font-size: 0.93rem; }

/* ---------- dark sections ---------- */
.section-dark {
  background:
    radial-gradient(800px 400px at 110% 0%, rgba(45, 185, 255, 0.25), transparent 60%),
    linear-gradient(150deg, var(--blue-deep), var(--blue-navy));
}

/* ---------- pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 20px 50px rgba(0, 121, 214, 0.16);
  transform: scale(1.02);
}
.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: var(--pill);
  white-space: nowrap;
}
.price-desc { color: var(--muted); font-size: 0.88rem; margin: 0.2rem 0 1rem; }
.price {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.price .price-cur { font-size: 1.2rem; font-weight: 700; color: var(--muted); margin-right: 0.2rem; }
.price .price-per { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price.custom { font-size: 2.1rem; padding: 0.35rem 0; }
.price-note { color: var(--muted); font-size: 0.82rem; margin: 0.5rem 0 1.2rem; }
.price-card ul { list-style: none; margin: 0 0 1.6rem; display: grid; gap: 0.55rem; flex: 1; }
.price-card li { font-size: 0.92rem; color: var(--ink); padding-left: 1.5rem; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 2rem; }

/* ---------- distributor ---------- */
.distributor {
  background:
    radial-gradient(900px 500px at -10% 10%, rgba(45, 185, 255, 0.28), transparent 60%),
    linear-gradient(140deg, #06182e 0%, #0a2c55 100%);
  color: #eaf5ff;
}
.distributor-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.distributor-copy { color: #c3e2ff; max-width: 32rem; margin: 1rem 0 1.6rem; }
.check-list { list-style: none; margin: 0 0 2rem; display: grid; gap: 0.7rem; }
.check-list li { padding-left: 1.8rem; position: relative; color: #d6ecff; font-size: 0.96rem; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(45, 185, 255, 0.25);
  color: #7fd0ff;
  font-size: 0.72rem;
  font-weight: 800;
}
.dist-visual { display: flex; justify-content: center; }
.dist-diagram { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; width: 100%; max-width: 420px; }
.dist-node {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  text-align: center;
  padding: 0.8rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #eaf5ff;
  line-height: 1.35;
}
.dist-node small { font-weight: 500; color: #9cc6ee; font-size: 0.75rem; }
.dist-node.root {
  background: linear-gradient(135deg, var(--blue-sky), var(--blue));
  border: none;
  box-shadow: 0 10px 30px rgba(0, 121, 214, 0.45);
}
.dist-node.root small { color: #dff2ff; }
.dist-node.small { font-size: 0.78rem; padding: 0.5rem 1rem; color: #9cc6ee; font-weight: 600; }
.dist-lines {
  width: 2px;
  height: 34px;
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.1));
  position: relative;
}
.dist-lines::before, .dist-lines::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 33.33%;
  height: 18px;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
}
.dist-lines::before { left: 0; border-left: 2px solid rgba(255, 255, 255, 0.25); border-radius: 12px 0 0 0; transform: translateX(-1px); }
.dist-lines::after { right: 0; border-right: 2px solid rgba(255, 255, 255, 0.25); border-radius: 0 12px 0 0; transform: translateX(1px); }
.dist-row { display: flex; gap: 0.8rem; justify-content: center; }

/* ---------- testimonials ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.quote { font-size: 0.98rem; color: var(--ink); flex: 1; }
.quote-author { display: flex; align-items: center; gap: 0.8rem; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8ecff, #a9d7fb);
  color: var(--blue-navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.quote-author strong { display: block; font-size: 0.92rem; }
.quote-author span:not(.avatar) { font-size: 0.8rem; color: var(--muted); }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-media {
  background: linear-gradient(135deg, var(--blue-soft), #d3ecff);
  padding: 1.4rem;
  display: grid;
  place-items: center;
  min-height: 110px;
}
.blog-card-media .blog-emoji { font-size: 2.6rem; }
.blog-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.blog-card-cat {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.blog-card h3 { font-size: 1.05rem; line-height: 1.35; }
.blog-card p { font-size: 0.88rem; color: var(--muted); flex: 1; }
.blog-card-meta { font-size: 0.78rem; color: var(--muted); display: flex; gap: 0.8rem; }

/* article pages */
.article { max-width: 780px; margin: 0 auto; }
.article-header { padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.article-header .blog-card-cat { font-size: 0.78rem; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin: 0.5rem 0 0.9rem; }
.article-header .lede { font-size: 1.12rem; color: var(--muted); }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.83rem; color: var(--muted); margin-top: 1rem; }
.article-body { padding-bottom: 1rem; }
.article-body h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.9rem;
  padding-top: 0.4rem;
}
.article-body h3 { font-size: 1.12rem; margin: 1.8rem 0 0.6rem; }
.article-body p { margin: 0.9rem 0; color: #333c46; }
.article-body ul, .article-body ol { margin: 0.9rem 0 0.9rem 1.4rem; color: #333c46; }
.article-body li { margin: 0.4rem 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.2rem 0;
  background: #fff;
}
.article-body th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface-sunken);
  padding: 0.6rem 0.9rem;
}
.article-body td { padding: 0.6rem 0.9rem; border-top: 1px solid var(--line); }
.article-body strong { color: var(--ink); }
.callout {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}
.callout-warn {
  background: var(--orange-soft);
  border-left-color: var(--orange-deep);
}
.article-cta {
  background: linear-gradient(135deg, var(--blue-sky), var(--blue));
  border-radius: var(--radius);
  padding: 1.8rem 1.9rem;
  margin: 2.4rem 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.article-cta p { color: #e3f3ff; margin: 0.2rem 0 0; font-size: 0.92rem; flex: 1; min-width: 240px; }
.article-cta h3 { color: #fff; }
.faq-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.4rem 1.3rem;
  margin: 1.4rem 0;
}
.related { border-top: 1px solid var(--line); padding: 2.2rem 0 3rem; }
.related h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-container { max-width: 760px; }
.faq-list { display: grid; gap: 0.7rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] { border-color: var(--blue-line); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 1.05rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.15rem; color: var(--muted); font-size: 0.93rem; }

/* ---------- contact ---------- */
.contact {
  background:
    radial-gradient(900px 500px at 110% 0%, rgba(45, 185, 255, 0.28), transparent 60%),
    linear-gradient(150deg, var(--blue-deep), var(--blue-navy));
  color: #eaf5ff;
}
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.contact-text { color: #c3e2ff; margin: 0.8rem 0 2rem; max-width: 28rem; }
.contact-methods { display: grid; gap: 1rem; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.contact-method:hover {
  border-color: rgba(45, 185, 255, 0.6);
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
}
.cm-icon { font-size: 1.3rem; }
.contact-method span:not(.cm-icon) { display: block; font-size: 0.78rem; color: #9cc6ee; }
.contact-method strong { font-size: 0.95rem; color: #fff; }

.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface-sunken);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s, background 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.form-group textarea { resize: vertical; }
.form-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 0.8rem; }
.form-success {
  text-align: center;
  padding: 2.2rem 1.2rem;
  display: grid;
  gap: 0.6rem;
  place-items: center;
}
.form-success .fs-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #e8f7ee;
  font-size: 1.8rem;
}
.form-success h3 { color: var(--ink); }
.form-success p { color: var(--muted); font-size: 0.92rem; max-width: 26rem; }
.form-success .btn { margin-top: 0.6rem; }

/* ---------- footer ---------- */
.footer { background: #041527; color: #9cc6ee; padding: 3.5rem 0 1.5rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand p { font-size: 0.88rem; margin-top: 0.9rem; max-width: 20rem; }
.footer-brand p a { color: #7fd0ff; text-decoration: none; font-weight: 600; }
.footer-brand p a:hover { color: #fff; text-decoration: underline; }
.social-row { display: flex; gap: 0.55rem; margin-top: 1.1rem; }
.social-row a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9cc6ee;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.social-row a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h4 { color: #fff; font-size: 0.88rem; margin-bottom: 0.4rem; }
.footer-col a, .footer-col span { color: #9cc6ee; font-size: 0.88rem; text-decoration: none; }
.footer-col a:hover { color: #7fd0ff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  font-size: 0.8rem;
}

/* ---------- floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 18px;
  border-radius: var(--pill);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .audio-wave i, .float-card, .hero-mascot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .distributor-inner, .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .mini-country-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-mascot { width: 128px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 0.9rem 1.5rem; }
  .nav-links > .btn { margin: 0.6rem 1.5rem; text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .mini-country-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .hero-stats { gap: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .country-head { padding: 1.1rem 1rem 1rem; }
  .country-note { margin: 0 1rem 1.1rem; }
  .country-priority { margin-left: 0; }
  .wa-float span { display: none; }
  .wa-float { padding: 13px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
  .hero-mascot { width: 104px; top: -0.8rem; right: 0; }
  .mascot-bubble { font-size: 0.72rem; top: -1.9rem; }

  /* full-width tap-friendly CTAs */
  .hero-ctas .btn { flex: 1 1 100%; text-align: center; }
  .hero-ctas { gap: 0.7rem; }
  .center .btn { width: 100%; max-width: 360px; }

  /* prevent iOS zoom-on-focus (inputs must be ≥16px) */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; padding: 0.8rem 0.9rem; }

  /* stacked country route tables (labels injected by script.js) */
  .country-table thead { display: none; }
  .country-table, .country-table tbody, .country-table tr, .country-table td { display: block; width: 100%; }
  .country-table tr { padding: 0.95rem 1rem; border-top: 1px solid var(--line); }
  .country-table tbody tr:first-child { border-top: none; }
  .country-table td { border-top: none; padding: 0.18rem 0; }
  .country-table td:first-child {
    white-space: normal;
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 0.3rem;
  }
  .country-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-head);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    margin-bottom: 0.12rem;
  }
  .country-table td:first-child::before { content: none; }
  .country-table .route-note { margin-top: 0.2rem; }
  .country-table .tag { margin: 0.25rem 0.3rem 0.15rem 0; }

  /* horizontally scrollable data tables */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll table { min-width: 520px; }
  .exam-dir { min-width: 560px; }

  .dist-row { flex-wrap: wrap; }
  .dist-node { padding: 0.65rem 0.9rem; font-size: 0.8rem; }
  .article-cta { padding: 1.4rem 1.3rem; }
  .article-cta .btn { width: 100%; text-align: center; }
  .contact-form-wrap { padding: 1.4rem 1.2rem; }
  .step, .card { padding: 1.4rem 1.25rem; }
  .price-card { padding: 1.7rem 1.4rem; }
}

@media (max-width: 400px) {
  .price { font-size: 2.05rem; }
  .hero-stats { gap: 1rem; }
  .hero-stats strong { font-size: 1.25rem; }
  .hero-copy h1 { font-size: 1.75rem; }
  .mock-exam { padding: 0.9rem 0.9rem 1rem; }
  .mock-q-text { font-size: 0.95rem; }
  .opt { font-size: 0.82rem; padding: 0.4rem 0.55rem; }
  .btn-lg { padding: 0.85rem 1.4rem; font-size: 0.98rem; }
  .announce { font-size: 0.78rem; }
}

/* tap highlight + smooth touch */
a, button, summary { -webkit-tap-highlight-color: rgba(0, 121, 214, 0.12); }
