/* v2 page bodies (preview only, see tools/build_v2_preview.py): Waterfalls + Unlimited contact data rebuilt in the
   home / Loopgents card system. Every idea is a home .f-card (crayon OUTLINE in --cc drawn by features.js, paper
   inside, badge + title + live scene on marble). Its items are small outline cards (.v2-mini) NESTED in the card,
   in a row right above the scene; its note is a sticky note (.v2-note: thin outline, paper, a slight tilt). The card
   runs on a three-column grid so the head, the nested cards, the scene and the note all line up. The privacy note is
   a full-row outline card. Everything here is scoped under main.v2.
   Markup: tools/wf2_markup.py, tools/udp2_markup.py */

/* ---------- rhythm: the home grid, chapters spaced like the home features section ---------- */
.v2 .v2-body{position:relative;padding:clamp(64px,7vw,112px) var(--gut) clamp(72px,8vw,120px)}
.v2-udp .v2-body{padding-top:calc(96px + clamp(64px,7vw,112px))}   /* clears the numbers panel hanging off the hero (--half) */
.v2 .v2-chs{display:flex;flex-direction:column;gap:clamp(64px,7vw,112px);width:min(var(--grid-body),100%);margin:0 auto}
.v2 .v2-ch{display:flex;flex-direction:column;gap:clamp(22px,2.6vw,36px)}
.v2 .v2-ch h2,.v2 .v2-ch h3{margin:0}
.v2 .v2-ch ol{margin:0;padding:0;list-style:none}

/* ---------- the feature card: head / nested cards / scene, on one three-column grid ---------- */
.v2 .v2-card{--v2-gap:clamp(16px,1.8vw,24px);gap:clamp(28px,2.9vw,40px)}
.v2 .v2-soft{color:rgba(24,22,29,.5)}
.v2 .v2-head{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--v2-gap);row-gap:24px;align-items:end}
.v2 .v2-head-l{grid-column:1 / span 2;align-self:start;display:flex;flex-direction:column;align-items:flex-start;gap:16px;min-width:0}
.v2 .v2-head-l .f-title{max-width:20em}
.v2 .v2-head-l .f-body{max-width:34em}
.v2 .v2-head>.v2-note{grid-column:3}
/* a 640x484 scene is centred at two thirds of the card (the width of two nested cards) instead of being blown up */
.v2 .v2-card-narrow>.f-well{width:calc((100% - 2 * var(--v2-gap)) / 3 * 2 + var(--v2-gap));align-self:center}

