/* Shared styles for /insights/ pages: homepage base styles + article styles. Bump ?v= in page links when changed. */
/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Typography ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111;
  background: #fff;
  font-size: 18px;
  line-height: 1.75;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  min-width: 0;
}
.nav-links a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #111; }

/* ── Sections ── */
section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
h2.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #277A82;
  margin-bottom: 20px;
}

.content-heading {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  margin-top: 64px;
  letter-spacing: -0.02em;
}
.content-heading:first-of-type {
  margin-top: 0;
}

/* ── Hero ── */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 200px 24px 104px;
  text-align: left;
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 28px;
}
.hero p {
  font-size: 20px;
  line-height: 1.65;
  color: #444;
  max-width: 600px;
  margin-bottom: 40px;
}
.cta {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border-bottom: 1.5px solid #111;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.cta:hover { color: #555; border-color: #555; }

/* ── About ── */
#problem {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid #eee;
}
#problem p {
  margin-bottom: 28px;
  color: #222;
}
#problem p:last-of-type { margin-bottom: 0; }

/* ── Caseboard ── */
#caseboard {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid #eee;
}
#caseboard p {
  color: #222;
  margin-bottom: 28px;
}
.product-screenshot {
  margin: 48px 0;
}
.product-screenshot-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  cursor: zoom-in;
}
.product-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
.product-screenshot figcaption {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}
.screenshot-note, .screenshot-hint {
  display: block;
  margin-top: 8px;
}
.screenshot-hint { color: #222; }
.product-screenshot-link:focus-visible,
.screenshot-close:focus-visible,
.screenshot-viewport:focus-visible {
  outline: 3px solid #287d85;
  outline-offset: 4px;
}
body.screenshot-open { overflow: hidden; }
.screenshot-dialog {
  width: min(1440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: 90vh;
  max-height: 90dvh;
  padding: 0;
  margin: auto;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  color: #222;
}
.screenshot-dialog[open] {
  display: flex;
  flex-direction: column;
}
.screenshot-dialog::backdrop { background: rgba(0,0,0,0.7); }
.screenshot-toolbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.screenshot-toolbar #screenshot-dialog-title { font-size: 16px; line-height: 1.4; font-weight: 700; }
.screenshot-close {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font: inherit;
  cursor: pointer;
}
.screenshot-dialog-hint {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 14px;
  color: #555;
}
.screenshot-viewport {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.screenshot-viewport img {
  display: block;
  width: max(100%, 1350px);
  max-width: none;
  height: auto;
}

/* ── Case Intelligence (#case-intelligence) · Markets ── */
#case-intelligence, #markets, #insights, #press {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid #eee;
}
#case-intelligence p, #markets p, #insights p, #press p {
  color: #222;
  margin-bottom: 28px;
}
#case-intelligence p:last-of-type, #markets p:last-of-type, #insights p:last-of-type, #press p:last-of-type { margin-bottom: 0; }
#insights .press-item + .press-item { margin-top: 36px; }
#insights .press-also { font-size: 15px; color: #555; }
#insights .insights-all { margin-top: 36px; font-size: 15px; }
#insights .insights-all a { color: #111; }
.press-meta { font-size: 14px; color: #666; margin-bottom: 8px; letter-spacing: 0.01em; }
.press-headline { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.press-headline a { color: #111; text-decoration: none; }
.press-headline a:hover { text-decoration: underline; }
#press .press-also { font-size: 15px; color: #555; }
#press .press-also a { color: #111; }

/* ── Team ── */
#team {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid #eee;
}
#team p {
  color: #222;
  margin-bottom: 28px;
}
.founders {
  display: flex;
  gap: 64px;
  margin-top: 56px;
}
.founder {
  flex: 1;
  text-align: center;
}
.founder-photo-link {
  display: inline-block;
  line-height: 0;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.founder-photo-link:hover { opacity: 0.85; }
.founder-photo-link { margin-bottom: 20px; }
.founder-photo-link .founder-photo { margin: 0; display: block; }
.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #f0f0f0;
  margin: 0 auto 20px;
  object-fit: cover;
}
a.founder-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.2s;
}
a.founder-name:hover { color: #555; }
.founder-title {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ── FAQ ── */
#faq {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid #eee;
}
.faq-list {
  margin-top: 8px;
}
.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid #eee;
}
.faq-item:first-child {
  padding-top: 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.4;
}
.faq-item p {
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}

/* ── Footer ── */
footer {
  border-top: 1px solid #eee;
  padding: 80px 24px;
  max-width: 720px;
  margin: 0 auto;
}
.footer-contacts {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-contact-group h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}
.footer-contact-group a {
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-group a:hover { color: #111; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-company {
  font-size: 14px;
  color: #888;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #555; }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
  .hero { padding: 140px 20px 72px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .content-heading { font-size: 24px; margin-top: 48px; }
  .press-headline { font-size: 20px; }
  section { padding-left: 20px; padding-right: 20px; }
  #problem, #caseboard, #case-intelligence, #markets, #team, #insights, #press, #faq {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .founders { flex-direction: column; gap: 40px; }
  .footer-contacts { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  footer { padding: 60px 20px; }
}

@media (max-width: 600px) {
  .nav-logo { flex-shrink: 0; }
  .nav-links { margin-left: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  .nav-links { gap: 14px; }
  .hero h1 { font-size: 28px; }
}

/* ── Insights pages ── */
.insights-main { max-width: 720px; margin: 0 auto; padding: 128px 24px 112px; }
nav.breadcrumb { position: static; display: block; height: auto; padding: 0; z-index: auto; background: none; box-shadow: none; transition: none; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 32px; font-size: 14px; color: #666; }
.breadcrumb li + li::before { content: "\203A"; margin-right: 6px; color: #999; }
.breadcrumb a { color: #555; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.insights-main h1 { font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: #111; margin-bottom: 20px; }
.dek { font-size: 20px; line-height: 1.6; color: #444; margin-bottom: 20px; }
.byline { font-size: 15px; color: #666; margin-bottom: 40px; }
.byline a { color: #111; }
.key-points { background: #F5F8F8; border-left: 3px solid #277A82; border-radius: 4px; padding: 24px 28px; margin-bottom: 56px; }
.key-points h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #277A82; margin-bottom: 12px; }
.key-points ul { padding-left: 20px; }
.key-points li { font-size: 17px; line-height: 1.65; color: #222; margin-bottom: 10px; }
.key-points li:last-child { margin-bottom: 0; }
.article-body h2 { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; color: #111; margin: 56px 0 20px; }
.article-body h3 { font-size: 20px; line-height: 1.4; font-weight: 700; color: #111; margin: 32px 0 10px; }
.article-body p { color: #222; margin-bottom: 24px; }
.article-body a, .article-end a { color: #111; text-decoration: underline; text-decoration-color: #277A82; text-underline-offset: 3px; }
.article-end h2 { font-size: 20px; line-height: 1.4; font-weight: 700; color: #111; margin: 48px 0 14px; }
.article-end ul { padding-left: 22px; }
.article-end li { margin-bottom: 10px; }
.article-end .sources li { font-size: 15px; color: #444; }
.article-end .author-note { margin-top: 40px; color: #333; }
.article-cta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid #eee; }
.insight-list { margin-top: 48px; }
.insight-item { padding: 28px 0; border-top: 1px solid #eee; }
.insight-item:last-child { border-bottom: 1px solid #eee; }
.insight-item .press-meta { font-size: 14px; color: #666; margin-bottom: 8px; }
.insight-item h2 { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.insight-item h2 a { color: #111; text-decoration: none; }
.insight-item h2 a:hover { text-decoration: underline; }
.insight-item p.insight-dek { font-size: 16px; color: #444; }
@media (max-width: 768px) {
  .insights-main { padding: 104px 20px 80px; }
  .insights-main h1 { font-size: 30px; }
  .dek { font-size: 18px; }
  .article-body h2 { font-size: 24px; margin-top: 48px; }
  .insight-item h2 { font-size: 20px; }
}
