/*
 * Public site alignment with the current Silvertree lab direction.
 *
 * The lab has moved toward calmer information hierarchy, progressive
 * disclosure and a smaller first step. This layer intentionally sits on top
 * of the existing public-site styles so legal and archival pages remain
 * untouched.
 */

.product-lab-page {
  --lab-paper: #f6f7f4;
  --lab-surface: rgba(255, 255, 255, .82);
  --lab-surface-strong: #fff;
  --lab-line: rgba(24, 33, 31, .105);
  --lab-muted: #6d7673;
  --lab-purple: #745fc2;
  --lab-purple-soft: #eeeaf9;
  --lab-orange: #e88b3e;
  --lab-orange-soft: #fff1e4;
  --lab-teal: #2f8e88;
  --lab-teal-soft: #e4f1ef;
  background:
    radial-gradient(circle at 84% -8%, rgba(47, 142, 136, .09), transparent 25rem),
    var(--lab-paper);
}

.product-lab-page .site-header {
  min-height: 68px;
  margin-top: 10px;
  border-color: rgba(24, 33, 31, .09);
  background: rgba(246, 247, 244, .91);
  box-shadow: 0 10px 40px rgba(24, 33, 31, .025);
}

.product-lab-page .main-nav {
  gap: 21px;
  font-size: .9rem;
}

.product-lab-page h1 {
  font-size: clamp(3.2rem, 6.1vw, 5.9rem);
  line-height: .96;
  letter-spacing: -.06em;
}

.product-lab-page h2 {
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  letter-spacing: -.045em;
}

.product-lab-page .hero-lead {
  max-width: 700px;
  color: #5e6865;
  font-size: clamp(1.08rem, 1.7vw, 1.27rem);
  line-height: 1.62;
}

.product-lab-page .button {
  min-height: 46px;
  padding-inline: 17px;
  border-radius: 12px;
  box-shadow: none;
}

.product-lab-page .button-primary {
  background: #173f35;
  box-shadow: none;
}

.product-lab-page .button-quiet {
  background: rgba(255, 255, 255, .62);
}

.current-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: clamp(52px, 7vw, 92px);
  align-items: center;
  min-height: 720px;
  padding: clamp(76px, 9vw, 120px) 0 clamp(88px, 10vw, 132px);
}

.current-hero-copy {
  max-width: 660px;
}

.current-hero-copy h1 {
  max-width: 10.5ch;
  margin-bottom: 26px;
}

.current-hero-copy .actions {
  margin-top: 30px;
}

.current-hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--lab-muted);
  font-size: .88rem;
}

.current-hero-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4e9b82;
  box-shadow: 0 0 0 5px rgba(78, 155, 130, .10);
}

.current-family {
  position: relative;
  padding: 16px;
  border: 1px solid var(--lab-line);
  border-radius: 28px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 32px 90px rgba(24, 33, 31, .075);
}

.current-family-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 10px 10px;
  color: #7a8380;
  font-size: .78rem;
}

.current-family-topbar strong {
  color: #26312e;
  font-size: .86rem;
}

.current-family-stack {
  display: grid;
  gap: 10px;
}

.current-family-card {
  position: relative;
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 126px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid var(--lab-line);
  border-radius: 19px;
  background: rgba(255,255,255,.93);
}

.current-family-card::before {
  content: "";
  position: absolute;
  inset: 13px auto 13px 0;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: var(--product-accent, #278f91);
}

.current-family-card.is-pulse { --product-accent: var(--lab-teal); }
.current-family-card.is-sense { --product-accent: var(--lab-orange); }
.current-family-card.is-flux { --product-accent: var(--lab-purple); }

.current-family-name {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #25312e;
}

.current-family-name img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.current-family-name strong {
  font-size: 1.02rem;
}

.current-family-main small,
.current-family-side small {
  display: block;
  color: #8a9290;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.current-family-main strong {
  display: block;
  margin-top: 4px;
  color: #1e2825;
  font-size: 1.23rem;
  letter-spacing: -.025em;
}

.current-family-main span {
  display: block;
  margin-top: 3px;
  color: var(--lab-muted);
  font-size: .86rem;
}

.current-family-side {
  min-width: 132px;
  padding-left: 18px;
  border-left: 1px solid var(--lab-line);
  text-align: right;
}

.current-family-side strong {
  display: block;
  margin-top: 5px;
  font-size: .92rem;
  color: #34403d;
}

.current-family-side.is-choice {
  display: grid;
  gap: 5px;
  min-width: 170px;
}

.current-family-side.is-choice span {
  padding: 6px 8px;
  border-radius: 8px;
  background: #f6f4fc;
  color: #5d508f;
  font-size: .75rem;
  font-weight: 700;
}

.current-intro {
  max-width: 840px;
  margin-bottom: 54px;
}

.current-intro h2 {
  max-width: 13ch;
}

.current-intro > p:last-child {
  max-width: 760px;
  color: var(--lab-muted);
  font-size: 1.08rem;
}

.calm-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.calm-principle {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--lab-line);
  border-radius: 20px;
  background: rgba(255,255,255,.68);
}

