/* AgreeVia — additive rules for the four-ways row, templates, pricing and
   audience pages. Loads after home.css (index) or doc.css (everything else).
   Purely additive: no existing selector in site/home/doc/legal/showcase.css is
   changed, so pages that don't load this file are unaffected. */

/* ---------- four-up feature row (home) ---------- */
.features.four{grid-template-columns:repeat(4,1fr);gap:1.6rem}
.features.four h3 a,.features h3 a{color:inherit;text-decoration:none}
.features .more{display:inline-block;margin-top:.7rem;font-size:.82rem;font-weight:600;color:var(--tape);
  text-underline-offset:2px}
.features ul{margin:.6rem 0 0;padding-left:1.1rem;font-size:.9rem;color:#41453F;line-height:1.55}
.features li{margin:0 0 .3rem}
.features li::marker{color:var(--tape)}

/* ---------- linked cards (templates index, audience pages) ---------- */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem;margin:0 0 1.4rem}
.tile-card{display:block;background:var(--backsheet);border:1px solid var(--rule);border-radius:12px;
  padding:1.1rem 1.2rem 1.15rem;text-decoration:none;color:var(--ink)}
.tile-card:hover{border-color:var(--tape)}
.tile-card h3{font-family:Newsreader,serif;font-size:1.12rem;font-weight:600;letter-spacing:-.012em;
  line-height:1.25;margin:0 0 .35rem;color:var(--ink)}
