/* Jambutty Software page. Tokens only (styles.css :root). */
.jb-hero { padding: 140px 0 64px; }
.jb-hero h1 { margin-top: 12px; text-wrap: balance; }
.jb-hero .lede { max-width: 680px; line-height: 1.65; }
.jb-hero .hero-ctas { margin-top: 28px; }
.jb-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.jb-intro h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; text-wrap: balance; }
.jb-intro-copy { display: grid; gap: 14px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.jb-intro-copy b { color: var(--ink); font-weight: 600; }
.jb-focus { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.jb-focus .card { padding: 22px; }
.jb-focus .card h3 { font-size: 17px; text-wrap: balance; }

/* Technology diagram: one foundation above two distinct products */
.jb-diagram { --jb-gap: 24px; --jb-drop: 28px; max-width: 960px; margin: 0 auto; }
.jb-foundation {
  position: relative; max-width: 520px; margin: 0 auto; text-align: center; padding: 28px 32px;
  border-radius: var(--radius-lg); background: var(--graphite); color: #fff; overflow: hidden;
}
.jb-foundation::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(20,184,166,.25), transparent); pointer-events: none; }
.jb-foundation > * { position: relative; }
.jb-foundation-ic { width: 44px; height: 44px; border-radius: var(--radius); background: var(--mint); color: var(--teal); display: grid; place-items: center; margin: 0 auto 14px; }
.jb-foundation-ic .icon { width: 22px; height: 22px; }
.jb-foundation h3 { font-size: 24px; font-weight: 600; }
.jb-foundation p { color: hsl(214 25% 82%); margin-top: 6px; font-size: 15px; }

.jb-products {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--jb-gap);
  margin-top: calc(var(--jb-drop) * 2);
}
/* stem from the foundation, then a bar spanning both product centres */
.jb-products::before, .jb-products::after, .jb-product::before { content: ""; position: absolute; pointer-events: none; }
.jb-products::before {
  left: 50%; top: calc(var(--jb-drop) * -2); width: 2px; height: var(--jb-drop); translate: -1px 0;
  background: repeating-linear-gradient(180deg, var(--teal-bright) 0 6px, transparent 6px 10px);
}
.jb-products::after {
  top: calc(var(--jb-drop) * -1); height: 2px;
  left: calc((100% - var(--jb-gap)) / 4); right: calc((100% - var(--jb-gap)) / 4);
  background: repeating-linear-gradient(90deg, var(--teal-bright) 0 6px, transparent 6px 10px);
}
.jb-product {
  position: relative; border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,23,42,.06));
}
/* each product drops from the bar */
.jb-product::before {
  left: 50%; top: calc(var(--jb-drop) * -1 - 1px); width: 2px; height: var(--jb-drop); translate: -1px 0;
  background: repeating-linear-gradient(180deg, var(--teal-bright) 0 6px, transparent 6px 10px);
}
.jb-product h3 { font-size: 24px; font-weight: 700; letter-spacing: .04em; }
.jb-product p { color: var(--muted); font-size: 16px; }
.jb-product .btn { align-self: flex-start; margin-top: auto; }
.jb-tk { border-top: 4px solid var(--teal-bright); }
.jb-tk h3 { color: var(--teal); }
.jb-tf { border-top: 4px solid var(--graphite); }
.jb-tf h3 { color: var(--ink); }

.jb-partner {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; padding: 44px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--cta) 0%, var(--cta-hover) 45%, #0F766E 100%); color: var(--ink);
}
.jb-partner h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; margin: 4px 0 12px; text-wrap: balance; }
.jb-partner p { color: var(--ink); opacity: .85; }
.jb-partner .btn-primary { background: var(--ink); color: #fff; box-shadow: none; }
.jb-partner .btn-primary:hover { background: var(--graphite); }
.jb-partner-ctas { display: grid; gap: 10px; }
.jb-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.jb-contact .card { display: flex; flex-direction: column; gap: 6px; padding: 24px; }
.jb-contact small { color: var(--muted); }
.jb-contact b, .jb-contact .big { font-weight: 600; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.jb-contact .big:hover { color: var(--teal); }
.jb-contact-ic { width: 40px; height: 40px; border-radius: var(--radius); background: var(--mint); color: var(--teal); display: grid; place-items: center; margin-bottom: 8px; }
.jb-note { text-align: center; color: var(--muted); margin-top: 24px; }
.jb-note a { color: var(--teal); font-weight: 500; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1000px) { .jb-focus { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .jb-intro, .jb-partner { grid-template-columns: 1fr; }
}
/* Stacked diagram: a rail runs down the left from the foundation, with a branch into each product */
@media (max-width: 720px) {
  .jb-diagram { --jb-rail: 18px; }
  .jb-products { grid-template-columns: 1fr; margin-top: var(--jb-gap); padding-left: calc(var(--jb-rail) + 16px); }
  .jb-products::before, .jb-products::after { display: none; }
  .jb-product::before {
    left: calc(-16px - 1px); top: calc(var(--jb-gap) * -1); bottom: 0; height: auto; translate: 0 0;
  }
  .jb-product:last-child::before { bottom: auto; height: calc(var(--jb-gap) + 40px); }
  .jb-product::after {
    content: ""; position: absolute; pointer-events: none; left: -16px; width: 16px; top: 39px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--teal-bright) 0 6px, transparent 6px 10px);
  }
  .jb-foundation { margin-left: 0; }
}
@media (max-width: 640px) {
  .jb-focus, .jb-contact { grid-template-columns: 1fr; }
  .jb-partner, .jb-product { padding: 24px; }
  .jb-foundation { padding: 24px; }
  .jb-hero { padding-top: 120px; }
}
.jb-logo { width: min(280px, 70%); height: auto; margin: 0 auto 24px; }
.jb-logo-sm { width: 140px; height: auto; margin-bottom: 10px; }
