/* ======= CSS VARIABLES & THEME ======= */
:root, [data-theme="light"] {
  --color-bg: #FFFFFF;
  --color-surface: #F3FAF5;
  --color-surface-2: #FFFFFF;
  --color-surface-offset: #E8F5EE;
  --color-surface-dynamic: #D4F0E3;
  --color-divider: #DCF0E6;
  --color-border: #D8EDE2;
  --color-text: #1D1D1F;
  --color-text-muted: #717175;
  --color-text-faint: #B6B6B8;
  --color-text-inverse: #FFFFFF;
  --color-primary: #00A354;
  --color-primary-hover: #007A3D;
  --color-primary-active: #005C2E;
  --color-primary-highlight: #D4F0E3;
  --color-accent: #4A90D9;
  --color-accent-hover: #2D7DD6;
  --color-accent-highlight: #E5F0FF;
  --color-gold: #8a6e00;
  --color-gold-highlight: #FFF5D6;
  --color-blue: #4A90D9;
  --color-blue-highlight: #E5F0FF;
  --color-purple: #6E35B5;
  --color-purple-highlight: #F0E8FF;
  --color-orange: #F07A4F;
  --color-orange-highlight: #FFF0EA;
  --radius-sm: calc(1rem - 8px);
  --radius-md: calc(1rem - 4px);
  --radius-lg: calc(1rem - 2px);
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 24px -4px hsl(149 100% 32% / 0.08);
  --shadow-md: 0 8px 32px -8px hsl(149 100% 32% / 0.12);
  --shadow-lg: 0 16px 48px -12px hsl(240 3% 12% / 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --content-default: 960px;
  --content-wide: 1200px;
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] {
  --color-bg: #0D0F0E;
  --color-surface: #131A15;
  --color-surface-2: #1A2B1F;
  --color-surface-offset: #1F3326;
  --color-surface-dynamic: #243D2C;
  --color-divider: #1E3326;
  --color-border: #2A4035;
  --color-text: #F5F5F7;
  --color-text-muted: #848485;
  --color-text-faint: #515152;
  --color-text-inverse: #1D1D1F;
  --color-primary: #34C77B;
  --color-primary-hover: #2DB368;
  --color-primary-active: #25A05A;
  --color-primary-highlight: #0D3320;
  --color-accent: #4A90D9;
  --color-accent-hover: #3D8CE0;
  --color-accent-highlight: #0A2040;
  --color-gold: #c9a800;
  --color-gold-highlight: #2E2A00;
  --color-blue: #4A90D9;
  --color-blue-highlight: #0A2040;
  --color-purple: #BF8FFF;
  --color-purple-highlight: #2A1A40;
  --color-orange: #F07A4F;
  --color-orange-highlight: #2E1A10;
  --shadow-sm: 0 4px 24px -4px hsl(149 100% 10% / 0.3);
  --shadow-md: 0 8px 32px -8px hsl(149 100% 10% / 0.4);
  --shadow-lg: 0 16px 48px -12px rgba(0,0,0,0.5);
}
/* ======= UTILITY CLASSES ======= */
.gradient-nature {
  background: linear-gradient(135deg, #00A354 0%, #4A90D9 100%);
}
.text-gradient-nature {
  background: linear-gradient(135deg, #00A354 0%, #4A90D9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
}
.glow-green {
  box-shadow: 0 4px 20px hsl(149 100% 32% / 0.35), 0 1px 4px hsl(149 100% 32% / 0.2);
}
.glow-green:hover {
  box-shadow: 0 8px 32px hsl(149 100% 32% / 0.45), 0 2px 8px hsl(149 100% 32% / 0.25);
}
.grain::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.03; border-radius: inherit;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-font-smoothing: antialiased; }
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  letter-spacing: -0.01em;
  transition: background var(--transition), color var(--transition);
}
img, svg { display: block; max-width: 100%; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.2; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ======= NAV ======= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
}
.nav-logo svg { max-height: 60px; width: auto; }
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex; gap: var(--space-1);
}
.nav-links a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--color-surface-offset); color: var(--color-text); }
.nav-links a.active { background: var(--color-primary-highlight); color: var(--color-primary); font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--color-surface-offset); color: var(--color-text); }
.theme-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Hamburger – desktop hidden, mobile shown */
.nav-hamburger {
  display: none; width: 44px; height: 44px;
  border-radius: var(--radius-md); border: 1px solid var(--color-border);
  align-items: center; justify-content: center;
  background: transparent; color: var(--color-text-muted); cursor: pointer;
  transition: all var(--transition); flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--color-surface-offset); color: var(--color-text); }
.nav-hamburger:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.ham-bar {
  display: block; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}
.ham-bars { display: flex; flex-direction: column; gap: 4px; }
.nav.nav-open .ham-bars .ham-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.nav-open .ham-bars .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.nav-open .ham-bars .ham-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .ham-bar, .nav-links { transition: none !important; }
}
.progress-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  width: 0%;
  transition: width 0.1s linear;
  position: absolute; bottom: -1px; left: 0;
}

