/* ============================================================
   HireJuno — The Juno Promise page (/guarantee)
   Loads after brand.css + redesign.css, before tokens.css + motion.css.
   Prefix: jp-  (Juno Promise). Uses the frozen brand tokens only.
   ============================================================ */

.jp-page { --jp-green: var(--juno-green-dark, #1F6B33); --jp-radius: 24px; }

/* Copy waiting on founder sign-off is never shown by default.
   /guarantee?founder-review=1 outlines it for review. */
[data-needs-founder="true"] { display: none !important; }
.jp-founder-review [data-needs-founder="true"] {
  display: block !important;
  outline: 2px dashed #B93030; outline-offset: 4px; border-radius: 6px;
  background: #FBE8E8; color: #5c1a1a !important;
}
.jp-founder-review [data-needs-founder="true"]::before {
  content: "Needs founder sign-off: "; font-weight: 700;
}

/* In-page anchors land clear of the sticky 72px header */
.jp-page main section[id], .jp-page .jp-panel { scroll-margin-top: 88px; }

/* Section heads, shared */
.jp-head { max-width: 640px; margin: 0 auto var(--s-6); text-align: center; }
.jp-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.02em; margin-bottom: 10px; text-wrap: balance; }
.jp-head p { font-size: 1.05rem; color: var(--ink-soft); margin: 0 auto; max-width: 56ch; text-wrap: pretty; }
.jp-head a, .jp-notes a, .jp-step a, .jp-page .rx-faq a { color: var(--jp-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ============================================================
   HERO
   ============================================================ */
.jp-hero {
  position: relative; overflow: hidden;
  padding: clamp(24px, 5vw, 72px) 0 clamp(40px, 6vw, 88px);
  background:
    radial-gradient(90% 80% at 85% 20%, #DDEFE1 0%, transparent 60%),
    radial-gradient(70% 70% at -10% 0%, #EEF7F0 0%, transparent 55%),
    var(--cream);
}
.jp-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
}
.jp-eyebrow { gap: 7px; padding: 5px 12px 5px 6px; }
.jp-eyebrow .hj-promise { width: 22px; height: 22px; }
.jp-hero__title {
  font-size: clamp(2.25rem, 5.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em;
  margin: 18px 0 0; text-wrap: balance;
}
.jp-hl { color: var(--juno-green); }
.jp-hero__sub { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-soft); margin: 18px 0 0; max-width: 54ch; text-wrap: pretty; }
.jp-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.jp-hero__actions .btn--ghost { border-color: var(--line-strong); background: rgba(255,255,255,.6); }
.jp-hero__actions .btn--ghost:hover { background: #fff; }

/* live review line (filled by JS from real aggregates only) */
.jp-proof {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  margin: 22px 0 0; font-size: .95rem; color: var(--ink-soft);
}
.jp-proof strong { color: var(--ink); font-family: var(--font-display); }
.jp-proof__score { display: inline-flex; align-items: center; gap: 8px; }
.jp-proof a { color: var(--jp-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.jp-proof[hidden] { display: none; }
.jp-proof:not([hidden]) { animation: jp-fade .3s var(--hj-ease, ease) both; }

/* the seal */
.jp-seal { position: relative; margin: 0 auto; width: min(100%, 420px); display: grid; justify-items: center; }
.jp-seal__halo {
  position: absolute; left: 50%; top: 50%; width: 88%; aspect-ratio: 1; translate: -50% -58%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 70%);
}
.jp-seal__img {
  position: relative; width: min(300px, 72vw); height: auto;
  filter: drop-shadow(0 22px 34px rgba(20, 83, 45, .28)) drop-shadow(0 4px 8px rgba(20, 83, 45, .16));
  animation: jp-seal-in .3s var(--hj-ease-out, cubic-bezier(.16,1,.3,1)) both;
}
@keyframes jp-seal-in { from { opacity: 0; transform: scale(.9) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes jp-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* suds: decorative bubbles around the seal */
.jp-bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 14%, rgba(255,255,255,.35) 38%, rgba(233,245,236,.45) 100%);
  border: 1.5px solid rgba(46, 139, 68, .22);
}
.jp-bubble--1 { width: 46px; height: 46px; left: 6%;  top: 8%; }
.jp-bubble--2 { width: 22px; height: 22px; left: 16%; top: 30%; }
.jp-bubble--3 { width: 34px; height: 34px; right: 5%; top: 56%; }
.jp-bubble--4 { width: 16px; height: 16px; right: 16%; top: 12%; }

/* the three parts, as chips under the seal */
.jp-seal__chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.jp-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 8px 14px 8px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--hj-elev-2, var(--shadow-sm));
  font: 600 .9rem/1.1 var(--font-display); color: var(--ink); text-decoration: none !important;
  transition: transform .2s var(--hj-ease, ease), box-shadow .2s var(--hj-ease, ease), border-color .2s ease;
}
.jp-chip .hj-icon { color: var(--jp-green); --hj-icon-duo: .22; }
.jp-chip:hover { transform: translateY(-2px); border-color: rgba(46,139,68,.35); box-shadow: var(--hj-elev-3, var(--shadow-md)); }

/* ============================================================
   THE THREE PARTS
   ============================================================ */
.jp-parts { background: var(--paper); border-top: 1px solid var(--line); }
.jp-pillars {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px);
}
.jp-pillar {
  position: relative; display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--jp-radius);
  padding: clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  scroll-margin-top: 96px;
  --hj-reveal-delay: calc(var(--i, 0) * 70ms);
}
.jp-pillar::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px;
  background: linear-gradient(90deg, var(--juno-green), #6FC287);
  opacity: .9;
}
.jp-pillar:target { box-shadow: 0 0 0 3px rgba(46,139,68,.35); }
.jp-phase {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .88rem/1 var(--font-display); color: var(--jp-green);
}
.jp-phase__n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--jp-green); color: #fff; font-weight: 700; font-size: .85rem;
}
.jp-pillar__name { font-size: clamp(1.5rem, 2.4vw, 1.85rem); letter-spacing: -.02em; margin: 14px 0 6px; }
.jp-pillar__line { color: var(--ink-soft); margin: 0 0 18px; font-size: .98rem; }
.jp-commits { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px dashed var(--line-strong); display: grid; gap: 16px; }
.jp-commits li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.jp-commits strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.jp-commits p { margin: 3px 0 0; font-size: .94rem; color: var(--ink-soft); line-height: 1.5; }
.jp-commits .hj-icon-tile { --hj-tile: 42px; background: #fff; border: 1px solid rgba(46,139,68,.18); }
.jp-tag {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: #FDF3DC; color: #7A5600; font: 600 .72rem/1.4 var(--font-display);
}

/* ============================================================
   HOW A CLAIM WORKS
   ============================================================ */
.jp-claim { background: var(--cream); }
.jp-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 380px);
  margin: 0 auto var(--s-6); padding: 5px; border-radius: 999px;
  background: var(--sand); border: 1px solid var(--line);
}
.jp-tabs[hidden] { display: none; }
.jp-tab {
  position: relative; z-index: 1; min-height: 44px; border: 0; background: transparent; border-radius: 999px;
  font: 600 .98rem/1 var(--font-display); color: var(--ink-soft);
  transition: color .2s ease;
}
.jp-tab[aria-selected="true"] { color: var(--ink); }
.jp-tab:focus-visible { outline: 3px solid var(--jp-green); outline-offset: 2px; }
.jp-tabs__thumb {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(27,42,65,.08), 0 4px 12px -4px rgba(27,42,65,.14);
  transition: transform .26s var(--hj-ease-out, cubic-bezier(.16,1,.3,1));
}
.jp-tabs[data-active="1"] .jp-tabs__thumb { transform: translateX(100%); }

