/* Porchlight Provider Network — concept practice build.
   Palette tokens are declared exactly once, here. Pages carry no hex literals
   and no inline style attributes; all presentation lives in this file.
   Breakpoints: 720px and 960px only. */
:root{
  --pine:#173F35;
  --pine-deep:#0F2C25;
  --cream:#FAF5EC;
  --paper:#FFFDF8;
  --ink:#1E2420;
  --ink-soft:#44514A;
  --amber:#E8A33D;
  --amber-hover:#D18F24;
  --amber-deep:#8A5A10;
  --line:#D9CFBA;
  --good:#1E6B3C;
  --bad:#A4262C;
  --bad-bg:#FDF0F0;
  --shadow:0 18px 40px rgba(15,44,37,.16);
  --shadow-sm:0 4px 14px rgba(15,44,37,.10);
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none !important; animation:none !important}
}
body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:"Avenir Next","Segoe UI",system-ui,-apple-system,sans-serif;
  font-size:17px; line-height:1.55;
}
h1,h2,h3,.display{font-family:Georgia,"Times New Roman",serif; font-weight:700; line-height:1.12; color:var(--pine-deep)}
h1{font-size:clamp(2.2rem,5vw,3.6rem); margin:.15em 0 .35em}
h2{font-size:clamp(1.55rem,3.2vw,2.25rem); margin:0 0 .5em}
h3{font-size:1.2rem; margin:0 0 .35em}
p{margin:0 0 1em}
a{color:var(--pine); text-underline-offset:3px}
a:hover{color:var(--pine-deep)}
:focus{outline:none}
:focus-visible{outline:3px solid var(--amber-deep); outline-offset:3px; border-radius:6px}
.wrap{max-width:1120px; margin:0 auto; padding:0 20px}
.skip{position:absolute; left:-999px; top:0; background:var(--pine); color:var(--cream); padding:12px 18px; z-index:50}
.skip:focus{left:12px; top:12px; color:var(--cream)}
.narrow{max-width:44em}
.narrow-46{max-width:46em}
.mt-s{margin-top:10px}.mt-m{margin-top:20px}.mt-l{margin-top:28px}
.align-start{align-items:start}
.mb-m{margin-bottom:14px}.mb-l{margin-bottom:18px}
[hidden]{display:none !important}

/* ---------- header ---------- */
header.site{background:var(--pine); color:var(--cream); position:relative; overflow:hidden}
header.site::after{content:""; position:absolute; right:-120px; top:-160px; width:420px; height:420px;
  background:radial-gradient(circle, rgba(232,163,61,.5) 0%, rgba(232,163,61,0) 65%); pointer-events:none}
.topbar{display:flex; align-items:center; gap:18px; padding:16px 0; position:relative; z-index:2; flex-wrap:wrap}
.logo{display:flex; align-items:center; gap:11px; color:var(--cream); text-decoration:none; font-family:Georgia,serif; font-size:1.45rem; font-weight:700; min-height:44px}
.logo .lamp{width:36px; height:36px; flex:none}
.lf-amber{fill:var(--amber)}
.lf-cream{fill:var(--cream)}
nav.main{margin-left:auto}
nav.main ul{display:flex; gap:6px; list-style:none; margin:0; padding:0; flex-wrap:wrap}
nav.main a{color:var(--cream); text-decoration:none; padding:11px 14px; border-radius:10px; font-size:1rem; display:inline-flex; align-items:center; min-height:44px; transition:background .18s ease}
nav.main a:hover{background:rgba(250,245,236,.14)}
nav.main a[aria-current="page"]{background:var(--amber); color:var(--pine-deep); font-weight:700}
@media (max-width:719px){
  nav.main{margin-left:0; width:100%}
  nav.main ul{display:grid; grid-template-columns:1fr 1fr; gap:8px}
  nav.main a{justify-content:center; border:1px solid rgba(250,245,236,.35); width:100%}
}

/* ---------- heroes ---------- */
.hero{padding:34px 0 54px; position:relative; z-index:2}
.kicker{color:var(--amber); font-weight:700; letter-spacing:.14em; text-transform:uppercase; font-size:.82rem; margin:0}
.hero h1{color:var(--cream)}
.hero h1 em{color:var(--amber); font-style:normal}
.hero .lede{color:var(--cream); font-size:1.18rem; max-width:36em; opacity:.95}
.hero .micro{color:var(--cream); opacity:.85; font-size:.95rem; margin-top:14px}
.page-hero{background:var(--pine-deep); color:var(--cream); position:relative; overflow:hidden; padding:clamp(30px,5vw,48px) 0}
.page-hero::after{content:""; position:absolute; right:-90px; top:-140px; width:360px; height:360px;
  background:radial-gradient(circle, rgba(232,163,61,.45) 0%, rgba(232,163,61,0) 65%); pointer-events:none}