/* ---------- the sticky note: thin crayon outline on paper, a slight tilt; tinted lead tile (or the provider logos) ---------- */
.v2 .v2-note{position:relative;isolation:isolate;display:flex;align-items:flex-start;gap:14px;min-width:0;padding:18px 20px 20px 18px;transform:rotate(-1.2deg);transform-origin:50% 50%}
.v2 .v2-note>:not(.f-box){position:relative}
.v2 .v2-note .f-box path{stroke-width:2}
.v2 .v2-note .f-box .fill{fill:rgba(255,255,255,.8)}
.v2 .v2-note-t{display:flex;flex-direction:column;gap:4px;min-width:0;padding-top:1px}
.v2 .v2-note-t p{margin:0;font:400 14.5px/1.5 var(--sans);color:var(--fg-70);text-wrap:pretty}
.v2 .v2-note-t .v2-note-h{font:500 15.5px/1.42 var(--sans);color:#18161D}
.v2 .v2-logos{display:flex;flex:none;align-items:center;padding-top:2px}
.v2 .v2-logos img{width:26px;height:26px;margin-left:-6px;padding:3px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.v2 .v2-logos img:first-child{margin-left:0}

/* ---------- nested cards: thinner outline than the card they sit in, paper inside; tinted lead tile, optional figure ---------- */
.v2 .v2-minis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--v2-gap);margin:0;padding:0;list-style:none}
.v2 .v2-mini{position:relative;isolation:isolate;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"lead fig" "h h" "p p";align-content:start;column-gap:12px;row-gap:8px;min-width:0;padding:clamp(18px,1.8vw,24px) clamp(18px,1.8vw,24px) 22px}
.v2 .v2-mini>:not(.f-box){position:relative}
.v2 .v2-mini .f-box path{stroke-width:2.2}
.v2 .v2-mini>.v2-lead{grid-area:lead}
.v2 .v2-lead{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:9px;background:color-mix(in srgb,var(--cc) 11%,#FBFAF7);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cc) 34%,transparent);color:var(--cc)}
.v2 .v2-lead-ic{width:20px;height:20px}
.v2 .v2-lead-n{font:400 15px/1 var(--pixel);letter-spacing:.02em;color:color-mix(in srgb,var(--cc) 62%,#16141A)}
.v2 .v2-fig{grid-area:fig;justify-self:end;align-self:center;font:500 clamp(21px,1.75vw,25px)/1 var(--sans);letter-spacing:-.02em;color:#18161D;font-variant-numeric:tabular-nums;white-space:nowrap}
.v2 .v2-mini h3{grid-area:h;margin-top:10px;font:500 clamp(16.5px,1.3vw,18.5px)/1.3 var(--sans);letter-spacing:-.005em;color:#18161D;text-wrap:balance}
.v2 .v2-mini p{grid-area:p;max-width:30em;margin:0;font:400 clamp(14.5px,1.06vw,15.5px)/1.55 var(--sans);color:var(--fg-70);text-wrap:pretty}
.v2 .v2-price{font-weight:600;color:#18161D;white-space:nowrap}

/* ---------- the privacy card: a full-row outline card with the padlock ---------- */
.v2 .v2-privacy{position:relative;isolation:isolate;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(22px,3.2vw,48px);padding:clamp(26px,3vw,40px) clamp(24px,3.6vw,52px)}
.v2 .v2-privacy>:not(.f-box){position:relative}
.v2 .v2-privacy .f-box path{stroke-width:2.8}
.v2 .v2-privacy-art{width:clamp(64px,6.4vw,92px);height:auto}
.v2 .v2-privacy h3{margin:0 0 10px;font:500 clamp(20px,1.75vw,24.5px)/1.2 var(--sans);letter-spacing:-.015em;color:#18161D;text-wrap:balance}
.v2 .v2-privacy p{max-width:46em;font:400 clamp(15px,1.12vw,16.5px)/1.55 var(--sans);color:var(--fg-70);text-wrap:pretty}
.v2 .v2-tags{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 0;padding:0;list-style:none}
.v2 .v2-tags li{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px 0 10px;border-radius:7px;background:color-mix(in srgb,var(--cc) 11%,#FBFAF7);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cc) 34%,transparent);color:color-mix(in srgb,var(--cc) 62%,#16141A);font:500 13px/1 var(--sans);white-space:nowrap}
.v2 .v2-tag-ic{width:14px;height:14px;flex:none;color:var(--cc)}

/* four steps (How waterfalls work): one row on wide screens, two by two on laptops; one column from 900 px (below) */
.v2 .v2-minis-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1180px){.v2 .v2-minis-4{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- smaller screens ---------- */
@media (max-width:1023px){.v2 .v2-minis-6{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){
  .v2-udp .v2-body{padding-top:calc(150px + clamp(56px,7vw,112px))}
  /* one column, as the home grid: head, its sticky note, the nested cards, the scene (full width), then a beside-note */
  .v2 .v2-head{grid-template-columns:minmax(0,1fr);row-gap:22px}
  .v2 .v2-head-l,.v2 .v2-head>.v2-note{grid-column:1}
  .v2 .v2-head>.v2-note{justify-self:start;max-width:26em;margin:0 0 0 4px}
  .v2 .v2-card-narrow>.f-well{width:100%}
  /* the three-up rows run full width, so the lead tile moves beside the text */
  .v2 .v2-minis:not(.v2-minis-6){grid-template-columns:minmax(0,1fr)}
  .v2 .v2-minis:not(.v2-minis-6) .v2-mini{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"lead h" "lead p";column-gap:18px;row-gap:5px}
  .v2 .v2-minis:not(.v2-minis-6) .v2-mini h3{margin-top:0;align-self:center;min-height:24px}
  .v2 .v2-minis:not(.v2-minis-6) .v2-mini>.v2-lead{align-self:start}
}
@media (max-width:600px){
  .v2 .v2-card{--v2-gap:12px;gap:24px}
  /* six kinds too: one per row; the tile, the title and the figure share the top line, the text runs the full width
     under them (a tile column beside the text squeezed it into half the screen over an empty strip) */
  .v2 .v2-minis-6{grid-template-columns:minmax(0,1fr)}
  .v2 .v2-mini,.v2 .v2-minis:not(.v2-minis-6) .v2-mini{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead h h" "p p p";column-gap:14px;row-gap:8px;padding:16px 16px 18px}
  .v2 .v2-minis .v2-mini-fig{grid-template-areas:"lead h fig" "p p p"}
  .v2 .v2-mini h3,.v2 .v2-minis:not(.v2-minis-6) .v2-mini h3{margin-top:0;align-self:center;font-size:16.5px}
  .v2 .v2-mini>.v2-lead{align-self:center;width:34px;height:34px;border-radius:8px}
  .v2 .v2-mini .v2-lead-ic{width:18px;height:18px}
  .v2 .v2-fig{font-size:17px;font-weight:600;color:color-mix(in srgb,var(--cc) 55%,#16141A)}
  .v2 .v2-mini p{font-size:14.5px}
  .v2 .v2-note{padding:16px 18px 18px 16px}
  /* the privacy card: the padlock beside the heading, the text and the tags under both (alone on its own row, the
     padlock floated over the text with the rest of its row empty) */
  .v2 .v2-privacy{grid-template-columns:48px minmax(0,1fr);column-gap:14px;row-gap:12px;padding:24px 20px 26px}
  .v2 .v2-privacy-in{display:contents}
  .v2 .v2-privacy-art{grid-row:1;width:48px}
  .v2 .v2-privacy h3{grid-column:2;grid-row:1;margin:0}
  .v2 .v2-privacy p,.v2 .v2-tags{grid-column:1 / -1}
  .v2 .v2-tags{gap:6px;margin-top:8px}   /* five tags in two rows down to 360px */
  .v2 .v2-tags li{padding:0 10px 0 9px}
}

/* the vendors of a contact waterfall, under its mini card's text, in run order (Nick, 2026-10-23) */
.v2 .v2-mini-vend{grid-template-areas:"lead fig" "h h" "p p" "v v"}
.v2 .v2-mini>.v2-vend{grid-area:v;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:8px}
.v2 .v2-vend .v2-logos{padding-top:0}
.v2 .v2-more{font:500 13.5px/1 var(--sans);color:var(--fg-70);white-space:nowrap}
/* desktop: the blurb's row takes the card's spare height, so the logos sit on the card's foot and line up across the row
   (a blurb that wraps to an extra line in the body column no longer drops its logos below the neighbours') */
@media (min-width:1024px){.v2 .v2-mini-vend{grid-template-rows:auto auto 1fr auto}}
@media (max-width:1023px){.v2 .v2-minis:not(.v2-minis-6) .v2-mini-vend{grid-template-areas:"lead h" "lead p" "lead v"}}
@media (max-width:600px){.v2 .v2-mini-vend,.v2 .v2-minis:not(.v2-minis-6) .v2-mini-vend{grid-template-areas:"lead h h" "p p p" "v v v"}.v2 .v2-mini>.v2-vend{margin-top:4px}}


/* ---------- the vendors card (Nick, 2026-10-27): data we don't have, from the 50+ vendors at cost or with your own key.
   A full-row green outline card like the privacy card, closing the first chapter: the text on the left, How it works'
   static "Premium vendors" window on its green marble on the right; stacked from 900px ---------- */
.v2 .v2-vendors{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);align-items:center;gap:clamp(22px,3.2vw,48px);padding:clamp(22px,2.4vw,34px)}   /* .f-card's padding: the text and the well line up with the cards above and below */
.v2 .v2-vendors>:not(.f-box){position:relative}
.v2 .v2-vendors .f-box path{stroke-width:2.8}
.v2 .v2-vendors-in{display:flex;flex-direction:column;align-items:flex-start;padding:clamp(10px,1.6vw,24px) 0}
.v2 .v2-vendors h3{margin:16px 0 10px;font:500 clamp(20px,1.75vw,24.5px)/1.2 var(--sans);letter-spacing:-.015em;color:#18161D;text-wrap:balance}
.v2 .v2-vendors h3 span{display:inline-block}
.v2 .v2-vendors p{max-width:30em;margin:0 0 18px;font:400 clamp(15px,1.12vw,16.5px)/1.55 var(--sans);color:var(--fg-70);text-wrap:pretty}
.v2 .v2-vendors .hx-link{margin-left:-4px;font-size:15px}   /* its text on the copy's left edge (the 4px padding widens the tap area) */
.v2 .v2-vendors-well{min-height:clamp(260px,23vw,320px)}
/* the co-op chapter sits as close under the vendors card as the vendors card sits under the pink one (Nick, 2026-10-27):
   the chapters' gap (.v2-chs) minus the cards' gap (.v2-ch) */
.v2 .v2-ch-vend+.v2-ch{margin-top:calc(clamp(22px,2.6vw,36px) - clamp(64px,7vw,112px))}
@media (max-width:900px){
  .v2 .v2-vendors{grid-template-columns:minmax(0,1fr);gap:18px}
  .v2 .v2-vendors-in{padding:0}
}
@media (max-width:600px){
  .v2 .v2-vendors h3{margin-top:14px}
}