.jp-panel { outline: none; }
.jp-panel + .jp-panel { margin-top: var(--s-7); }         /* no-JS: both panels stacked */
.jp-tabs:not([hidden]) ~ .jp-panel + .jp-panel { margin-top: 0; }
.jp-panel.is-in { animation: jp-fade .24s var(--hj-ease, ease) both; }
.jp-panel__title { text-align: center; font-size: 1.2rem; margin-bottom: var(--s-5); }
.jp-panel:focus-visible { outline: 3px solid var(--jp-green); outline-offset: 8px; border-radius: 16px; }

.jp-steps {
  --jp-gap: clamp(16px, 3vw, 40px);
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--jp-gap);
}
.jp-step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
/* dashed connector from this step's icon to the next one's */
.jp-step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; height: 2px;
  left: calc(50% + 44px); width: calc(100% + var(--jp-gap) - 88px);
  background: repeating-linear-gradient(90deg, rgba(46,139,68,.45) 0 8px, transparent 8px 14px);
}
.jp-step__icon {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; color: var(--jp-green); border: 2px solid rgba(46,139,68,.28);
  box-shadow: 0 0 0 6px var(--cream);
  --hj-icon-duo: .2;
}
.jp-step__n { margin-top: 14px; font: 600 .8rem/1 var(--font-display); color: var(--jp-green); }
.jp-step h4 { font-size: 1.14rem; margin: 6px 0 6px; }
.jp-step p { font-size: .95rem; color: var(--ink-soft); margin: 0; max-width: 34ch; }
.jp-window {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 5px 11px; border-radius: 999px; background: var(--juno-green-tint); color: var(--jp-green);
  font: 600 .82rem/1.2 var(--font-display);
}
.jp-proof--eol { justify-content: center; margin-top: var(--s-6); }

