/* ==========================================================================
   Pactit — landing page (English / global)
   Built from Figma "Pactly" frame 210:6260
   Type: Plus Jakarta Sans (headings/UI) + Inter (body) — free stand-ins for
   Asta Sans + Avenir LT Pro used in the design file.
   ========================================================================== */

/* ---------- Self-hosted webfonts (no external CDN) ---------- */
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:800;font-display:swap;src:url("assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:italic;font-weight:600;font-display:swap;src:url("assets/fonts/plus-jakarta-sans-latin-600-italic.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:italic;font-weight:700;font-display:swap;src:url("assets/fonts/plus-jakarta-sans-latin-700-italic.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/inter-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/inter-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/inter-latin-600-normal.woff2") format("woff2")}

:root{
  --ink:#121212;
  --ink-90:rgba(18,18,18,.9);
  --ink-80:rgba(18,18,18,.8);
  --ink-70:rgba(18,18,18,.7);
  --ink-60:rgba(18,18,18,.6);
  --grey-head:#373737;

  --purple:#7F5CF2;
  --purple-deep:#1C085E;
  --purple-mid:#433075;
  --purple-soft:#A58CF4;
  --lav:#E9E3FD;
  --app-bg:#F8F6FE;
  --tint:#F9F7FB;

  --line:rgba(0,0,0,.2);
  --hair:rgba(0,0,0,.08);

  --grad:linear-gradient(90deg,var(--purple-deep) 0%,var(--purple) 100%);

  --page-x:70px;
  --maxw:1320px;

  --font-head:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{font-family:var(--font-head);margin:0;font-weight:700}
p{margin:0}
a{color:inherit}
ul,ol{margin:0;padding:0;list-style:none}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--purple-deep);color:#fff;padding:10px 16px;border-radius:0 0 8px 0;
}
.skip-link:focus{left:0}

