/* =============================================================================
   Intelligent SME Network, inner pages
   Builds on site.css (tokens, type, frames, buttons, reveal states). Loaded on
   every page except the homepage. Set pieces add their own file in pieces/.
   ========================================================================== */

/* ------------------------------------------------------------ photo hero */
.phero {
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; align-items: end;
  padding: clamp(104px, min(15vw, 15vh), 190px) 0 0;
}
.phero-media { position: absolute; inset: -6% 0 0; z-index: -2; background: var(--pine); }
.phero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 60% 45%); transform-origin: 60% 45%; }
.phero-wash {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(12,59,39,.95) 0%, rgba(12,59,39,.84) 32%, rgba(12,59,39,.32) 64%, rgba(12,59,39,.5) 100%),
    linear-gradient(0deg, rgba(12,59,39,.92) 0%, rgba(12,59,39,0) 42%);
}
/* The networking photo is bright behind the menu (sash windows), so it gets a scrim along the top */
.page-network .phero-wash {
  background:
    linear-gradient(180deg, rgba(12,59,39,.62) 0, rgba(12,59,39,0) 150px),
    linear-gradient(100deg, rgba(12,59,39,.95) 0%, rgba(12,59,39,.84) 32%, rgba(12,59,39,.32) 64%, rgba(12,59,39,.5) 100%),
    linear-gradient(0deg, rgba(12,59,39,.92) 0%, rgba(12,59,39,0) 42%);
}
.phero > .grain { z-index: -1; }
.phero-grid { display: grid; gap: 0 clamp(2rem, 4vw, 3.5rem); align-items: end; padding-bottom: clamp(2rem, 4vh, 3.4rem); }
.phero-card { margin-top: clamp(1.6rem, 3vh, 2.4rem); }
@media (min-width: 1000px) {
  /* the heading takes the full width; the lede and buttons share the next row with the stat card */
  .phero-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "copy card"; }
  .phero-head { grid-area: head; }
  .phero-copy { grid-area: copy; }
  .phero-card { grid-area: card; margin-top: 0; }
}
.phero .h1 { font-size: clamp(2.6rem, min(6.4vw, 10vh), 6.2rem); margin-bottom: .32em; }
.phero .lead { color: rgba(255,255,255,.92); margin-bottom: 0; }
.phero-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.1rem, min(2.8vw, 3.2vh), 2.1rem); }

.crumbs { margin: 0 0 clamp(.4rem, 1.2vh, 1rem); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 1.0625rem; }
.crumbs li { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.78); }
.crumbs li + li::before { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--mint-deep); }
.crumbs [aria-current] { color: var(--mint-deep); }
.thero .crumbs li, .lhero .crumbs li { color: rgba(14,21,18,.62); }
.thero .crumbs a { color: var(--ink); }
.thero .crumbs a:hover, .thero .crumbs [aria-current] { color: var(--tick-dark); }