.calm-principle span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 56px;
  border-radius: 11px;
  color: #53605c;
  background: #edf0ec;
  font-size: .72rem;
  font-weight: 850;
}

.calm-principle h3 {
  font-size: 1.35rem;
}

.calm-principle p {
  max-width: 31ch;
  color: var(--lab-muted);
  margin-bottom: 0;
}

.current-products {
  display: grid;
  gap: 20px;
}

.current-product {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--lab-line);
  border-radius: 26px;
  background: rgba(255,255,255,.7);
}

.current-product-copy {
  max-width: 430px;
}

.current-product-id {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.current-product-id img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.current-product-id strong {
  font-size: 1.04rem;
}

.current-product-id span {
  margin-left: auto;
  color: #89918f;
  font-size: .72rem;
}

.current-product h3 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  letter-spacing: -.045em;
}

.current-product-copy p {
  color: var(--lab-muted);
}

.current-product-copy .text-link {
  margin-top: 14px;
}

.lab-window {
  padding: 14px;
  border: 1px solid var(--lab-line);
  border-radius: 22px;
  background: #f8f9f7;
  box-shadow: 0 24px 60px rgba(24, 33, 31, .055);
}

.lab-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 5px 9px;
  color: #87908d;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.lab-window-body {
  padding: 20px;
  border: 1px solid rgba(24, 33, 31, .075);
  border-radius: 16px;
  background: #fff;
}

.lab-pulse-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.lab-pulse-summary div small {
  color: #8a9390;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.lab-pulse-summary h4 {
  margin: 3px 0 0;
  font-size: 1.5rem;
  letter-spacing: -.035em;
}

.lab-add-link {
  color: #326c63;
  font-size: .78rem;
  font-weight: 800;
}

.lab-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.lab-small-card {
  position: relative;
  min-height: 125px;
  padding: 14px 14px 13px 17px;
  border: 1px solid rgba(24,33,31,.09);
  border-radius: 13px;
  background: #fbfcfb;
}

.lab-small-card::before {
  content: "";
  position: absolute;
  inset: 11px auto 11px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--card-accent, #278f91);
}

.lab-small-card small,
.lab-small-card span {
  display: block;
  color: #88918e;
  font-size: .67rem;
}

.lab-small-card strong {
  display: block;
  margin: 10px 0 4px;
  font-size: .95rem;
}

.lab-small-card b {
  color: #a45c4e;
  font-size: .7rem;
  font-weight: 750;
}

.lab-sense-alert {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #fff7ef;
  color: #694b32;
  font-size: .78rem;
}

.lab-sense-alert i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lab-orange);
  flex: 0 0 auto;
}

.lab-sense-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.lab-sense-tile {
  min-height: 115px;
  padding: 14px;
  border: 1px solid rgba(24,33,31,.085);
  border-radius: 12px;
}

.lab-sense-tile span,
.lab-sense-tile small {
  display: block;
  color: #7f8986;
  font-size: .67rem;
}

.lab-sense-tile strong {
  display: block;
  margin: 10px 0 3px;
  font-size: 1.02rem;
}

.lab-flux-start h4 {
  margin: 0 0 5px;
  font-size: 1.4rem;
  letter-spacing: -.035em;
}

.lab-flux-start > p {
  margin-bottom: 16px;
  color: #7a8481;
  font-size: .78rem;
}

.lab-flux-goals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lab-flux-goal {
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(116, 95, 194, .14);
  border-radius: 11px;
  background: #faf9fe;
}

.lab-flux-goal strong,
.lab-flux-goal span {
  display: block;
}

.lab-flux-goal strong {
  margin-bottom: 5px;
  color: #423a62;
  font-size: .8rem;
}

.lab-flux-goal span {
  color: #817a96;
  font-size: .67rem;
  line-height: 1.35;
}

.lab-flux-trust {
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f0f7;
  color: #696378;
  font-size: .68rem;
}

.current-connection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--lab-line);
  border-bottom: 1px solid var(--lab-line);
}

.current-connection article {
  padding: 36px 30px 38px 0;
}

.current-connection article + article {
  padding-left: 30px;
  border-left: 1px solid var(--lab-line);
}

.current-connection span {
  color: #8a9390;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.current-connection h3 {
  margin-top: 16px;
  font-size: 1.32rem;
}