.container{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--page-x)}
.section{padding-block:clamp(72px,9vw,150px)}
.stack-center{display:flex;flex-direction:column;align-items:center}
.nowrap{white-space:nowrap}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--font-head);font-weight:600;font-size:16px;line-height:1;
  height:50px;padding-inline:22px;border-radius:24px;
  text-decoration:none;border:0;cursor:pointer;white-space:nowrap;
  transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-gradient{background:var(--grad);color:#fff;box-shadow:0 6px 18px rgba(28,8,94,.22)}
.btn-gradient:hover{box-shadow:0 10px 26px rgba(28,8,94,.3)}
.btn-dark{background:#0F0B14;color:#fff}
.btn-dark:hover{background:#000}
.btn-ink{background:#110C09;color:#FBFAF6;height:44px;border-radius:999px;font-size:14px;padding-inline:24px}
.btn-ink svg{width:16px;height:16px}
.btn-block{width:100%;height:44px;border-radius:14px;font-size:14px;font-family:var(--font-body);font-weight:500}

:where(a,button,input):focus-visible{outline:3px solid var(--purple-soft);outline-offset:3px}

/* ---------- Badges / eyebrows ---------- */
.badge{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid rgba(0,0,0,.1);border-radius:16px;
  padding:8px 12px;font-size:12px;line-height:18px;color:#0F172A;
  background:rgba(255,255,255,.6);backdrop-filter:blur(20px);
  font-family:var(--font-body);
}
.badge-soft{background:#F4F6F8;border-color:transparent;color:#334155;font-weight:500}
.badge-dot{
  width:16px;height:16px;border-radius:50%;flex:none;
  background:radial-gradient(circle at 32% 30%,#fff 0%,var(--purple-soft) 45%,var(--purple-deep) 100%);
  box-shadow:inset 0 0 4px rgba(255,255,255,.55);
}

.eyebrow-pill{
  display:inline-block;background:#fff;border-radius:20px;padding:6px 16px;
  font-size:12px;letter-spacing:1.02px;text-transform:uppercase;
  color:var(--ink-80);font-weight:700;font-family:var(--font-head);
  box-shadow:0 1px 3px rgba(18,18,18,.06);
}

/* ---------- Headings ---------- */
.h2{
  font-size:clamp(32px,4.2vw,52px);
  line-height:1.106;
  letter-spacing:-.022em;
  color:var(--grey-head);
  font-weight:700;
}
.h2.center{text-align:center}
.h2.narrow{max-width:640px}
.h2 em{font-style:italic;color:var(--purple-mid);font-weight:600}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav{position:sticky;top:0;z-index:50;backdrop-filter:blur(10px);background:rgba(233,227,253,.72)}
.nav-inner{
  max-width:var(--maxw);margin-inline:auto;padding:9px var(--page-x);
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.nav-logo{display:block}
.nav-logo img{width:150px;height:auto}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  background:linear-gradient(180deg,var(--lav) 0%,var(--lav) 22%,#fff 72%);
  padding-block:0;
  overflow:hidden;
}
.hero-inner{
  max-width:var(--maxw);margin-inline:auto;padding-inline:var(--page-x);
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:40px;align-items:center;
  min-height:759px;   /* 827 design frame minus the 68px nav */
}
.hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:20px;max-width:706px}
.hero h1{
  font-size:clamp(40px,6vw,72px);
  line-height:1.107;letter-spacing:-.025em;color:var(--ink);font-weight:800;
  margin:0;
}
.hero-sub{font-size:clamp(16px,1.3vw,18px);line-height:1.404;color:var(--ink-90);max-width:34em}
.hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:22px}
.hero-note{font-size:14px;line-height:1.56;color:var(--ink-80)}
.hero-visual{display:flex;justify-content:center;align-items:flex-end;align-self:end}

/* ==========================================================================
   PHONE MOCKUPS (exported app screens)
   ========================================================================== */
.phone-img{
  display:block;height:auto;max-width:100%;
  filter:drop-shadow(0 30px 60px rgba(28,8,94,.38));
}
/* Sizes are the Figma placements, which are also the exports' native pixel
   sizes — so nothing is ever scaled up. */
.phone-hero{width:481px;margin-bottom:-310px}      /* 994 tall, top 143 of an 827 hero */

/* ==========================================================================
   PROBLEM
   ========================================================================== */
.problem{background:#fff}
.problem .badge{margin-bottom:20px}
.problem-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  margin-top:50px;width:100%;
  background:rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.08);
}
.dashed-card{background:#FBFBFB;border:1px dashed var(--line);padding:32px 32px 46px;display:flex;flex-direction:column;gap:11px}
.dashed-card h3{font-size:18px;line-height:28px;color:var(--ink);font-weight:600;font-family:var(--font-body)}
.dashed-card p{font-size:14px;line-height:1.63;color:#202020}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how{background:var(--tint)}
.how-head{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:50px}
.step{display:flex;flex-direction:column;gap:5px}
.step-rule{display:flex;align-items:center;gap:12px;margin-bottom:56px}
.step-num{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#1a1a1a;white-space:nowrap}
.rule{flex:1;border-bottom:1px dashed rgba(119,114,105,.5)}
.step h3{font-size:18px;color:#1a1a1a;font-weight:600;padding-bottom:6px}
.step p{font-size:14px;line-height:1.493;color:var(--ink-70)}

/* ==========================================================================
   WHY PACTIT
   ========================================================================== */
.why{background:#fff;padding-bottom:clamp(72px,9vw,150px)}
.why .badge{margin-bottom:4px}
.why .h2{margin-bottom:60px;line-height:1.38;color:#000;letter-spacing:-.02em}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;width:100%}
/* Geometry is straight from Figma: card 670 tall, copy block a FIXED 166,
   phone absolutely placed at top 186 (166 + 20) so all three line up exactly
   and the bottom 53px of each phone bleeds off the card edge. */
.why-grid{--card-h:670px;--copy-h:166px}
.why-card{
  background:var(--app-bg);border:1px solid var(--line);border-radius:10px;
  position:relative;overflow:hidden;
  height:var(--card-h);
}
.why-card-copy{height:var(--copy-h);padding:30px 20px;display:flex;flex-direction:column;gap:8px}
.why-card-copy h3{font-size:22px;line-height:26px;color:#363636;font-weight:800}
.why-card-copy p{font-size:16px;line-height:1.502;color:#363636}
.why-card-visual{position:static}
.why-card-visual .phone-img{
  position:absolute;top:calc(var(--copy-h) + 20px);
  left:50%;transform:translateX(-50%);
  width:260px;
}

/* ==========================================================================
   RECEIPTS BAND
   ========================================================================== */
.receipts{
  position:relative;
  min-height:803px;
  display:flex;align-items:flex-end;
  background-color:#2a2140;
  background-image:url("assets/receipts-photo.webp");
  background-size:cover;
  background-position:center 32%;
  background-repeat:no-repeat;
  overflow:hidden;
}
.receipts::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(16,8,32,0) 30%,rgba(16,8,32,.55) 72%,rgba(16,8,32,.82) 100%),
    linear-gradient(90deg,rgba(16,8,32,.55) 0%,rgba(16,8,32,.12) 55%,rgba(16,8,32,0) 100%);
  pointer-events:none;
}
.receipts h2,.receipts p{text-shadow:0 2px 16px rgba(16,8,32,.45)}
.receipts-inner{
  position:relative;z-index:1;
  max-width:var(--maxw);margin-inline:auto;width:100%;
  padding:0 var(--page-x) 96px;
  color:#fff;
}
.receipts h2{
  font-size:clamp(34px,4.6vw,60px);line-height:1.108;letter-spacing:-.015em;
  font-weight:800;max-width:9em;
}
.receipts p{
  margin-top:14px;font-size:clamp(15px,1.3vw,18px);line-height:1.37;
  max-width:33em;color:rgba(255,255,255,.92);
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-grid{display:grid;grid-template-columns:minmax(0,532px) minmax(0,1fr);gap:20px;align-items:stretch}
.pricing-copy{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding-inline:20px}
.pricing-copy p{font-size:16px;line-height:1.422;color:var(--ink-80);max-width:512px;margin-top:8px}
.plans{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.plan{border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:20px}
.plan-solo{background:linear-gradient(102deg,rgba(240,244,255,.8) 0%,rgba(220,210,255,.5) 100%)}
.plan-group{background:#F9FAF9}
.plan header h3{font-size:28px;letter-spacing:-.014em;color:#000;font-weight:600}
.plan header p{font-size:14px;line-height:1.4;color:rgba(0,0,0,.7);margin-top:9px}
.plan hr{border:0;height:1px;background:var(--hair);margin:0}
.plan ul{display:flex;flex-direction:column;gap:16px;flex:1}
.plan li{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:1.4;color:rgba(0,0,0,.8)}
.tick{
  width:16px;height:16px;flex:none;border-radius:50%;margin-top:1px;
  background:var(--purple-mid);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 6.1l-4.2 4.2a.8.8 0 01-1.1 0L4.3 8.2a.8.8 0 111.1-1.1l1.5 1.5 3.7-3.6a.8.8 0 111.1 1.1z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 6.1l-4.2 4.2a.8.8 0 01-1.1 0L4.3 8.2a.8.8 0 111.1-1.1l1.5 1.5 3.7-3.6a.8.8 0 111.1 1.1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ==========================================================================
   WAITLIST CTA
   ========================================================================== */
.cta-wrap{padding-block:80px}
.cta{
  background:var(--grad);border-radius:20px;box-shadow:0 4px 24px rgba(0,0,0,.1);
  padding:60px 24px;text-align:center;color:#fff;
  display:flex;flex-direction:column;align-items:center;gap:16px;
}
.cta h2{font-size:clamp(34px,4.6vw,60px);line-height:1.05;letter-spacing:-.025em;font-weight:600}
.cta h2 em{display:block;font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:700}
.cta > p{font-size:16px;line-height:24px;max-width:512px;padding-top:8px}
.cta-form{display:flex;gap:8px;width:100%;max-width:448px;padding-top:24px}
.cta-form input{
  flex:1;min-width:0;height:44px;border-radius:999px;border:1px solid #E1DDD7;
  background:#fff;padding:0 21px;font-size:14px;font-family:var(--font-body);color:#110C09;
}
.cta-form input::placeholder{color:rgba(17,12,9,.5)}
.cta-note{font-size:13px;min-height:1.2em;margin-top:4px;color:rgba(255,255,255,.92)}
.cta-note.err{color:#FFD9D9}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{background:#fff;padding-block:80px 50px}
.footer-top{display:flex;justify-content:space-between;gap:80px;flex-wrap:wrap}
.footer-brand{display:flex;flex-direction:column;gap:14px;align-items:flex-start;max-width:615px}
.footer-logo{width:150px;height:auto}
.footer-dl{font-size:20px;letter-spacing:-.02em;color:var(--ink-70)}
.store-pill{
  display:inline-flex;align-items:center;gap:9px;
  border:1px solid rgba(0,0,0,.14);border-radius:12px;padding:11px 16px;
  font-size:14px;font-weight:500;color:var(--ink-80);
}
.store-pill svg{width:18px;height:18px}
.footer-nav{display:flex;gap:40px}
.footer-col{display:flex;flex-direction:column;min-width:130px}
.footer-col h4{font-size:13px;letter-spacing:.15em;color:var(--ink-60);font-weight:500;line-height:20px;font-family:var(--font-head)}
.footer-col a{display:flex;align-items:center;height:40px;font-size:16px;color:#000;text-decoration:none}
.footer-col a:hover{color:var(--purple-mid);text-decoration:underline}
.footer-bottom{margin-top:40px}
.footer-bottom hr{border:0;height:1px;background:#B5B5B5;margin:0 0 40px}
.footer-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.footer-bar p{font-size:16px;color:#000}
.socials{display:flex;gap:12px}
.socials a{display:grid;place-items:center;width:24px;height:24px;color:#100820;opacity:.85}
.socials a:hover{opacity:1;color:var(--purple-mid)}
.socials svg{width:22px;height:22px}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1180px){
  :root{--page-x:48px}
  .hero-inner{min-height:700px;padding-bottom:0}
  .phone-hero{width:400px;margin-bottom:-258px}
  .receipts{min-height:660px}
  .why-grid{--card-h:700px;--copy-h:196px}
}

@media (max-width:980px){
  /* stack: show the whole phone rather than bleeding it off the section */
  .hero{padding-bottom:56px}
  .hero-inner{grid-template-columns:1fr;text-align:left;gap:32px;padding-bottom:0}
  .hero-visual{justify-content:center}
  .phone-hero{width:min(340px,82vw);margin-bottom:0}
  .receipts{min-height:540px}
  .problem-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr 1fr;gap:28px}
  .step-rule{margin-bottom:24px}
  .why-grid{grid-template-columns:1fr;max-width:520px;margin-inline:auto}
  .why-card{height:auto}
  .why-card-copy{height:auto}
  .why-card-visual{position:relative;height:340px;overflow:hidden}
  .why-card-visual .phone-img{top:20px}
  .pricing-grid{grid-template-columns:1fr}
  .pricing-copy{padding-inline:0}
  .receipts{min-height:520px}
  .footer-top{gap:40px}
}

@media (max-width:640px){
  :root{--page-x:20px}
  .nav-inner{padding-inline:20px}
  .nav-logo img{width:124px}
  .nav-cta{height:42px;font-size:14px;padding-inline:16px}
  .hero{padding-top:28px}
  .hero-actions{gap:12px}
  .hero-actions .btn{width:100%}
  .hero-note{font-size:13px}
  .steps{grid-template-columns:1fr}
  .plans{grid-template-columns:1fr}
  .cta{padding:40px 20px;border-radius:16px}
  .cta-form{flex-direction:column;align-items:stretch}
  .cta-form .btn{width:100%}
  .receipts-inner{padding-bottom:56px}
  .receipts h2{max-width:none}
  .footer{padding-block:56px 40px}
  .footer-nav{gap:28px;width:100%}
  .footer-bar{flex-direction:column;align-items:flex-start;gap:16px}
  .footer-bar p{font-size:14px}
  .dashed-card{padding:26px 22px 32px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn{transition:none}
  .btn:hover{transform:none}
}

@media print{
  .nav,.cta-form,.socials{display:none}
  body{color:#000}
}

/* honeypot - hidden from people, visible to bots */
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0;pointer-events:none}

/* Instagram handle beside the icon in the footer */
.socials a{width:auto;gap:8px;display:inline-flex;align-items:center;text-decoration:none}
.ig-handle{font-size:15px;font-weight:500;color:#100820;font-family:var(--font-body)}
.socials a:hover .ig-handle{color:var(--purple-mid)}
@media (max-width:640px){.ig-handle{font-size:14px}}