/* ======= LANG SWITCH ======= */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; }
.lang-active { color: var(--color-text); }
.lang-link { color: var(--color-text-muted); }
.lang-link:hover { color: var(--color-text); }

/* ======= HERO ======= */
.hero {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: clamp(var(--space-12), 8vw, var(--space-20)) var(--space-6) var(--space-12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #00A354 0%, #4A90D9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.08em;
  margin-right: -0.08em;
}
.hero-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.hero-cta {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px hsl(149 100% 32% / 0.35), 0 1px 4px hsl(149 100% 32% / 0.2);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px hsl(149 100% 32% / 0.45), 0 2px 8px hsl(149 100% 32% / 0.25);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: transparent;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--color-surface-offset); border-color: var(--color-text-muted); }
.hero-visual {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.hero-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.hero-stat {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--color-divider);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  font-weight: 400;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.hero-flow {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-divider);
  flex-wrap: wrap;
}
.flow-step {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--color-surface-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}
.flow-arrow { color: var(--color-text-faint); font-size: 12px; }
.flow-step.active { background: var(--color-primary-highlight); color: var(--color-primary); border-color: transparent; }

/* ======= OVERVIEW STRIP ======= */
.overview-strip {
  background: linear-gradient(135deg, #00A354 0%, #4A90D9 100%);
  color: #fff;
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
}
.overview-strip::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.04;
}
.overview-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.overview-item { text-align: center; }
.overview-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #FFFFFF;
  display: block;
  font-weight: 800;
}
.overview-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.82);
  margin-top: var(--space-1);
  line-height: 1.4;
}

/* ======= SECTION CONTAINER ======= */
.section {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-6);
}
.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

/* ======= PHASE TABS ======= */
.phase-tabs {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 0;
}
.phase-tab {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.phase-tab:hover { color: var(--color-text); background: var(--color-surface-offset); }
.phase-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); background: transparent; }
.phase-num {
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.phase-tab.active .phase-num { background: var(--color-primary-highlight); color: var(--color-primary); }

/* ======= PHASE CONTENT ======= */
.phase-content { display: none; animation: fadeUp 0.3s ease; }
.phase-content.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.phase-header {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); align-items: start;
  margin-bottom: var(--space-8);
}
.phase-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.phase-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; margin-bottom: var(--space-2); }
.phase-desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; max-width: 60ch; }

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.step-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: box-shadow var(--transition), transform var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-card-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.step-num {
  width: 28px; height: 28px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-name { font-size: var(--text-sm); font-weight: 600; }
.step-body { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.step-tool {
  display: inline-flex; align-items: center; gap: var(--space-1);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  background: var(--color-surface-offset);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

/* KPI boxes */
.kpi-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: var(--space-4); margin-bottom: var(--space-8);
}
.kpi-box {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: center;
}
.kpi-val {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-1);
}
.kpi-desc { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.4; }

/* Timeline */
.timeline { position: relative; padding-left: var(--space-8); }
.timeline::before {
  content: '';
  position: absolute; left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: var(--color-divider);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: calc(-1 * var(--space-8) + 3px);
  top: 4px;
  width: 18px; height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 2px solid var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot svg { width: 8px; height: 8px; color: var(--color-primary); }
.timeline-week {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.timeline-title { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-2); }
.timeline-body { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; max-width: 55ch; }
.timeline-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.tag {
  font-size: var(--text-xs);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-weight: 500;
}
.tag-green { background: var(--color-primary-highlight); color: var(--color-primary); }
.tag-orange { background: var(--color-orange-highlight); color: var(--color-orange); }
.tag-blue { background: var(--color-blue-highlight); color: var(--color-blue); }
.tag-gold { background: var(--color-gold-highlight); color: #8a6e00; }
.tag-purple { background: var(--color-purple-highlight); color: var(--color-purple); }

/* ======= CHECKLIST ======= */
.checklist { display: flex; flex-direction: column; gap: var(--space-3); }
.check-item {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition);
}
.check-item:hover { border-color: var(--color-primary); }
.check-item.done { opacity: 0.55; }
.check-item.done .check-text { text-decoration: line-through; }
.check-box {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  transition: all var(--transition);
  background: var(--color-surface);
}
.check-item.done .check-box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.check-item.done .check-box::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.check-text { font-size: var(--text-sm); line-height: 1.55; }
.check-cat { font-weight: 600; }

/* ======= ROLE TABLE ======= */
.role-table { width: 100%; border-collapse: collapse; }
.role-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-divider);
}
.role-table td {
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
  line-height: 1.55;
}
.role-table tr:last-child td { border-bottom: none; }
.role-table tr:hover td { background: var(--color-surface-offset); }
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ======= DIVIDER ======= */
.section-divider {
  max-width: var(--content-default);
  margin: 0 auto;
  height: 1px;
  background: var(--color-divider);
}