.page-hero h1{color:var(--cream); position:relative; z-index:2}
.page-hero .lede{color:var(--cream); opacity:.94; font-size:1.1rem; max-width:42em; position:relative; z-index:2; margin:0}
.page-hero .kicker{position:relative; z-index:2}
.page-hero a{color:var(--amber); position:relative; z-index:2}
.page-hero a:hover{color:var(--cream)}
.hero a{color:var(--amber)}
/* the porch beam: an amber threshold line with a lamp at its centre,
   the motif that closes every hero and divides long pages */
.beam{border:0; height:26px; margin:0; position:relative; background:transparent}
.beam::before{content:""; position:absolute; left:0; right:0; top:12px; height:2px; background:var(--amber)}
.beam::after{content:""; position:absolute; left:50%; top:5px; width:16px; height:16px; margin-left:-8px;
  border-radius:50%; background:var(--amber); box-shadow:0 0 0 5px var(--cream)}
.page-hero .beam::after{box-shadow:0 0 0 5px var(--pine-deep)}

/* ---------- search & forms ---------- */
.searchbar{background:var(--paper); border-radius:var(--radius); padding:16px; display:grid; gap:12px;
  grid-template-columns:1fr; box-shadow:var(--shadow); max-width:760px}
@media (min-width:720px){ .searchbar{grid-template-columns:1fr 1fr auto; align-items:end} }
.field label{display:block; font-weight:700; font-size:.92rem; margin-bottom:6px; color:var(--pine-deep)}
.field select,.field input[type="text"],.field input[type="number"],.field input[type="email"],.field textarea{
  width:100%; min-height:48px; padding:10px 12px; border:2px solid var(--ink-soft); border-radius:10px;
  font:inherit; background:var(--paper); color:var(--ink)}
.field textarea{min-height:96px}
.field [aria-invalid="true"]{border-color:var(--bad)}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:12px 22px;
  border-radius:12px; border:2px solid var(--pine); background:var(--pine); color:var(--cream);
  font:inherit; font-weight:700; cursor:pointer; text-decoration:none; transition:background .18s ease, transform .18s ease, box-shadow .18s ease}
.btn:hover{background:var(--pine-deep); color:var(--cream)}
.btn.amber{background:var(--amber); border-color:var(--amber); color:var(--pine-deep)}
.btn.amber:hover{background:var(--amber-hover); transform:translateY(-1px)}
.btn.ghost{background:transparent; color:var(--pine)}
.btn.ghost:hover{background:rgba(23,63,53,.08); color:var(--pine-deep)}
.btn.small{min-height:44px; padding:8px 16px; font-size:.95rem}
.toolbar{display:grid; gap:12px; grid-template-columns:1fr; margin-bottom:20px}
@media (min-width:720px){ .toolbar{grid-template-columns:1fr 1fr 1fr; align-items:end} }
.checks{display:grid; gap:10px}
.checks label{display:flex; gap:10px; align-items:flex-start; border:1.5px solid var(--line); border-radius:12px; padding:12px 14px; cursor:pointer; min-height:44px}
.checks input{width:22px; height:22px; margin-top:2px; flex:none}
.err-summary{background:var(--bad-bg); border:2px solid var(--bad); border-radius:12px; padding:14px 18px; margin-bottom:18px}
.err-summary:empty{display:none}
.hint{font-size:.9rem; color:var(--ink-soft)}
.notice{border-left:5px solid var(--amber-deep); background:var(--paper); padding:14px 18px; border-radius:0 12px 12px 0; margin:0 0 18px}
.status{font-weight:700}
.status.ok{color:var(--good)} .status.err{color:var(--bad)}

/* ---------- sections & generic cards ----------
   The generic card family is a system, assigned by role on every page:
   base .card = supporting copy · .accent-top (amber beam) = rules, process,
   and action surfaces · .key (pine keyline + shadow) = the decision/trust
   core of a page. Provider cards (.pcard) and pricing tiers are their own
   families and sit outside this one. */
section.block{padding:clamp(38px,6vw,56px) 0}
section.block.alt{background:var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.grid{display:grid; gap:18px; grid-template-columns:1fr}
@media (min-width:720px){ .grid.cols-3{grid-template-columns:repeat(3,1fr)} .grid.cols-2{grid-template-columns:repeat(2,1fr)} }
.card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:22px}
.card .step{font-family:Georgia,serif; font-size:2rem; color:var(--amber-deep); line-height:1}
.card.accent-top{border-top:6px solid var(--amber)}
.card.key{border:2px solid var(--pine); box-shadow:var(--shadow-sm)}
.pledge-strip{background:var(--pine); color:var(--cream); border-radius:var(--radius); padding:26px; display:grid; gap:14px}
@media (min-width:720px){ .pledge-strip{grid-template-columns:repeat(3,1fr)} }
.pledge-strip .num{font-family:Georgia,serif; font-size:2.2rem; color:var(--amber); line-height:1}
.pledge-strip p{margin:0}

