/* Download page template: the parts only a download page has (hero with form, step screens, email card, author, FAQ, closing call).
   Every rule sits under .dlp, and this file is linked only on pages built from this template, so no other page changes.
   Shared blocks (feature grid, who tiles, before and after, pins, icon chips) are the dl- rules in site.css.
   Values from BRAND.md. First used for the Invoice Drafter page, 2026-11-28. */
.dlp{--ink:#0A0A0A;--muted:#555555;--muted2:#666666;--border:#EAEAEA;--lime:#C6F36A;--tint:#F2FBDD;--tint-line:#E3F2BF;--dark:#0E0E0E;--white:#FFFFFF;--mono:'Geist Mono',ui-monospace,monospace;
  font-family:'Geist',system-ui,sans-serif;color:var(--ink);background:var(--white);min-width:320px;overflow-x:hidden}
.dlp *{box-sizing:border-box}
.dlp a{color:var(--ink)}.dlp a:hover{color:var(--muted)}
.dlp img{max-width:100%;height:auto}
.dlp figure{margin:0}
.dlp .mono{font-family:var(--mono)}
.dlp .wrap{max-width:1200px;margin:0 auto;padding-left:20px;padding-right:20px}

/* chips */
.dlp .dlp-chip{display:inline-block;font-family:var(--mono);font-size:12px;border-radius:999px;padding:3px 10px;white-space:nowrap;color:var(--ink);font-weight:400;letter-spacing:0}
.dlp .dlp-chip.lime{background:var(--lime);border:1.5px solid var(--ink)}
.dlp .dlp-chip.tint{background:var(--tint);border:1.5px solid var(--tint-line)}
.dlp .dlp-chips{display:flex;gap:8px;flex-wrap:wrap}

/* hero */
.dlp .hero{background:var(--tint);border-bottom:1px solid var(--tint-line)}
.dlp .hero .wrap{padding-top:clamp(12px,4vw,64px);padding-bottom:clamp(40px,7vw,96px);display:flex;flex-wrap:wrap;gap:clamp(24px,5vw,64px);align-items:center}
.dlp .hero .copy{flex:1 1 440px;min-width:0;display:flex;flex-direction:column;gap:clamp(12px,2.4vw,22px)}
.dlp .hero .copy>.dlp-chip{align-self:flex-start}
.dlp h1{margin:0;font-size:clamp(36px,4.6vw,64px);line-height:.96;font-weight:800;letter-spacing:-.05em}
.dlp .sub{margin:0;font-size:clamp(16px,1.6vw,20px);line-height:1.45;color:var(--muted);max-width:520px}
.dlp .loop{flex:0 1 432px;width:432px;max-width:100%;border-radius:16px;overflow:hidden;aspect-ratio:1080/1350;background:var(--tint)}
.dlp .loop video,.dlp .loop img{display:block;width:100%;height:100%}
.dlp .loop .still{display:none}
.dlp .hero-loop{flex:0 1 440px;width:440px;max-width:100%;margin:0 auto;box-shadow:0 1px 0 var(--tint-line);border:1px solid var(--tint-line)}
@media (prefers-reduced-motion:reduce){.dlp .loop video{display:none}.dlp .loop .still{display:block}.dlp *{animation:none!important;transition:none!important}}

/* form: same fields, names and errors as the investor teardown form */
.dlp .get{width:100%;max-width:480px}
.dlp .get form,.dlp .get .direct{display:flex;flex-direction:column;gap:12px}
.dlp .get label.lbl{font-size:15px;font-weight:500}
.dlp .get input[type=email]{font-family:inherit;font-size:17px;min-height:54px;padding:0 16px;border-radius:12px;border:1.5px solid var(--muted);background:var(--white);color:var(--ink);width:100%}
.dlp .get input[type=email][aria-invalid=true]{border-color:var(--ink);border-width:2px}
.dlp .btn{font-family:inherit;display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;background:var(--lime);color:var(--ink);border:1.5px solid var(--ink);border-radius:999px;font-weight:500;font-size:18px;text-decoration:none;cursor:pointer;white-space:nowrap;padding:0 24px;width:100%}
.dlp .btn:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.dlp .consent{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;color:var(--muted)}
.dlp .consent input{width:20px;height:20px;margin:0;flex:0 0 20px;accent-color:var(--ink)}
.dlp .consent a{color:var(--ink)}
.dlp .err{margin:0;font-size:14px;color:var(--ink);font-weight:500}
.dlp .err:empty{display:none}
.dlp .meta{margin:0;font-family:var(--mono);font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 14px}
.dlp .welcome{margin:0;font-size:15px;color:var(--muted)}
.dlp .hp{position:absolute;left:-9999px;margin:0}

