/* Home and About extras. Loaded after styles.css. No inline styles are used on these pages. */

/* The row of cards that overlaps the hero's white fade. */
.pull-up {
  padding-bottom: clamp(28px, 4vw, 52px);
}

.pull-up .card h3 {
  font-size: 20px;
}

.pull-up .card:not(.card-pink) p {
  margin-top: 8px;
  color: var(--muted);
}

.pull-up .card-pink p {
  margin-top: 8px;
}

.pull-up .card .btn {
  margin-top: 18px;
}

/* Homepage market charts reuse the same SVG samples shown on the report page. */
.home-market-graphs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.home-market-graphs .market-graph {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.home-market-graphs .market-graph svg {
  display: block;
  width: 100%;
  height: auto;
}

.home-market-graphs .market-graph figcaption {
  margin-top: auto;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.home-market-graphs .market-graph figcaption strong {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.home-market-graphs .mg-label,
.home-market-graphs .mg-value {
  fill: var(--muted);
  font-family: var(--font-text);
  font-size: 13px;
}

.home-market-graphs .mg-label-strong,
.home-market-graphs .mg-value {
  fill: var(--ink);
}

.home-market-graphs .mg-axis {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.home-market-graphs .mg-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.home-market-graphs .mg-s1 { fill: #FD91CC; }
.home-market-graphs .mg-s2 { fill: #1E4FD8; }
.home-market-graphs .mg-p1 { fill: #09318D; }
.home-market-graphs .mg-p2 { fill: #1E4FD8; }
.home-market-graphs .mg-p3 { fill: #FD91CC; }
.home-market-graphs .mg-p4 { fill: #B8CCF8; }

.home-market-graphs .mg-line,
.home-market-graphs .mg-line-muted {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.home-market-graphs .mg-line { stroke: #F46BB4; }
.home-market-graphs .mg-line-muted { stroke: #1E4FD8; stroke-dasharray: 5 4; }
.home-market-graphs .mg-dot { fill: #F46BB4; stroke: #fff; stroke-width: 2; }
.home-market-graphs .mg-dot-muted { fill: #1E4FD8; stroke: #fff; stroke-width: 2; }
.home-market-graphs .mg-pie { fill: none; stroke: #fff; stroke-width: 8; }

.home-graph-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Home: data protection and contact side by side. */
.duo .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 36px);
}

.duo .card h2 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.duo .card .section-actions {
  margin-top: auto;
  padding-top: 24px;
}

.duo .card-blue {
  background: linear-gradient(160deg, var(--blue), #123FB3 75%, var(--blue-2));
}

.duo .card-blue .section-note {
  color: rgba(255, 255, 255, 0.86);
}

.duo .contact-line {
  margin-top: 14px;
  overflow-wrap: anywhere;
}

/* About: founder photo and story in one card pulled up over the hero. */
.about-card {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(22px, 3.5vw, 40px);
}

.about-card .founder-figure {
  max-width: none;
  margin: 0;
}

.about-card .founder-photo {
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.about-card .founder-caption {
  color: var(--muted);
  font-size: 13px;
}

.about-card h2 {
  margin-top: 2px;
}

.about-card .about-story {
  max-width: 60ch;
  margin-top: 14px;
}

.about-card .about-story p + p {
  margin-top: 14px;
}

.about-card .section-actions {
  margin-top: 24px;
}

.home-researcher .founder-figure {
  max-width: 180px;
}

@media (max-width: 760px) {
  .home-market-graphs {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-market-graphs .market-graph {
    max-width: 520px;
  }

  .about-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-card .founder-figure {
    max-width: 200px;
  }
}

/* "What you get": three numbered cards right under the hero. */
.home-what .card h3 {
  margin-top: 12px;
}

.home-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

/* How it works: three short steps, then a picture of the dashboard. */
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.home-steps li {
  position: relative;
  padding-left: 44px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  counter-increment: step;
}

.home-steps li::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 700;
}

.home-steps strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 16px;
}

.home-shot {
  margin: 36px 0 0;
}

.home-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.home-shot figcaption {
  margin-top: 10px;
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
}

.home-dashboard {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(24px, 4.5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-soft);
}

.home-dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
}

.home-dashboard-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-dashboard-intro h3 {
  max-width: 14ch;
  margin: 16px 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.home-dashboard-intro > p:last-child {
  max-width: 28ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.home-dashboard-features {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-dashboard h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.home-dashboard-features p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.home-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.home-dashboard-actions .btn {
  gap: 18px;
}

.home-cube-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 80px);
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.home-cube-features li {
  border-top: 1px solid var(--line);
}

.home-cube-features a {
  display: block;
  height: 100%;
  padding: 28px 0;
}

.home-cube-features h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}

.home-cube-features p {
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.7;
}

.home-cube-features a:hover h3 {
  color: var(--blue-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .home-steps,
  .home-dashboard-overview,
  .home-cube-features {
    grid-template-columns: minmax(0, 1fr);
  }
}

.home-steps a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The picture opens full size; a pink tag says the data in it is made up. */
.home-shot {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.home-shot a {
  position: relative;
  display: block;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.shot-badge {
  position: absolute;
  top: -15px;
  right: 18px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--pink);
  box-shadow: 0 6px 18px rgba(253, 145, 204, .45);
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 700;
}
