* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.cv-page,
.cv-embed {
  --cv-covered: var(--accent-blue, #0044fe);
  --cv-covered-hover: #0033c4;
  --cv-none: #e6e5e1;
}

/* ─── Embedded on /app/ (after "Daily workflow") ───────── */
.cv-embed {
  padding: 100px 24px;
  background: var(--bg-warm, #f5f4f1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 90px;
}
.cv-embed .cv-note {
  background: var(--bg-card, #fff);
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.05);
}
.cv-embed-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.cv-embed-header .section-label { margin-bottom: 14px; }
.cv-embed-header h2 {
  font-family: var(--font-heading); font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px;
  color: var(--text-primary);
}
.cv-embed-header h2 .cv-count { color: var(--accent-blue, #0044fe); }
.cv-embed-header p {
  color: var(--text-secondary); font-size: 17px; max-width: 620px;
  margin: 0 auto; line-height: 1.7;
}

/* ─── Hero ─────────────────────────────────────────────── */
.cv-hero {
  padding: 150px 24px 40px;
  background: var(--bg-primary);
}
.cv-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cv-hero .section-label { margin-bottom: 14px; }
.cv-breadcrumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}
.cv-breadcrumb svg { width: 14px; height: 14px; }
.cv-breadcrumb:hover { color: var(--text-primary); }
.cv-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--text-primary);
}
.cv-hero h1 .cv-count { color: var(--accent-blue, #0044fe); }
.cv-hero-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin: 0;
}

/* ─── Map ──────────────────────────────────────────────── */
.cv-map-section {
  padding: 24px 24px 88px;
  background: var(--bg-primary);
}
.cv-map-inner { max-width: var(--container-wide); margin: 0 auto; }

.cv-map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(12px, 2vw, 28px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(12px, 2vw, 28px);
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.05);
}
.cv-map-main { position: relative; min-width: 0; }
.cv-map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cv-map { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
  .cv-map { min-width: 640px; }
}

.cv-country {
  fill: var(--cv-none);
  stroke: #fff;
  stroke-width: 0.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s ease;
}
.cv-country.is-covered { fill: var(--cv-covered); cursor: pointer; }
.cv-country.is-covered:hover,
.cv-country.is-covered.is-hover { fill: var(--cv-covered-hover); }

.cv-marker {
  fill: var(--cv-covered);
  stroke: #fff;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: r 0.15s ease, fill 0.2s ease;
}
.cv-marker:hover,
.cv-marker.is-hover { r: 4.8; fill: var(--cv-covered-hover); }

.cv-tooltip {
  position: absolute;
  top: 0; left: 0;
  z-index: 5;
  pointer-events: none;
  padding: 10px 12px;
  background: var(--bg-dark, #0a0f1e);
  color: var(--text-on-dark, #f4f4f5);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.28);
  font-family: var(--font-heading); font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  will-change: transform;
}
.cv-tooltip[hidden] { display: none; }

.cv-legend {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 13px; color: var(--text-secondary);
}
.cv-legend li { display: inline-flex; align-items: center; gap: 8px; }
.cv-swatch {
  display: inline-block; width: 22px; height: 12px; border-radius: 4px; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.06);
}
.cv-swatch-covered { background: var(--cv-covered); }
.cv-swatch-none { background: var(--cv-none); }

/* Side list */
.cv-side {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--border-subtle);
  padding-left: clamp(12px, 2vw, 24px);
}
.cv-side-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-heading); font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 2px 0 10px;
}
.cv-side-count {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 980px;
  background: rgba(0,68,254,0.10); color: var(--accent-blue, #0044fe);
}
.cv-side-scroll { position: relative; flex: 1; min-height: 0; }
.cv-side-list {
  position: absolute; inset: 0;
  overflow-y: auto;
  list-style: none; margin: 0; padding: 0 6px 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.18) transparent;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
}
.cv-side-item {
  appearance: none;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0; border-radius: 8px;
  background: transparent;
  font: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cv-side-item:hover,
.cv-side-item.is-active { background: rgba(0,68,254,0.07); }
.cv-side-item:focus-visible { outline: 2px solid var(--accent-blue, #0044fe); outline-offset: -2px; }
.cv-side-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cv-covered); flex-shrink: 0;
}

.cv-updated {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 13px; line-height: 1.6;
  color: var(--text-tertiary);
}

/* ─── Note ─────────────────────────────────────────────── */
.cv-note {
  max-width: 820px;
  margin: 40px auto 0;
  background: var(--bg-warm, #f5f4f1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cv-note-summary {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
}
.cv-note-summary::-webkit-details-marker { display: none; }
.cv-note-summary::marker { content: ""; }
.cv-note-summary:hover { background: rgba(0,0,0,0.025); }
.cv-note-summary:focus-visible { outline: 2px solid var(--accent-blue, #0044fe); outline-offset: -2px; }
.cv-note-icon {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,68,254,0.10);
  color: var(--accent-blue, #0044fe);
  display: flex; align-items: center; justify-content: center;
}
.cv-note-icon svg { width: 18px; height: 18px; }
.cv-note-label {
  flex: 1;
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em;
}
.cv-note-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}
.cv-note[open] .cv-note-chevron { transform: rotate(180deg); }
.cv-note-body {
  padding: 4px 22px 24px 74px;
  animation: cv-note-in 0.25s ease;
}
@keyframes cv-note-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.cv-note-body h2,
.cv-note-body h3 {
  font-family: var(--font-heading); font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em; margin: 0 0 10px;
  color: var(--text-primary);
}
.cv-note-body p {
  margin: 0 0 10px;
  font-size: 14.5px; line-height: 1.65;
  color: var(--text-secondary);
}
.cv-note-body p:last-child { margin-bottom: 0; }

/* ─── CTA ──────────────────────────────────────────────── */
.cv-cta-section {
  padding: 100px 24px;
  text-align: center;
  background: var(--bg-dark, #0a0f1e);
  color: var(--text-on-dark, #f4f4f5);
  position: relative;
  overflow: hidden;
}
.cv-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,68,254,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cv-cta-section > * { position: relative; z-index: 1; }
.cv-cta-section .section-label { color: rgba(255,255,255,0.5); }
.cv-cta-section h2 {
  font-family: var(--font-heading); font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; color: #fff;
}
.cv-cta-section p {
  color: rgba(255,255,255,0.65); font-size: 17px; max-width: 520px;
  margin: 0 auto 36px; line-height: 1.7;
}
.cv-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cv-cta-section .btn-primary { background: #fff; color: var(--text-primary); }
.cv-btn-on-dark { color: #fff; border-color: rgba(255,255,255,0.25); }
.cv-btn-on-dark:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .cv-map-wrap { grid-template-columns: 1fr; }
  .cv-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--border-subtle); padding-top: 14px; }
  .cv-side-scroll { flex: none; }
  .cv-side-list { position: static; max-height: 240px; }
}
@media (max-width: 768px) {
  .cv-hero { padding: 120px 18px 28px; }
  .cv-map-section { padding: 12px 18px 60px; }
  .cv-embed { padding: 72px 18px; }
  .cv-embed-header { margin-bottom: 32px; }
  .cv-note { margin-top: 28px; }
  .cv-note-summary { padding: 14px 16px; gap: 12px; }
  .cv-note-body { padding: 0 16px 20px; }
  .cv-cta-section { padding: 72px 18px; }
}
@media (max-width: 480px) {
  .cv-cta-actions { width: 100%; flex-direction: column; }
  .cv-cta-actions a { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-country, .cv-marker, .cv-note-chevron { transition: none; }
  .cv-note-body { animation: none; }
}