/* steps: three drawn mini screens */
.dlp .flow{list-style:none;margin:0;padding:0;display:flex;align-items:stretch;gap:12px}
.dlp .fcard{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:14px}
.dlp .viz{background:var(--tint);border:1px solid var(--tint-line);border-radius:16px;padding:22px;min-height:200px;display:flex;flex-direction:column;justify-content:center;gap:14px}
.dlp .fcard .lab{margin:0;display:flex;align-items:center;gap:10px;font-weight:600;font-size:18px}
.dlp .fcard .lab .n{flex:0 0 32px;height:32px;border-radius:999px;background:var(--lime);border:1.5px solid var(--ink);display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:700}
.dlp .arr{flex:0 0 28px;display:flex;align-items:center;justify-content:center;color:var(--ink);padding-bottom:46px}
.dlp .bubble{margin:0;align-self:flex-start;font-family:var(--mono);font-size:15px;background:var(--dark);color:var(--white);border-radius:14px 14px 14px 4px;padding:12px 14px}
.dlp .cursor{display:inline-block;width:8px;height:16px;background:var(--lime);margin-left:4px;vertical-align:-3px}
.dlp .cust{margin:0;display:flex;flex-wrap:wrap;gap:6px}
.dlp .cust span{font-size:13px;background:var(--white);border:1px solid var(--border);border-radius:999px;padding:4px 10px}
.dlp .made{display:flex;align-items:center;gap:10px}
.dlp .cal{flex:0 0 64px;height:72px;border:1.5px solid var(--ink);border-radius:10px;background:var(--white);display:flex;flex-direction:column;align-items:center;overflow:hidden}
.dlp .cal small{display:block;width:100%;text-align:center;background:var(--ink);color:var(--white);font-family:var(--mono);font-size:12px;padding:3px 0}
.dlp .cal b{font-size:30px;line-height:1.3}
.dlp .to{flex:0 0 auto;display:flex}.dlp .to svg{width:20px;height:20px}
.dlp .docs{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}
.dlp .mini{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:5px;font-size:12px}
.dlp .mini b{font-size:13px}
.dlp .mini i{display:block;height:5px;border-radius:3px;background:var(--border)}
.dlp .mini i+i{width:60%}
.dlp .mini em{font-style:normal;font-weight:700;font-size:12px;background:var(--lime);border-radius:6px;padding:2px 6px;align-self:flex-start}
.dlp .mini .att{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);font-size:11px}
.dlp .mini.big{font-size:13px;gap:10px;padding:14px}
.dlp .mini.big .row small{color:var(--muted);margin-right:8px}
.dlp .mini.big .att{border:1px solid var(--border);border-radius:8px;padding:5px 8px;align-self:flex-start;overflow-wrap:anywhere}
.dlp .send{position:relative;align-self:flex-start;background:var(--lime);border:1.5px solid var(--ink);border-radius:999px;padding:6px 18px;font-weight:600;font-size:14px}
.dlp .send .ptr{position:absolute;right:-14px;bottom:-14px}

/* pinned output beside a second card */
.dlp .get2{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:start}
.dlp .get2 figcaption{padding:12px 4px 0;font-weight:600}
.dlp .mail{background:var(--white);border:1px solid var(--tint-line);border-radius:12px;width:100%;font-size:15px}
.dlp .mail .bar{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--border)}
.dlp .mail .bar .tag{font-family:var(--mono);font-size:12px;background:var(--dark);color:var(--white);border-radius:6px;padding:2px 8px;white-space:nowrap}
.dlp .mail .bar .dlp-chip{margin-left:auto}
.dlp .mail dl{margin:0;padding:12px 16px 0;display:grid;grid-template-columns:auto 1fr;gap:6px 14px}
.dlp .mail dt{color:var(--muted)}
.dlp .mail dd{margin:0;min-width:0;overflow-wrap:anywhere}
.dlp .mail .body{margin:0;padding:14px 16px;line-height:1.5;color:var(--ink)}
.dlp .mail .body span{display:block}
.dlp .mail .att{margin:0 16px 16px;display:inline-flex;gap:10px;align-items:center;border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-family:var(--mono);font-size:11px;overflow-wrap:anywhere}

