/* PACT - Stripe design system. Light fintech, Inter, blurple accent, navy ink.
   Angled gradient hero, product card, zigzag feature rows, data table. Distinct structure. */

:root{
  --bg:#ffffff; --soft:#f6f9fc; --soft2:#eef3f8;
  --navy:#0a2540; --slate:#425466; --mut:#697386; --faint:#8792a2;
  --line:#e6ebf1; --line2:#dfe6ef;
  --blurple:#635bff; --blurple-d:#5546d6; --blurple-soft:#f0effe;
  --green:#10b981; --green-soft:#e7f8f1; --amber:#b9770b; --amber-soft:#fdf3e1; --red:#df1b41; --red-soft:#fdeef1;
  --fm:"SF Mono",ui-monospace,"JetBrains Mono",monospace;
  --shadow-s:0 1px 2px rgba(10,37,64,.06),0 2px 6px rgba(10,37,64,.04);
  --shadow-m:0 4px 12px rgba(10,37,64,.08),0 12px 28px rgba(10,37,64,.06);
  --shadow-l:0 20px 50px -16px rgba(10,37,64,.22);
  --maxw:1600px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--slate);font-family:"Inter",system-ui,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;font-feature-settings:"cv02","cv03","cv04","ss01"}
h1,h2,h3,h4{color:var(--navy);letter-spacing:-.02em;line-height:1.1;text-wrap:balance}
a{color:var(--blurple);text-decoration:none}
.mono{font-family:var(--fm);font-variant-numeric:tabular-nums}
.eyebrow{display:inline-block;font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--blurple);margin-bottom:14px}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:8px;font-family:inherit;font-weight:600;font-size:15px;border:none;cursor:pointer;border-radius:999px;padding:10px 18px;transition:transform .15s ease-out,box-shadow .15s ease-out,background .15s ease-out;white-space:nowrap}
.btn i{font-size:16px}
.btn.lg{padding:14px 26px;font-size:16px}
.btn.sm{padding:8px 15px;font-size:14px}
.btn.primary{background:var(--blurple);color:#fff;box-shadow:var(--shadow-s)}
.btn.primary:hover{background:var(--blurple-d);transform:translateY(-1px);box-shadow:var(--shadow-m)}
.btn.outline{background:#fff;color:var(--navy);border:1px solid var(--line2);box-shadow:var(--shadow-s)}
.btn.outline:hover{border-color:var(--blurple);color:var(--blurple);transform:translateY(-1px)}
.btn.ghost{background:transparent;color:var(--navy);padding:8px 12px}
.btn.ghost:hover{color:var(--blurple)}
.btn.light{background:#fff;color:var(--blurple);box-shadow:var(--shadow-m)}
.btn.light:hover{transform:translateY(-1px)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.icon-btn{background:var(--soft);border:1px solid var(--line);border-radius:8px;width:34px;height:34px;display:grid;place-items:center;cursor:pointer;color:var(--slate)}
.icon-btn:hover{color:var(--navy);border-color:var(--line2)}

/* NAV */
.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.82);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav-inner{max-width:var(--maxw);margin:0 auto;padding:13px 24px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:19px;color:var(--navy)}
.logo-mark{width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,var(--blurple),#9089fc);display:grid;place-items:center;color:#fff;box-shadow:var(--shadow-s)}
.logo-mark i{font-size:17px}
.nav-mid{display:flex;gap:6px;margin-right:auto}
.nav-mid a{color:var(--slate);font-size:15px;font-weight:500;padding:7px 12px;border-radius:8px}
.nav-mid a:hover{color:var(--navy);background:var(--soft)}
.nav-end{display:flex;align-items:center;gap:10px}
@media(max-width:860px){.nav-mid{display:none}.nav-end .btn.primary{display:none}}

/* HERO */
.hero{position:relative;overflow:hidden;background:var(--soft)}
#gradCanvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;opacity:.9}
.hero-shear{position:absolute;left:0;right:0;bottom:-2px;height:140px;background:var(--bg);transform:skewY(-3.5deg);transform-origin:bottom left;z-index:1}
.hero-inner{position:relative;z-index:2;max-width:var(--maxw);margin:0 auto;padding:84px 24px 120px;display:grid;grid-template-columns:1.08fr .92fr;gap:54px;align-items:center}
@media(max-width:920px){.hero-inner{grid-template-columns:1fr;gap:40px;padding:60px 24px 100px}}
.pill{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line2);color:var(--navy);font-size:13px;font-weight:600;padding:6px 13px;border-radius:999px;box-shadow:var(--shadow-s);margin-bottom:22px}
.pdot{width:7px;height:7px;border-radius:50%;background:var(--blurple);box-shadow:0 0 0 3px var(--blurple-soft)}
.hero h1{font-size:clamp(38px,5.4vw,62px);font-weight:800;margin-bottom:22px}
.hero .lede{font-size:clamp(17px,1.5vw,20px);color:var(--slate);max-width:54ch;margin-bottom:30px}
.hero-cta{display:flex;gap:13px;flex-wrap:wrap;margin-bottom:30px}
.trust-row{display:flex;gap:22px;flex-wrap:wrap}
.trust-row span{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:500;color:var(--mut)}
.trust-row i{color:var(--green);font-size:15px}

/* HERO product card */
.hero-visual{position:relative}
.product-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow-l);position:relative}
.product-card::before{content:"";position:absolute;inset:-1px;border-radius:18px;padding:1px;background:linear-gradient(135deg,rgba(99,91,255,.4),transparent 40%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.pc-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.pc-tag{font-size:12px;font-weight:600;color:var(--mut);text-transform:uppercase;letter-spacing:.04em}
.pc-status{font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--soft);color:var(--slate)}
.pc-status.open{background:var(--amber-soft);color:var(--amber)}
.pc-status.active{background:var(--blurple-soft);color:var(--blurple)}
.pc-status.settled{background:var(--green-soft);color:var(--green)}
.pc-title{font-size:21px;font-weight:700;color:var(--navy);margin-bottom:6px;line-height:1.25}
.pc-spec{font-size:14px;color:var(--mut);margin-bottom:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-amount{display:flex;align-items:baseline;gap:8px;font-family:var(--fm);font-weight:700;font-size:34px;color:var(--navy);margin-bottom:22px}
.pc-amount small{font-family:"Inter";font-size:13px;font-weight:500;color:var(--mut)}
.pc-flow{display:flex;align-items:center;gap:6px;margin-bottom:18px}
.pcf-step{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;font-weight:600;color:var(--faint)}
.pcf-step i{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--soft);font-size:16px;border:1px solid var(--line)}
.pcf-step.done{color:var(--blurple)}
.pcf-step.done i{background:var(--blurple-soft);border-color:transparent;color:var(--blurple)}
.pcf-bar{flex:1;height:2px;background:var(--line);border-radius:2px}
.pc-foot{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--mut);border-top:1px solid var(--line);padding-top:14px}
.pc-foot i{color:var(--green)}

/* STRIP */
.strip{max-width:var(--maxw);margin:0 auto;padding:8px 24px 40px;display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.strip-l{font-size:13px;font-weight:600;color:var(--faint)}
.strip-items{display:flex;gap:28px;flex-wrap:wrap}
.strip-items span{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--slate)}
.strip-items i{color:var(--blurple)}

/* SECTION HEADS */
.sec-head{text-align:center;max-width:60ch;margin:0 auto 56px}
.sec-head h2{font-size:clamp(28px,3.6vw,42px);font-weight:800;margin-bottom:12px}
.sec-head p{font-size:18px;color:var(--mut)}

/* ZIGZAG ROWS */
.rows{max-width:var(--maxw);margin:0 auto;padding:90px 24px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;margin-bottom:72px}
.row:last-child{margin-bottom:0}
.row.reverse .row-text{order:2}
@media(max-width:860px){.row,.row.reverse .row-text{grid-template-columns:1fr;order:0}.row{gap:28px;margin-bottom:48px}}
.step-tag{display:inline-block;font-family:var(--fm);font-size:12px;font-weight:600;color:var(--blurple);background:var(--blurple-soft);padding:4px 10px;border-radius:6px;margin-bottom:14px}
.row-text h3{font-size:clamp(22px,2.4vw,30px);font-weight:700;margin-bottom:12px}
.row-text>p{font-size:16.5px;color:var(--slate);margin-bottom:18px}
.ticks{list-style:none;display:flex;flex-direction:column;gap:9px}
.ticks li{position:relative;padding-left:28px;font-size:15px;color:var(--slate)}
.ticks li::before{content:"\2713";position:absolute;left:0;top:0;width:19px;height:19px;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:11px;font-weight:700;display:grid;place-items:center}
.row-art{display:flex;justify-content:center}
.art-card{width:100%;max-width:420px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:var(--shadow-m);display:flex;flex-direction:column;gap:14px}
.ac-line{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.ac-line:last-child{border-bottom:none;padding-bottom:0}
.ac-k{font-size:13px;color:var(--mut);font-weight:500}
.ac-v{font-size:14px;color:var(--navy);font-weight:600;text-align:right}
.ac-v.strong{font-family:var(--fm);font-size:18px}
.ac-chip{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;padding:9px 14px;border-radius:10px;align-self:flex-start}
.ac-chip.lock{background:var(--amber-soft);color:var(--amber)}
.ac-chip.submit{background:var(--blurple-soft);color:var(--blurple)}
.ac-url{font-family:var(--fm);font-size:13px;color:var(--navy);background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;align-items:center;gap:8px;word-break:break-all}
.ac-url i{color:var(--blurple)}
.ac-verdict{display:inline-flex;align-items:center;gap:9px;font-size:16px;font-weight:700;color:var(--green);background:var(--green-soft);padding:12px 16px;border-radius:12px;align-self:flex-start}

/* DEALS TABLE */
.deals{max-width:var(--maxw);margin:0 auto;padding:30px 24px 90px}
.deals-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:26px}
.deals-head h2{font-size:clamp(26px,3vw,38px);font-weight:800}
.deals-stats{display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.dstat{display:flex;flex-direction:column}
.dstat b{font-family:var(--fm);font-size:24px;font-weight:700;color:var(--navy)}
.dstat span{font-size:12px;color:var(--mut);text-transform:uppercase;letter-spacing:.04em}
.table{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-s);overflow:hidden}
.thead,.trow{display:grid;grid-template-columns:1.3fr 2fr .8fr .8fr;gap:16px;align-items:center;padding:14px 22px}
.thead{background:var(--soft);border-bottom:1px solid var(--line);font-size:12px;font-weight:600;color:var(--mut);text-transform:uppercase;letter-spacing:.04em}
.trow{border-bottom:1px solid var(--line);cursor:pointer;transition:background .12s ease-out}
.trow:last-child{border-bottom:none}
.trow:hover{background:var(--soft)}
.tc-title{font-weight:600;color:var(--navy);font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-spec{font-size:13.5px;color:var(--mut);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-amount{font-family:var(--fm);font-weight:600;color:var(--navy);font-size:14px}
.tbadge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;width:fit-content}
.tbadge.open{background:var(--amber-soft);color:var(--amber)}
.tbadge.active{background:var(--blurple-soft);color:var(--blurple)}
.tbadge.settled{background:var(--green-soft);color:var(--green)}
.tbadge.refunded{background:var(--soft2);color:var(--mut)}
.t-empty{padding:40px;text-align:center;color:var(--mut);font-size:14px}
@media(max-width:720px){.thead{display:none}.trow{grid-template-columns:1fr auto;gap:6px 16px;padding:16px 18px}.tc-spec{grid-column:1/-1;order:3}}

/* WHY */
.why{max-width:var(--maxw);margin:0 auto;padding:20px 24px 96px;display:grid;grid-template-columns:.9fr 1.1fr;gap:60px;align-items:start}
@media(max-width:860px){.why{grid-template-columns:1fr;gap:36px}}
.why-statement h2{font-size:clamp(26px,3.2vw,40px);font-weight:800;margin-bottom:14px}
.why-statement p{font-size:17px;color:var(--mut)}
.why-points{display:flex;flex-direction:column;gap:8px}
.wp{display:flex;gap:18px;padding:22px;border-radius:14px;transition:background .15s ease-out}
.wp:hover{background:var(--soft)}
.wp-ic{flex-shrink:0;width:46px;height:46px;border-radius:12px;background:var(--blurple-soft);color:var(--blurple);display:grid;place-items:center;font-size:22px}
.wp h4{font-size:18px;font-weight:700;margin-bottom:5px}
.wp p{font-size:15px;color:var(--mut)}

/* CTA */
.cta{max-width:var(--maxw);margin:0 auto;padding:0 24px 96px}
.cta-card{position:relative;overflow:hidden;border-radius:24px;background:var(--navy);padding:clamp(44px,6vw,72px);text-align:center}
#ctaCanvas{position:absolute;inset:0;width:100%;height:100%;opacity:.85}
.cta-body{position:relative;z-index:1}
.cta-body h2{color:#fff;font-size:clamp(28px,3.6vw,40px);font-weight:800;margin-bottom:12px}
.cta-body p{color:rgba(255,255,255,.8);font-size:18px;max-width:48ch;margin:0 auto 26px}

/* FOOTER */
.footer{background:var(--soft);border-top:1px solid var(--line)}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:54px 24px 30px;display:flex;justify-content:space-between;gap:48px;flex-wrap:wrap}
.foot-brand{max-width:280px}
.foot-brand p{margin-top:12px;font-size:14px;color:var(--mut)}
.foot-cols{display:flex;gap:60px;flex-wrap:wrap}
.foot-col{display:flex;flex-direction:column;gap:10px}
.foot-h{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);margin-bottom:4px}
.foot-col a{color:var(--slate);font-size:14px}
.foot-col a:hover{color:var(--blurple)}
.foot-net{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--mut)}
.net-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px var(--green-soft)}
.foot-base{border-top:1px solid var(--line);padding:18px 24px;text-align:center;font-size:13px;color:var(--faint)}