/* ---------- provider cards ---------- */
.pcard{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:22px;
  display:flex; flex-direction:column; gap:9px; box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease}
.pcard:hover,.pcard:focus-within{transform:translateY(-3px); box-shadow:var(--shadow)}
.pcard-top{display:flex; gap:14px; align-items:flex-start}
.monogram{flex:none; width:54px; height:54px; border-radius:12px 12px 4px 4px; background:var(--pine);
  color:var(--cream); font-family:Georgia,serif; font-weight:700; font-size:1.25rem;
  display:flex; align-items:center; justify-content:center; border-bottom:5px solid var(--amber)}
.monogram.big{width:76px; height:76px; font-size:1.7rem; border-bottom-width:7px}
.pcard-head{flex:1; min-width:0}
.pcard-head h3{margin:0 0 2px}
.pledge-figure{flex:none; text-align:right}
.pledge-figure .pf-num{display:block; font-family:Georgia,serif; font-size:1.9rem; line-height:1; color:var(--amber-deep)}
.pledge-figure .pf-label{display:block; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft)}
.pcard .meta{color:var(--ink-soft); font-size:.95rem; margin:0}
.pcard .blurb{flex:1; margin:0}
.pcard .typical{font-family:Georgia,serif; color:var(--pine-deep); margin:0}
.chips{display:flex; gap:8px; flex-wrap:wrap; margin:2px 0}
.chip{border:1.5px solid var(--pine); color:var(--pine); border-radius:999px; padding:3px 11px; font-size:.85rem; font-weight:600; display:inline-flex; align-items:center; gap:6px}
.chip .ic{width:15px; height:15px}
.ic{width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none}
/* the verified badge is a seal, not a chip: filled, checked, set apart */
.badge{display:inline-flex; align-items:center; gap:8px; border-radius:10px; padding:7px 13px; font-weight:700; font-size:.92rem; align-self:flex-start}
.badge .ic{width:16px; height:16px}
.badge.verified{background:var(--pine); color:var(--cream)}
.badge.pending{background:var(--amber); color:var(--pine-deep); border:1.5px dashed var(--amber-deep)}
/* fractional stars: an amber row clipped over a line-coloured row */
.stars-wrap{position:relative; display:inline-block; line-height:1; font-size:1.05rem; letter-spacing:2px; vertical-align:-2px}
.stars-wrap .base{color:var(--line)}
.stars-wrap .fill{color:var(--amber-deep); position:absolute; left:0; top:0; overflow:hidden; white-space:nowrap; width:var(--w,100%)}

/* ---------- profile ---------- */
.profile-head{display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap}
.profile-head .who{flex:1; min-width:240px}
.profile-head h1{margin:0 0 6px}
.pledge-panel{background:var(--pine); color:var(--cream); border-radius:var(--radius); padding:24px; position:relative; overflow:hidden}
.pledge-panel::after{content:""; position:absolute; right:-60px; top:-80px; width:220px; height:220px;
  background:radial-gradient(circle, rgba(232,163,61,.5) 0%, rgba(232,163,61,0) 65%)}
.pledge-panel h2{color:var(--cream); position:relative; z-index:2}
.pledge-panel .big{font-family:Georgia,serif; font-size:3rem; color:var(--amber); line-height:1; position:relative; z-index:2}
.pledge-panel p{position:relative; z-index:2}
.pledge-panel .btn{position:relative; z-index:2}
.facts{list-style:none; margin:0; padding:0; display:grid; gap:9px}
.facts li{display:flex; gap:10px; align-items:baseline}
.facts .k{font-weight:700; color:var(--pine-deep); min-width:118px}
table.ledger{width:100%; border-collapse:collapse; font-size:.95rem}
table.ledger th, table.ledger td{border-bottom:1px solid var(--line); padding:9px 8px; text-align:left; vertical-align:top}
table.ledger th{color:var(--pine-deep)}
.table-scroll{overflow-x:auto}

/* ---------- the pass card ---------- */
.passcard{background:linear-gradient(135deg, var(--pine) 0%, var(--pine-deep) 100%); color:var(--cream);
  border-radius:20px; padding:26px; position:relative; overflow:hidden; box-shadow:var(--shadow); max-width:520px}
