/* Public product stories: quiet surfaces, real product views, one green accent. */
.product-story-page {
  --story-ink: #1b211c;
  --story-muted: #5b645e;
  --story-line: #dce2d9;
}
.story-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 54px;
  padding-block: 72px 64px;
}
.story-hero-copy {
  min-width: 0;
}
.story-hero h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin: 20px 0 26px;
}
.story-hero h1 > span,
.story-closing h2 > span {
  color: #4a682c;
}
.story-hero-copy > p:not(.eyebrow):not(.trial-note) {
  font-size: 17px;
  line-height: 1.8;
  color: var(--story-muted);
  max-width: 49ch;
}
.story-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.story-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.story-hero .trial-note,
.story-closing > p:last-child {
  color: var(--story-muted);
  font-size: 12px;
  margin-top: 16px;
}
.hero-product-preview {
  background: #f3f6ef;
  border: 1px solid var(--story-line);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 20px 60px #20321b0a;
}
.preview-toolbar {
  padding: 18px 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.preview-brand {
  font:
    700 10px "Space Grotesk",
    sans-serif;
  letter-spacing: 0.15em;
  color: #56654e;
}
.preview-toolbar [role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.preview-toolbar button {
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #4f5a4c;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 11px;
}
.preview-toolbar button[aria-selected="true"] {
  color: #26331c;
  background: #d7f6a6;
  border-color: #a5c477;
}
.hero-product-preview [hidden] {
  display: none !important;
}
.story-shot {
  margin: 0;
  min-width: 0;
}
.story-shot > a {
  display: block;
  border: 1px solid var(--story-line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.story-shot img {
  width: 100%;
  height: auto;
  display: block;
}
.story-shot figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #65705f;
  font-size: 10px;
  line-height: 1.6;
  padding-top: 12px;
}
.story-shot figcaption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-product-preview .story-shot {
  padding: 0 16px 16px;
}
.hero-product-preview .story-shot > a {
  aspect-ratio: 1.65;
}
.hero-product-preview .story-shot img {
  height: 100%;
  object-fit: contain;
  background: #edf1e9;
}
.story-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
  border-block: 1px solid var(--story-line);
  padding-block: 21px;
}
.story-index a {
  font-size: 12px;
  font-weight: 600;
  color: #4c5745;
  padding-block: 4px;
}
.story-index a:last-child {
  margin-left: auto;
}
.product-chapter {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
  align-items: center;
  padding-block: 92px;
  scroll-margin-top: 105px;
}
.product-chapter + .product-chapter {
  border-top: 1px solid var(--story-line);
}
.chapter-copy h2,
.delivery-strip h2,
.feature-library h2,
.why-connected h2,
.why-boundaries h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 16px 0 24px;
}
.chapter-copy > p:not(.eyebrow),
.delivery-strip > div > p:not(.eyebrow),
.why-connected > div > p:not(.eyebrow),
.why-boundaries > div > p:not(.eyebrow) {
  color: var(--story-muted);
  font-size: 15px;
  line-height: 1.85;
  max-width: 55ch;
}
.story-points {
  padding: 0;
  list-style: none;
  margin: 26px 0;
}
.story-points li {
  position: relative;
  padding-left: 23px;
  margin-block: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.story-points li::before {
  content: "↗︎";
  position: absolute;
  left: 0;
  color: #4a682c;
  font-weight: 700;
}
.chapter-visual {
  min-width: 0;
  background: #f3f6f0;
  border-radius: 14px;
  padding: 24px;
}
.chapter-reverse {
  grid-template-columns: 1.28fr 0.72fr;
}
.chapter-reverse .chapter-copy {
  order: 2;
}
.chapter-reverse .chapter-visual {
  order: 1;
}
.delivery-strip {
  background: #f4f7ef;
  border: 1px solid var(--story-line);
  border-radius: 14px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  scroll-margin-top: 105px;
}
.delivery-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  align-self: center;
}
.delivery-flow li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
  padding-block: 20px;
  border-bottom: 1px solid #d8e0ce;
}
.delivery-flow li:last-child {
  border: 0;
}
.delivery-flow li > span {
  grid-row: span 2;
  font-size: 11px;
  background: #dff0c8;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.delivery-flow strong {
  font-size: 16px;
}
.delivery-flow p {
  color: var(--story-muted);
  font-size: 12px;
  margin: 6px 0 0;
}
.feature-library {
  padding-block: 95px;
  scroll-margin-top: 105px;
}
.feature-library .section-heading {
  margin-bottom: 32px;
}
.feature-group {
  border-top: 1px solid var(--story-line);
}
.feature-group:last-child {
  border-bottom: 1px solid var(--story-line);
}
.feature-group > summary {
  cursor: pointer;
  padding: 24px 36px 24px 0;
  font-size: 19px;
  font-weight: 600;
  position: relative;
}
.feature-group > summary::marker {
  color: #60764a;
}
.group-count {
  font-size: 11px;
  font-weight: 500;
  color: #627356;
  padding-left: 16px;
}
.feature-library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 46px;
  padding: 12px 0 32px;
}
.feature-library-grid article {
  border-left: 2px solid #d4e7bc;
  padding-left: 20px;
}
.feature-library-grid h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
.feature-library-grid p {
  color: var(--story-muted);
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
}
.story-closing {
  padding-block: 70px;
  border-top: 1px solid var(--story-line);
}
.story-closing h2 {
  font:
    700 clamp(34px, 4.5vw, 62px) / 1.07 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.05em;
  margin: 20px 0 30px;
}
.story-closing .story-link {
  margin-left: 20px;
}
.why-hero {
  grid-template-columns: 0.85fr 1.15fr;
}
.why-hero-visual {
  background: #f1f5eb;
  padding: 24px;
  border: 1px solid var(--story-line);
  border-radius: 14px;
  min-width: 0;
}
.why-visual-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #566c40;
  margin-bottom: 18px;
}
.small-green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d923b;
}
.why-visual-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.why-visual-notes span {
  border: 1px solid #d0dac5;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 11px;
  background: #fff;
}
.why-principles {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  border-block: 1px solid var(--story-line);
  padding-block: 24px;
  font-size: 12px;
  font-weight: 600;
  color: #4f6240;
}
.why-connected,
.why-boundaries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  padding-block: 82px;
  border-top: 1px solid var(--story-line);
}
.connected-record {
  border: 1px solid var(--story-line);
  border-radius: 12px;
  padding: 28px;
  background: #f7f9f4;
}
.connected-record > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.record-monogram {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #d4edb0;
  font-size: 11px;
  border-radius: 6px;
}
.connected-record > div > div > span {
  display: block;
  font-size: 11px;
  color: #64705b;
}
.record-status {
  margin-left: auto;
  font-size: 10px;
  color: #496327;
  border: 1px solid #cedeb9;
  padding: 4px 7px;
  border-radius: 4px;
}
.connected-record ol {
  list-style: none;
  margin: 28px 0 12px;
  padding: 0;
}
.connected-record li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--story-line);
}
.connected-record li > span {
  color: #658247;
  font-size: 10px;
  padding-top: 4px;
}
.connected-record li strong {
  font-size: 14px;
}
.connected-record li p {
  font-size: 12px;
  color: var(--story-muted);
  margin: 5px 0 0;
}
.connected-record small {
  font-size: 10px;
  color: #6b7465;
}
.space-cards {
  display: grid;
  gap: 16px;
}
.space-cards article {
  border: 1px solid var(--story-line);
  border-radius: 10px;
  padding: 26px;
}
.space-cards article:first-child {
  background: #f2f6ec;
}
.space-cards article > span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #60754b;
}
.space-cards h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 12px 0;
}
.space-cards p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--story-muted);
  margin: 0;
}
@media (max-width: 1050px) {
  .story-hero {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  .story-hero h1 {
    font-size: 49px;
  }
  .product-chapter {
    gap: 32px;
  }
  .delivery-strip,
  .why-connected,
  .why-boundaries {
    gap: 32px;
  }
  .story-index {
    gap: 10px 22px;
  }
}
@media (max-width: 760px) {
  .story-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 44px 36px;
  }
  .story-hero h1 {
    font-size: clamp(40px, 8vw, 56px);
  }
  .story-hero-copy > p:not(.eyebrow):not(.trial-note) {
    font-size: 15px;
  }
  .product-chapter,
  .chapter-reverse,
  .delivery-strip,
  .why-connected,
  .why-boundaries {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 48px;
  }
  .chapter-reverse .chapter-copy,
  .chapter-reverse .chapter-visual {
    order: initial;
  }
  .chapter-visual,
  .why-hero-visual {
    padding: 16px;
  }
  .delivery-strip {
    padding: 26px;
  }
  .story-index {
    gap: 10px 24px;
  }
  .story-index a:last-child {
    margin-left: 0;
  }
  .feature-library {
    padding-block: 55px;
  }
  .feature-library .section-heading {
    display: block;
  }
  .feature-library-grid {
    grid-template-columns: 1fr;
  }
  .feature-group > summary {
    font-size: 16px;
  }
  .why-principles {
    flex-direction: column;
    gap: 12px;
  }
  .connected-record {
    padding: 20px;
  }
  .story-closing .story-link {
    margin: 18px 0 0;
    display: block;
  }
  .story-shot figcaption {
    font-size: 10px;
  }
}
