/* ==========================================================================
   SaaSenomics — Design System
   Concept: the general ledger, made legible. Ledger-line rules, tick marks,
   a formula tape, and a "reconciled" stamp stand in for the site's real
   subject: turning messy SaaS accounting into numbers people can trust.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* color */
  --ink:        #0A1128;
  --ledger:     #142250;
  --ledger-2:   #1C2F66;
  --brand-blue: #0062B6;
  --btn-mint:   #5FF8EA;
  --btn-lilac:  #ECDEFF;
  --paper:      #E0EDF9;
  --paper-2:    #E0EDF9;
  --box-blue:   #2961B0;
  --rule:       #D6D8D0;
  --rule-dark:  #2A3768;
  --text:       #0A1128;
  --slate:      #56607F;
  --slate-2:    #8B93AC;
  --white:      #FFFFFF;
  --teal:       #1F9A88;
  --teal-dim:   #E4F2EF;
  --amber:      #C97A2B;
  --amber-dim:  #F7EADB;

  /* type */
  --display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1160px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--body);
  color:var(--text);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  font-size:16px;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--display); margin:0; font-weight:600; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

.eyebrow{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--teal);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:16px;
  height:1px;
  background:var(--teal);
  display:inline-block;
}
.eyebrow.on-dark{ color:#7FDDCB; }
.eyebrow.on-dark::before{ background:#7FDDCB; }

/* ---------- ledger grid backdrop ---------- */
.ledger-field{
  position:relative;
  background-image:repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.055) 0px,
    rgba(255,255,255,0.055) 1px,
    transparent 1px,
    transparent 42px
  );
}
.ledger-field.light{
  background-image:repeating-linear-gradient(
    to bottom,
    rgba(10,17,40,0.06) 0px,
    rgba(10,17,40,0.06) 1px,
    transparent 1px,
    transparent 42px
  );
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--brand-blue);
  border-bottom:1px solid var(--rule-dark);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  color:var(--white);
}
.brand-mark{
  width:30px; height:30px;
  border-radius:6px;
  background:var(--white);
  display:grid;
  grid-template-columns:repeat(2,1fr);
  grid-template-rows:repeat(2,1fr);
  gap:3px;
  padding:6px;
  flex-shrink:0;
}
.brand-mark span{ background:var(--ink); border-radius:1.5px; }
.brand-mark span:nth-child(1){ background:var(--teal); }
.brand-word{
  font-family:var(--display);
  font-weight:600;
  font-size:19px;
  letter-spacing:.01em;
}
.brand-logo{ height:28px; width:auto; display:block; }
.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
}
.nav-links a{
  font-size:14.5px;
  color:#C7CCE0;
  transition:color .15s ease;
  position:relative;
}
.nav-links a:hover{ color:var(--white); }
.nav-links a.active{ color:var(--white); }
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-26px;
  height:2px;
  background:var(--teal);
}
.nav-cta{
  font-family:var(--body);
  font-size:13px;
  letter-spacing:.03em;
  color:var(--ink);
  background:var(--btn-mint);
  padding:10px 18px;
  border-radius:3px;
  border:1px solid var(--btn-mint);
  transition:background .15s ease, color .15s ease;
  white-space:nowrap;
}
.nav-cta:hover{ background:#48E8D8; border-color:#48E8D8; }
.nav-cta-mobile{ display:none; }
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding:8px;
}
.nav-toggle span{
  width:22px; height:1.5px;
  background:var(--white);
  display:block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--body);
  font-size:13.5px;
  letter-spacing:.03em;
  padding:14px 24px;
  border-radius:3px;
  border:1px solid transparent;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--btn-mint); color:var(--ink); border-color:var(--btn-mint); }
