/* Rate My Income — Version B shared styles (calculator funnel) */
:root{
  --bg:#FBF9F5; --surface:#FFFFFF; --ink:#22303A; --muted:#5C6B74; --faint:#7B8A92;
  --accent:#177A6E; --accent-dark:#0F5A50; --accent-soft:#E6F1EF; --accent-mid:#C7DEDB;
  --compare:#C47A1E; --compare-ink:#9A5A12; --compare-soft:#F6EEE2;
  --border:#E8E2D8; --radius:16px;
  --shadow:0 1px 2px rgba(34,48,58,.04), 0 10px 30px rgba(34,48,58,.06);
  --maxw:1080px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:18px;line-height:1.6;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
h1,h2,h3{font-family:'Fraunces',Georgia,'Times New Roman',serif;font-weight:600;line-height:1.15;letter-spacing:-.01em;color:var(--ink);margin:0}
a{color:var(--accent)}
[hidden]{display:none!important}

/* Header */
header.top{position:sticky;top:0;z-index:20;background:rgba(251,249,245,.92);backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid var(--border)}
header.top .wrap{display:flex;align-items:center;justify-content:space-between;height:70px}
.brand{display:flex;align-items:center;gap:10px;font-family:'Fraunces',serif;font-weight:600;font-size:1.28rem;color:var(--ink);text-decoration:none}
.brand .mark{width:30px;height:30px;border-radius:8px;flex:none;background:linear-gradient(135deg,var(--accent),#2AA597);display:grid;place-items:center}
.brand .mark svg{width:18px;height:18px}
.brand small{display:block;font-family:'Inter',sans-serif;font-weight:500;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:1px}
.header-cta{font-size:.95rem;font-weight:600;color:var(--accent);text-decoration:none;padding:9px 16px;border:1px solid var(--border);border-radius:999px;background:var(--surface)}
.header-cta:hover{border-color:var(--accent)}
@media(max-width:560px){.header-cta{display:none}}

/* Intro */
.intro{padding:48px 0 8px}
.eyebrow{display:inline-block;font-size:.8rem;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--accent);background:var(--accent-soft);padding:6px 14px;border-radius:999px;margin-bottom:20px}
.intro h1{font-size:clamp(2rem,4.6vw,3.1rem);max-width:22ch}
.intro .kicker-line{font-family:'Fraunces',serif;font-size:clamp(1.25rem,2.6vw,1.6rem);color:var(--accent);margin:12px 0 0;font-weight:500}
.intro .sub{font-size:clamp(1.02rem,2vw,1.2rem);color:var(--muted);max-width:64ch;margin:18px 0 0}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;font-family:inherit;font-size:1.08rem;font-weight:600;cursor:pointer;padding:16px 22px;border-radius:12px;border:0;transition:.15s;text-decoration:none;text-align:center}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 6px 16px rgba(23,122,110,.24)}
.btn-primary:hover{background:var(--accent-dark)}
.btn-outline{background:var(--surface);color:var(--accent);border:1.5px solid var(--accent)}
.btn-outline:hover{background:var(--accent-soft)}
.btn svg{width:20px;height:20px;flex:none}