.tile-card p{font-size:.88rem;line-height:1.5;color:#41453F;margin:0 0 .7rem;max-width:none}
.tile-card .tags{margin:0}
.tile-card .tag{font-size:.6rem;padding:.3rem .65rem}
.section .tile-card{color:var(--ink)}
/* The card is a div so a link's text is just the title (what search engines read as
   anchor text); the title link's ::after stretches over the whole card to keep it clickable. */
.tile-card{position:relative}
.tile-card h3 a{color:inherit;text-decoration:none}
.tile-card h3 a::after{content:"";position:absolute;inset:0;border-radius:12px}
.tile-card:focus-within{border-color:var(--tape)}

/* ---------- pricing plans (two-up) ---------- */
.plans{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;margin:0 0 1.2rem;
  border-top:2px solid var(--ink);padding-top:1.6rem}
.plans h3{font-family:'IBM Plex Mono',monospace;font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--tape);margin:0 0 .35rem;font-weight:600}
.plans ul{margin:.4rem 0 0;padding-left:1.1rem;font-size:.9rem;color:#41453F;line-height:1.55}
.plans li{margin:0 0 .35rem}
.plans li::marker{color:var(--tape)}
a.tag{text-decoration:none;color:var(--ink)}
a.tag:hover{background:var(--rule)}
.price{font-family:Newsreader,serif;font-size:2.1rem;font-weight:500;letter-spacing:-.02em;
  line-height:1.1;margin:.1rem 0 .15rem;color:var(--ink)}
.price small{font-family:Karla,sans-serif;font-size:.85rem;font-weight:500;color:var(--muted);letter-spacing:0}
.plan-note{font-size:.82rem;color:var(--muted);margin:.2rem 0 .8rem}

/* ---------- screenshots on content pages ---------- */
.shots{display:flex;flex-wrap:wrap;gap:1.4rem;justify-content:center;margin:1.6rem 0 .6rem}
.shot{margin:0;flex:0 1 15rem;max-width:15rem}
.shot img{display:block;width:100%;height:auto;border-radius:20px;
  box-shadow:0 0 0 1px rgba(0,0,0,.06),0 20px 40px -20px rgba(20,41,77,.35)}
.shot figcaption{font-size:.82rem;color:var(--muted);text-align:center;margin-top:.7rem;line-height:1.45}

/* ---------- inline call to action on content pages ---------- */
.section a.btn,.btn{display:inline-flex;align-items:center;background:var(--brand-deep);color:#fff;
  text-decoration:none;font-weight:600;font-size:.92rem;padding:.8rem 1.4rem;border-radius:8px;
  letter-spacing:.01em}
.section a.btn:hover,.btn:hover{background:#1b3a73;color:#fff}
.cta-note-block{margin:.9rem 0 0;font-size:.82rem;color:var(--muted)}

/* ---------- numbered steps ---------- */
.steps{counter-reset:step;list-style:none;padding:0;margin:0 0 1.15rem}
.steps li{counter-increment:step;position:relative;padding-left:2.4rem;margin:0 0 1rem;max-width:var(--measure)}
.steps li::before{content:counter(step);position:absolute;left:0;top:.05rem;width:1.6rem;height:1.6rem;
  border-radius:50%;background:var(--chip);font-family:'IBM Plex Mono',monospace;font-size:.72rem;
  font-weight:600;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.steps strong{display:block}

/* ---------- small comparison table ---------- */
.compare{width:100%;border-collapse:collapse;font-size:.9rem;margin:0 0 1.2rem}
.compare th,.compare td{text-align:left;padding:.65rem .7rem;border-bottom:1px solid var(--rule-soft);vertical-align:top}
.compare th{font-family:'IBM Plex Mono',monospace;font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);font-weight:600}
.compare td:first-child{font-weight:600;width:38%}
.compare td.yes{color:#1F7A54;font-weight:600}
.compare td.no{color:var(--muted)}

/* ---------- Free | Pro feature cards (home + about) ----------
   Icon-tile list per plan. Ships with no outer padding: about's .doc supplies it,
   home.css supplies it for .offer. Copy must match /pricing. */
.plan-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:1.4rem;margin:1.6rem 0 0;align-items:stretch}
.plan-card{display:flex;flex-direction:column;background:var(--backsheet);border:1px solid var(--rule);
  border-radius:14px;padding:1.6rem 1.5rem 1.5rem}
.plan-card.pro{border:2px solid var(--tape);padding:calc(1.6rem - 1px) calc(1.5rem - 1px) calc(1.5rem - 1px)}
.plan-card h3{font-family:'IBM Plex Mono',monospace;font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--tape);margin:0 0 .3rem;font-weight:600}
.plan-card .price{margin-bottom:.9rem}
.plan-lead{font-size:.92rem;color:var(--ink);margin:0 0 1rem;max-width:none}
.plan-list{list-style:none;margin:0 0 1.4rem;padding:0}
.section .plan-list{padding:0;margin:0 0 1.4rem}
.plan-list li{display:flex;gap:.85rem;align-items:flex-start;margin:0 0 1rem;font-size:.9rem;line-height:1.5;
  color:#41453F;max-width:none}
.plan-list li:last-child{margin-bottom:0}
.plan-list .ic{flex:none;display:flex;align-items:center;justify-content:center;width:2.3rem;height:2.3rem;
  border-radius:8px;background:rgba(23,53,113,.08);color:var(--tape)}
.plan-list .ic svg{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
.plan-list li > span:last-child{padding-top:.3rem}
/* Pro card: Pro-only rows get filled tiles and ink text; the Free rows follow under a hairline */
.plan-sub{font-family:'IBM Plex Mono',monospace;font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);font-weight:600;margin:0 0 .8rem;max-width:none}
.plan-list.extra li{color:var(--ink);font-weight:600}
.plan-list.extra .ic{background:var(--tape);color:#fff}
.plan-list.extra + .plan-sub{border-top:1px solid var(--rule);padding-top:1.2rem}
.plan-foot{font-size:.8rem;color:var(--muted);margin:0 0 1rem;max-width:none}
.plan-btn{margin-top:auto;display:flex;align-items:center;justify-content:center;padding:.8rem 1rem;
  border-radius:8px;border:1.5px solid var(--tape);color:var(--tape);font-weight:600;font-size:.92rem;
  text-decoration:none}
.plan-btn:hover{background:rgba(23,53,113,.06)}
.plan-btn.primary{background:var(--brand-deep);border-color:var(--brand-deep);color:#fff}
.plan-btn.primary:hover{background:#1b3a73}
.section a.plan-btn{color:var(--tape);text-decoration:none}
.section a.plan-btn.primary{color:#fff}

@media (max-width:900px){
  .features.four{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:720px){
  .plan-cards{grid-template-columns:1fr}
}
@media (max-width:640px){
  .plans{grid-template-columns:1fr}
  .features.four{grid-template-columns:1fr}
  .shot{flex-basis:100%;max-width:16rem}
  .compare td:first-child{width:auto}
}

/* ---------- free tools (calculators on /tools/*, driven by tools.js) ---------- */
.is-hidden{display:none !important}
.calc{background:var(--backsheet);border:1px solid var(--rule);border-radius:12px;padding:1.4rem 1.4rem 1.2rem;
  margin:0 0 1.4rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.2rem}
.calc .field{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.calc .field.wide{grid-column:1 / -1}
.calc label,.calc legend{font-family:'IBM Plex Mono',monospace;font-size:.64rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted);font-weight:600;padding:0}
.calc input[type=number],.calc input[type=date],.calc input[type=text]{font:inherit;font-size:1rem;padding:.7rem .85rem;
  border:1px solid var(--rule);border-radius:8px;background:#fff;color:var(--ink);width:100%;box-sizing:border-box;min-width:0}
.calc input:focus{outline:2px solid var(--tape);outline-offset:1px;border-color:var(--tape)}
.calc fieldset{border:0;margin:0;padding:0;min-width:0}
.calc .choices{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.45rem}
.calc .choices label{font-family:Karla,sans-serif;font-size:.9rem;letter-spacing:0;text-transform:none;color:var(--ink);
  font-weight:500;display:inline-flex;align-items:center;gap:.4rem;border:1px solid var(--rule);border-radius:8px;
  padding:.5rem .8rem;background:#fff;cursor:pointer}
.calc .choices input{accent-color:var(--tape);margin:0}
.calc .hint{font-size:.8rem;color:var(--muted);margin:0;max-width:none;line-height:1.45}
.calc-out{margin:0 0 1.2rem}
.calc-out td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.calc-out tr.total td{font-weight:700;color:var(--ink);border-top:2px solid var(--ink)}
.calc-msg{font-size:.92rem;color:var(--ink);background:#F2EFE9;border-left:2px solid var(--tape);padding:.7rem .9rem;margin:0 0 1.2rem}
@media (max-width:640px){
  .calc{grid-template-columns:1fr;padding:1.1rem}
}

/* ---------- Trust badges (home + about) ----------
   Four things AgreeVia can evidence, as brand-coloured badges. These are our own
   drawings: never use the real SOC 2 / ISO 27001 / HIPAA marks, or the ICO logo,
   unless we hold the certification or licence. Ships with no outer padding:
   about's .doc supplies it, home.css supplies it for .trustband. */
.trust{margin:1.6rem 0 0}
.trust-grid{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);row-gap:1.8rem;margin:0;padding:1.6rem 0;
  background:var(--backsheet);border:1px solid var(--rule);border-radius:14px}
.section .trust-grid{padding:1.6rem 0;margin:0}
.trust-item{padding:0 1.6rem;margin:0;max-width:none;border-left:1px solid var(--rule-soft)}
.trust-item:nth-child(odd){border-left:0}
.trust-badge{display:block;width:6rem;height:6rem;margin:0 0 1.1rem}
.trust-item h3{font-family:Newsreader,serif;font-weight:500;font-size:1.15rem;letter-spacing:-.01em;
  line-height:1.2;margin:0 0 .5rem;color:var(--ink)}
.trust-item p{margin:0;font-size:.88rem;line-height:1.55;color:#41453F;max-width:none}
.trust-item a{color:var(--tape);text-underline-offset:2px}
.trust-foot{margin:1rem 0 0;font-size:.85rem;color:var(--muted);max-width:none}
.trust-foot a{color:var(--tape);text-underline-offset:2px}
.bd-ring{fill:var(--tape)}
.bd-in{fill:var(--brand-deep)}
.bd-dot{fill:#E3B93C}
.bd-ic{fill:#fff}
.bd-lock{fill:none;stroke:#fff;stroke-width:3.6;stroke-linecap:round}
.bd-hole{fill:var(--brand-deep)}
.bd-tick{fill:none;stroke:var(--brand-deep);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.bd-txt{fill:#fff;font-family:'IBM Plex Mono',monospace;font-weight:600;text-anchor:middle;letter-spacing:.04em}
.bd-big{font-size:8.6px}
.bd-sm{font-size:5.4px;fill:#C9D4EC}

@media (max-width:560px){
  .trust-grid{grid-template-columns:1fr;row-gap:1.6rem}
  .trust-item{border-left:0;border-top:1px solid var(--rule-soft);padding:1.6rem 1.4rem 0}
  .trust-item:first-child{border-top:0;padding-top:0}
}