/* the stat card: a small cousin of the homepage membership card */
.pstat {
  position: relative; width: min(100%, 340px); padding: clamp(20px, 2vw, 28px);
  border-radius: 22px; color: var(--ink);
  background: radial-gradient(120% 100% at 88% 0%, rgba(220,238,226,.95) 0%, #fff 55%);
  box-shadow: 0 40px 70px -30px rgba(4,26,16,.7);
  transform-style: preserve-3d;
}
.pstat::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(12,59,39,.13) 1px, transparent 1.4px); background-size: 12px 12px; opacity: .5;
}
.pstat-n {
  display: block; position: relative; z-index: 1;
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.035em;
  line-height: .95; font-size: clamp(3rem, 5vw, 4.4rem); color: var(--pine);
}
.pstat-l { display: block; position: relative; z-index: 1; margin-top: .6rem; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; color: rgba(14,21,18,.74); }
.pstat-badge {
  position: absolute; right: 18px; top: 18px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: var(--tick); color: #fff; display: grid; place-items: center;
}
.pstat-badge .tick { width: 22px; height: 22px; color: #fff; }
.pstat .card-glare { border-radius: inherit; }

/* fact strip along the hero's foot */
.pfacts {
  position: relative; z-index: 2;
  background: rgba(220,238,226,.93); color: var(--pine);
  border-top: 1px solid rgba(12,59,39,.1);
}
.pfacts ul { display: flex; flex-wrap: wrap; gap: .6rem clamp(1.2rem, 3vw, 3rem); padding-block: 1.05rem; }
.pfacts li { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.0625rem; }
.pfacts .tick { width: 1.3em; height: 1.3em; color: var(--tick); }

/* ------------------------------------------------------ typographic hero */
.thero {
  position: relative; isolation: isolate; overflow: clip;
  background: linear-gradient(170deg, #F8FAF7 0%, var(--chalk) 45%, #E6F2E9 100%);
  padding: clamp(150px, 16vw, 210px) 0 clamp(4rem, 7vw, 6rem);
  min-height: 100svh; display: grid; align-items: center;
}
.thero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(12,59,39,.15) 1px, transparent 1.6px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(90% 80% at 70% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(90% 80% at 70% 40%, #000 0%, transparent 75%);
}
.thero-mark {
  position: absolute; z-index: -1; right: -6vw; top: 8%; width: min(58vw, 78vh, 820px); height: auto;
  color: var(--tick); opacity: .08; pointer-events: none;
}
.thero-grid { display: grid; gap: clamp(2.4rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .thero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.thero .h1 { font-size: clamp(2.9rem, 6.6vw, 6.4rem); color: var(--pine); margin-bottom: .3em; }
.thero .lead { color: rgba(14,21,18,.8); margin-bottom: 0; }
.thero .phero-btns { margin-top: clamp(1.5rem, 2.8vw, 2.1rem); }

/* ----------------------------------------------------------- legal hero */
.lhero {
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  background: var(--pine);
  padding: clamp(150px, 15vw, 200px) 0 clamp(3.5rem, 6vw, 5rem);
}
.lhero .crumbs li { color: rgba(255,255,255,.72); }
.lhero .crumbs a { color: #fff; }
.lhero .h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); margin-bottom: .25em; }
.lhero .lead { color: rgba(255,255,255,.86); margin: 0; }
.lhero-mark { position: absolute; z-index: 0; right: -4vw; bottom: -18%; width: min(46vw, 620px); color: var(--mint-deep); opacity: .14; pointer-events: none; }
.lhero .shell { position: relative; z-index: 1; }

/* ---------------------------------------------------------- detail list */
/* one framed photo that stays in view beside a list of detail rows */
.detail { display: grid; gap: clamp(2.4rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 980px) {
  .detail { grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); align-items: center; }
}
/* wide screens: the rows sit two to a line so the section fits one screen */
@media (min-width: 1200px) {
  .detail-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.6rem, 2.6vw, 2.6rem); }
  .detail-row:nth-child(2) { border-top: 1px solid rgba(12,59,39,.14); }
  .detail-row:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid rgba(12,59,39,.14); }
  .detail-row:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .detail-row { grid-template-columns: 44px minmax(0, 1fr); gap: .9rem; }
  .detail-row { padding: clamp(.8rem, 1.6vh, 1.2rem) 0; }
  .detail-row h3 { margin-top: .2rem; }
  .detail-row p { font-size: 1rem; line-height: 1.5; }
  .detail-ico { width: 44px; height: 44px; border-radius: 14px; }
  .detail-ico .tick { width: 22px; height: 22px; }
}
.detail-rows { display: grid; }
.detail-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1.1rem; align-items: start;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0; border-top: 1px solid rgba(12,59,39,.14);
}
.detail-row:last-child { border-bottom: 1px solid rgba(12,59,39,.14); }
.detail-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--paper); color: var(--tick); box-shadow: 0 14px 30px -18px rgba(12,59,39,.5);
}
.detail-ico .tick { width: 26px; height: 26px; }
.detail-row h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin: .35rem 0 .35rem; }
.detail-row p { margin: 0; color: rgba(14,21,18,.76); }
.sec-pine .detail-row { border-color: rgba(255,255,255,.16); }
.sec-pine .detail-row p { color: rgba(255,255,255,.82); }

/* photo cards (a row of framed images with captions) */
.pcards { display: grid; gap: clamp(14px, 1.8vw, 24px); }
@media (min-width: 640px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { position: relative; border-radius: var(--r-md); background: var(--paper); overflow: hidden; box-shadow: 0 30px 55px -36px rgba(12,59,39,.6); }
.pcard-shot { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; }
.pcard-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard-shot img { transform: scale(1.05); }
.pcard-body { padding: clamp(16px, 1.8vw, 24px); }
.pcard h3 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); margin: 0 0 .4rem; }
.pcard p { margin: 0; font-size: 1.0625rem; color: rgba(14,21,18,.74); }

