/* ===========================================================
   CandyWrap.ai — inner pages
   Loads after styles.css + home.css (home.css carries the tokens,
   top bar, full-screen menu, CTA band and footer styles).
   =========================================================== */

/* ---------- white top bar (product pages, over the gradient) ---------- */
body[data-page="product"] .bar,
body[data-page="product"] .bar.stuck{background:transparent;backdrop-filter:none;border-bottom:0;box-shadow:none}
body[data-page="product"] .burger{color:#fff}
body[data-page="product"] .bar-cta{background:#fff;color:var(--ai)}
body[data-page="product"] .bar-cta:hover{background:#fff;color:#8f1740;transform:translateY(-1px)}
/* once scrolled past the banner, return to the normal light bar */
body[data-page="product"] .bar.past{background:rgba(254,248,250,.9);backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid var(--mist)}
body[data-page="product"] .bar.past .burger{color:var(--ai)}
body[data-page="product"] .bar.past .bar-cta{background:var(--ai);color:#fff}
/* white logo variants exist in the markup on every page but are only ever
   shown on product pages, over the gradient banner */
.logo-swap .ic-w,.logo-swap .wm-w{display:none}
body[data-page="product"] .logo-swap .ic-w{display:block;height:42px;opacity:1}
body[data-page="product"] .logo-swap .wm-w{display:block;height:30px;opacity:0;transform:translate(-50%,-50%) scale(.94)}
body[data-page="product"] .logo-swap:hover .ic-w{opacity:0;transform:translate(-50%,-50%) scale(.8)}
body[data-page="product"] .logo-swap:hover .wm-w{opacity:1;transform:translate(-50%,-50%) scale(1)}
/* over the banner the dark logo is hidden; past it, they swap back */
body[data-page="product"] .bar .ic,
body[data-page="product"] .bar .wm{opacity:0}
body[data-page="product"] .bar.past .ic-w,
body[data-page="product"] .bar.past .wm-w{display:none}
body[data-page="product"] .bar.past .ic{opacity:1}
body[data-page="product"] .bar.past .logo-swap:hover .ic{opacity:0}
body[data-page="product"] .bar.past .logo-swap:hover .wm{opacity:1;transform:translate(-50%,-50%) scale(1)}

/* ---------- full-width product banner (per sample) ---------- */
.pbanner{position:relative;overflow:hidden;color:#fff;
  min-height:100vh;display:flex;align-items:center;padding:96px 0 40px}
.pbanner::after{content:"";position:absolute;right:-6%;top:-30%;width:46vw;height:130%;border-radius:50%;
  background:rgba(255,255,255,.10);filter:blur(60px);pointer-events:none}
/* banners follow the card colours so the click feels continuous */
.pb-custom{background:linear-gradient(120deg,#D92A66,#C22058 50%,#5E0F36)}
.pb-berry{background:linear-gradient(120deg,#7B6CF0,#4A32B0 52%,#241663)}
/* SuperCandy sits under Labs, so it takes the Labs warm gradient */
.pb-super{background:linear-gradient(120deg,#FF8A3D,#F8623F 55%,#F0454F)}
.pb-in{position:relative;z-index:1;width:min(1180px,88%);margin:0 auto;
  display:grid;grid-template-columns:auto 1px 1fr;gap:clamp(24px,4vw,54px);align-items:center}
.pb-left .pb-icon{width:clamp(56px,7vw,86px);height:auto;margin-bottom:clamp(18px,3vh,32px);display:block}
.pb-name{font-family:"Sora";font-weight:700;font-size:clamp(38px,6vw,74px);letter-spacing:-.035em;line-height:1}
.pb-sub{font-family:"Sora";font-weight:600;font-size:clamp(14px,1.5vw,19px);margin-top:10px;opacity:.95}
.pb-rule{background:rgba(255,255,255,.35);width:1px;height:clamp(90px,14vh,150px);align-self:center}
.pb-copy{font-size:clamp(14px,1.35vw,17px);line-height:1.7;color:rgba(255,255,255,.92);max-width:56ch}
@media(max-width:820px){
  .pb-in{grid-template-columns:1fr;gap:22px}
  .pb-rule{display:none}
  .pbanner{min-height:auto;padding:calc(76px + 56px) 0 64px}
}

/* ---------- simple page hero (non-product pages) ---------- */
.phead{padding:calc(76px + clamp(48px,8vh,90px)) 0 clamp(30px,5vh,54px);text-align:center}
.phead h1{font-size:clamp(32px,5vw,58px);max-width:18ch;margin:0 auto}
.phead p{margin:18px auto 0;color:var(--slate);font-size:clamp(15.5px,1.7vw,18.5px);max-width:58ch;line-height:1.6}

/* ---------- content blocks ---------- */
.prose{width:min(760px,88%);margin:0 auto}
.prose h2{font-family:"Sora";font-weight:600;font-size:clamp(21px,2.4vw,30px);color:var(--plum);
  letter-spacing:-.02em;margin:clamp(28px,4vh,44px) 0 12px}
.prose h2:first-child{margin-top:0}
.prose p{font-size:16px;line-height:1.75;color:var(--slate);margin-bottom:14px}
.prose strong{color:var(--plum);font-weight:600}
.prose a{color:var(--ai);border-bottom:1px solid rgba(194,32,88,.3);padding-bottom:1px;transition:.2s var(--ease)}
.prose a:hover{border-bottom-color:var(--ai)}
.prose a strong{color:var(--ai)}
.prose ul{list-style:none;margin:6px 0 18px;display:grid;gap:10px}
.prose ul li{position:relative;padding-left:26px;font-size:15.5px;line-height:1.6;color:var(--slate)}
.prose ul li::before{content:"";position:absolute;left:0;top:8px;width:8px;height:8px;border-radius:50%;background:var(--ai);opacity:.55}

/* feature / step cards */
.icards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}
.icard{background:#fff;border:0;border-radius:18px;padding:24px;box-shadow:0 16px 34px -26px rgba(194,32,88,.55)}
.icard .ii{width:38px;height:38px;border-radius:11px;background:#f9edf3;color:var(--ai);
  display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.icard .ii svg{width:19px;height:19px}
.icard h3{font-family:"Sora";font-weight:700;font-size:16.5px;color:var(--plum);margin-bottom:6px}
.icard p{font-size:14px;line-height:1.6;color:var(--slate)}
.icard .n{font-family:"Sora";font-weight:800;font-size:15px;color:var(--ai);
  width:34px;height:34px;border-radius:10px;background:#f9edf3;display:flex;align-items:center;justify-content:center;margin-bottom:14px}

/* pricing table */
.ptbl{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--mist);
  border-radius:16px;overflow:hidden;font-size:14.5px}
.ptbl th,.ptbl td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--mist)}
.ptbl thead th{background:var(--plum);color:#fff;font-family:"Sora";font-weight:600;font-size:13.5px}
.ptbl tbody tr:last-child td{border-bottom:0}
.ptbl tbody tr:nth-child(even){background:#fdf7fa}
.ptbl .amt2{font-family:"Sora";font-weight:700;color:var(--ai)}
.tscroll{overflow-x:auto}

/* price cards */
.pcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:12px}
/* resting cards show no outline, but the border is kept transparent so the
   recommended card and the hover state can colour it without shifting layout */
.prc{background:#fff;border:1px solid transparent;border-radius:20px;padding:26px;position:relative;
  box-shadow:0 20px 44px -28px rgba(194,32,88,.6);
  transition:transform .28s var(--ease),box-shadow .28s var(--ease),border-color .28s var(--ease)}
.prc:hover{transform:translateY(-6px);border-color:var(--ai);box-shadow:0 30px 56px -28px rgba(194,32,88,.75)}
.prc.hi{border-color:var(--ai);box-shadow:0 26px 54px -24px rgba(194,32,88,.9)}
.prc.hi:hover{box-shadow:0 34px 64px -24px rgba(194,32,88,1)}
/* the price lifts a touch with the card */
.prc .val3{transition:color .28s var(--ease)}
.prc:hover .val3{color:var(--ai)}
.prc .tag3{transition:transform .28s var(--ease)}
.prc:hover .tag3{transform:translateY(-2px)}
@media(prefers-reduced-motion:reduce){.prc,.prc:hover{transform:none;transition:border-color .2s,box-shadow .2s}}
.prc .tag3{position:absolute;top:-11px;left:24px;background:var(--ai);color:#fff;font-size:11px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;padding:4px 11px;border-radius:100px}
.prc .lbl3{font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--slate)}
.prc .val3{font-family:"Sora";font-weight:800;font-size:32px;color:var(--plum);margin:6px 0 4px}
.prc .val3 .per3{font-size:15px;font-weight:600;color:var(--slate);letter-spacing:0}
.prc .note3{font-size:13.5px;color:var(--slate)}
.prc ul{list-style:none;margin:16px 0 0;display:grid;gap:9px}
.prc ul li{position:relative;padding-left:22px;font-size:14px;color:var(--ink)}
.prc ul li::before{content:"";position:absolute;left:0;top:7px;width:7px;height:7px;border-radius:50%;background:var(--ai);opacity:.5}

/* the action that sits directly under a price, plus what happens next */
.pcta{margin-top:26px;text-align:center}
.pcta .row2{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.pcta .b2{color:var(--ai);border-color:rgba(194,32,88,.35)}
.pcta .b2:hover{background:rgba(194,32,88,.06);border-color:var(--ai)}
.psteps{display:flex;gap:clamp(16px,2.4vw,30px);flex-wrap:wrap;justify-content:center;margin-top:22px}
.pstep{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--slate);line-height:1.4}
.pstep b{flex:none;width:23px;height:23px;border-radius:50%;background:rgba(194,32,88,.1);color:var(--ai);
  display:grid;place-items:center;font-size:11.5px;font-weight:700}
/* disclaimer: quieter and smaller than the steps, meant to sit on one line */
.pnote{margin-top:16px;text-align:center;font-size:12.5px;color:#9c93a6;line-height:1.5}
@media(max-width:560px){.pnote{font-size:12px}}

/* highlighter marker, drawn under the text like a pen stroke */
.hl{position:relative;font-weight:600;color:var(--plum);
  background:linear-gradient(180deg,transparent 58%,rgba(194,32,88,.22) 58%,rgba(194,32,88,.22) 94%,transparent 94%);
  padding:0 3px;border-radius:2px}

/* hand-drawn diagram: sits straight on the page, no card around it */
.dgm-wrap{max-width:1000px;margin:0 auto}
.dgm{width:100%;height:auto;display:block}
/* global svg sizing rule targets 24-viewBox icons; make sure it can't catch this */
svg.dgm{width:100%;height:auto}

/* labs entry */
.labentry{background:#fff;border:0;border-radius:22px;padding:clamp(24px,3.4vw,40px);
  box-shadow:0 20px 44px -28px rgba(194,32,88,.6)}
.labhead{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.labhead h2{font-size:clamp(24px,3vw,34px);margin:0}
.lstat{display:inline-flex;align-items:center;gap:7px;background:rgba(194,32,88,.08);color:var(--ai);
  font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:5px 12px;border-radius:100px}
.lstat::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ai);animation:lpulse 2s infinite}
@keyframes lpulse{0%,100%{opacity:1}50%{opacity:.3}}
.labsub{font-family:"Sora",sans-serif;font-weight:500;font-size:clamp(16px,1.8vw,19px);color:var(--plum);margin:10px 0 14px}
.labentry p{color:var(--slate);font-size:15px;line-height:1.7;margin-bottom:12px;max-width:70ch}
.labcta{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
/* .b2 is built for the dark CTA band, so it needs an on-white variant here */
.labcta .b2{color:var(--ai);border-color:rgba(194,32,88,.35)}
.labcta .b2:hover{background:rgba(194,32,88,.06);border-color:var(--ai)}
@media(prefers-reduced-motion:reduce){.lstat::before{animation:none}}

/* contact / form */
.cgrid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,52px);align-items:start}
@media(max-width:820px){.cgrid{grid-template-columns:1fr}}
.cbox{background:#fff;border:0;border-radius:20px;padding:26px;box-shadow:0 16px 34px -26px rgba(194,32,88,.55)}
.cbox h3{font-family:"Sora";font-weight:700;font-size:17px;color:var(--plum);margin-bottom:6px}
.cbox p{font-size:14.5px;color:var(--slate);line-height:1.6}
.clist{display:grid;gap:10px;margin-top:14px}
.clist a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:var(--bg);
  border:1px solid var(--mist);font-size:14.5px;font-weight:500;color:var(--ink);transition:.2s}
.clist a:hover{border-color:var(--ai);color:var(--ai)}
.clist .ci2{width:32px;height:32px;flex:none;border-radius:9px;background:#f9edf3;color:var(--ai);
  display:flex;align-items:center;justify-content:center}
.clist .ci2 svg{width:16px;height:16px}
.fld{margin-bottom:14px}
.fld label{display:block;font-size:13px;font-weight:600;color:var(--plum);margin-bottom:6px}
.fld input,.fld textarea,.fld select{width:100%;padding:12px 14px;border:1px solid var(--mist);border-radius:12px;
  font-family:"Inter";font-size:15px;color:var(--ink);background:var(--bg);transition:.2s}
.fld input:focus,.fld textarea:focus{outline:none;border-color:var(--ai);background:#fff;box-shadow:0 0 0 4px rgba(194,32,88,.08)}
.fld textarea{resize:vertical;min-height:110px}
.btn-send{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--ai);color:#fff;
  border:0;cursor:pointer;font-family:"Inter";font-weight:600;font-size:15px;padding:13px 26px;border-radius:100px;transition:.22s}
.btn-send:hover{background:#a81b4c;transform:translateY(-1px)}

/* roles (join) — cards, matching the pricing card system */
/* 300px min gives three across on desktop, so five roles read as 3 + 2
   rather than leaving a single orphan on the second row */
.roles{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}
.role{background:#fff;border:1px solid transparent;border-radius:20px;padding:26px;
  box-shadow:0 20px 44px -28px rgba(194,32,88,.6);
  display:flex;flex-direction:column;align-items:flex-start;
  transition:transform .28s var(--ease),box-shadow .28s var(--ease),border-color .28s var(--ease)}
.role:hover{transform:translateY(-6px);border-color:var(--ai);box-shadow:0 30px 56px -28px rgba(194,32,88,.75)}
.role > div{width:100%}
.role h3{font-family:"Sora";font-weight:700;font-size:17.5px;color:var(--plum);transition:color .28s var(--ease)}
.role:hover h3{color:var(--ai)}
.role p{font-size:14px;line-height:1.6;color:var(--slate);margin-top:8px}
/* meta sits just above the button, pinned to the bottom so cards line up */
.role .rmeta{font-size:12.5px;font-weight:600;letter-spacing:.04em;color:var(--slate);
  margin-top:auto;padding-top:18px}
.role .rbtn{background:var(--plum);color:#fff;font-size:13.5px;font-weight:600;
  padding:10px 20px;border-radius:100px;margin-top:12px;transition:.2s var(--ease)}
.role .rbtn:hover{background:var(--ai)}
@media(prefers-reduced-motion:reduce){.role,.role:hover{transform:none}}

/* next-product strip */
.nextp{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.np{border-radius:16px;padding:20px;color:#fff;text-decoration:none;transition:.28s var(--ease);min-height:120px;
  display:flex;flex-direction:column;justify-content:space-between}
.np:hover{transform:translateY(-4px)}
.np b{font-family:"Sora";font-size:17px}
.np span{font-size:12.5px;opacity:.85;margin-top:3px;display:block}