/* ======= TOOLS GRID ======= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px,100%), 1fr));
  gap: var(--space-4);
}
.tool-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.tool-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.tool-logo img {
  width: 32px; height: 32px;
  object-fit: contain; display: block;
}
.tool-logo-pair {
  display: flex; gap: var(--space-2);
  flex-shrink: 0;
}
.tool-name { font-size: var(--text-sm); font-weight: 700; }
.tool-role { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }
.tool-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ======= FOOTER ======= */
footer {
  background: linear-gradient(160deg, #0D1F14 0%, #0a1a1f 100%);
  color: var(--color-text-inverse);
  padding: var(--space-12) var(--space-6);
  margin-top: var(--space-16);
}
.footer-inner {
  max-width: var(--content-default);
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-10);
}
.footer-brand { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-3); }
.footer-desc { font-size: var(--text-sm); opacity: 0.6; line-height: 1.65; }
.footer-col-title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.4; margin-bottom: var(--space-4); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a { font-size: var(--text-sm); opacity: 0.65; transition: opacity var(--transition); }
.footer-links a:hover { opacity: 1; }
.footer-bottom {
  max-width: var(--content-default);
  margin: var(--space-10) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-xs); opacity: 0.4;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .overview-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .phase-header { grid-template-columns: 1fr; }

  /* Mobile hamburger visible */
  .nav-hamburger { display: flex; }

  /* Mobile nav links: slide-down panel */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: 0 var(--space-4);
    gap: var(--space-1);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s cubic-bezier(.4,0,.2,1),
                opacity 0.22s ease,
                padding 0.28s cubic-bezier(.4,0,.2,1);
    z-index: 99;
  }
  .nav.nav-open .nav-links {
    max-height: 480px;
    opacity: 1;
    padding: var(--space-3) var(--space-4) var(--space-4);
    pointer-events: auto;
  }
  /* Mobile nav link tap targets */
  .nav-links a {
    padding: 11px var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Phase tabs: scrollable row on mobile */
  .phase-tabs {
    gap: var(--space-1);
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
  }
  .phase-tabs::-webkit-scrollbar { display: none; }
  .phase-tab { flex-shrink: 0; min-height: 44px; }
  .phase-tab span.phase-label { display: none; }

  /* Role table: horizontal scroll + fade hint */
  .role-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }
  .role-table-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 40px;
    background: linear-gradient(to left, var(--color-surface) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }
  .role-table { min-width: 560px; }

  /* Nav logo: smaller on mobile */
  .nav-logo svg { width: 130px; height: auto; }

  /* CTA buttons: full-width on mobile */
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .overview-inner { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; width: 100%; }

  /* Tighter section padding */
  .section { padding-left: var(--space-4); padding-right: var(--space-4); }
  .overview-strip { padding-left: var(--space-4); padding-right: var(--space-4); }

  /* Nav logo: even smaller */
  .nav-logo svg { width: 110px; }
  .nav-inner { padding: var(--space-3) var(--space-4); }

  /* Footer tighter */
  footer { padding-left: var(--space-4); padding-right: var(--space-4); }

  /* ROI inputs stay 2-col down to 375 */
  .roi-fields { grid-template-columns: 1fr 1fr; }
}

/* ======= WEBINAR BANNER ======= */
#webinarBanner {
  position: relative;
  background: var(--color-primary);
  z-index: 90;
}
.webinar-banner {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3); flex-wrap: wrap;
  padding: 10px var(--space-6);
  color: #fff; text-decoration: none;
  font-size: var(--text-sm); font-weight: 500;
  transition: background 0.2s;
}
.webinar-banner:hover { background: rgba(0,0,0,0.08); color: #fff; }
.webinar-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  animation: webinar-pulse 2s infinite;
}
@keyframes webinar-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
  50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0.0); }
}
.webinar-label {
  background: rgba(255,255,255,0.2);
  border-radius: 999px; padding: 2px 10px;
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.webinar-title { color: rgba(255,255,255,0.95); }
.webinar-cta {
  display: flex; align-items: center; gap: 4px;
  font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
}
.webinar-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); padding: 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
}
.webinar-close:hover { color: #fff; background: rgba(0,0,0,0.12); }
@media (max-width: 480px) {
  .webinar-cta { display: none; }
  .webinar-banner { padding: 10px var(--space-10) 10px var(--space-4); }
}
@media (prefers-reduced-motion: reduce) { .webinar-live-dot { animation: none; } }

/* ── Maturity Assessment ──────────────────────────────── */
.mat-progress-bar {
  display:flex; align-items:center; gap:var(--space-4);
  background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-xl); padding:14px 20px; margin-bottom:var(--space-6);
}
.mat-progress-track { flex:1; height:5px; background:var(--color-surface-offset); border-radius:var(--radius-full); overflow:hidden; }
.mat-progress-fill { height:100%; background:var(--color-primary); border-radius:var(--radius-full); width:0%; transition:width 0.4s ease; }
.mat-progress-label { font-size:13px; font-weight:700; color:var(--color-primary); white-space:nowrap; flex-shrink:0; }
.mat-progress-dots { display:flex; gap:5px; flex-shrink:0; }
.mat-dot { width:8px; height:8px; border-radius:50%; background:var(--color-surface-offset); border:1.5px solid var(--color-border); transition:background 0.25s,border-color 0.25s; }
.mat-dot.done { background:var(--color-primary); border-color:var(--color-primary); }

