:root {
  --ts-ink: #102a26;
  --ts-ink-soft: #40615b;
  --ts-surface: #f5faf8;
  --ts-surface-strong: #e5f1ed;
  --ts-line: rgba(16, 42, 38, 0.12);
  --ts-accent: #f0c36a;
  --ts-accent-hover: #ddb056;
  --ts-white: #ffffff;
  --ts-shell-max: 1200px;
  --ts-shadow: none;
  --ts-radius-lg: 6px;
  --ts-radius-md: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Segoe UI', 'Inter', 'Helvetica Neue', sans-serif; background: #f7faf8; color: var(--ts-ink); }
body[data-page="comparison"] { padding-bottom: 28px; }
a { color: inherit; }
button, input, select { font: inherit; }
.app-shell { width: min(100% - 48px, var(--ts-shell-max)); margin: 0 auto; padding-bottom: 72px; }

.navbar { position: sticky; top: 0; z-index: 20; width: 100%; margin: 0; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 max(24px, calc((100vw - var(--ts-shell-max)) / 2)); border-bottom: 1px solid var(--ts-line); background: rgba(255,255,255,0.96); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ts-ink); text-decoration: none; font-weight: 900; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #163f39; color: white; font-weight: 950; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-dropdown-trigger, .mobile-menu { border: 0; border-radius: var(--ts-radius-md); background: transparent; padding: 8px 14px; color: var(--ts-ink); text-decoration: none; font-weight: 600; }
.nav-links a.active, .nav-links a:hover, .nav-dropdown-trigger.active, .nav-dropdown-trigger:hover, .mobile-menu:hover { background: var(--ts-surface-strong); }
.nav-links a.nav-cta { background: var(--ts-accent); color: var(--ts-ink); font-weight: 800; padding: 8px 16px; margin-left: 6px; }
.nav-links a.nav-cta:hover { background: var(--ts-accent-hover); }
.nav-group { position: relative; }
.nav-dropdown { position: absolute; top: calc(100% + 1px); left: 0; display: none; min-width: 220px; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-md); background: rgba(255,255,255,0.98); box-shadow: 0 8px 16px rgba(8, 37, 34, 0.08); }
.nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown, .nav-group.open .nav-dropdown { display: flex; }
.nav-dropdown a { display: block; border-radius: 12px; padding: 10px 12px; text-decoration: none; }
.nav-dropdown a:hover, .nav-dropdown a.active { background: var(--ts-surface-strong); }
.mobile-menu { display: none; }