/* DRAWER (light) */
.scrim{position:fixed;inset:0;background:rgba(10,37,64,.32);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .25s ease-out;z-index:80}
.scrim.on{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;right:0;height:100dvh;width:min(460px,100%);background:#fff;border-left:1px solid var(--line);z-index:81;transform:translateX(100%);visibility:hidden;transition:transform .3s ease-out,visibility .3s;overflow-y:auto;box-shadow:var(--shadow-l)}
.drawer.on{transform:none;visibility:visible}
.drawer-h{display:flex;justify-content:space-between;align-items:center;padding:22px 24px 16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}
.drawer-h h3{font-size:19px;font-weight:700}
.drawer-b{padding:22px 24px 40px}
.drawer-b>p{font-size:14.5px;color:var(--mut);margin-bottom:6px}
label{display:block;font-size:13px;font-weight:600;color:var(--navy);margin:18px 0 6px}
input,textarea{width:100%;background:#fff;border:1px solid var(--line2);border-radius:10px;padding:11px 13px;font-family:inherit;font-size:15px;color:var(--navy);transition:border .15s,box-shadow .15s}
input:focus,textarea:focus{outline:2px solid var(--blurple);outline-offset:1px;border-color:var(--blurple)}
textarea{resize:vertical;min-height:96px}
.hint{font-size:12.5px;color:var(--faint);margin-top:6px}
.d-amount{font-family:var(--fm);font-size:30px;font-weight:700;color:var(--navy);margin:4px 0 14px}
.kv{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}
.kv .k{color:var(--mut);font-weight:500}
.kv .v{text-align:right;color:var(--navy);font-weight:500;max-width:62%;word-break:break-word}
.btn.block{width:100%;justify-content:center;margin-top:18px}
.verdict-box{border-radius:12px;padding:14px 16px;margin:14px 0;font-size:14px;line-height:1.5}
.vb-ok{background:var(--green-soft);color:#0a6b4f}
.vb-no{background:var(--red-soft);color:#a01230}

/* TOASTS */
#log{position:fixed;right:18px;bottom:18px;display:flex;flex-direction:column;gap:9px;z-index:90;max-width:330px}
.toast{background:#fff;border:1px solid var(--line);border-left:3px solid var(--blurple);border-radius:10px;padding:12px 15px;font-size:13px;color:var(--navy);box-shadow:var(--shadow-m)}
.toast.err{border-left-color:var(--red)}.toast.ok{border-left-color:var(--green)}
.toast .tt{display:block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin-bottom:2px;font-weight:600}
.spinner{display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-2px}
@keyframes spin{to{transform:rotate(360deg)}}

@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* FORM AS IN-SITE PAGE */
.scrim{background:transparent !important;backdrop-filter:none !important}
.drawer{position:fixed;inset:0;width:100%;height:100dvh;max-height:none;background:var(--bg,#fff);border:none;border-radius:0;box-shadow:none;transform:translateY(20px);opacity:0;visibility:hidden;transition:opacity .25s ease-out,transform .25s ease-out,visibility .25s;z-index:81}
.drawer.on{transform:none;opacity:1;visibility:visible}
.drawer-h{max-width:640px;margin:0 auto;padding:26px 24px 18px;border-bottom:1px solid rgba(128,128,128,.22)}
.drawer-b{max-width:640px;margin:0 auto;padding:30px 24px 70px}
input:focus,textarea:focus{outline:2px solid #635BFF !important;outline-offset:2px !important;box-shadow:none !important}
/* GLOBAL OVERFLOW GUARD */
html,body{overflow-x:hidden;max-width:100%}