.mat-form { display:flex; flex-direction:column; gap:var(--space-3); }
.mat-q {
  background:var(--color-surface-2); border:1.5px solid var(--color-border);
  border-radius:var(--radius-xl); padding:var(--space-4) var(--space-5);
  transition:border-color 0.2s,box-shadow 0.2s;
}
.mat-q.answered { border-color:var(--color-primary); box-shadow:0 0 0 3px var(--color-primary-highlight); }
.mat-q-legend {
  display:flex; align-items:flex-start; gap:10px;
  font-family:var(--font-body); font-size:var(--text-sm); font-weight:600;
  color:var(--color-text); margin-bottom:12px; padding:0; border:none; width:100%;
}
.mat-q-num {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:22px; height:22px; border-radius:var(--radius-full);
  background:var(--color-surface-offset); color:var(--color-text-muted);
  font-size:11px; font-weight:700; flex-shrink:0; transition:all 0.2s;
}
.mat-q.answered .mat-q-num { background:var(--color-primary); color:#fff; }
.mat-q-text { flex:1; padding-top:2px; }

.mat-options { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.mat-option { position:relative; }
.mat-option input[type="radio"] { position:absolute; opacity:0; width:0; height:0; pointer-events:none; }
.mat-opt-label {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:var(--radius-lg);
  border:1.5px solid var(--color-border); background:var(--color-surface);
  cursor:pointer; user-select:none; height:100%;
  transition:border-color 0.15s,background 0.15s,box-shadow 0.15s;
}
.mat-opt-label:hover { border-color:var(--color-primary); background:var(--color-primary-highlight); }
.mat-option input:checked + .mat-opt-label {
  border-color:var(--color-primary); background:var(--color-primary-highlight);
  box-shadow:0 0 0 1px var(--color-primary);
}
.mat-option input:focus-visible + .mat-opt-label { outline:2px solid var(--color-primary); outline-offset:2px; }
.mat-opt-dot {
  width:20px; height:20px; min-width:20px; border-radius:var(--radius-full);
  background:var(--color-surface-offset); border:1.5px solid var(--color-border);
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700; color:var(--color-text-muted); flex-shrink:0; transition:all 0.15s;
}
.mat-option input:checked + .mat-opt-label .mat-opt-dot { background:var(--color-primary); border-color:var(--color-primary); color:#fff; }
.mat-opt-text { font-size:12.5px; color:var(--color-text-muted); line-height:1.4; flex:1; transition:color 0.15s; }
.mat-option input:checked + .mat-opt-label .mat-opt-text { color:var(--color-text); font-weight:600; }

.mat-warning {
  display:none; align-items:center; gap:10px; padding:12px 16px;
  background:#FFF9E6; border:1px solid #e6c84a; border-radius:var(--radius-lg);
  font-size:var(--text-sm); color:#7a5c00; margin-top:var(--space-4);
}
.mat-warning.visible { display:flex; }
.mat-actions { display:flex; align-items:center; gap:var(--space-4); margin-top:var(--space-6); flex-wrap:wrap; }

/* Result */
.mat-result { margin-top:var(--space-8); opacity:0; transform:translateY(20px); transition:opacity 0.5s ease,transform 0.5s ease; display:none; }
.mat-result.visible { opacity:1; transform:translateY(0); }
.mat-result-card { background:var(--color-surface-2); border:1px solid var(--color-border); border-radius:var(--radius-2xl); overflow:hidden; box-shadow:var(--shadow-md); }

.mat-gauge-header {
  padding:var(--space-6) var(--space-8); display:flex; align-items:center; gap:var(--space-6);
  background:linear-gradient(135deg,#00A354 0%,#4A90D9 100%);
  color:#fff; position:relative; overflow:hidden;
}
.mat-gauge-header::after {
  content:''; position:absolute; inset:0; opacity:.04; pointer-events:none;
  background-image:radial-gradient(circle,#fff 1px,transparent 1px); background-size:20px 20px;
}
.mat-gauge-wrap { position:relative; width:140px; height:140px; flex-shrink:0; }
.mat-gauge-svg { width:140px; height:140px; display:block; }
.mat-gauge-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.mat-gauge-pct { font-family:var(--font-display); font-size:2.2rem; font-weight:800; color:#fff; line-height:1; }
.mat-gauge-sub { font-size:10px; color:rgba(255,255,255,0.72); margin-top:3px; letter-spacing:.04em; text-transform:uppercase; }

.mat-gauge-info { flex:1; min-width:0; }
.mat-level-pill {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,0.18); border:1px solid rgba(255,255,255,0.28);
  border-radius:var(--radius-full); padding:4px 12px;
  font-size:11px; font-weight:700; color:#fff; letter-spacing:.05em;
  text-transform:uppercase; margin-bottom:10px;
}
.mat-gauge-level { font-family:var(--font-display); font-size:clamp(1.3rem,3vw,1.75rem); font-weight:800; color:#fff; margin-bottom:8px; line-height:1.2; }
.mat-gauge-desc { font-size:var(--text-sm); color:rgba(255,255,255,0.82); line-height:1.65; max-width:36ch; }

.mat-body { padding:var(--space-6) var(--space-8); }
.mat-body-title { font-family:var(--font-display); font-size:var(--text-lg); font-weight:800; color:var(--color-text); margin-bottom:var(--space-5); }
.mat-recs { display:flex; flex-direction:column; gap:var(--space-3); margin-bottom:var(--space-6); }
.mat-rec {
  display:grid; grid-template-columns:28px 1fr; gap:var(--space-3);
  background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-lg); padding:var(--space-3) var(--space-4); align-items:start;
}
.mat-rec-num {
  width:28px; height:28px; border-radius:var(--radius-full);
  background:var(--color-primary); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; flex-shrink:0;
}
.mat-rec-title { font-size:13px; font-weight:700; color:var(--color-text); margin-bottom:3px; }
.mat-rec-body { font-size:12.5px; color:var(--color-text-muted); line-height:1.6; }
.mat-cta-box {
  background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-lg); padding:var(--space-4) var(--space-5);
}
.mat-cta-lead { font-size:var(--text-sm); color:var(--color-text-muted); margin-bottom:var(--space-3); line-height:1.65; }
.mat-cta-lead strong { color:var(--color-text); }
.mat-cta-btns { display:flex; gap:var(--space-3); flex-wrap:wrap; }

@media (max-width:768px) {
  .mat-gauge-header { flex-direction:column; align-items:center; gap:var(--space-4); padding:var(--space-5); text-align:center; }
  .mat-gauge-desc { max-width:none; }
  .mat-body { padding:var(--space-5); }
}
@media (max-width:480px) {
  .mat-options { grid-template-columns:1fr; }
  .mat-q { padding:var(--space-3) var(--space-4); }
  .mat-gauge-header { padding:var(--space-4); }
  .mat-gauge-wrap { width:110px; height:110px; }
  .mat-gauge-svg { width:110px; height:110px; }
  .mat-gauge-pct { font-size:1.7rem; }
  .mat-body { padding:var(--space-4); }
}

/* ── Personoitu Next Steps ─────────────────────────── */
.mat-nextsteps {
  margin-top:var(--space-6); opacity:0; transform:translateY(20px);
  transition:opacity 0.5s ease 0.15s,transform 0.5s ease 0.15s; display:none;
}
.mat-nextsteps.visible { opacity:1; transform:translateY(0); }

.mns-header {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:var(--space-3); margin-bottom:var(--space-5);
}
.mns-title { font-family:var(--font-display); font-size:var(--text-xl); font-weight:800; color:var(--color-text); }
.mns-header-actions { display:flex; gap:var(--space-2); flex-wrap:wrap; }

.mns-state-card {
  background:var(--color-surface); border:1px solid var(--color-border);
  border-left:4px solid var(--color-primary);
  border-radius:var(--radius-xl); padding:var(--space-4) var(--space-5);
  margin-bottom:var(--space-5);
}
.mns-state-label { font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--color-primary); margin-bottom:var(--space-2); }
.mns-state-text { font-size:var(--text-sm); color:var(--color-text); line-height:1.7; }

.mns-cols { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4); margin-bottom:var(--space-4); }
.mns-panel {
  background:var(--color-surface-2); border:1px solid var(--color-border);
  border-radius:var(--radius-xl); padding:var(--space-4) var(--space-5);
}
.mns-panel-head {
  display:flex; align-items:center; gap:8px;
  font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--color-text-muted); margin-bottom:var(--space-4);
  padding-bottom:var(--space-3); border-bottom:1px solid var(--color-border);
}
.mns-panel-icon {
  width:20px; height:20px; border-radius:var(--radius-full);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.mns-panel-icon.steps { background:var(--color-primary-highlight); color:var(--color-primary); }
.mns-panel-icon.mistakes { background:#FFF0ED; color:#c95a2a; }

.mns-steps { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:var(--space-3); }
.mns-step { display:flex; gap:var(--space-3); align-items:flex-start; }
.mns-step-num {
  width:24px; height:24px; min-width:24px; border-radius:var(--radius-full);
  background:var(--color-primary); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700; margin-top:1px;
}
.mns-step-text { font-size:13px; color:var(--color-text); line-height:1.55; }

.mns-mistakes { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:var(--space-3); }
.mns-mistake { display:flex; gap:var(--space-3); align-items:flex-start; }
.mns-mistake-icon {
  width:24px; height:24px; min-width:24px; border-radius:var(--radius-full);
  background:#FFF0ED; color:#c95a2a;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; flex-shrink:0; margin-top:1px; line-height:1;
}
.mns-mistake-text { font-size:13px; color:var(--color-text-muted); line-height:1.55; }

.mns-project-card {
  background:linear-gradient(135deg,var(--color-primary-highlight) 0%,#EBF7F2 100%);
  border:1px solid var(--color-primary); border-radius:var(--radius-xl);
  padding:var(--space-5) var(--space-6); margin-bottom:var(--space-4);
  display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto;
  gap:var(--space-1) var(--space-6); align-items:center;
}
.mns-project-label { font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--color-primary); grid-column:1; grid-row:1; }
.mns-project-name { font-family:var(--font-display); font-size:var(--text-base); font-weight:800; color:var(--color-text); grid-column:1; grid-row:2; }
.mns-time-pill {
  grid-column:2; grid-row:1/3; align-self:center;
  background:var(--color-primary); color:#fff; border-radius:var(--radius-xl);
  padding:var(--space-3) var(--space-4); text-align:center;
  display:flex; flex-direction:column; gap:2px;
}
.mns-time-label { font-size:9px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; opacity:.8; }
.mns-time-value { font-family:var(--font-display); font-size:13px; font-weight:800; }

.mns-btn-ghost {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 16px; border-radius:var(--radius-lg);
  border:1.5px solid var(--color-border); background:var(--color-surface-2);
  font-family:var(--font-body); font-size:13px; font-weight:600;
  color:var(--color-text); cursor:pointer; transition:border-color .15s,background .15s,color .15s;
  white-space:nowrap;
}
.mns-btn-ghost:hover,.mns-btn-ghost.copied { border-color:var(--color-primary); background:var(--color-primary-highlight); color:var(--color-primary); }
.mns-btn-ghost svg { flex-shrink:0; }

.mns-actions { display:flex; gap:var(--space-3); flex-wrap:wrap; margin-bottom:var(--space-4); }

.mns-cta-block {
  background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-xl); padding:var(--space-5) var(--space-6);
  display:flex; align-items:center; justify-content:space-between;
  gap:var(--space-5); flex-wrap:wrap;
}
.mns-cta-text { font-size:var(--text-sm); color:var(--color-text-muted); line-height:1.65; max-width:48ch; }
.mns-cta-text strong { color:var(--color-text); }

@media (max-width:768px) {
  .mns-cols { grid-template-columns:1fr; }
  .mns-project-card { grid-template-columns:1fr; }
  .mns-time-pill { grid-column:1; grid-row:auto; flex-direction:row; justify-content:flex-start; width:fit-content; padding:var(--space-2) var(--space-3); margin-top:var(--space-2); }
  .mns-cta-block { flex-direction:column; align-items:flex-start; }
  .mns-header { flex-direction:column; align-items:flex-start; }
}
@media (max-width:480px) {
  .mns-panel { padding:var(--space-3) var(--space-4); }
  .mns-project-card { padding:var(--space-4); }
  .mns-cta-block { padding:var(--space-4); }
}

@media print {
  nav,.hero,.overview-strip,.section-divider,
  #vaiheet,#aikataulu,#roolit,#tyokalut,#checklist,
  footer,.cal-cta-btn,.cal-overlay,
  .mat-progress-bar,.mat-form,.mat-warning,.mat-actions,
  .mat-cta-box,.mns-actions { display:none !important; }
  body { background:#fff; }
  #maturity { padding:0; }
  .mat-result,.mat-nextsteps { display:block !important; opacity:1 !important; transform:none !important; }
  .mat-gauge-header { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* ── ROI Calculator ───────────────────────────────────── */
.roi-layout {
  display:grid; grid-template-columns:1fr 1fr; gap:var(--space-6); align-items:start;
}
.roi-card {
  background:var(--color-surface-2); border:1px solid var(--color-border);
  border-radius:var(--radius-2xl); padding:var(--space-6); box-shadow:var(--shadow-sm);
}
.roi-card-title {
  font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--color-text-muted); margin-bottom:var(--space-4);
  padding-bottom:var(--space-3); border-bottom:1px solid var(--color-border);
}
.roi-card-group { margin-bottom:var(--space-5); }
.roi-card-group:last-child { margin-bottom:0; }
.roi-card-group-label {
  font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--color-primary); margin-bottom:var(--space-3);
}
.roi-fields { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4); }
.roi-field { display:flex; flex-direction:column; gap:6px; }
.roi-field-label { font-size:12px; font-weight:600; color:var(--color-text-muted); line-height:1.4; }
.roi-input-wrap {
  display:flex; align-items:center;
  background:var(--color-surface); border:1.5px solid var(--color-border);
  border-radius:var(--radius-lg); overflow:hidden; transition:border-color .15s;
}
.roi-input-wrap:focus-within { border-color:var(--color-primary); }
.roi-input {
  flex:1; padding:9px 12px; border:none; background:transparent; min-width:0;
  font-family:var(--font-body); font-size:14px; font-weight:600; color:var(--color-text); outline:none;
}
.roi-input::-webkit-inner-spin-button { opacity:.4; }
.roi-unit {
  padding:0 10px 0 2px; font-size:11px; font-weight:700;
  color:var(--color-text-muted); white-space:nowrap; flex-shrink:0;
}

/* Scenario bar */
.roi-scenario-bar {
  display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
  margin-bottom:var(--space-5); padding:14px var(--space-5);
  background:var(--color-surface-2); border:1px solid var(--color-border);
  border-radius:var(--radius-2xl);
}
.roi-scenario-label {
  font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--color-text-muted); flex-shrink:0;
}
.roi-scenarios {
  display:flex; background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-lg); overflow:hidden; flex-shrink:0;
}
.roi-scenario-btn {
  padding:7px 16px; border:none; background:transparent; cursor:pointer;
  font-family:var(--font-body); font-size:13px; font-weight:600;
  color:var(--color-text-muted); transition:all .18s; white-space:nowrap;
}
.roi-scenario-btn:hover { color:var(--color-text); background:var(--color-surface-2); }
.roi-scenario-btn.active { background:var(--color-primary); color:#fff; }
.roi-scenario-note {
  font-size:12px; color:var(--color-text-muted); font-style:italic; flex:1; min-width:160px;
}

/* Hero */
.roi-hero {
  display:flex; align-items:stretch;
  background:linear-gradient(135deg,#00A354 0%,#4A90D9 100%);
  border-radius:var(--radius-xl); position:relative; overflow:hidden;
  transition:background .4s; margin-bottom:var(--space-4);
}
.roi-hero::after {
  content:''; position:absolute; inset:0; opacity:.04; pointer-events:none;
  background-image:radial-gradient(circle,#fff 1px,transparent 1px); background-size:18px 18px;
}
.roi-hero.negative { background:linear-gradient(135deg,#c95a2a 0%,#7a2a0a 100%); }
.roi-hero-left {
  flex:1; padding:var(--space-6) var(--space-5); display:flex; flex-direction:column; justify-content:center;
}
.roi-hero-sep {
  width:1px; background:rgba(255,255,255,.25); flex-shrink:0; margin:var(--space-4) 0;
}
.roi-hero-right {
  padding:var(--space-6) var(--space-5); display:flex; flex-direction:column;
  align-items:center; justify-content:center; min-width:110px;
}
.roi-hero-eyebrow {
  font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:rgba(255,255,255,.7); margin-bottom:6px;
}
.roi-hero-pct {
  font-family:var(--font-display); font-size:clamp(2.4rem,4.5vw,3.25rem);
  font-weight:800; color:#fff; line-height:1; margin-bottom:8px;
}
.roi-hero-sub { font-size:12px; color:rgba(255,255,255,.8); line-height:1.5; }
.roi-hero-mult {
  font-family:var(--font-display); font-size:clamp(1.8rem,3.5vw,2.5rem);
  font-weight:800; color:#fff; line-height:1; margin-bottom:4px; text-align:center;
}
.roi-hero-mult-label {
  font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:rgba(255,255,255,.7); text-align:center; line-height:1.4;
}

/* 3-col metrics */
.roi-metrics {
  display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-3); margin-bottom:var(--space-4);
}
.roi-metric {
  background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-xl); padding:var(--space-4);
}
.roi-metric-label {
  font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--color-text-muted); margin-bottom:6px;
}
.roi-metric-value {
  font-family:var(--font-display); font-size:1.15rem; font-weight:800;
  color:var(--color-text); line-height:1.2;
}
.roi-metric-value.accent { color:var(--color-primary); }
.roi-metric-sub { font-size:11px; color:var(--color-text-muted); margin-top:2px; }

/* Breakdown bar */
.roi-breakdown { margin-bottom:var(--space-4); }
.roi-breakdown-label {
  font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--color-text-muted); margin-bottom:8px;
}
.roi-bar-track {
  height:10px; border-radius:999px; background:var(--color-border);
  overflow:hidden; display:flex;
}
.roi-bar-time {
  height:100%; background:var(--color-primary); border-radius:999px 0 0 999px;
  transition:width .5s cubic-bezier(.4,0,.2,1);
}
.roi-bar-rev {
  height:100%; background:#3E8EF1; border-radius:0 999px 999px 0;
  transition:width .5s cubic-bezier(.4,0,.2,1);
}
.roi-bar-legend { display:flex; gap:var(--space-4); margin-top:8px; }
.roi-legend-item {
  display:flex; align-items:center; gap:6px; font-size:11px; color:var(--color-text-muted);
}
.roi-legend-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }

/* Payback strip */
.roi-payback-strip {
  display:flex; align-items:center; gap:var(--space-3);
  padding:14px var(--space-5); border-radius:var(--radius-xl);
  background:linear-gradient(135deg,rgba(0,163,84,.12) 0%,rgba(0,163,84,.05) 100%);
  border:1px solid rgba(0,163,84,.25); margin-bottom:var(--space-4);
}
.roi-payback-icon {
  width:36px; height:36px; border-radius:50%;
  background:var(--color-primary); display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.roi-payback-val {
  font-family:var(--font-display); font-size:1.5rem; font-weight:800;
  color:var(--color-primary); line-height:1;
}
.roi-payback-desc { font-size:12px; color:var(--color-text-muted); margin-top:2px; }

.roi-note {
  display:flex; gap:10px; align-items:flex-start;
  padding:12px var(--space-4); background:var(--color-surface);
  border:1px solid var(--color-border); border-radius:var(--radius-lg);
  font-size:12px; color:var(--color-text-muted); line-height:1.6;
  margin-bottom:var(--space-4);
}
.roi-note-icon { flex-shrink:0; color:var(--color-primary); margin-top:1px; }
.roi-cta-row { display:flex; gap:var(--space-3); flex-wrap:wrap; }

@media (max-width:900px) {
  .roi-layout { grid-template-columns:1fr; }
  .roi-scenario-bar { gap:var(--space-2); }
}
@media (max-width:640px) {
  .roi-metrics { grid-template-columns:1fr 1fr; }
  .roi-hero-right { min-width:90px; padding:var(--space-5) var(--space-4); }
}
@media (max-width:480px) {
  .roi-fields { grid-template-columns:1fr; }
  .roi-card { padding:var(--space-4); }
  .roi-metrics { grid-template-columns:1fr; }
  .roi-scenario-bar { flex-direction:column; align-items:flex-start; }
}

/* ======= REFERENCES ======= */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.ref-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
  position: relative;
}
.ref-stars { display: flex; gap: 3px; }
.ref-star { color: #00A354; font-size: 16px; line-height: 1; }
.ref-quote-mark {
  position: absolute; top: var(--space-5); right: var(--space-6);
  font-family: var(--font-display); font-size: 72px; font-weight: 800;
  color: var(--color-primary); opacity: 0.12; line-height: 1; user-select: none;
}
.ref-title {
  font-family: var(--font-display);
  font-size: var(--text-base); font-weight: 700;
  color: var(--color-text); line-height: 1.3;
}
.ref-text {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.65; flex: 1;
}
.ref-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.ref-author { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.ref-logo-wrap {
  height: 36px; width: 80px; flex-shrink: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  padding: 4px 8px; overflow: hidden;
}
.ref-logo-wrap img { max-height: 26px; max-width: 68px; width: auto; object-fit: contain; display: block; }
.ref-name { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-company { font-size: var(--text-xs); color: var(--color-text-muted); }
.ref-date { font-size: var(--text-xs); color: var(--color-text-muted); }
.ref-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,122,0,0.08); border: 1px solid rgba(255,122,0,0.18);
  border-radius: var(--radius-full); padding: 4px 10px;
  font-size: 11px; font-weight: 600; color: #ff7a00; white-space: nowrap;
}
.ref-source { margin-top: var(--space-6); text-align: center; }
.ref-source a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full); padding: var(--space-2) var(--space-5);
  transition: all var(--transition);
}
.ref-source a:hover { background: var(--color-surface-offset); color: var(--color-text); border-color: var(--color-text-muted); }
@media (max-width: 900px) { .ref-grid { grid-template-columns: 1fr; } }