.current-connection p {
  margin-bottom: 0;
  color: var(--lab-muted);
}

/* Product pages: closer to the lab than to a traditional marketing page. */
.product-lab-page .app-hero {
  min-height: 650px;
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: clamp(76px, 9vw, 116px);
  gap: clamp(52px, 7vw, 88px);
}

.product-lab-page .app-hero h1 {
  max-width: 9ch;
  margin-bottom: 23px;
}

.product-lab-page .app-kicker {
  color: #808986;
  letter-spacing: .12em;
}

.product-lab-page .app-screen {
  border-color: rgba(24,33,31,.10);
  border-radius: 24px;
  background: #f8f9f7;
  box-shadow: 0 30px 85px rgba(24,33,31,.07);
}

.product-lab-page .app-screen-bar {
  color: #7e8885;
  background: transparent;
  border-bottom-color: rgba(24,33,31,.075);
}

.product-lab-page .app-screen-body {
  background: #fff;
}

.lab-start-screen {
  padding: 26px;
}

.lab-start-screen .eyebrow {
  margin-bottom: 11px;
  font-size: .65rem;
}

.lab-start-screen h3 {
  margin-bottom: 7px;
  font-size: 1.65rem;
  letter-spacing: -.04em;
}

.lab-start-screen > p {
  max-width: 480px;
  margin-bottom: 20px;
  color: #78827f;
  font-size: .8rem;
}

.lab-start-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.lab-start-choice {
  padding: 13px;
  border: 1px solid rgba(24,33,31,.09);
  border-radius: 11px;
  background: #fafbfa;
}

.lab-start-choice strong,
.lab-start-choice span {
  display: block;
}

.lab-start-choice strong {
  margin-bottom: 5px;
  font-size: .78rem;
}

.lab-start-choice span {
  color: #818a87;
  font-size: .67rem;
  line-height: 1.35;
}

.lab-start-reassurance {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 10px;
  color: #596562;
  background: #eef2ef;
  font-size: .7rem;
  line-height: 1.45;
}

.lab-growth-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lab-growth-step {
  min-height: 195px;
  padding: 23px;
  border: 1px solid var(--lab-line);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
}

.lab-growth-step > span {
  display: block;
  margin-bottom: 38px;
  color: #909895;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.lab-growth-step h3 {
  font-size: 1.25rem;
}

.lab-growth-step p {
  margin-bottom: 0;
  color: var(--lab-muted);
  font-size: .93rem;
}

.flux-page-start .lab-start-choice {
  border-color: rgba(116,95,194,.14);
  background: #fbfafe;
}

.flux-page-start .lab-start-reassurance {
  color: #645d78;
  background: #f1eff8;
}

.pulse-page-start .lab-start-choice {
  border-color: rgba(47,142,136,.13);
  background: #f8fcfb;
}

.sense-page-start .lab-start-choice {
  border-color: rgba(232,139,62,.14);
  background: #fffbf7;
}

@media (max-width: 1040px) {
  .current-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .current-hero-copy {
    max-width: 760px;
  }

  .current-family-card {
    grid-template-columns: 150px minmax(0, 1fr) auto;
  }

  .current-product {
    grid-template-columns: 1fr;
  }

  .current-product-copy {
    max-width: 680px;
  }
}

@media (max-width: 780px) {
  .product-lab-page .main-nav {
    gap: 14px;
  }

  .current-hero {
    padding-top: 64px;
  }

  .current-family-card {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }

  .current-family-side {
    min-width: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--lab-line);
    border-left: 0;
    text-align: left;
  }

  .current-family-side.is-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calm-principles,
  .lab-growth-path,
  .current-connection {
    grid-template-columns: 1fr;
  }

  .calm-principle {
    min-height: 0;
  }

  .calm-principle span,
  .lab-growth-step > span {
    margin-bottom: 24px;
  }

  .current-connection article,
  .current-connection article + article {
    padding: 26px 0;
    border-left: 0;
  }

  .current-connection article + article {
    border-top: 1px solid var(--lab-line);
  }

  .lab-card-list,
  .lab-sense-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .product-lab-page .site-header {
    align-items: center;
  }

  .product-lab-page .main-nav a:nth-child(n+4) {
    display: none;
  }

  .current-family,
  .lab-window {
    padding: 10px;
    border-radius: 20px;
  }

  .current-family-card {
    padding: 17px;
  }

  .current-product {
    padding: 24px;
    border-radius: 21px;
  }

  .lab-flux-goals,
  .lab-start-choices {
    grid-template-columns: 1fr;
  }

  .product-lab-page .app-screen-body,
  .lab-start-screen,
  .lab-window-body {
    padding: 17px;
  }
}