.passcard::after{content:""; position:absolute; right:-70px; top:-90px; width:260px; height:260px;
  background:radial-gradient(circle, rgba(232,163,61,.55) 0%, rgba(232,163,61,0) 65%)}
.passcard .brand{font-family:Georgia,serif; font-size:1.15rem; display:flex; justify-content:space-between; align-items:center; position:relative; z-index:2}
.passcard .brand .lamp{width:26px; height:26px}
.passcard .code{font-family:ui-monospace,Menlo,Consolas,monospace; font-size:clamp(1.6rem,6vw,2.2rem);
  letter-spacing:.05em; margin:22px 0 8px; position:relative; z-index:2}
.passcard .code .check-digit{color:var(--amber); text-decoration:underline; text-underline-offset:5px}
.passcard .card-legend{position:relative; z-index:2; font-size:.85rem; opacity:.85; margin:14px 0 0; border-top:1px solid rgba(250,245,236,.3); padding-top:10px}
.passcard .row{display:flex; gap:26px; flex-wrap:wrap; position:relative; z-index:2}
.passcard .row small{display:block; opacity:.8; font-size:.78rem; text-transform:uppercase; letter-spacing:.1em}
@keyframes rise{from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none}}
.passcard:not([hidden]){animation:rise .35s ease}
.join-step:not([hidden]){animation:rise .3s ease}

/* ---------- join steps ---------- */
.steps{display:flex; gap:8px; list-style:none; padding:0; margin:0 0 22px; flex-wrap:wrap}
.steps li{padding:9px 14px; border-radius:999px; border:2px solid var(--line); font-weight:600; min-height:44px; display:flex; align-items:center}
.steps li[aria-current="step"]{background:var(--pine); color:var(--cream); border-color:var(--pine)}
fieldset.join-step{border:0; padding:0; margin:0; min-width:0}
legend.join-legend{padding:0; margin-bottom:6px}

/* ---------- pricing tiers ---------- */
.tiers{display:grid; gap:18px; grid-template-columns:1fr}
@media (min-width:960px){ .tiers{grid-template-columns:repeat(3,1fr)} }
.tier{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:24px; display:flex; flex-direction:column}
.tier.featured{border:3px solid var(--pine); box-shadow:var(--shadow)}
.tier .price{font-family:Georgia,serif; font-size:2rem; color:var(--pine-deep)}
.tier ul{margin:0 0 18px; padding-left:20px}
.tier ul li{margin-bottom:7px}
.tier .foot{margin-top:auto}
.tier .tier-kicker{font-size:.75rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--amber-deep); margin:0 0 4px}
.tier.care{border-top:6px solid var(--amber)}
.count-line{font-weight:700; color:var(--pine-deep)}

/* ---------- footer ---------- */
footer.site{background:var(--pine-deep); color:var(--cream); padding:38px 0}
footer.site a{color:var(--amber); display:inline-flex; align-items:center; min-height:44px; padding:6px 2px}
footer.site .brandline{display:flex; align-items:center; gap:11px; font-family:Georgia,serif; font-size:1.25rem; font-weight:700; margin-bottom:14px}
footer.site .brandline .lamp{width:30px; height:30px}
.foot-grid{display:grid; gap:8px 34px; grid-template-columns:1fr}
@media (min-width:720px){ .foot-grid{grid-template-columns:repeat(3,auto); justify-content:start} }
.foot-grid h3{color:var(--cream); font-size:.95rem; margin:0 0 4px}
.foot-grid ul{list-style:none; margin:0; padding:0}
footer.site .concept{border-top:1px solid rgba(250,245,236,.25); padding-top:16px; margin-top:20px; font-size:.92rem; opacity:.9}

/* ---------- print: the pass is an artifact; print it alone ---------- */
.passcard{-webkit-print-color-adjust:exact; print-color-adjust:exact}
.back-link{display:inline-flex; align-items:center; min-height:44px; padding:6px 2px}
.sec-kicker{font-size:.8rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--amber-deep); margin:34px 0 2px}
.sec-kicker:first-child{margin-top:0}
ol.register{list-style:none; counter-reset:reg; padding:0; margin:0}
ol.register li{counter-increment:reg; position:relative; padding-left:56px; margin-bottom:14px}
ol.register li::before{content:counter(reg,decimal-leading-zero); position:absolute; left:0; top:-4px;
  font-family:Georgia,serif; font-size:1.55rem; color:var(--amber-deep)}
table.ledger tr.chosen td{background:rgba(232,163,61,.14)}
table.ledger tr.chosen td:first-child{border-left:4px solid var(--amber-deep)}
@media print{
  header.site, footer.site, .no-print{display:none !important}
  body{background:var(--paper)}
  .passcard{box-shadow:none; max-width:520px}
  section.block{padding:0}
}
