@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Variables ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #64648c;
  --color-border: #e8e8f0;
  --color-accent: #6c5ce7;
  --color-accent-light: #a29bfe;
  --color-accent-bg: #f3f1ff;
  --color-green: #00b894;
  --color-green-bg: #e6f9f4;
  --color-red: #e17055;
  --color-red-bg: #fdf0ec;
  --color-orange: #fdcb6e;
  --color-orange-bg: #fef9e7;
  --color-blue: #74b9ff;
  --color-blue-bg: #eaf4ff;
  --color-grey: #b2bec3;
  --color-grey-bg: #f5f6fa;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-width: 260px;
  --topbar-height: 56px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Top Bar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 24px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s;
}

.btn:hover { border-color: var(--color-accent-light); color: var(--color-accent); }

.btn-primary {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.btn-primary:hover { background: #5b4bd5; border-color: #5b4bd5; color: white; }

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  padding: 20px 0;
  z-index: 90;
}

.sidebar-section {
  padding: 0 16px;
  margin-bottom: 8px;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-grey);
  padding: 8px 12px;
}

.sidebar-link {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  cursor: pointer;
}

.sidebar-link:hover { background: var(--color-grey-bg); color: var(--color-text); }
.sidebar-link.active { background: var(--color-accent-bg); color: var(--color-accent); font-weight: 600; }

/* ── Main Content ── */
.main {
  margin-left: var(--sidebar-width);
  margin-top: var(--topbar-height);
  padding: 0 48px 80px;
  max-width: calc(100% - var(--sidebar-width));
}

.main-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ── Sections ── */
.section {
  padding-top: 56px;
  margin-bottom: 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.section h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
}

.section h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.section p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 720px;
}

.section strong { color: var(--color-text); }

.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

/* ── Cover ── */
.cover {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.cover-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.cover h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.cover h1 span { color: var(--color-accent); }

.cover-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-bottom: 32px;
  max-width: 640px;
}

.cover-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.cover-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cover-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

.cover-meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

/* ── Stat Cards ── */
.stat-row {
  display: flex;
  gap: 16px;
  margin: 20px 0 24px;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 13px;
}

thead th {
  background: var(--color-grey-bg);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
  line-height: 1.5;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-grey-bg); }