.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: var(--ts-radius-md); padding: 8px 16px; border: 1px solid transparent; text-decoration: none; font-weight: 800; cursor: pointer; white-space: nowrap; }
.button.contained { background: #183f3a; color: white; }
.button.contained.gold { background: var(--ts-accent); color: var(--ts-ink); }
.button.contained:hover { background: #102f2b; }
.button.contained.gold:hover { background: var(--ts-accent-hover); }
.button.outlined { border-color: var(--ts-line); background: white; color: var(--ts-ink); }
.button.outlined.light { border-color: rgba(255,255,255,0.65); background: transparent; color: white; }
.button.text { border: 0; background: transparent; color: var(--ts-ink); }
.button.full { width: 100%; }
.button-row, .chip-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip-row.centered { justify-content: center; }
.chip { display: inline-flex; align-items: center; width: max-content; max-width: 100%; min-height: 26px; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-md); background: #edf3ef; padding: 4px 10px; color: var(--ts-ink-soft); font-size: 0.82rem; font-weight: 800; }
.chip.small { min-height: 22px; font-size: 0.74rem; }
.chip.action { cursor: pointer; }
.paper-card, .score-tile, .comparison-card, .research-paper { border: 1px solid var(--ts-line); border-radius: var(--ts-radius-md); background: #ffffff; box-shadow: none; }
.paper-card { padding: 24px; }
.paper-card.compact { padding: 20px; border-radius: var(--ts-radius-md); box-shadow: none; }
.caption, .overline { margin: 0 0 6px; color: var(--ts-ink-soft); font-size: 0.75rem; font-weight: 800; }
.uppercase, .overline { text-transform: uppercase; letter-spacing: 0.04em; }
h1, h2, h3, p { margin-top: 0; }
p { color: var(--ts-ink-soft); line-height: 1.5; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 32px; align-items: center; min-height: 620px; margin: 0 calc(50% - 50vw); padding: 58px max(24px, calc((100vw - var(--ts-shell-max)) / 2)); background: #115e59; color: white; }
.home-hero h1 { max-width: 820px; margin: 18px 0; font-size: clamp(2.8rem, 5vw, 3.75rem); line-height: 1.12; font-weight: 800; }
.home-hero .lead { max-width: 820px; margin-bottom: 32px; color: rgba(255,255,255,0.88); font-size: 1.35rem; }
.home-hero .hero-chip { background: rgba(255,255,255,0.14); color: white; border: 0; }
.why-card { border-left: 1px solid rgba(255,255,255,0.34); padding: 0 0 0 24px; }
.why-card p { color: rgba(255,255,255,0.9); }
.why-card .overline { color: #cbe7df; }
.hero-visual { display: block; width: 100%; margin-top: 18px; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--ts-radius-md); object-fit: cover; aspect-ratio: 16 / 10; }
.section-block { padding: 72px 0; border-bottom: 1px solid var(--ts-line); }
.section-block.pale { background: #f6fbf9; margin: 0 calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
.section-heading.centered { max-width: 840px; margin: 0 auto 32px; text-align: center; }
.section-heading h2, .section-block h2, .support-band h2 { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.15; }
.mui-grid { display: grid; gap: 24px; }
.mui-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mui-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-section { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 42px; align-items: center; }

.cta-banner { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 36px 44px; margin: 40px 0; border-radius: 0; background: #102a26; color: white; border: 1px solid rgba(255,255,255,0.12); }
.cta-banner h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 1.9rem); color: white; }
.cta-banner p { margin: 0; color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 650px; }
.cta-banner-content { flex: 1; }
.cta-banner-actions { flex-shrink: 0; }

.support-band { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding: 48px; border-radius: 0; background: #102a26; color: white; }
.support-band p, .support-band li { color: rgba(255,255,255,0.82); }
.support-band h3 { margin: 24px 0 12px; color: white; }
.support-milestones { margin: 8px 0 18px; }
.milestone-list { display: grid; gap: 12px; margin-top: 14px; }
.milestone-card { border: 1px solid rgba(255,255,255,0.18); border-radius: var(--ts-radius-md); background: rgba(255,255,255,0.05); padding: 16px; }
.milestone-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.milestone-stage { display: inline-flex; align-items: center; min-height: 28px; border-radius: 999px; background: rgba(240,195,106,0.18); padding: 4px 10px; color: #f4d487; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.milestone-goal { color: white; font-size: 1.1rem; font-weight: 900; }
.milestone-card h4 { margin: 0 0 8px; font-size: 1.12rem; color: white; }
.milestone-card p { margin: 0; }
.gfm-embed { margin: 18px 0 12px; }
.disclosure { border: 1px solid rgba(255,255,255,0.2); border-radius: var(--ts-radius-md); padding: 14px; }
.support-actions-card { display: grid; gap: 14px; border-radius: var(--ts-radius-md); background: rgba(255,255,255,0.1); padding: 18px; }
.footer { padding: 24px 16px 40px; text-align: center; color: var(--ts-ink-soft); }
.footer .copyright { margin: 8px 0 0; font-size: 0.8rem; }

/* My Stuff page */
.my-stuff-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(190px, 0.7fr) minmax(250px, 1fr); gap: 20px; align-items: stretch; }
.my-stuff-summary > * { min-width: 0; }
.footprint-summary { padding: 20px; }
.footprint-summary h2 { margin: 0 0 20px; font-size: 1.65rem; line-height: 1.15; }
.footprint-benchmark-list { display: grid; gap: 14px; }
.footprint-benchmark-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 0.84rem; }
.footprint-benchmark-row > div:first-child span { white-space: nowrap; font-weight: 800; }
.footprint-benchmark-track { height: 12px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #edf1ed; }
.footprint-benchmark-track span { display: block; height: 100%; border-radius: inherit; }
.benchmark-source { margin: 16px 0 0; font-size: 0.74rem; }
.my-stuff-pie-card { padding: 20px; }
.my-stuff-pie-card h2 { margin: 0 0 16px; font-size: 1rem; font-weight: 900; }
.my-stuff-pie-layout { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr); gap: 16px; align-items: center; }
.my-stuff-pie { display: grid; place-items: center; width: min(100%, 150px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; }
.my-stuff-pie > span { display: grid; place-content: center; width: 54%; height: 54%; border-radius: 50%; background: #ffffff; color: var(--ts-ink); font-size: 1rem; font-weight: 900; text-align: center; }
.my-stuff-pie small { display: block; color: var(--ts-ink-soft); font-size: 0.64rem; font-weight: 700; }
.my-stuff-pie-legend { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.my-stuff-pie-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: 0.72rem; }
.pie-swatch { width: 9px; height: 9px; border-radius: 2px; background: var(--pie-color); }
.my-stuff-pie-legend strong { font-size: 0.72rem; }
.category-benchmark-note { margin: 22px 0 0; border-left: 3px solid #c87816; background: #fff6e5; padding: 12px 14px; color: #603d12; font-size: 0.82rem; }
.my-stuff-categories { display: grid; gap: 20px; margin-top: 24px; }
.my-stuff-category { border-left: 3px solid var(--product-color); }
.my-stuff-category-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; margin-bottom: 14px; }
.my-stuff-category-header h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 900; }
.my-stuff-category-header p { margin: 0; font-size: 0.9rem; }
.my-stuff-category-figures { text-align: right; white-space: nowrap; }
.my-stuff-category-figures strong { display: block; color: var(--product-color); font-size: 1.3rem; font-weight: 900; }
.my-stuff-category-figures span { display: inline-flex; align-items: center; gap: 2px; color: var(--ts-ink-soft); font-size: 0.78rem; font-weight: 700; }
.my-stuff-percentile-comparisons { display: grid; gap: 12px; max-width: 680px; margin: 18px 0 4px; }
.my-stuff-percentile-row { display: grid; gap: 5px; }
.my-stuff-percentile-label { display: flex; justify-content: space-between; gap: 12px; color: var(--ts-ink-soft); font-size: 0.78rem; }
.my-stuff-percentile-label > span { display: inline-flex; align-items: center; gap: 7px; }
.my-stuff-percentile-label small { border: 1px solid #d8a653; border-radius: 3px; padding: 1px 4px; color: #785117; font-size: 0.58rem; font-weight: 900; }
.my-stuff-percentile-label strong { color: var(--ts-ink); }
.my-stuff-percentile-track { height: 10px; overflow: hidden; border-radius: 999px; background: #edf1ed; }
.my-stuff-percentile-track span { display: block; height: 100%; border-radius: inherit; }
.my-stuff-item-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.my-stuff-item-list li { border-top: 1px solid var(--ts-line); padding-top: 10px; }
.my-stuff-item-list strong { display: block; font-size: 0.9rem; }
.my-stuff-item-list p { margin: 4px 0 0; font-size: 0.8rem; }
.my-stuff-note { margin-top: 28px; }
.my-stuff-note h2 { font-size: 1.3rem; font-weight: 900; }

@media (max-width: 720px) {
  .my-stuff-summary { grid-template-columns: 1fr; }
  .my-stuff-pie-layout { grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr); }
  .my-stuff-category-header { grid-template-columns: auto minmax(0, 1fr); }
  .my-stuff-category-figures { grid-column: 1 / -1; text-align: left; }
  .my-stuff-percentile-comparisons { max-width: none; }
}

/* Story-driven homepage sections (fundraising rework) */
.problem-section { text-align: center; }
.problem-grid { max-width: 960px; margin: 0 auto; }
.problem-card { border: 0; box-shadow: none; background: transparent; text-align: left; padding: 0; }
.problem-card h3 { font-size: 1.05rem; }
.problem-callout { max-width: 760px; margin: 40px auto 0; text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--ts-ink); }
.problem-callout strong { display: block; margin-top: 8px; color: #0f5e56; font-size: 2rem; }

.idea-section { background: #ffffff; }
.idea-copy { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.idea-copy .lead { font-size: 1.2rem; color: var(--ts-ink); }
.lifecycle-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0 auto 28px; }
.lifecycle-step { display: inline-flex; align-items: center; min-height: 40px; border: 1px solid var(--ts-line); border-radius: 999px; background: #f6fbf9; padding: 8px 18px; color: var(--ts-ink); font-weight: 800; font-size: 0.92rem; }
.lifecycle-arrow { color: var(--ts-ink-soft); font-weight: 900; }
.dimension-row { justify-content: center; }

.philosophy-section { background: #0f2b26; color: white; text-align: center; padding: 96px 0; }
.philosophy-section h2 { max-width: 760px; margin: 0 auto 28px; color: white; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.philosophy-quote { max-width: 680px; margin: 0 auto; }
.philosophy-quote p { color: rgba(255,255,255,0.88); font-size: 1.15rem; }
.philosophy-quote .punch { color: #f0c36a; font-weight: 800; font-size: 1.3rem; }

.prototype-section { text-align: center; }
.prototype-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 36px 0; text-align: left; }
.screenshot-card img, .screenshot-placeholder { display: block; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-md); object-fit: cover; }
.screenshot-placeholder { display: grid; place-items: center; background: #eef4f1; color: var(--ts-ink-soft); font-size: 0.85rem; font-weight: 700; text-align: center; padding: 16px; }
.screenshot-card h3 { margin: 14px 0 4px; font-size: 1.05rem; }

.roadmap-section { background: #f6fbf9; }
.roadmap-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: stretch; margin-top: 36px; }
.roadmap-step { position: relative; padding: 0 20px; }
.roadmap-step:not(:first-child) { border-left: 1px solid var(--ts-line); }
.roadmap-step .roadmap-index { display: block; margin-bottom: 10px; color: #0f5e56; font-weight: 900; font-size: 0.85rem; letter-spacing: 0.04em; }
.roadmap-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.roadmap-step ul { margin: 0; padding-left: 18px; color: var(--ts-ink-soft); font-size: 0.88rem; }
.roadmap-step li { margin-bottom: 4px; }

.funding-breakdown { display: grid; gap: 10px; margin: 18px 0 22px; }
.funding-line { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 10px; }
.funding-line strong { color: white; }
.funding-total { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 18px; }
.funding-total .amount { color: #f4d487; font-size: 2.6rem; font-weight: 900; line-height: 1; }

.story-section { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr); gap: 42px; align-items: center; }
.story-photo { display: block; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 4 / 5; border-radius: var(--ts-radius-md); object-fit: cover; }
.story-copy h2 { margin-bottom: 18px; }

.vision-section { background: #0a1f1b; color: white; text-align: center; padding: 110px 0; }
.vision-lines { max-width: 620px; margin: 0 auto 24px; }
.vision-lines p { color: rgba(255,255,255,0.85); font-size: 1.2rem; margin-bottom: 10px; }
.vision-section h2 { color: white; max-width: 640px; margin: 0 auto 28px; }
.vision-signoff { color: #f4d487; font-weight: 800; font-size: 1.2rem; }

.final-cta { text-align: center; padding: 80px 0; }
.final-cta h2 { max-width: 600px; margin: 0 auto 16px; }
.final-cta p { max-width: 560px; margin: 0 auto 28px; }

.share-section { border-top: 1px solid var(--ts-line); padding: 48px 0 72px; text-align: center; }
.share-section h2 { margin-bottom: 10px; font-size: 1.7rem; }
.share-section > p { max-width: 560px; margin: 0 auto 22px; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-actions .button { min-height: 36px; padding: 7px 12px; font-size: 0.82rem; }
.share-status { min-height: 1.4em; margin: 14px 0 0 !important; font-size: 0.82rem; }

.updates-form { max-width: 640px; margin: 0 auto; }
.updates-form iframe { display: block; width: 100%; max-width: 100%; border: 0; }

@media (max-width: 900px) {
  .story-section { grid-template-columns: 1fr; }
  .prototype-grid { grid-template-columns: 1fr; }
  .roadmap-steps { grid-template-columns: 1fr; }
  .roadmap-step:not(:first-child) { border-left: 0; border-top: 1px solid var(--ts-line); padding-top: 20px; }
}

.search-screen { min-height: calc(100vh - 100px); display: grid; place-items: center; }
.search-home { width: min(100%, 820px); padding: 64px 0; text-align: center; }
.search-home h1 { margin-bottom: 20px; font-size: clamp(3.2rem, 8vw, 5rem); line-height: 1; font-weight: 950; }
.search-home > p { max-width: 720px; margin: 0 auto 24px; font-size: 1.35rem; }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 62px; margin: 0 auto 16px; border: 1px solid var(--ts-line); border-radius: 999px; background: #ffffff; box-shadow: var(--ts-shadow); padding: 0 22px; text-align: left; }
.search-icon { color: var(--ts-ink-soft); font-size: 1.5rem; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ts-ink); font-size: 1rem; }
.search-results { display: grid; gap: 10px; margin-bottom: 18px; }
.search-result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-md); background: white; padding: 12px; text-align: left; text-decoration: none; }
.search-result small { display: block; color: var(--ts-ink-soft); }
.search-result b { color: var(--product-color); font-size: 1.4rem; }
.helper-text { margin-top: 18px !important; color: var(--ts-ink-soft); font-size: 0.92rem !important; }

.top-controls { display: flex; gap: 12px; align-items: stretch; padding: 24px 0; }
select { min-height: 40px; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-md); background: white; padding: 8px 12px; color: var(--ts-ink); }
.top-controls select { flex: 1; }
.stack { display: grid; gap: 24px; }
.product-header { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: center; background: linear-gradient(135deg, #ffffff 0%, #f3f8f5 100%); }
.product-title-wrap { display: flex; gap: 16px; align-items: center; }
.product-icon { display: grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--product-color) 12%, white); color: var(--product-color); font-weight: 900; }
.product-icon.small { width: 42px; height: 42px; border-radius: 12px; }
.product-header h1 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; font-weight: 900; }
.impact-score-card { position: relative; display: grid; justify-items: start; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-md); background: white; padding: 16px; text-align: left; cursor: pointer; }
.impact-score-card:hover, .impact-score-card:focus-visible { border-color: var(--product-color); background: color-mix(in srgb, var(--product-color) 5%, white); outline: none; }
.impact-score-card strong, .big-score { display: block; color: var(--product-color); font-size: 3rem; line-height: 1; font-weight: 900; }
.impact-score-card span { color: var(--ts-ink-soft); font-size: 0.78rem; }
.icon-button { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--ts-ink-soft); cursor: pointer; }
.icon-button.info { width: 22px; height: 22px; border: 1px solid var(--ts-line); background: #ffffff; font-size: 0.72rem; font-weight: 900; line-height: 1; vertical-align: middle; }
.icon-button.info:hover, .icon-button.info:focus-visible { border-color: var(--ts-ink-soft); background: var(--ts-surface-strong); color: var(--ts-ink); outline: none; }
.comparison-row .icon-button.info, .comparison-section-title .icon-button.info, .tabs .icon-button.info, .metrics-panel h2 .icon-button.info, .highlights .icon-button.info, .research-readiness .icon-button.info { margin-left: 4px; }
.tabs .icon-button.info { align-self: center; margin-left: auto; }
.impact-score-card .info { position: absolute; top: 10px; right: 10px; }
.metrics-panel h2 { margin-bottom: 4px; font-size: 1.3rem; font-weight: 900; }
.public-lens-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.public-lens { min-height: 126px; border: 1px solid var(--ts-line); background: #ffffff; padding: 16px; text-align: left; color: var(--ts-ink); cursor: pointer; }
.public-lens:hover, .public-lens:focus-visible { border-color: var(--product-color); outline: none; }
.public-lens > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.public-lens strong { font-size: 0.9rem; }
.public-lens span { color: var(--product-color); font-size: 1.25rem; font-weight: 900; line-height: 1; }
.public-lens p { margin: 8px 0 0; font-size: 0.78rem; }
.metric-detail-toggle { margin-top: 18px; }
.detailed-metrics { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ts-line); }
.lens-dialog { max-width: 620px; }
.lens-dialog-score { display: block; margin: 14px 0 20px; color: var(--ts-ink); font-size: 2.4rem; line-height: 1; }
.lens-dialog-categories { display: grid; gap: 12px; }
.lens-category { border-top: 1px solid var(--ts-line); padding-top: 12px; }
.lens-category > div { display: flex; justify-content: space-between; gap: 12px; }
.lens-category span { color: var(--ts-ink-soft); font-weight: 900; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric-mini > div, .score-tile > div:first-child, .readiness-row > div, .research-metric > div { display: flex; justify-content: space-between; gap: 12px; }
.metric-mini strong { font-size: 0.78rem; }
.metric-mini span, .readiness-row span, .research-metric span { color: var(--ts-ink-soft); font-size: 0.82rem; font-weight: 800; }
.linear { height: 9px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #edf1ed; }
.linear span { display: block; height: 100%; border-radius: inherit; }
.score-tile { position: relative; min-height: 124px; padding: 18px; box-shadow: none; }
.score-tile[data-info] { cursor: pointer; }
.score-tile[data-info]:hover { border-color: var(--ts-ink-soft); background: #f8fbf9; }
.score-tile h3 { margin: 0; font-size: 1.45rem; font-weight: 900; }
.score-tile .info { position: absolute; top: 12px; right: 12px; }
.product-lower-grid { display: grid; grid-template-columns: minmax(280px, 0.35fr) minmax(0, 0.65fr); gap: 24px; }
.highlights div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.highlights p { font-weight: 700; }
.info-dialog { max-width: 560px; width: calc(100% - 32px); border: 0; border-radius: var(--ts-radius-md); padding: 24px; box-shadow: var(--ts-shadow); }
.info-dialog::backdrop { background: rgba(16, 42, 38, 0.35); }
.dialog-close { float: right; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; }

.comparison-title { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding: 26px 0 14px; }
.comparison-title h1 { margin-bottom: 8px; font-size: 2.25rem; font-weight: 900; }
.comparison-title p { max-width: 860px; }
.lifecycle-explainer-trigger { flex-shrink: 0; }
.lifecycle-dialog { max-width: 660px; }
.lifecycle-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.lifecycle-modal-grid article { display: flex; gap: 12px; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-md); padding: 14px; background: #f8fbf9; }
.lifecycle-modal-grid span { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--ts-surface-strong); color: var(--ts-ink); font-weight: 900; }
.lifecycle-modal-grid strong { display: block; margin-bottom: 4px; }
.lifecycle-modal-grid p, .lifecycle-score-note p { margin: 0; color: var(--ts-ink-soft); font-size: 0.86rem; }
.lifecycle-score-note { margin-bottom: 18px; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-md); padding: 14px; }
.comparison-card { overflow: hidden; }
.category-switch { display: flex; gap: 8px; padding: 16px 24px 0; }
.category-switch .tab { border: 1px solid var(--ts-line); }
.comparison-scroll { overflow-x: auto; }
.sticky-x-scroll { display: none; position: fixed; left: max(16px, calc((100vw - var(--ts-shell-max)) / 2 + 16px)); right: max(16px, calc((100vw - var(--ts-shell-max)) / 2 + 16px)); bottom: 0; z-index: 30; height: 24px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--ts-line); border-bottom: 0; border-radius: var(--ts-radius-md) var(--ts-radius-md) 0 0; background: rgba(255, 255, 255, 0.96); box-shadow: 0 -10px 28px rgba(8, 37, 34, 0.1); }
.sticky-x-scroll.is-visible { display: block; }
.sticky-x-scroll-spacer { height: 1px; }
.comparison-columns, .comparison-row { display: grid; grid-template-columns: 190px repeat(var(--compare-columns), minmax(180px, 1fr)); gap: 16px; align-items: stretch; min-width: calc(190px + (var(--compare-columns) * 196px) + 48px); padding: 20px 24px; }
.compare-product-card, .add-card { border: 1px solid var(--ts-line); border-radius: var(--ts-radius-md); background: white; padding: 16px; }
.compare-product-card { display: flex; gap: 14px; align-items: center; }
.compare-product-card.winner { border: 2px solid var(--product-color); }
.compare-product-card h2 { margin: 0; font-size: 1.45rem; font-weight: 900; }
.compare-product-card p { margin: 4px 0 0; font-size: 0.78rem; }
.add-card { display: grid; gap: 10px; justify-items: center; text-align: center; border-style: dashed; background: #fbfdfb; }
.add-circle { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #edf3ef; color: #5f6f68; font-size: 2rem; }
.text-button { border: 0; background: transparent; color: var(--ts-ink-soft); padding: 6px 0 0; cursor: pointer; }
.comparison-section-title { margin: 0; padding: 18px 24px; border-top: 1px solid var(--ts-line); border-bottom: 1px solid var(--ts-line); background: #f8fbf9; font-size: 1.5rem; font-weight: 900; }
.lens-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lens-section-title h2 { margin: 0; font-size: inherit; }
.lens-section-title .button.text { min-height: auto; padding: 2px 0; color: var(--ts-ink-soft); font-size: 0.8rem; font-weight: 800; }
.comparison-row { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ts-line); }
.comparison-row > div:first-child strong { font-size: 0.95rem; }
.comparison-row p { margin: 0; font-size: 0.86rem; }
.comparison-row.lens-summary-row { cursor: pointer; }
.comparison-row.lens-summary-row:hover { background: #f3f8f5; }
.comparison-row.lens-summary-row:focus-visible { outline: 2px solid var(--ts-ink-soft); outline-offset: -2px; }
.comparison-row.lens-summary-row .bar-cell span { color: var(--ts-ink); font-size: 1.2rem; font-weight: 900; }
.comparison-row.lens-summary-row .linear { height: 12px; }
.comparison-row.lens-category-row { background: #f8fbf9; }
.comparison-row.lens-category-row > div:first-child { padding-left: 20px; border-left: 2px solid var(--ts-surface-strong); }
.comparison-row.lens-category-row > div:first-child strong { font-size: 0.86rem; }
.comparison-row.lens-category-row .linear span { opacity: 0.5; }
.bar-cell { display: flex; align-items: center; gap: 10px; }
.bar-cell .linear { flex: 1; margin-top: 0; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 24px; border-bottom: 1px solid var(--ts-line); }
.tab { border: 0; border-radius: 999px; background: transparent; padding: 8px 14px; color: var(--ts-ink-soft); font-weight: 800; cursor: pointer; white-space: nowrap; }
.tab.active, .tab:hover { background: var(--ts-surface-strong); color: var(--ts-ink); }
.comparison-detail { padding-bottom: 12px; }
.research-link { margin: 20px 24px; }

.research-body { background: #f4f7f5; }
.research-app { min-height: 100vh; display: flex; flex-direction: column; }
.research-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--ts-line); background: white; }
.research-brand { display: flex; align-items: center; gap: 12px; }
.research-brand > div > div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.research-brand p { margin: 2px 0 0; font-size: 0.78rem; }
.research-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #163f39; color: white; font-weight: 900; }
.research-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.research-paper { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; flex: 1; min-height: 660px; margin: 12px; overflow: hidden; box-shadow: none; }
.research-sidebar, .research-readiness { padding: 16px; background: #f8fbf9; }
.research-sidebar { border-right: 1px solid var(--ts-line); }
.research-readiness { border-left: 1px solid var(--ts-line); background: #fcfdfa; }
.panel-title { display: flex; justify-content: space-between; align-items: center; }
.panel-title h2, .research-readiness h2, .research-readiness h3 { margin: 0 0 12px; font-size: 0.95rem; font-weight: 900; }
.study-node { display: block; width: 100%; margin-bottom: 4px; border: 0; border-radius: 12px; background: transparent; padding: 8px; text-align: left; cursor: pointer; }
.study-node.active { background: #dcefe8; color: #0d5149; }
.study-node span { display: block; color: var(--ts-ink-soft); font-size: 0.72rem; line-height: 1.1; }
.study-node strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.model-source, .handoff { color: var(--ts-ink); font-weight: 800; }
.research-main { min-width: 0; background: white; }
.process-header { padding: 16px; border-bottom: 1px solid var(--ts-line); }
.process-header h1 { margin-bottom: 4px; font-size: 1.6rem; font-weight: 900; }
.research-panel { padding: 16px; }
.panel-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.panel-toolbar h2 { margin: 0 0 4px; font-size: 1rem; font-weight: 900; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--ts-line); text-align: left; vertical-align: top; font-size: 0.86rem; }
th { color: var(--ts-ink-soft); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; }
.padded { padding: 16px; }
.research-metric, .readiness-row, .review-item { border-bottom: 1px solid var(--ts-line); padding: 12px 0; }
.research-metric p, .review-item p { margin: 4px 0 0; font-size: 0.78rem; }
hr { border: 0; border-top: 1px solid var(--ts-line); margin: 20px 0; }

@media (max-width: 1020px) {
  .home-hero, .split-section, .support-band, .product-header, .product-lower-grid, .research-paper, .cta-banner { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .mui-grid.three, .mui-grid.two, .metric-grid, .highlights div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-sidebar, .research-readiness { border: 0; border-bottom: 1px solid var(--ts-line); }
}

@media (max-width: 1020px) {
  .navbar { align-items: flex-start; flex-wrap: wrap; padding: 12px; }
  .mobile-menu { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: var(--ts-radius-md); }
  .home-hero { min-height: 0; padding: 28px; }
  .mui-grid.three, .mui-grid.two, .metric-grid, .public-lens-grid, .highlights div, .score-tile > div:first-child { grid-template-columns: 1fr; }
  .top-controls, .research-header, .research-actions { flex-direction: column; align-items: stretch; }
  .comparison-title { align-items: stretch; flex-direction: column; }
  .lifecycle-modal-grid { grid-template-columns: 1fr; }
  .compare-link { width: 100%; }
  .search-home h1 { font-size: 3rem; }
}