/* author */
.dlp .author{display:flex;flex-wrap:wrap;gap:32px;border:1px solid var(--border);border-radius:20px;padding:clamp(24px,4vw,40px)}
.dlp .author img{width:160px;height:200px;object-fit:cover;border-radius:14px;flex:0 0 160px}
.dlp .author .txt{flex:1 1 320px;min-width:0}
.dlp .author .line{margin:0;font-size:clamp(20px,2.4vw,26px);font-weight:600;letter-spacing:-.02em;line-height:1.3}
.dlp .li-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--border);border-radius:999px;color:var(--ink)}
.dlp .li-icon:hover{background:var(--tint)}

/* FAQ: all closed by default; without JavaScript every answer shows */
.dlp .faq{max-width:1100px}
.dlp .faq .list{border-top:1.5px solid var(--ink)}
.dlp .faq .item{border-bottom:1px solid var(--border)}
.dlp .faq h3{margin:0}
.dlp .faq button{width:100%;text-align:left;background:none;border:0;font-family:inherit;font-size:18px;font-weight:600;color:var(--ink);padding:18px 0;display:flex;justify-content:space-between;gap:16px;cursor:pointer;min-height:44px}
.dlp .faq .a{margin:0 0 18px;color:var(--muted);line-height:1.6;max-width:760px}

/* closing call */
.dlp .cta{padding-top:40px;padding-bottom:88px}
.dlp .close{background:var(--tint);border:1px solid var(--tint-line);border-radius:24px;padding:clamp(24px,5vw,56px);display:flex;flex-wrap:wrap;gap:32px;align-items:center}
.dlp .close h2{flex:1 1 360px;margin:0;font-size:clamp(32px,4.6vw,56px);font-weight:800;letter-spacing:-.05em;line-height:.98}
.dlp .close .get{flex:1 1 360px;min-width:0}

/* thanks page */
.dlp.page-tint{background:var(--tint)}
.dlp .thanks{max-width:640px;width:100%;margin:0 auto;padding:clamp(32px,7vw,96px) 20px;display:flex;flex-direction:column;gap:22px}
.dlp .thanks h1{font-size:clamp(40px,7vw,72px)}
.dlp .thanks .sub{max-width:none;font-size:19px;line-height:1.5}
.dlp .card{background:var(--white);border:1px solid var(--tint-line);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:16px}
.dlp .card .hd{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:baseline}
.dlp .card .hd strong{font-size:20px}
.dlp .more{border-top:1px solid var(--tint-line);padding-top:20px;display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center}
.dlp .more span{color:var(--muted)}

@media (max-width:820px){
  .dlp .flow{flex-direction:column}
  .dlp .arr{padding:0}.dlp .arr svg{transform:rotate(90deg)}
  .dlp .get2{grid-template-columns:minmax(0,1fr)}
  .dlp .hero-loop{width:100%;flex-basis:100%}
}
@media (max-width:480px){
  .dlp .hero .copy>.dlp-chip{display:none}
  .dlp .hero h1{font-size:31px;line-height:1}
  .dlp .hero .sub{font-size:15px;line-height:1.4}
  .dlp .hero .wrap{padding-top:6px}
}

/* 2026-11-29: hero with a drawn card and a larger headline (investor teardown), optional tips tick, author notes */
@media (min-width:481px){.dlp .hero.big h1{font-size:clamp(38px,6.4vw,84px)}}
.dlp .hero-card{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:12px}
.dlp .author .notes{margin:20px 0 0;padding-left:20px;color:var(--muted);line-height:1.6}

/* thanks page: the call, under the download */
.dlp .call{display:flex;flex-wrap:wrap;gap:14px 20px;align-items:center;background:var(--white);border:1px solid var(--tint-line);border-radius:16px;padding:20px 24px}
.dlp .call p{flex:1 1 260px;margin:0;line-height:1.45}
.dlp .call .btn{flex:0 0 auto;width:auto;min-height:48px;font-size:16px}
.dlp .btn.ghost{background:var(--white)}
@media (max-width:480px){.dlp .call .btn{flex:1 1 100%}}
