/* Opsfitter Forms template gallery: "the clipboard wall". Author: C.Perry
   Every card is a little clipboard holding a real miniature of that form, drawn in the form's own look
   (paper, night, bold, mint, navy or clean), so the wall never looks copy and paste.
   Used by /forms/templates/ and every /forms/templates/<id>/ page. Works in light and dark mode. */
main.tg{padding:0 0 64px}
.tg-hero{background:var(--hero);color:#fff;position:relative;overflow:hidden;padding:44px 0 38px}
.tg-hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:28px 28px;pointer-events:none}
.tg-hero .wrap{position:relative;display:grid;grid-template-columns:1fr 210px;gap:26px;align-items:end}
.tg-hero h1{font-size:44px;margin:0 0 10px;color:#fff}
.tg-hero h1 em{font-style:normal;color:#2BC48A}
.tg-hero p.lead{color:#C9D6E2;font-size:18px;max-width:640px;margin:0 0 18px}
.tg-hero .fitz{width:200px;justify-self:end;filter:drop-shadow(0 10px 18px rgba(0,0,0,.35))}
.tg-find{display:flex;gap:10px;align-items:center;background:#fff;border-radius:16px;padding:6px 6px 6px 16px;max-width:700px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.tg-find svg{width:22px;height:22px;flex:none;stroke:#5B6B7A;fill:none;stroke-width:2;stroke-linecap:round}
.tg-find input{flex:1;min-width:0;border:0;font:inherit;font-size:18px;padding:12px 4px;color:#12304A;background:transparent;outline:none}
.tg-find .btn{border-radius:12px}
.tg-pop{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:#C9D6E2;font-size:14px}
.tg-pop button{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);color:#fff;border-radius:30px;padding:6px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.tg-pop button:hover{background:rgba(43,196,138,.25)}
.tg-stats{display:flex;gap:28px;margin-top:22px;flex-wrap:wrap}
.tg-stats div{font-size:14px;color:#C9D6E2}
.tg-stats b{display:block;font-size:28px;color:#fff;letter-spacing:-.02em}

.tg-body{display:grid;grid-template-columns:220px 1fr;gap:28px;margin-top:28px}
.tg-rail{position:sticky;top:76px;align-self:start;display:flex;flex-direction:column;gap:2px}
.tg-rail h3{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--sub);margin:0 0 8px}
.tg-rail button{display:flex;justify-content:space-between;align-items:center;background:none;border:0;border-left:3px solid transparent;padding:8px 10px;font:inherit;font-size:15px;color:var(--ink);cursor:pointer;text-align:left;border-radius:0 8px 8px 0}
.tg-rail button span{font-size:12px;color:var(--sub);font-weight:700}
.tg-rail button:hover{background:var(--soft)}
.tg-rail button.on{border-left-color:var(--accent);background:var(--soft);font-weight:700}
.tg-rail .kitlink{margin-top:14px;border:1px dashed var(--line);border-radius:10px;padding:10px;font-size:14px;color:var(--ink);text-decoration:none;display:block}
.tg-rail .kitlink b{display:block;color:var(--link)}

.tg-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.tg-head h2{margin:0}
.tg-head .sub{font-size:14px}

/* ---------- the clipboard wall ---------- */
.wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:26px 20px}
.wall>*,.tg-body>*{min-width:0}
.clip{position:relative;display:flex;flex-direction:column;background:none;border:0;padding:16px 0 0;text-align:left;cursor:pointer;color:inherit;font:inherit;text-decoration:none}
.clip .board{background:#B98B5E;background-image:linear-gradient(135deg,rgba(255,255,255,.12),rgba(0,0,0,.08));border-radius:12px;padding:16px 10px 10px;box-shadow:0 2px 0 #8C6440,0 8px 18px rgba(18,48,74,.12);transition:transform .18s ease}
.clip:hover .board,.clip:focus-visible .board{transform:translateY(-4px) rotate(-.6deg)}
.clip:nth-child(3n) .board{background-color:#9C7A55}
.clip:nth-child(4n+1) .board{background-color:#7E8C99}
.clip .metal{position:absolute;top:6px;left:50%;transform:translateX(-50%);width:76px;height:22px;border-radius:7px 7px 4px 4px;background:linear-gradient(#E3E8EC,#9AA6B0);box-shadow:0 2px 3px rgba(0,0,0,.3);z-index:2}
.clip .metal::after{content:"";position:absolute;left:50%;top:5px;width:22px;height:8px;border-radius:5px;background:#5B6B7A;transform:translateX(-50%)}
.sheet{background:#fff;border-radius:4px;min-height:206px;padding:12px 12px 10px;color:#12304A;overflow:hidden;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.15)}
.sheet .bar{height:6px;border-radius:3px;background:var(--acc);margin:-2px 0 10px;width:46%}
.sheet h4{margin:0 0 3px;font-size:15px;line-height:1.2;letter-spacing:-.01em}
.sheet .in{font-size:11px;color:#5B6B7A;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sheet .q{font-size:11px;font-weight:600;margin:6px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet .box{height:16px;border:1.5px solid #D5DEE6;border-radius:5px}
.sheet .row{display:flex;gap:5px}
.sheet .row i{flex:1;height:16px;border:1.5px solid #D5DEE6;border-radius:12px}
.sheet .row i.on{background:var(--acc);border-color:var(--acc)}
.sheet .stars{color:var(--acc);font-size:14px;letter-spacing:2px;line-height:1}
.sheet .sig{height:22px;border-bottom:1.5px solid #12304A;position:relative}
.sheet .sig::after{content:"";position:absolute;left:8px;bottom:3px;width:60px;height:14px;border:2px solid var(--acc);border-color:transparent transparent var(--acc) var(--acc);border-radius:0 0 0 18px;transform:skewX(-25deg)}
.sheet .cam{height:26px;border:1.5px dashed #B9C6D1;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:10px;color:#5B6B7A}
.sheet .tot{display:flex;justify-content:space-between;font-weight:800;font-size:12px;border-top:1.5px solid #D5DEE6;padding-top:4px;margin-top:6px}
.sheet .btnm{margin-top:10px;background:var(--acc);color:#fff;border-radius:6px;font-size:11px;font-weight:800;text-align:center;padding:5px}
/* the form's own look, so every sheet differs */
.sheet.st-paper{background:#FFFBF1;font-family:Georgia,"Times New Roman",serif}
.sheet.st-paper .box,.sheet.st-paper .row i{border-color:#E6DBC4}
.sheet.st-night{background:#14202E;color:#E8EEF3}
.sheet.st-night .in,.sheet.st-night .cam{color:#A9B8C6}
.sheet.st-night .box,.sheet.st-night .row i{border-color:#2F4256}
.sheet.st-night .sig{border-color:#E8EEF3}
.sheet.st-bold .bar{width:auto;height:34px;margin:-12px -12px 10px;border-radius:0}
.sheet.st-bold h4{font-weight:900;text-transform:uppercase;font-size:14px;letter-spacing:.02em}
.sheet.st-mint{background:linear-gradient(#EAF8F1,#fff 60%)}
.sheet.st-navy .bar{width:auto;height:8px;margin:-12px -12px 10px;border-radius:0;background:#12304A;box-shadow:0 4px 0 var(--acc)}
.sheet.ft-round h4{font-family:Nunito,Inter,sans-serif;font-weight:800}
.sheet.ft-mono h4,.sheet.ft-mono .q{font-family:"Courier Prime","Courier New",monospace}
.sheet .fold{position:absolute;right:0;bottom:0;width:22px;height:22px;background:linear-gradient(135deg,transparent 50%,rgba(18,48,74,.12) 50%)}
.clip .cap{padding:10px 2px 0}
.clip .cap b{display:block;font-size:16px;color:var(--ink)}
.clip .cap span{display:block;font-size:13px;color:var(--sub);line-height:1.4}
.clip .meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.clip .meta i{font-style:normal;font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;background:var(--soft);color:var(--sub)}
.clip .meta i.pro{background:#FFF1D6;color:#7A5200}
.clip .meta i.biz{background:#E8E4FA;color:#4433A0}
.tg-none{grid-column:1/-1;background:var(--card);border:1px dashed var(--line);border-radius:14px;padding:22px;color:var(--ink)}

/* ---------- kits: the toolbox shelf ---------- */
.kits{margin-top:56px}
.kits .lede{color:var(--sub);max-width:720px}
.kitrow2{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:16px}
.kit{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.kit .lid{background:var(--kc);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:12px;position:relative}
.kit .lid::after{content:"";position:absolute;left:50%;top:-1px;width:60px;height:10px;border-radius:0 0 10px 10px;background:rgba(0,0,0,.22);transform:translateX(-50%)}
.kit .lid svg{width:30px;height:30px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.kit .lid b{font-size:17px;display:block}
.kit .lid span{font-size:12px;opacity:.85}
.kit ul{list-style:none;margin:0;padding:12px 16px;display:grid;gap:6px;flex:1;align-content:start}
.kit li a{color:var(--ink);text-decoration:none;font-size:14px;display:flex;gap:8px;align-items:center}
.kit li a:hover{color:var(--link)}
.kit li a::before{content:"";width:10px;height:12px;border:1.5px solid var(--sub);border-radius:2px;flex:none}
.kit .go{padding:0 16px 16px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.kit .go .small{color:var(--sub)}

/* ---------- plans nudge ---------- */
.nudge{margin-top:56px;background:linear-gradient(120deg,#12304A,#1B4C6E);color:#fff;border-radius:24px;padding:28px;display:grid;grid-template-columns:1.1fr 1.4fr;gap:24px;align-items:center}
.nudge h2{color:#fff;margin:0 0 8px}
.nudge p{color:#C9D6E2;margin:0}
.nudge .tiers{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.nudge .tier{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:6px}
.nudge .tier.pick{background:#fff;color:#12304A;border-color:#fff}
.nudge .tier b{font-size:14px}
.nudge .tier .pr{font-size:24px;font-weight:800;letter-spacing:-.02em}
.nudge .tier .pr small{font-size:12px;font-weight:600;opacity:.75}
.nudge .tier span{font-size:12px;opacity:.85;flex:1}
.nudge .tier a{font-size:13px;font-weight:800;color:#2BC48A;text-decoration:none}
.nudge .tier.pick a{color:#157A55}

/* ---------- try-it drawer ---------- */
.dr-back{position:fixed;inset:0;background:rgba(10,22,35,.55);z-index:60;display:flex;justify-content:flex-end;animation:drf .2s ease}
@keyframes drf{from{opacity:0}to{opacity:1}}
.drawer{width:min(940px,100%);height:100%;background:var(--bg);display:grid;grid-template-columns:400px 1fr;overflow:hidden;animation:drs .25s ease}
@keyframes drs{from{transform:translateX(40px)}to{transform:none}}
.drawer .stage{background:repeating-linear-gradient(45deg,var(--soft) 0 10px,transparent 10px 20px),var(--bg);padding:22px;overflow:auto;display:flex;flex-direction:column;align-items:center}
.phone{width:340px;max-width:100%;height:620px;border:10px solid #12304A;border-radius:34px;background:#fff;overflow:auto;position:relative;box-shadow:0 20px 40px rgba(18,48,74,.25)}
.phone::before{content:"";display:block;position:sticky;top:0;margin:0 auto;width:90px;height:16px;background:#12304A;border-radius:0 0 12px 12px;z-index:3}
.stage .hint{font-size:12px;color:var(--sub);margin-top:10px;text-align:center;max-width:320px}
.drawer .info{padding:22px 24px 30px;overflow:auto;position:relative}
.drawer .x{position:absolute;top:12px;right:14px;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:22px;cursor:pointer}
.drawer .eyebrow{margin:0 0 6px}
.drawer h2{margin:0 40px 6px 0;font-size:28px}
.drawer .blurb{color:var(--sub);font-size:16px}
.facts{display:flex;gap:18px;flex-wrap:wrap;margin:14px 0}
.facts div{font-size:13px;color:var(--sub)}
.facts b{display:block;font-size:20px;color:var(--ink)}
.feats{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.feats i{font-style:normal;font-size:12px;font-weight:700;border:1px solid var(--line);border-radius:20px;padding:3px 10px;color:var(--ink);background:var(--card)}
.ctas{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.perk{border-left:4px solid #E0A526;background:var(--warnBg);border-radius:0 12px 12px 0;padding:10px 14px;font-size:14px;margin:12px 0;color:var(--ink)}
.perk a{font-weight:700}
.landed{border:1px solid var(--line);background:var(--card);border-radius:14px;padding:14px;margin:14px 0;font-size:14px}
.landed.wait{opacity:.6}
.landed h4{margin:0 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--sub)}
.landed .subj{font-weight:800;margin-bottom:4px}
.inside{margin:14px 0 0;padding:0;list-style:none;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--card)}
.inside li{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;border-top:1px solid var(--line);font-size:14px}
.inside li:first-child{border-top:0}
.inside li span{color:var(--sub);font-size:12px;white-space:nowrap}
.inside li.lay{background:var(--soft);font-weight:700}
.inside li em{color:var(--bad);font-style:normal}
.rules{margin:10px 0 0;padding-left:18px;font-size:14px}
.rules li{margin:4px 0}
.tabs2{display:flex;gap:4px;border-bottom:2px solid var(--line);margin:16px 0 0}
.tabs2 button{background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-2px;padding:8px 12px;font:inherit;font-weight:700;color:var(--sub);cursor:pointer}
.tabs2 button.on{color:var(--ink);border-bottom-color:var(--accent)}

/* ---------- single template page ---------- */
.tp-crumb{font-size:14px;color:var(--sub);margin:22px 0 10px}
.tp-crumb a{color:var(--sub)}
.tp{display:grid;grid-template-columns:380px 1fr;gap:32px;align-items:start}
.tp .stage{position:sticky;top:76px;display:flex;flex-direction:column;align-items:center}
.tp h1{font-size:38px;margin:0 0 8px}
.tp .blurb{font-size:18px;color:var(--sub)}
.tp-rel{margin-top:48px}

@media (max-width:980px){
  .tg-hero .wrap{grid-template-columns:1fr}.tg-hero .fitz{display:none}.tg-hero h1{font-size:34px}
  .tg-body{grid-template-columns:1fr}
  .tg-rail{position:sticky;top:60px;z-index:5;flex-direction:row;overflow-x:auto;background:var(--bg);padding:8px 0;gap:6px;scrollbar-width:none}
  .tg-rail h3,.tg-rail .kitlink{display:none}
  .tg-rail button{flex:none;border:1px solid var(--line);border-radius:30px;padding:6px 12px;font-size:14px;gap:6px}
  .tg-rail button.on{border-color:var(--accent)}
  .nudge{grid-template-columns:1fr}.nudge .tiers{grid-template-columns:1fr 1fr}
  .drawer{display:flex;flex-direction:column;overflow:auto}
  .drawer .info{order:1;overflow:visible;flex:none}
  .drawer .stage{order:2;overflow:visible;flex:none}
  .tp{grid-template-columns:1fr}.tp .stage{position:static}
}
@media (max-width:560px){
  .wall{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
  .sheet .q{font-size:10px}
  .clip .board{padding:14px 6px 6px}
  .sheet{min-height:170px;padding:10px}
  .clip .cap span{display:none}
  .tg-find input{font-size:16px}
  .phone{height:560px}
}
@media (prefers-reduced-motion:reduce){.clip .board,.drawer,.dr-back{transition:none;animation:none}}