td.nowrap { white-space: nowrap; }

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-pod { background: #fdf0ec; color: #c0392b; }
.badge-widget { background: #e6f9f4; color: #27ae60; }
.badge-w2p { background: #eaf4ff; color: #2980b9; }
.badge-enterprise { background: #f3f1ff; color: #6c5ce7; }

/* ── Platform Card Grid ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.platform-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.platform-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.platform-card .card-category {
  margin-bottom: 12px;
}

.platform-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.platform-card .card-tagline {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.platform-card .card-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.platform-card .card-stat {
  display: flex;
  flex-direction: column;
}

.platform-card .card-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
}

.platform-card .card-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-card .card-arrow {
  position: absolute;
  top: 24px;
  right: 20px;
  color: var(--color-grey);
  font-size: 18px;
  transition: all 0.15s;
}

.platform-card:hover .card-arrow { color: var(--color-accent); transform: translateX(3px); }

/* ── Profile Overlay ── */
.profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 200;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.profile-overlay.active { opacity: 1; visibility: visible; transform: translateY(0); }

.profile-topbar {
  position: sticky;
  top: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 210;
  box-shadow: var(--shadow-sm);
}

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}

.profile-back:hover { background: var(--color-accent-bg); }

.profile-name {
  font-size: 16px;
  font-weight: 700;
}

.profile-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 48px 80px;
}

.profile-header {
  margin-bottom: 36px;
}

.profile-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.profile-website {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}

.profile-website:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.profile-header .profile-tagline {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.profile-section {
  margin-bottom: 32px;
}

.profile-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent-bg);
}

.profile-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-dim {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.profile-dim.full-width {
  grid-column: 1 / -1;
}

.profile-dim-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.profile-dim-value {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
}

/* ── Callout ── */
.callout {
  background: var(--color-accent-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 16px 0;
}

.callout p {
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
  max-width: none;
}

.callout-red { background: var(--color-red-bg); border-left-color: var(--color-red); }
.callout-green { background: var(--color-green-bg); border-left-color: var(--color-green); }
.callout-orange { background: var(--color-orange-bg); border-left-color: #e67e22; }

/* ── Image ── */
.diagram-img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin: 16px 0 24px;
}

/* ── Cluster Card ── */
.cluster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.cluster-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.cluster-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}

.cluster-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: none;
}

/* ── Ranking List ── */
.rank-list {
  list-style: none;
  margin: 16px 0;
  counter-reset: rank;
}

.rank-list li {
  counter-increment: rank;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.rank-list li::before {
  content: counter(rank);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-bg);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-list li:last-child { border-bottom: none; }

/* ── Gross Margin Bar ── */
.margin-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.margin-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.margin-bar-label {
  font-size: 12px;
  font-weight: 600;
  width: 140px;
  text-align: right;
  flex-shrink: 0;
}

.margin-bar-track {
  flex: 1;
  height: 24px;
  background: var(--color-grey-bg);
  border-radius: 6px;
  overflow: hidden;
}

.margin-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  padding-left: 8px;
  transition: width 0.8s ease;
}

.margin-bar-text {
  font-size: 10px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

/* ── Presentation Mode ── */
.present-layer {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 500;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.present-layer.active { opacity: 1; visibility: visible; }

.present-topbar {
  height: 48px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.present-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.present-nav {
  display: flex;
  gap: 8px;
}

.present-viewport {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px;
}

.present-slide {
  max-width: 960px;
  width: 100%;
}

/* ── Focus Styles ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── Scroll-to-top ── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: #5b4bd5; box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ── Ecommerce Integration Badges ── */
.integration-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ecomm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--color-grey-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all 0.15s;
  white-space: nowrap;
}

.ecomm-badge:hover {
  border-color: var(--badge-color, var(--color-accent-light));
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ── Cost Simulator ── */
.simulator-controls {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.sim-scenarios {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.sim-scenarios-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-secondary);
  margin-right: 4px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.sim-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-left: auto;
  white-space: nowrap;
}

.sim-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.sim-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sim-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-input-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
}

.sim-input-group input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: var(--color-border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.sim-input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.sim-input-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.sim-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-accent);
}

.sim-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-result-card {
  display: grid;
  grid-template-columns: 180px 1fr 120px;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.sim-result-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
}

.sim-result-card.pod {
  border-left: 3px solid var(--color-red);
}

.sim-result-card.widget {
  border-left: 3px solid var(--color-green);
}

.sim-result-card.w2p {
  border-left: 3px solid var(--color-blue);
}

.sim-result-card.enterprise {
  border-left: 3px solid var(--color-accent);
}

.sim-card-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-card-left .sim-platform-name {
  font-size: 14px;
  font-weight: 700;
}

.sim-card-left .sim-tier-name {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.sim-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-bar-track {
  flex: 1;
  height: 8px;
  background: var(--color-grey-bg);
  border-radius: 4px;
  overflow: hidden;
}

.sim-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.sim-bar-fill.fill-sub { background: var(--color-accent); }
.sim-bar-fill.fill-fee { background: var(--color-orange); }

.sim-bar-breakdown {
  display: flex;
  height: 100%;
}

.sim-bar-sub {
  background: var(--color-accent);
  height: 100%;
  transition: width 0.5s ease;
}

.sim-bar-fee {
  background: var(--color-orange);
  height: 100%;
  transition: width 0.5s ease;
}

.sim-card-cost {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sim-card-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}

.sim-card-detail {
  font-size: 10px;
  color: var(--color-text-secondary);
}

.sim-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  align-items: center;
}

.sim-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.sim-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.sim-legend-dot.dot-sub { background: var(--color-accent); }
.sim-legend-dot.dot-fee { background: var(--color-orange); }
.sim-legend-dot.dot-note { background: var(--color-grey); }

.sim-enterprise-note {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-style: italic;
  padding: 10px 20px;
  background: var(--color-grey-bg);
  border-radius: var(--radius-sm);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; max-width: 100%; padding: 0 24px 80px; }
  .profile-grid { grid-template-columns: 1fr; }
  .cluster-grid { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; }
  .cover h1 { font-size: 32px; }
  .section h2 { font-size: 24px; }
  .profile-body { padding: 24px 20px 60px; }
  .present-viewport { padding: 24px; }
  .platform-grid { grid-template-columns: 1fr; }
  .sim-inputs { grid-template-columns: 1fr; }
  .sim-result-card { grid-template-columns: 140px 1fr 100px; }
}

@media (max-width: 600px) {
  .topbar { padding: 0 12px; }
  .topbar-title { font-size: 12px; }
  .main { padding: 0 12px 60px; }
  .cover { padding: 40px 0 32px; }
  .cover h1 { font-size: 26px; }
  .cover-subtitle { font-size: 15px; }
  .cover-meta { gap: 16px; }
  .section { padding-top: 40px; margin-bottom: 32px; }
  .section h2 { font-size: 20px; }
  .section h3 { font-size: 16px; }
  .stat-card .stat-value { font-size: 22px; }
  .profile-body { padding: 16px 12px 48px; }
  .profile-header h1 { font-size: 28px; }
  table { font-size: 12px; }
  thead th { padding: 8px 10px; font-size: 10px; }
  tbody td { padding: 8px 10px; }
  .present-topbar { padding: 0 12px; }
  .present-viewport { padding: 16px; }
  .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 18px; }
  .sim-result-card { grid-template-columns: 1fr; gap: 8px; }
  .sim-card-cost { text-align: left; flex-direction: row; gap: 8px; align-items: baseline; }
  .sim-scenarios { flex-direction: column; align-items: flex-start; }
}

@media print {
  .topbar, .sidebar, .present-layer, .scroll-top { display: none !important; }
  .main { margin-left: 0; max-width: 100%; padding: 0; }
  .section { page-break-inside: avoid; }
}