/* ===== Calculator ===== */
.calc-section{padding:28px 0 8px}
.calc{display:flex;flex-direction:column;gap:14px}
.calc .col{display:contents}
.calc .res{order:1}.calc .inputs{order:2}.calc .cta{order:3}.calc .io{order:4}.calc .care{order:5}
@media(min-width:900px){
  .calc{flex-direction:row;align-items:flex-start;gap:22px}
  .calc .col{display:flex;flex-direction:column;gap:14px;flex:1;min-width:0}
  .calc .col.right{position:sticky;top:90px}
}
.calc .card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow)}
.calc h2{font-family:'Inter',sans-serif;font-size:16px;font-weight:800;letter-spacing:0}
.calc .cf{display:flex;flex-direction:column;gap:3px}
.calc .row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.calc .lbl{font-size:14px;font-weight:600;color:#4A5561}
.calc .val{font-size:19px;font-weight:800}
.calc .hint{font-size:12px;color:var(--faint);min-height:1.2em}
.calc .pair{display:flex;gap:14px;flex-wrap:wrap}
.calc .pair>.cf{flex:1 1 40%;min-width:0}
.calc .pair>.cf.full{flex:1 1 100%}
.calc input[type=range]{width:100%;accent-color:var(--accent);height:28px;margin:0;cursor:pointer}
.calc input[type=range]:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.calc .cover{display:flex;align-items:center;justify-content:space-between;gap:10px}
.calc .segs{display:flex;gap:8px;width:64%}
.calc .seg{flex:1;min-height:42px;border:1px solid #D9D6CC;background:#fff;color:#4A5561;border-radius:10px;font:600 14px 'Inter',sans-serif;cursor:pointer;padding:0 6px;white-space:nowrap}
.calc .seg[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.calc .seg:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.calc .res{background:var(--accent);color:#fff;border-radius:18px;padding:18px 20px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow)}
.calc .res .kick{font-size:14px;font-weight:600;opacity:.9}
.calc .res .num{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:2px 0 4px;position:relative;isolation:isolate}
.calc .res .big{font-size:clamp(50px,13vw,64px);line-height:1;font-weight:900;letter-spacing:-.03em}
.calc .res .per{font-size:18px;font-weight:700;opacity:.9}
.calc .tiles{display:flex;gap:10px;margin-top:6px}
.calc .tile{flex:1;min-width:0;background:rgba(255,255,255,.18);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.calc .tile .k{font-size:12px;font-weight:700;opacity:.9}
.calc .tile .v{font-size:clamp(22px,6.5vw,30px);line-height:1.05;font-weight:900;letter-spacing:-.02em;white-space:nowrap}
.calc .tile .v.long{font-size:clamp(18px,5.2vw,24px)}

.calc .care{border:2px solid var(--accent);gap:10px}
.calc .care .head{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:800}
.calc .care .cmp{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.calc .care .k{font-size:11px;font-weight:600;color:var(--muted)}
.calc .care .k.on{color:var(--accent);font-weight:700}
.calc .care .n{font-size:22px;font-weight:800;color:#4A5561}
.calc .care .n.on{font-size:30px;line-height:1;color:var(--accent)}
.calc .muted{font-size:13px;color:var(--muted);line-height:1.45}
.calc .pierow{display:flex;align-items:center;gap:16px}
.calc .pie{width:108px;height:108px;flex-shrink:0}
.calc .pl{display:flex;align-items:center;gap:10px}
.calc .pl .k{font-size:12px;color:var(--muted)}
.calc .pl .v{font-size:17px;font-weight:800}
.calc .dot{width:12px;height:12px;border-radius:50%;background:var(--accent);flex-shrink:0}
.calc .dot.alt{background:var(--compare)}
.calc .pieside{display:flex;flex-direction:column;gap:10px;min-width:0;flex:1}
.calc .ioverdict{font-size:14px;line-height:1.4;padding-top:6px;border-top:1px solid var(--border)}

/* fire effect on the headline number (from the original estimator) */
.flamebox{position:relative;display:inline-block}
.big.fire{position:relative;z-index:2;color:transparent;-webkit-background-clip:text;background-clip:text;
  background-image:linear-gradient(0deg,#FFFBEA 0%,#FFE680 30%,#FFB13B 60%,#FF7A1A 85%,#FFC861 100%);
  background-size:100% 260%;background-position:50% 100%;animation:fireShift 1.4s ease-in-out infinite alternate;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)) drop-shadow(0 0 8px rgba(255,150,40,.55))}
.flames{position:absolute;left:-4%;right:-4%;bottom:-14px;height:95%;pointer-events:none;z-index:1}
.flames span{position:absolute;bottom:0;width:26%;height:95%;border-radius:50% 50% 45% 45%/60% 60% 40% 40%;
  background:radial-gradient(ellipse at 50% 100%,rgba(255,210,70,.95) 0%,rgba(255,120,20,.75) 35%,rgba(255,40,0,.35) 65%,rgba(255,40,0,0) 80%);
  filter:blur(10px);transform-origin:50% 100%;animation:flicker 1.1s ease-in-out infinite alternate;mix-blend-mode:screen;opacity:.7}
.flames span:nth-child(1){left:2%;animation-duration:1.05s}
.flames span:nth-child(2){left:22%;height:110%;animation-duration:.85s;animation-delay:-.3s}
.flames span:nth-child(3){left:42%;animation-duration:1.25s;animation-delay:-.6s}
.flames span:nth-child(4){left:60%;height:105%;animation-duration:.95s;animation-delay:-.15s}
.flames span:nth-child(5){left:76%;width:22%;animation-duration:1.15s;animation-delay:-.45s}
@keyframes fireShift{0%{background-position:50% 100%}50%{background-position:50% 40%}100%{background-position:50% 75%}}
@keyframes flicker{0%{transform:scaleY(.85) translateY(4px);opacity:.5}40%{transform:scaleY(1.08) scaleX(.92) translateY(-6px);opacity:.7}70%{transform:scaleY(.95) scaleX(1.05) translateY(-2px);opacity:.55}100%{transform:scaleY(1.15) scaleX(.9) translateY(-10px);opacity:.75}}
@media (prefers-reduced-motion: reduce){.big.fire,.flames span{animation:none}}

/* CTA + lead form */
.cta{display:flex;flex-direction:column;gap:14px}
.cta .card{gap:12px}
.calc-foot{font-size:12px;color:var(--faint);line-height:1.5;padding:0 2px}
#leadCard{scroll-margin-top:86px}
.lead-head h3{font-size:1.35rem}
.lead-head p{color:var(--muted);font-size:.95rem;margin:6px 0 0}
.field{margin-bottom:14px}
.field label{display:block;font-size:.9rem;font-weight:600;margin-bottom:6px}
.req{color:var(--accent)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:560px){.grid2{grid-template-columns:1fr;gap:0}}
.field input,.field select{width:100%;font-family:inherit;font-size:1rem;color:var(--ink);padding:12px 14px;border:1.5px solid var(--border);border-radius:12px;background:#FCFBF9;appearance:none}
.field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235C6B74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:42px}
.field input:focus,.field select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.consent{display:flex;gap:12px;align-items:flex-start;margin:2px 0 12px;padding:12px;background:var(--bg);border:1px solid var(--border);border-radius:12px}
.consent input{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:var(--accent);cursor:pointer}
.consent label{font-size:.8rem;color:var(--muted);line-height:1.5;cursor:pointer}
.form-note{font-size:.78rem;color:var(--muted);line-height:1.5;margin:12px 0 0;text-align:center}
.or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.85rem;margin:4px 0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--border)}
.sent{display:flex;gap:12px;align-items:flex-start}
.badge{width:44px;height:44px;border-radius:999px;background:var(--accent-soft);display:grid;place-items:center;flex:none}
.badge svg{width:22px;height:22px;color:var(--accent)}
.sent h3{font-size:1.25rem}
.sent p{margin:4px 0 0;color:var(--muted);font-size:.95rem}

/* Disclosures */
details.disc{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px 16px}
details.disc summary{cursor:pointer;font-weight:600;font-size:.9rem;color:var(--ink)}
details.disc p{font-size:.78rem;line-height:1.5;color:var(--muted);margin:10px 0 0}

/* Booking section */
.book-section{padding:44px 0 8px;scroll-margin-top:80px}
.book-card{background:var(--surface);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow);overflow:hidden;max-width:900px;margin:0 auto}
.book-head{padding:30px 30px 8px;text-align:center}
.book-head h2{font-size:clamp(1.55rem,3.6vw,2.2rem);max-width:24ch;margin:0 auto}
.book-head p{color:var(--muted);margin:10px auto 0;max-width:52ch;font-size:1rem}
.book-frame{padding:8px 12px 18px}
.book-frame iframe{width:100%;min-height:720px;border:0;overflow:hidden;display:block}

/* Footer */
footer.foot{margin-top:64px;background:#1B2A31;color:#C6D2D6;padding:44px 0 40px}
footer.foot .fb{font-family:'Fraunces',serif;font-size:1.2rem;color:#fff;margin-bottom:14px}
footer.foot .disclaimer{font-size:.82rem;line-height:1.65;color:#93A4AB;max-width:75ch}
footer.foot .disclaimer strong{color:#C6D2D6}
footer.foot .links{margin:22px 0 0;display:flex;flex-wrap:wrap;gap:8px 22px;font-size:.85rem}
footer.foot .links a{color:#AFC0C5;text-decoration:none}
footer.foot .links a:hover{color:#fff;text-decoration:underline}
footer.foot .copy{margin-top:22px;font-size:.8rem;color:#7B8D93;border-top:1px solid rgba(255,255,255,.08);padding-top:20px}

/* Booked page */
.booked{padding:44px 0 8px}
.booked .narrow{max-width:760px;margin:0 auto}
.confirm-card{background:var(--surface);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow);padding:34px 30px;text-align:center}
.confirm-card .badge{width:64px;height:64px;margin:0 auto 16px}
.confirm-card .badge svg{width:32px;height:32px}
.confirm-card h1{font-size:clamp(1.9rem,4.4vw,2.6rem)}
.when{margin:20px auto 6px;display:inline-flex;flex-direction:column;gap:4px;background:var(--accent-soft);border-radius:16px;padding:16px 26px}
.when .d{font-family:'Fraunces',serif;font-size:clamp(1.3rem,3.4vw,1.7rem);font-weight:600;color:var(--accent-dark)}
.when .t{font-size:1.05rem;font-weight:600}
.confirm-card p{color:var(--muted);margin:12px auto 0;max-width:50ch;font-size:1rem}
.bonus{margin-top:40px;text-align:center}
.bonus .eyebrow{margin-bottom:14px}
.bonus h2{font-size:clamp(1.5rem,3.6vw,2.1rem);max-width:24ch;margin:0 auto}
.bonus .lead{color:var(--muted);margin:12px auto 0;max-width:54ch}
.bonus img.book{display:block;width:min(340px,80%);height:auto;margin:26px auto 8px}
.bonus .dl{max-width:360px;margin:8px auto 0}
.video-frame{position:relative;width:100%;aspect-ratio:16/9;background:linear-gradient(160deg,#16333A,#0F5A50);border-radius:20px;overflow:hidden;box-shadow:var(--shadow);margin-top:30px}
.video-frame video{position:absolute;inset:0;width:100%;height:100%;display:block;background:#0F2A2E}
.video-caption{text-align:center;color:var(--muted);font-size:.92rem;margin-top:12px}
.return{max-width:420px;margin:30px auto 0}

@media(max-width:560px){
  body{font-size:17px}
  .wrap{padding:0 16px}
  .calc .segs{width:62%}
  .book-head{padding:24px 18px 4px}
  .book-frame{padding:4px 4px 12px}
  .confirm-card{padding:28px 18px}
}

/* ===== Single-column calculator layout (Marc's original estimator) ===== */
.calc-page{max-width:480px;margin:0 auto;padding:22px 16px 8px;scroll-margin-top:80px}
.calc.single{display:flex;flex-direction:column!important;align-items:stretch!important;gap:14px}
.calc.single > *{order:0!important}
.calc-head{display:flex;flex-direction:column;gap:6px;padding:6px 2px 2px}
.calc-eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.calc-head h1{font-size:clamp(1.55rem,6vw,1.95rem);line-height:1.15;text-wrap:balance}
.calc-sub{font-size:14px;color:var(--muted);line-height:1.4}
.pdfbtn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:50px;border:1px solid #D9D6CC;background:#fff;color:#4A5561;border-radius:14px;font:700 15px 'Inter',sans-serif;cursor:pointer}
.pdfbtn:hover{border-color:var(--accent);color:var(--accent)}
.pdfbtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.calc.single .btn{border-radius:14px}

/* ===== Share ===== */
.share{display:flex;flex-direction:column;gap:10px}
.share-panel{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.share-panel[hidden]{display:none!important}
.share-opt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;padding:10px 6px;border:1px solid #D9D6CC;background:#fff;border-radius:12px;color:#4A5561;font:600 13px 'Inter',sans-serif;text-decoration:none;cursor:pointer}
.share-opt:hover{border-color:var(--accent);color:var(--accent)}
.share-opt svg{width:22px;height:22px}

/* ===== Bigger slider handles (about 2.5x the browser default) ===== */
.calc input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:46px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y;--p:50%}
.calc input[type=range]:focus{outline:none}
.calc input[type=range]::-webkit-slider-runnable-track{height:10px;border-radius:999px;background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--p),#E3E0D8 var(--p),#E3E0D8 100%)}
.calc input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:40px;height:40px;margin-top:-15px;border-radius:50%;background:var(--accent);border:4px solid #fff;box-shadow:0 2px 8px rgba(15,50,55,.35)}
.calc input[type=range]:active::-webkit-slider-thumb{transform:scale(1.08)}
.calc input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px var(--accent-soft),0 2px 8px rgba(15,50,55,.35)}
.calc input[type=range]::-moz-range-track{height:10px;border-radius:999px;background:#E3E0D8}
.calc input[type=range]::-moz-range-progress{height:10px;border-radius:999px;background:var(--accent)}
.calc input[type=range]::-moz-range-thumb{width:32px;height:32px;border-radius:50%;background:var(--accent);border:4px solid #fff;box-shadow:0 2px 8px rgba(15,50,55,.35)}
.calc input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px var(--accent-soft),0 2px 8px rgba(15,50,55,.35)}
.calc .cf{gap:6px}

/* ===== "Free Calculator" header with down arrow ===== */
.calc-head.free-calc{align-items:center;text-align:center;gap:4px;padding:4px 0 0}
.calc-head.free-calc h1{font-size:clamp(1.9rem,8vw,2.4rem);color:var(--accent)}
.down-arrow{width:40px;height:40px;color:var(--accent);animation:nudge 1.6s ease-in-out infinite}
@keyframes nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}
@media (prefers-reduced-motion: reduce){.down-arrow{animation:none}}
.book-link{display:block}
.fc-row{display:flex;align-items:center;justify-content:center;gap:12px}
.fc-row .down-arrow{width:34px;height:34px;flex:none}
@media(max-width:360px){.fc-row{gap:6px}.fc-row .down-arrow{width:26px;height:26px}}

/* ===== Gold "Free Calculator" header (boss's mockup) ===== */
.fc-row{gap:8px;width:100%}
.gold-title{font-family:'Inter',sans-serif!important;font-weight:900;font-size:clamp(2.15rem,10.4vw,3.1rem);line-height:1.05;letter-spacing:-.04em;white-space:nowrap;
  color:transparent;background:linear-gradient(180deg,#FFF6B0 0%,#FFE14A 32%,#FFC812 60%,#F29A00 100%);-webkit-background-clip:text;background-clip:text;
  -webkit-text-stroke:1.3px #9A4F00;filter:drop-shadow(0 1px 0 #9A4F00) drop-shadow(0 0 10px rgba(255,170,30,.55)) drop-shadow(0 2px 6px rgba(150,80,0,.35));padding:4px 2px}
.gold-arrow{flex:none;width:clamp(30px,8.5vw,42px);height:auto;filter:drop-shadow(0 0 8px rgba(255,170,30,.55)) drop-shadow(0 2px 3px rgba(150,80,0,.35));animation:nudge 1.6s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){.gold-arrow{animation:none}}
.calc-head.free-calc h1.gold-title{color:transparent;-webkit-text-fill-color:transparent;font-size:clamp(2.2rem,10.6vw,3.2rem)}
.gold-arrow{width:clamp(34px,10vw,48px)}
.calc-head.free-calc h1.gold-title{text-wrap:nowrap;white-space:nowrap;font-size:clamp(1.85rem,8.7vw,3.2rem);letter-spacing:-.045em}
.fc-row{gap:6px;flex-wrap:nowrap}
.gold-arrow{width:clamp(30px,8.6vw,48px)}
/* Outline drawn with stacked drop-shadows (outer edge only) instead of text-stroke,
   which traced the font's internal overlaps and put a line through the "e". */
.calc-head.free-calc h1.gold-title{-webkit-text-stroke:0;
  filter:drop-shadow(1.2px 0 0 #9A4F00) drop-shadow(-1.2px 0 0 #9A4F00) drop-shadow(0 1.2px 0 #9A4F00) drop-shadow(0 -1.2px 0 #9A4F00)
         drop-shadow(0 2px 0 #7A3E00) drop-shadow(0 0 10px rgba(255,170,30,.55))}

/* ===== In-page PDF preview ===== */
.pdf-modal{position:fixed;inset:0;z-index:100;background:rgba(20,30,35,.6);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px}
.pdf-modal[hidden]{display:none!important}
.pdf-sheet{background:var(--surface);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.4);width:100%;max-width:860px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden}
.pdf-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--border)}
.pdf-head h2{font-size:1.2rem}
.pdf-close{flex:none;width:40px;height:40px;border-radius:999px;border:1px solid var(--border);background:var(--bg);color:var(--muted);display:grid;place-items:center;cursor:pointer}
.pdf-close svg{width:20px;height:20px}
.pdf-close:hover{border-color:var(--accent);color:var(--accent)}
.pdf-body{flex:1;min-height:0;overflow:auto;background:#E9E6DF;padding:12px;-webkit-overflow-scrolling:touch}
.pdf-frame{display:block;width:100%;height:72vh;border:0;background:#fff;border-radius:6px}
.pdf-page{position:relative;margin:0 auto;box-shadow:0 2px 10px rgba(0,0,0,.18);background:#fff;width:max-content;max-width:100%}
.pdf-page canvas{display:block}
.pdf-cta-hit{position:absolute;display:block;border-radius:12px}
.pdf-cta-hit:focus-visible{outline:3px solid #FFD21F;outline-offset:2px}
.pdf-loading{padding:60px 20px;text-align:center;color:var(--muted)}
.pdf-actions{display:flex;gap:10px;padding:12px 16px;border-top:1px solid var(--border);background:var(--surface)}
.pdf-actions .btn{flex:1;padding:13px 16px;font-size:1rem}
@media(max-width:560px){.pdf-modal{padding:8px}.pdf-sheet{max-height:calc(100dvh - 16px)}.pdf-body{padding:8px}.pdf-actions{flex-direction:column}}