/* ============================================================
   COVERED / NOT COVERED
   ============================================================ */
.jp-cover { background: var(--paper); border-top: 1px solid var(--line); }
.jp-cover__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: start; }
.jp-cover__card { border-radius: var(--jp-radius); padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line); }
.jp-cover__card--yes { background: #F2F9F4; border-color: rgba(46,139,68,.2); }
.jp-cover__card--no  { background: var(--sand); --hj-icon-duo: .1; }
.jp-cover__card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 14px; }
.jp-cover__card--yes h3 .hj-icon { color: var(--jp-green); }
.jp-cover__card--no h3 .hj-icon { color: #5F6B7F; }
.jp-cover__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.jp-cover__card li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .97rem; line-height: 1.5; }
.jp-cover__card li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; border-radius: 50%;
}
.jp-cover__card--yes li::before {
  background: var(--jp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-8.5'/%3E%3C/svg%3E") center/9px no-repeat;
  top: .3em; width: 16px; height: 16px; left: 0;
}
.jp-cover__card--no li::before { background: #9AA3B2; top: .55em; width: 7px; height: 7px; left: 5px; }
.jp-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(14px, 2vw, 24px); }
.jp-notes p {
  display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 16px 18px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 18px; font-size: .94rem; color: var(--ink-soft);
}
.jp-notes .hj-icon { flex: none; margin-top: 2px; color: var(--jp-green); }
.jp-notes strong { color: var(--ink); }

/* ============================================================
   FAQ + CTA
   ============================================================ */
.jp-faq { background: var(--cream); }
.jp-page .rx-faq__item summary { min-height: 56px; }
.jp-page .rx-faq__item summary:focus-visible { outline: 3px solid var(--jp-green); outline-offset: -3px; border-radius: 12px; }
.jp-page .rx-faq__item p + p { margin-top: -4px; }

.jp-cta-wrap { background: var(--cream); padding-top: 0; }
.jp-cta { display: grid; justify-items: center; }
/* rx-cta-band ends its gradient at #2E8B44, where its .86-alpha body copy is
   under 4.5:1. Same hue family, deeper end, solid white copy (ds.css pattern). */
.jp-page .jp-cta { background: linear-gradient(135deg, #14532D, #1F6B33 62%, #256F39); }
.jp-page .jp-cta p { color: #fff; }
.jp-page .jp-cta .btn--ghost { border-color: rgb(255 255 255 / .82); }
.jp-page .jp-cta .btn--ghost:hover { background: rgb(255 255 255 / .1); }
.jp-cta__mark { display: block; margin-bottom: 14px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.2)); }
.jp-cta__mark .hj-promise { width: 64px; height: 64px; }
.jp-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
/* the badge's own green would vanish on the green band: ring it in white */
.jp-cta__mark { padding: 5px; border-radius: 50%; background: rgba(255,255,255,.92); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .jp-pillars { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 880px) {
  .jp-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .jp-seal { order: -1; width: min(100%, 480px); }
  .jp-seal__img { width: min(184px, 48vw); }
  .jp-seal__chips { margin-top: 12px; }
  .jp-eyebrow { display: none; }
  .jp-hero__title { margin-top: 0; }
  .jp-cover__grid, .jp-notes { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* steps go vertical, the line runs down the left */
  .jp-steps { grid-template-columns: 1fr; --jp-gap: 22px; max-width: 520px; margin: 0 auto; }
  .jp-step:not(:last-child)::after {
    top: 64px; bottom: calc(-1 * var(--jp-gap) + 8px); left: 27px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(46,139,68,.45) 0 8px, transparent 8px 14px);
  }
  .jp-step { text-align: left; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .jp-step__icon { width: 56px; height: 56px; grid-row: 1 / span 4; }
  .jp-step__n { margin-top: 4px; }
  .jp-step p { max-width: none; }
  .jp-window { justify-self: start; }
  .jp-hero__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .jp-seal__chips { gap: 6px; flex-wrap: nowrap; }
  .jp-chip { font-size: .8rem; padding: 6px 10px 6px 8px; gap: 5px; white-space: nowrap; }
  .jp-bubble--1 { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .jp-seal__img, .jp-proof:not([hidden]), .jp-panel.is-in { animation: none; }
  .jp-tabs__thumb, .jp-chip { transition: none; }
}