.btn-primary:hover{ background:#48E8D8; border-color:#48E8D8; }
.btn-ghost-dark{ background:var(--btn-lilac); color:var(--ink); border-color:var(--btn-lilac); }
.btn-ghost-dark:hover{ background:#DCC5FA; border-color:#DCC5FA; }
.btn-ghost-light{ background:var(--btn-lilac); color:var(--ink); border-color:var(--btn-lilac); }
.btn-ghost-light:hover{ background:#DCC5FA; border-color:#DCC5FA; }
.btn-arrow{ font-size:15px; }

/* ==========================================================================
   Row-number ledger list (used for problem grid / pillar list)
   ========================================================================== */
.ledger-row{
  display:grid;
  grid-template-columns:56px 1fr;
  border-top:1px solid var(--rule);
}
.ledger-row:last-child{ border-bottom:1px solid var(--rule); }
.ledger-row .row-no{
  font-family:var(--mono);
  font-size:13px;
  color:var(--slate-2);
  padding:28px 0;
}
.ledger-row .row-body{ padding:28px 0; }

/* ==========================================================================
   Reconciliation tape (signature element)
   ========================================================================== */
.tape{
  overflow:hidden;
  border-top:1px solid var(--rule-dark);
  border-bottom:1px solid var(--rule-dark);
  background:#1C4680;
  white-space:nowrap;
  position:relative;
}
.tape-track{
  display:inline-flex;
  align-items:center;
  animation:tape-scroll 42s linear infinite;
  will-change:transform;
}
.tape-item{
  font-family:var(--mono);
  font-size:13px;
  color:#9AA6CC;
  padding:14px 34px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border-right:1px solid var(--rule-dark);
  white-space:nowrap;
}
.tape-item b{ color:#DCE1F5; font-weight:500; }
.tape-item .tick{ color:var(--teal); }
@keyframes tape-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .tape-track{ animation:none; }
}

/* stamp */
.stamp{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:118px; height:118px;
  border-radius:50%;
  border:1.5px solid var(--teal);
  color:var(--teal);
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-align:center;
  transform:rotate(-9deg);
  line-height:1.5;
  flex-shrink:0;
}
.stamp strong{ font-size:13px; letter-spacing:.06em; }

/* ==========================================================================
   Section spacing / helpers
   ========================================================================== */
.section{ padding:104px 0; }
.section-tight{ padding:72px 0; }
.section.dark{ background:var(--ink); color:var(--white); }
.section.ledgerbg{ background:var(--ledger); color:var(--white); }
.section.paper2{ background:var(--paper-2); }
.hr{ border:none; border-top:1px solid var(--rule); }
.hr.dark{ border-top:1px solid var(--rule-dark); }

.kicker-head{
  max-width:760px;
  margin-top:18px;
}
.kicker-head h2{
  font-size:clamp(30px,3.6vw,44px);
  line-height:1.12;
  letter-spacing:-.01em;
}
.lede{
  font-size:17.5px;
  color:var(--slate);
  max-width:620px;
  margin-top:18px;
}
.section.dark .lede,
.section.ledgerbg .lede{ color:#AEB6D6; }

/* grid layouts */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--rule); }
.grid-4stat{ display:grid; grid-template-columns:repeat(4,1fr); }

/* problem/solution cards */
.card{
  background:var(--box-blue);
  padding:36px 32px;
}
.card .icon{
  width:38px; height:38px;
  border-radius:8px;
  background:var(--ink);
  color:var(--teal);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px;
  font-family:var(--mono);
  font-size:15px;
}
.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ color:var(--slate); font-size:15px; }

/* stat strip */
.statline{
  border-top:1px solid var(--rule-dark);
  border-bottom:1px solid var(--rule-dark);
}
.statline .grid-4stat > div{
  padding:34px 28px;
  border-right:1px solid var(--rule-dark);
}
.statline .grid-4stat > div:last-child{ border-right:none; }
.stat-num{
  font-family:var(--mono);
  font-size:clamp(26px,3vw,36px);
  color:var(--white);
  letter-spacing:-.02em;
}
.stat-label{
  font-size:13px;
  color:#9AA6CC;
  margin-top:6px;
}

/* pill / tag */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.04em;
  color:var(--teal);
  background:var(--teal-dim);
  padding:6px 12px;
  border-radius:20px;
}

/* checklist */
.checklist li{
  display:flex;
  gap:14px;
  padding:16px 0;
  border-top:1px solid var(--rule);
  font-size:15px;
}
.checklist li:last-child{ border-bottom:1px solid var(--rule); }
.checklist .mark{
  font-family:var(--mono);
  color:var(--teal);
  flex-shrink:0;
}
.section.dark .checklist li,
.section.ledgerbg .checklist li{ border-top-color:var(--rule-dark); }
.section.dark .checklist li:last-child,
.section.ledgerbg .checklist li:last-child{ border-bottom-color:var(--rule-dark); }

/* footer */
.site-footer{
  background:var(--ink);
  color:#9AA6CC;
  padding:64px 0 28px;
  border-top:1px solid var(--rule-dark);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:32px;
  padding-bottom:44px;
}
.footer-grid h4{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#6D77A0;
  margin-bottom:16px;
  font-weight:500;
}
.footer-grid a, .footer-grid p{
  display:block;
  font-size:14px;
  color:#C7CCE0;
  padding:6px 0;
}
.footer-grid a:hover{ color:var(--white); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:26px;
  border-top:1px solid var(--rule-dark);
  font-size:12.5px;
  font-family:var(--mono);
  color:#6D77A0;
}

/* page hero (interior pages) */
.page-hero{
  padding:76px 0 64px;
}
.page-hero h1{
  font-size:clamp(36px,4.4vw,56px);
  line-height:1.08;
  letter-spacing:-.01em;
  margin-top:16px;
  max-width:820px;
}

/* hero — wider than the standard container, but kept symmetric so it doesn't feel lopsided */
.hero-grid{
  display:grid;
  grid-template-columns:minmax(320px,600px) 1fr;
  align-items:center;
  gap:56px;
  padding-top:88px;
  padding-bottom:72px;
  max-width:1320px;
  margin:0 auto;
  padding-left:32px;
  padding-right:32px;
}
.hero-grid img{ display:block; width:100%; max-width:440px; margin-left:auto; margin-right:0; }

/* responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; gap:36px; padding-left:32px; padding-right:32px; }
  .grid-2{ grid-template-columns:1fr; gap:36px; }
  .grid-3{ grid-template-columns:1fr; }
  .partnership-flow{ flex-direction:column; align-items:stretch; }
  .partnership-flow-arrow{ transform:rotate(90deg); margin:0 auto; }
  .grid-4stat{ grid-template-columns:repeat(2,1fr); }
  .statline .grid-4stat > div:nth-child(2){ border-right:none; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .nav-toggle{ display:flex; }
  .nav-links{
    display:none;
    position:absolute;
    top:72px; left:0; right:0;
    background:var(--ink);
    border-bottom:1px solid var(--rule-dark);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 32px 20px;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:12px 0; width:100%; }
  .nav-links a.active::after{ display:none; }
  .nav{ position:relative; }
}
@media (max-width: 560px){
  .brand-logo{ height:22px; }
  .nav-cta{ display:none; }
  .nav-links a.nav-cta-mobile{
    display:inline-flex;
    width:auto;
    padding:10px 18px;
    margin-top:12px;
  }
}
@media (max-width: 640px){
  .wrap{ padding:0 20px; }
  .section{ padding:64px 0; }
  .page-hero{ padding:88px 12px 72px; }
  .hero-grid{ padding-left:20px; padding-right:20px; padding-top:64px; padding-bottom:48px; }
  .grid-4stat{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; gap:10px; align-items:flex-start; }
}
