/* Shared styles for checkout, thank-you and legal pages. Tokens and measurements ported from mockups f-checkout / f-upsell. */
:root{
  --night:#060708; --ink:#111317; --paper:#FFFFFF; --mist:#F4F6F9; --line:#E3E7EE; --line-2:#CDD3DC;
  --grey:#7C828D; --grey-2:#5A606A; --accent:#4C8DFF; --accent-tint:#E8F0FF; --warn:#9A3412; --warn-tint:#FFF1E8;
  --display:"Inter Tight","Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --text:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:"Geist Mono",ui-monospace,"SF Mono",Menlo,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;background:var(--mist)}
body{font-family:var(--text);font-size:16px;line-height:1.5;color:var(--ink);background:var(--mist);overflow-x:hidden}
a{color:inherit}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* 3D book: every cover on the site, the same book as the ad creatives (ads/property-launch/src/book3d.css).
   Markup (book3d() in site/pages/shell.ts, Shop.book() in js/common.js): .b3d > .b3d-sh + .b3d-bk > (.b3d-bc back, .b3d-sp spine, .b3d-p pages, .b3d-f front).
   Front and spine each hold an <img> of the cover, so lazy loading and intrinsic sizes still work; the wrapper carries role="img" and the name.
   Size: --bw (width). Turn: --ry (24deg shows the spine on the left). Depth is 9% of width; every length scales with --bw so thumbnails keep the look.
   Class names are prefixed because the pages already use .sh and .book for other things. */
@property --ry{syntax:"<angle>";inherits:true;initial-value:24deg}
.b3d{--bw:112px;--ry:24deg;--d:calc(var(--bw) * .09);--rr:max(2px,calc(var(--bw) * .035));position:relative;display:block;flex:0 0 auto;width:var(--bw);height:calc(var(--bw) * 1.25);perspective:calc(var(--bw) * 4.8);isolation:isolate}
.b3d-bk{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateY(var(--ry)) rotateX(2deg)}
.b3d-bk>span{position:absolute;display:block;backface-visibility:visible;overflow:hidden}
.b3d-bk img{display:block;width:100%;height:100%;object-fit:cover;object-position:left center}
.b3d-f{inset:0;background:#1a1c20;border-radius:1px var(--rr) var(--rr) 1px;transform:translateZ(calc(var(--d) / 2))}
.b3d-f img{object-position:center}
.b3d-f::before{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;
  background:linear-gradient(90deg,rgba(0,0,0,.38) 0,rgba(255,255,255,.22) 1.6%,rgba(0,0,0,.18) 3.2%,transparent 6%),
             linear-gradient(115deg,rgba(255,255,255,.18) 0,rgba(255,255,255,0) 38%,rgba(0,0,0,.10) 100%)}
.b3d-bc{inset:0;background:#1a1c20;border-radius:1px var(--rr) var(--rr) 1px;transform:translateZ(calc(var(--d) / -2))}
.b3d-sp{top:0;bottom:0;left:0;width:var(--d);background:#1a1c20;transform-origin:left center;transform:translateZ(calc(var(--d) / 2)) rotateY(90deg);filter:brightness(.62)}
.b3d-sp::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.35),rgba(255,255,255,.12) 45%,rgba(0,0,0,.4))}
.b3d-p{top:1%;bottom:1%;left:calc(100% - var(--bw) * .006);width:calc(var(--d) * .91);transform-origin:left center;transform:translateZ(calc(var(--d) / 2 - var(--bw) * .004)) rotateY(90deg);
  background:linear-gradient(90deg,rgba(0,0,0,.18),transparent 30%,rgba(0,0,0,.12)),repeating-linear-gradient(90deg,#f6f3ec 0 2px,#ddd8cc 2px 3px)}
.b3d-sh{position:absolute;left:-2%;right:-14%;bottom:-6%;height:14%;z-index:-1;background:radial-gradient(closest-side,rgba(0,0,0,.5),transparent);filter:blur(calc(var(--bw) * .028))}

.bar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;padding-top:env(safe-area-inset-top,0px);background:var(--night);color:#fff}
.logo{font-family:var(--display);font-weight:500;font-size:17px;letter-spacing:-.02em;display:flex;align-items:center;gap:8px;text-decoration:none}
.logo i{width:14px;height:14px;border-radius:3px;background:#fff;box-shadow:5px 5px 0 -1px var(--accent)}
.bar .logo{color:#fff}
.label{font-family:var(--mono);font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--grey);display:flex;align-items:center;gap:8px}
.bar .label{color:rgba(255,255,255,.6)}
.label::before{content:"";width:6px;height:6px;background:var(--accent)}

main{padding:20px 16px 28px;display:flex;flex-direction:column;gap:14px}
h2{font-family:var(--display);font-weight:400;font-size:24px;line-height:1.15;letter-spacing:-.03em;margin-top:10px}
.fine{font-size:13px;color:var(--grey);text-align:center;line-height:1.5}
.fine b{font-weight:500;color:var(--ink)}
.fine a,.note a{color:var(--grey-2)}

.foot{padding:18px 16px calc(24px + env(safe-area-inset-bottom,0px));font-size:12.5px;line-height:1.5;color:var(--grey);display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line)}
.foot nav{display:flex;flex-wrap:wrap;gap:4px 14px}
.foot a{color:var(--grey-2)}

/* messages */
.msg{background:var(--paper);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:8px;box-shadow:0 1px 2px rgba(17,19,23,.06),0 10px 28px rgba(17,19,23,.08)}
.msg b{font-weight:500}
.msg p{font-size:14.5px;color:var(--grey-2)}
.err{font-size:14px;color:var(--warn);background:var(--warn-tint);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.btn{height:54px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-family:var(--text);font-size:16px;font-weight:500;letter-spacing:-.01em;border:1.5px solid var(--ink);cursor:pointer;text-decoration:none;width:100%;padding:0 18px;background:transparent;color:var(--ink)}
.btn.yes{background:var(--ink);color:#fff}
.btn.sm{height:44px;font-size:15px;width:auto;flex:1}
.btn:disabled{opacity:.55;cursor:default}
.err .btn{height:44px;width:auto;font-size:15px}

/* shared with thank-you */
.or{display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:400;color:var(--grey)}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.stripe-slot{min-height:0}
.pe-skel{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}
.pe-skel[hidden]{display:none}
.pe-skel .sk-note{font-size:13px;color:var(--grey);margin-bottom:4px}
.pe-skel .sk-l,.pe-skel .sk-f{display:block;border-radius:6px;background:linear-gradient(90deg,#EEF0F3 0%,#F7F8FA 50%,#EEF0F3 100%);background-size:200% 100%;animation:sk 1.2s ease-in-out infinite}
.pe-skel .sk-l{width:30%;height:12px;margin-top:6px}
.pe-skel .sk-f{height:44px}
.pe-skel .sk-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@keyframes sk{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media (prefers-reduced-motion:reduce){.pe-skel .sk-l,.pe-skel .sk-f{animation:none}}
.pay{margin-top:6px;height:54px;border:0;border-radius:999px;background:var(--ink);color:#fff;font-family:var(--text);font-size:16.5px;font-weight:500;letter-spacing:-.01em;width:100%;cursor:pointer;font-variant-numeric:tabular-nums}
.pay:disabled{opacity:.55;cursor:default}

/* thank-you */
.top{background:var(--night);color:#fff;padding:0 16px 22px}
.top .bar{padding:0;padding-top:env(safe-area-inset-top,0px)}
.top .label{color:rgba(255,255,255,.62);margin-top:8px}
h1{font-family:var(--display);font-weight:400;font-size:32px;line-height:1.1;letter-spacing:-.03em;margin-top:8px}
.top p.sub{font-size:15px;color:rgba(255,255,255,.64);margin-top:4px}
.thanks main{padding:24px 16px 28px}
.thanks h2{font-size:26px;line-height:1.14;color:var(--grey);margin-top:0}
.thanks h2 b{font-weight:400;color:var(--ink)}
#payBox{display:flex;flex-direction:column;gap:14px}

/* legal */
.legal main{max-width:680px;margin:0 auto;width:100%;gap:12px}
.legal h1{font-size:30px;margin:6px 0 0;color:var(--ink)}
.legal h2{font-size:19px;margin-top:14px;letter-spacing:-.02em}
.legal p,.legal li{font-size:15px;color:var(--grey-2)}
.legal ul{padding-left:20px;display:flex;flex-direction:column;gap:6px}
.legal a{color:var(--ink)}
.draft{background:var(--warn-tint);color:var(--warn);border:1px solid #F3C7A8;border-radius:10px;padding:10px 12px;font-size:14px}
.legal .bar{justify-content:flex-start}

/* checkout, direction B: cover stage, order cards, sticky pay bar. Scoped so thank-you and legal stay as they are. */
body.checkout{background:var(--mist)}
html:has(body.checkout){scroll-padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))}
.checkout main{padding:0;gap:0}
.checkout #loading,.checkout #fatal{margin:20px 16px}
.checkout #form{gap:0}
.checkout .stage{position:relative;height:228px;background:var(--night);overflow:hidden}
.checkout .stage::before{content:"";position:absolute;inset:0;background:radial-gradient(90% 80% at 50% 110%,rgba(76,141,255,.28),transparent 62%)}
.checkout .stage>.b3d{position:absolute;left:50%;top:26px;--bw:112px;transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .3s,--ry .45s cubic-bezier(.2,.8,.2,1)}
.checkout .under{background:var(--night);color:#fff;padding:0 18px 22px;text-align:center}
.checkout .under h1{font-family:var(--display);font-weight:400;font-size:22px;line-height:1.12;letter-spacing:-.025em;margin:0}
.checkout .under p{margin:6px auto 0;max-width:300px;font-size:13.5px;line-height:1.45;color:rgba(255,255,255,.66)}
.checkout .sec{padding:22px 16px 0;display:flex;flex-direction:column;gap:12px}
.checkout .sec>h2{font-family:var(--display);font-weight:500;font-size:17px;letter-spacing:-.02em;margin:0}
.checkout .sec>label.l{font-size:13.5px;color:#30313D}
.checkout .pick{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.checkout .card{position:relative;background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:14px 13px 13px;cursor:pointer;display:flex;flex-direction:column;gap:2px;min-height:112px;transition:border-color .15s}
.checkout .card input{position:absolute;opacity:0;pointer-events:none}
.checkout .card.on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.checkout .card:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.checkout .card b{font-weight:500;font-size:15px}
.checkout .card .p{font-family:var(--display);font-weight:500;font-size:26px;letter-spacing:-.03em;margin-top:auto;font-variant-numeric:tabular-nums}
.checkout .card small{font-size:12.5px;line-height:1.35;color:var(--grey-2)}
.checkout .card .chip{position:absolute;top:-10px;right:10px;font-family:var(--text);font-size:11.5px;font-weight:500;letter-spacing:0;text-transform:none;color:#fff;background:var(--accent);border-radius:999px;padding:2px 9px}
.checkout .bump{display:grid;grid-template-columns:auto 34px 1fr;gap:12px;align-items:center;background:#fff;border:1.5px dashed var(--line-2);border-radius:14px;padding:12px 13px;cursor:pointer}
.checkout .bump.on{border-style:solid;border-color:var(--ink)}
.checkout .bump:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.checkout .bump input{width:20px;height:20px;accent-color:var(--ink);margin:0}
.checkout .bump .b3d{--bw:32px;margin-left:2px}
.checkout .bump .b3d[hidden]{display:block!important;visibility:hidden}
.checkout .bump b{font-weight:500;font-size:14.5px;display:block}
.checkout .bump small{display:block;font-size:12.5px;color:var(--grey-2);margin-top:0}
.checkout .inp{height:48px;border:1px solid var(--line-2);border-radius:8px;background:#fff;padding:0 12px;font-size:16px;color:var(--ink);width:100%;font-family:var(--text)}
.checkout .inp::placeholder{color:#A3A9B3}
.checkout .inp:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint)}
.checkout .or{font-size:13px;color:var(--grey);margin:2px 0}
.checkout .keep{font-size:13px;line-height:1.5;color:var(--grey-2)}
.checkout .keep b{font-weight:500;color:var(--ink)}
.checkout .small-print{margin:18px 16px 0;padding-top:14px;border-top:1px solid var(--line);font-size:12px;line-height:1.55;color:var(--grey)}
.checkout .small-print a{color:var(--grey-2)}
.checkout .err{margin:0}
.checkout .paybar{position:sticky;bottom:0;z-index:4;margin-top:22px;padding:10px 16px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--line);display:flex;align-items:center;gap:14px}
/* only where an on-screen keyboard can cover it: desktop and hardware-keyboard users keep Pay in view */
@media (pointer:coarse){.checkout.typing .paybar{visibility:hidden;pointer-events:none}}
.checkout .paybar .tot{display:flex;flex-direction:column;line-height:1.15}
.checkout .paybar .tot small{font-size:12px;color:var(--grey)}
.checkout .paybar .tot b{font-family:var(--display);font-weight:500;font-size:22px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.checkout .pill{flex:1;height:52px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-family:var(--text);font-size:16px;font-weight:500;letter-spacing:-.01em;border:1.5px solid var(--ink);background:var(--ink);color:#fff;cursor:pointer;font-variant-numeric:tabular-nums}
.checkout .pill:disabled{opacity:.55;cursor:default}
.checkout .foot{margin-top:0}
@media (prefers-reduced-motion:reduce){.checkout .stage>.b3d{transition:none}}

/* thanks, direction C: deal-order offer and start-card downloads. Scoped so checkout and legal stay as they are. */
body.thanks{--ok:#1F7A4D;--ok-tint:#E7F5EC}
html:has(body.thanks.flow){background:var(--paper)}
.thanks.flow{background:var(--paper)}
.thanks.flow .top{padding:0}
.thanks.flow .top .bar{padding:0 16px;padding-top:env(safe-area-inset-top,0px)}
.thanks.flow .top .label,.thanks.flow .top .sub{display:none}
.thanks.flow .top h1{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.thanks.notice main{padding:24px 0 28px}
.thanks.notice .msg{margin:0 16px}
.thanks.flow main{padding:0 0 28px;gap:0}
.thanks .cv{display:block;flex:0 0 auto;width:36px;height:45px}
.thanks .cv.blank{border-radius:3px;background:var(--night)}
.thanks .b3d.cv{--bw:33px;width:var(--bw);height:calc(var(--bw) * 1.25);margin-left:2px}
.thanks .b3d.cv.big{--bw:88px;margin-left:3px}
.thanks .cv.blank.big{width:92px;height:115px;border-radius:6px}
.thanks .pill{height:52px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;font-family:var(--text);font-size:16px;font-weight:500;letter-spacing:-.01em;border:1.5px solid var(--ink);background:transparent;color:var(--ink);text-decoration:none;cursor:pointer;padding:0 18px}
.thanks .pill.solid{background:var(--ink);color:#fff}
.thanks .pill.white{background:#fff;border-color:#fff;color:var(--ink)}
.thanks .pill:disabled{opacity:.55;cursor:default}
.thanks .paid{margin:16px 16px 0;font-size:13.5px;color:var(--grey-2);display:flex;gap:8px;align-items:center}
.thanks .paid svg{width:16px;height:16px;flex:0 0 auto;color:var(--ok)}
.thanks .paid b{color:var(--ink);font-weight:500}
.thanks .ask{padding:14px 18px 0}
.thanks .ask h2{font-family:var(--display);font-weight:400;font-size:27px;line-height:1.08;letter-spacing:-.03em;color:var(--ink)}
.thanks .ask p{margin-top:8px;font-size:14.5px;line-height:1.5;color:var(--grey-2)}
.thanks .path{padding:18px 16px 0}
.thanks .stage-row{position:relative;display:grid;grid-template-columns:36px 1fr;gap:12px;padding-bottom:16px}
.thanks .stage-row::before{content:"";position:absolute;left:17px;top:46px;bottom:0;width:1.5px;background:var(--line)}
.thanks .stage-row:last-child::before{display:none}
.thanks .stage-row i,.thanks .fl i{font-style:normal;font-size:12px;color:var(--grey);display:block}
.thanks .stage-row b{font-weight:500;font-size:14.5px;line-height:1.3;display:block;margin-top:1px}
.thanks .stage-row small{display:block;margin-top:2px;font-size:13px;line-height:1.4;color:var(--grey-2)}
.thanks .stage-row.own .cv{opacity:.45}
.thanks .stage-row.own b,.thanks .stage-row.own i{color:var(--grey)}
.thanks .stage-row small.have{color:var(--ok);font-weight:500}
.thanks .price{margin:4px 16px 0;padding:12px 14px;border-radius:12px;background:var(--mist);display:flex;justify-content:space-between;align-items:baseline;font-size:13.5px;color:var(--grey-2)}
.thanks .price b{font-family:var(--display);font-weight:500;font-size:20px;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.thanks .choose{padding:18px 16px 0;display:grid;gap:10px}
.thanks .choose .fine{margin-top:2px}
.thanks .offer{display:block}
.thanks #payBox{padding:22px 16px 0}
.thanks #payBox h2{font-size:24px;color:var(--ink)}
.thanks .done{margin:16px 16px 0;background:var(--ok-tint);color:var(--ok);border-radius:10px;padding:11px 14px;font-size:14px;font-weight:500;display:flex;gap:8px;align-items:center}
.thanks .done svg{width:16px;height:16px;flex:0 0 auto}
.thanks #dl{display:block}
.thanks .start{margin:14px 16px 0;background:var(--night);color:#fff;border-radius:18px;padding:18px;position:relative;overflow:hidden}
.thanks .start::before{content:"";position:absolute;inset:0;background:radial-gradient(80% 70% at 100% 0%,rgba(76,141,255,.3),transparent 60%)}
.thanks .start>*{position:relative}
.thanks .start .hd{display:grid;grid-template-columns:92px 1fr;gap:14px;align-items:start}
.thanks .start .hd i{font-style:normal;font-size:13px;color:#9BBEFF}
.thanks .start h2{font-family:var(--display);font-weight:400;font-size:21px;line-height:1.12;letter-spacing:-.025em;margin-top:4px;color:#fff}
.thanks .start p{margin-top:14px;font-size:14px;line-height:1.5;color:rgba(255,255,255,.72)}
.thanks .start p b{color:#fff;font-weight:500}
.thanks .start .pill{margin-top:16px}
.thanks .start .save{display:block;text-align:center;margin-top:0;padding:15px 0;font-size:14px;color:rgba(255,255,255,.7);text-decoration:underline;text-underline-offset:3px}
.thanks .rest{padding:26px 16px 0}
.thanks .rest h3{font-family:var(--display);font-weight:500;font-size:17px;letter-spacing:-.02em;margin-bottom:4px}
.thanks .rest>p{font-size:13px;color:var(--grey-2);margin-bottom:6px}
.thanks .fl{display:grid;grid-template-columns:36px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.thanks .fl b{font-weight:500;font-size:14px;line-height:1.3;display:block}
.thanks .fl .acts{display:flex;flex-direction:column;align-items:flex-end;gap:0}
.thanks .fl .open{min-height:44px;padding:0 16px;justify-content:center;border-radius:999px;border:1.5px solid var(--ink);font-size:13.5px;font-weight:500;display:inline-flex;align-items:center;text-decoration:none}
.thanks .fl .save{display:inline-block;line-height:1;padding:0 0 32px 8px;margin:0 0 -12px;font-size:12.5px;color:var(--grey-2);text-decoration:underline;text-underline-offset:3px}
.thanks .notes{padding:22px 16px 0;display:grid;gap:12px;font-size:14px;line-height:1.5;color:var(--grey-2)}
.thanks .notes .limits{font-family:var(--mono);font-size:11.5px;color:var(--grey)}
.thanks .notes .hint{background:var(--mist);border-radius:10px;padding:11px 13px;font-size:13px}
.thanks.flow .msg{margin:16px}