/* ======= CALENDAR POPUP ======= */
.cal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(29,29,31,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cal-overlay.open {
  opacity: 1; pointer-events: all;
}
.cal-modal {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  width: 100%; max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}
.cal-overlay.open .cal-modal {
  transform: translateY(0) scale(1);
}
.cal-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #E8E8ED;
  flex-shrink: 0;
}
.cal-modal-header-left {
  display: flex; align-items: center; gap: 12px;
}
.cal-modal-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #00A354; flex-shrink: 0;
}
.cal-modal-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 17px; font-weight: 600;
  color: #1D1D1F; line-height: 1.2;
}
.cal-modal-subtitle {
  font-family: Arial, sans-serif;
  font-size: 13px; color: #6E6E73;
  margin-top: 2px;
}
.cal-modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #F5F5F7; border: none; cursor: pointer;
  color: #6E6E73; flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.cal-modal-close:hover { background: #E8E8ED; color: #1D1D1F; }
.cal-modal-body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 520px;
}
.cal-modal-body .meetings-iframe-container,
.cal-modal-body iframe {
  width: 100%; height: 100%; min-height: 520px;
  border: none; display: block;
}

/* Floating CTA button */
.cal-cta-btn {
  display: flex; align-items: center; gap: 8px;
  background: #00A354; color: #FFFFFF;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 10px 18px;
  border-radius: 9999px;
  border: none; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,163,84,0.30);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap; flex-shrink: 0;
  height: 44px;
}
.cal-cta-btn:hover {
  background: #007A3D;
  box-shadow: 0 4px 18px rgba(0,163,84,0.40);
  transform: translateY(-1px);
}
.cal-cta-btn:focus-visible { outline: 2px solid #00A354; outline-offset: 2px; }
.cal-cta-btn svg { flex-shrink: 0; }

@media (max-width: 768px) {
  .cal-overlay { align-items: flex-end; padding: 0; }
  .cal-modal {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    max-height: 92dvh;
  }
  .cal-modal-body { min-height: 60dvh; }
  .cal-modal-body iframe { min-height: 60dvh; }
  /* Hide label text on mobile, keep icon only */
  .cal-cta-label { display: none; }
  .cal-cta-btn { padding: 0; width: 44px; justify-content: center; }
}
@media (max-width: 480px) {
  .cal-modal-header { padding: 16px 16px 12px; }
  .cal-modal-title { font-size: 15px; }
}