/* ------------------------------------------------------ onward benefits */
.cards-3 { display: grid; gap: clamp(14px, 1.8vw, 26px); }
@media (min-width: 640px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards-3.cards .card { aspect-ratio: 1 / 1.02; }
@media (max-width: 639px) {
  .cards-3.cards { display: flex; }
}

/* ------------------------------------------------------------- CTA band */
.cta-band { position: relative; overflow: clip; }
.cta-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 980px) { .cta-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.cta-band .h2 { font-size: clamp(2.2rem, 3.5vw, 3.6rem); margin-bottom: .4em; }
.cta-band .big-links { margin: 0; }
.cta-price {
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.03em;
  color: #fff; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: .08em; text-underline-offset: .12em;
}

/* --------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; }
.acc { border-radius: 18px; background: var(--paper); box-shadow: 0 20px 40px -32px rgba(12,59,39,.55); border: 1px solid rgba(12,59,39,.08); }
.acc-q { margin: 0; font-size: inherit; }
.acc-q button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left;
  padding: clamp(1rem, 1.6vw, 1.3rem) clamp(1.1rem, 2vw, 1.6rem); background: none; border: 0; cursor: pointer;
  font: 700 clamp(1.1rem, 1.35vw, 1.3rem)/1.3 var(--display); letter-spacing: -.015em; color: var(--ink);
}
.acc-q button:hover { color: var(--tick-dark); }
.acc-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); position: relative; transition: background-color .3s, transform .4s cubic-bezier(.2,.7,.2,1); }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--pine); border-radius: 2px; }
.acc-ico::after { transform: rotate(90deg); transition: transform .3s; }
.acc.is-open .acc-ico { background: var(--tick); transform: rotate(180deg); }
.acc.is-open .acc-ico::before, .acc.is-open .acc-ico::after { background: #fff; }
.acc.is-open .acc-ico::after { transform: rotate(0deg); }
.acc-panel { overflow: hidden; }
.acc-panel > div { padding: 0 clamp(1.1rem, 2vw, 1.6rem) clamp(1.1rem, 2vw, 1.5rem); color: rgba(14,21,18,.78); }
.acc-panel p:last-child { margin-bottom: 0; }
html.no-js .acc-panel[hidden] { display: block; }

/* ------------------------------------------------------------ long form */
.prose { font-size: clamp(1.0625rem, 1.2vw, 1.15rem); line-height: 1.7; color: rgba(14,21,18,.84); }
.prose h2 { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.025em; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; color: var(--pine); margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); margin: 1.6em 0 .5em; }
.prose ul { margin: 0 0 1.2em; display: grid; gap: .5rem; }
.prose ul li { position: relative; padding-left: 1.8em; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.1em; height: 1.1em;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 7' fill='none' stroke='%23149B44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.prose a { color: var(--tick-dark); text-underline-offset: .18em; }
.prose-wrap { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 1000px) {
  .prose-wrap { grid-template-columns: 280px minmax(0, 1fr); }
  .prose-aside { position: sticky; top: 120px; }
}
.toc { padding: 1.4rem; border-radius: 20px; background: var(--paper); box-shadow: 0 24px 46px -34px rgba(12,59,39,.5); }
.toc h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .2rem; counter-reset: toc; }
.toc a { display: block; padding: .4rem 0; color: rgba(14,21,18,.78); text-decoration: none; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; transition: color .25s; }
.toc a:hover, .toc a.is-on { color: var(--tick-dark); }

/* ----------------------------------------------------------- misc bits */
.sec-tight { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.lede-row { display: grid; gap: clamp(.8rem, 2vw, 1.6rem); margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.lede-row .h2 { margin: 0; }
.lede-row p { margin: 0; color: rgba(14,21,18,.74); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.sec-pine .lede-row p { color: rgba(255,255,255,.84); }
.h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); }
.sec-pine .h2, .sec-pine h3 { color: #fff; }
.note-sm { font-size: 1rem; color: rgba(14,21,18,.62); margin: 1rem 0 0; }
.sec-pine .note-sm { color: rgba(255,255,255,.7); }

/* reduced motion and no-JS: sticky and pinned things sit still */

/* the open/close icon sits out of the text flow so questions use the full width of the button */
.acc-q button { position: relative; padding-right: calc(clamp(1.1rem, 2vw, 1.6rem) + 34px + .9rem); }
.acc-ico { position: absolute; right: clamp(1.1rem, 2vw, 1.6rem); top: 50%; margin-top: -17px; }
.acc.is-open .acc-ico { transform: rotate(180deg); }
