:root{
  --white:#FFFFFF;
  --black:#000000;
  --gray:#626875;
  --gray-2:#8D94A0;
  --gray-light:#DDDFE4;
  --deep-indigo:#3B2FA0;
  --royal-blue:#4169E1;
  --royal-blue-dark:#3559D1;
  --golden-yellow:#F4B840;
  --soft-peach:#FAD6C6;
  --light-cream:#F9F5EB;
  --radius-lg:24px;
  --radius-md:16px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--white);color:var(--black);font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-weight:500;line-height:1.1}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.r{text-align:right}

/* ===== NAV ===== */
.site-nav{position:sticky;top:0;z-index:50;background:var(--white);border-bottom:1px solid var(--gray-light)}
.nav-inner{max-width:1120px;margin:0 auto;padding:14px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.brand-logo{height:26px;width:auto}
.links{display:flex;align-items:center;gap:22px}
.links > a:not(.btn){font-size:14px;font-weight:450;color:var(--gray-2);transition:color .2s}
.links > a:not(.btn):hover{color:var(--royal-blue)}
.demo-badge{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--deep-indigo);background:rgba(59,47,160,.08);border-radius:999px;padding:4px 10px}
.whoami{font-size:14px;color:var(--gray)}

/* ===== BUTTONS (AVA style) ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:inherit;font-weight:500;cursor:pointer;white-space:nowrap;transition:all .2s ease;border:none}
.btn-primary{background:var(--royal-blue);color:var(--white);height:48px;padding:0 20px;border-radius:var(--radius-lg);font-size:16px}
.btn-primary:hover{background:var(--royal-blue-dark);transform:translateY(-1px)}
.btn-primary:disabled{opacity:.45;cursor:not-allowed;transform:none}
.btn-lg{height:52px;padding:0 26px;font-size:16px}
.btn-sm{height:36px;padding:0 14px;font-size:14px;border-radius:var(--radius-md)}
.btn-ghost{background:transparent;color:var(--black);border:1px solid var(--gray-light);height:48px;padding:0 20px;border-radius:var(--radius-lg);font-size:16px}
.btn-ghost:hover{background:var(--light-cream)}

/* ===== EYEBROW / TITLES ===== */
.eyebrow{font-size:14px;font-weight:500;color:var(--deep-indigo);margin-bottom:14px}
.section-title{font-size:clamp(28px,4vw,40px);line-height:1.1;margin-bottom:16px}
.section-sub{font-size:18px;color:var(--gray);max-width:640px;margin-bottom:40px}
.section{padding:96px 24px;max-width:1120px;margin:0 auto}
.section-cream{max-width:none;background:var(--light-cream)}
.section-cream .inner-pad,.section-cream > *{max-width:1120px;margin-left:auto;margin-right:auto}
.section-padded{padding:80px 24px}

/* ===== LANDING HERO ===== */
.hero{position:relative;background:var(--white);overflow:hidden;padding:110px 24px 90px;text-align:center}
.hero-content{position:relative;z-index:2;max-width:880px;margin:0 auto}
.hero h1{font-size:clamp(44px,7vw,72px);line-height:1.06;font-weight:500;margin-bottom:24px}
.hero h1 .accent{color:var(--royal-blue)}
.lede{font-size:20px;font-weight:450;color:var(--black);max-width:640px;margin:0 auto 40px;line-height:1.4}
.hero-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:72px}
.circle{position:absolute;border-radius:50%;z-index:1;pointer-events:none}
.c1{width:240px;height:240px;left:4%;bottom:8%}
.c2{width:200px;height:200px;right:6%;top:14%}
.c3{width:120px;height:120px;left:16%;top:10%}
@media(max-width:900px){.circle{display:none}}
.hero-stats{display:flex;gap:64px;justify-content:center;flex-wrap:wrap}
.hstat{text-align:center}
.hnum{font-size:40px;font-weight:500;line-height:1.1}
.hlabel{font-size:14px;color:var(--gray);margin-top:4px}

/* ===== STEPS ===== */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.step-card{background:var(--white);border:1px solid var(--gray-light);border-radius:var(--radius-lg);padding:32px 28px}
.section-cream .step-card{background:var(--white)}
.step-num{font-size:14px;font-weight:600;color:var(--royal-blue);letter-spacing:.08em;margin-bottom:18px}
.step-card h3{font-size:20px;margin-bottom:10px}
.step-card p{font-size:15px;color:var(--gray);line-height:1.5}

/* ===== TERMS ===== */
.terms-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.term-card{background:var(--white);border:1px solid var(--gray-light);border-radius:var(--radius-lg);padding:28px}
.term-label{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gray-2);margin-bottom:10px}
.term-value{font-size:28px;font-weight:500;color:var(--deep-indigo);margin-bottom:10px}
.term-card p{font-size:14px;color:var(--gray);line-height:1.5}

/* ===== APPLY FORM ===== */
.apply-wrap{max-width:640px;margin:0 auto;width:100%}
.field{margin-bottom:18px}
.field label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
.field input,.field select{width:100%;height:52px;padding:0 18px;border:2px solid var(--gray-light);border-radius:12px;font-family:inherit;font-size:15px;background:var(--white);color:var(--black);transition:all .2s}
.field input::placeholder{color:var(--gray-2)}
.field input:focus,.field select:focus{outline:none;border-color:var(--royal-blue);box-shadow:0 0 0 3px rgba(65,105,225,.15)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:600px){.form-row{grid-template-columns:1fr}}
.form-error{color:var(--deep-indigo);font-size:14px;margin-top:14px;font-weight:500}
.success-card{background:var(--light-cream);border:1px solid var(--gray-light);border-radius:var(--radius-lg);padding:48px 32px;text-align:center}
.success-check{width:56px;height:56px;border-radius:50%;background:var(--royal-blue);color:var(--white);font-size:28px;display:flex;align-items:center;justify-content:center;margin:0 auto 20px}
.success-card h3{font-size:24px;margin-bottom:10px}
.success-card p{color:var(--gray);font-size:15px}

/* ===== FAQ ===== */
.faq-list{max-width:760px}
.faq-item{border-bottom:1px solid var(--gray-light);padding:24px 0}
.faq-item:first-child{border-top:1px solid var(--gray-light)}
.faq-item h4{font-size:18px;margin-bottom:8px}
.faq-item p{font-size:15px;color:var(--gray);line-height:1.6}

/* ===== FOOTER ===== */
.site-footer{border-top:1px solid var(--gray-light);padding:32px 24px;text-align:center}
.footer-logo{height:22px;width:auto;margin:0 auto 12px}
.footer-line{font-size:13px;color:var(--gray-2)}
.footer-line a{color:var(--gray);text-decoration:underline}

/* ===== DASHBOARD ===== */
main{min-height:60vh}
.hero-portal{max-width:1120px;margin:0 auto;padding:64px 24px 24px}
.hero-portal h1{font-size:clamp(32px,5vw,48px);margin-bottom:12px}
.hero-portal .lede{margin:0 auto 40px;font-size:17px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.stat{background:var(--light-cream);border:1px solid var(--gray-light);border-radius:var(--radius-lg);padding:24px}
.stat .num{font-size:30px;font-weight:500;color:var(--royal-blue);line-height:1.15}
.stat .label{font-size:13px;color:var(--gray);margin-top:6px}

.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.card{background:var(--white);border:1px solid var(--gray-light);border-radius:var(--radius-lg);padding:24px}
.card .src{font-size:13px;font-weight:600;color:var(--gray-2);letter-spacing:.04em;text-transform:uppercase}
.card .subs{font-size:28px;font-weight:500;margin:10px 0 2px}
.card .comm{font-size:15px;color:var(--gray)}
.card .comm strong{color:var(--black)}

/* sign-in */
.signin-card{max-width:440px;margin:80px auto;background:var(--light-cream);border:1px solid var(--gray-light);border-radius:var(--radius-lg);padding:48px 36px;text-align:center}
.signin-title{font-size:28px;font-weight:500;margin-bottom:8px}
.signin-sub{font-size:15px;color:var(--gray);margin-bottom:28px}
.signin-card .field{text-align:left}

/* invoice card */
.invoice-card{background:var(--white);border:1px solid var(--gray-light);border-radius:var(--radius-lg);padding:36px;box-shadow:0 4px 6px rgba(0,0,0,.04)}
.inv-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.inv-period{font-size:14px;font-weight:600;color:var(--gray);margin-bottom:6px}
.inv-amount{font-size:40px;font-weight:500;line-height:1.1}
.inv-sub{font-size:14px;color:var(--gray)}
.pill{font-size:13px;font-weight:500;border-radius:999px;padding:8px 14px;white-space:nowrap}
.pill-cream{background:var(--light-cream);color:var(--gray);border:1px solid var(--gray-light)}
.pill-blue{background:rgba(65,105,225,.1);color:var(--royal-blue-dark)}
.inv-note{font-size:14px;color:var(--gray);margin:20px 0;line-height:1.5}
.inv-note strong{color:var(--black)}
.inv-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}

.table{width:100%;border-collapse:collapse}
.table th{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--gray-2);text-align:left;padding:12px 8px;border-bottom:1px solid var(--gray-light)}
.table th.r{text-align:right}
.table td{padding:14px 8px;border-bottom:1px solid var(--gray-light);font-size:15px;color:var(--gray)}
.table tfoot td{font-weight:600;color:var(--black);font-size:16px;border-bottom:none}
.table tbody tr:last-child td{border-bottom:none}
.note{font-size:14px;color:var(--gray);margin-top:16px}

.checklist{list-style:none;margin:8px 0 4px}
.checklist li{margin-bottom:14px}
.checklist label{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.5;cursor:pointer}
.checklist input[type=checkbox]{width:22px;height:22px;margin-top:1px;accent-color:var(--royal-blue);flex-shrink:0}

/* timeline */
.timeline{display:flex;gap:0;margin:28px 0 8px;position:relative}
.tl-step{flex:1;position:relative;padding-top:28px;padding-right:8px}
.tl-step::before{content:"";position:absolute;top:8px;left:0;right:0;height:2px;background:var(--gray-light)}
.tl-step:first-child::before{left:10px}
.tl-step:last-child::before{right:calc(50% + 10px)}
.tl-step.done::before{background:var(--royal-blue)}
.tl-step.done + .tl-step::before{background:var(--royal-blue)}
.tl-dot{position:absolute;top:2px;left:10px;width:12px;height:12px;border-radius:50%;background:var(--gray-light)}
.tl-step.done .tl-dot{background:var(--royal-blue)}
.tl-step.current .tl-dot{background:var(--royal-blue);box-shadow:0 0 0 5px rgba(65,105,225,.18)}
.tl-title{font-size:14px;font-weight:600;color:var(--gray-2)}
.tl-step.done .tl-title,.tl-step.current .tl-title{color:var(--black)}
.tl-date{font-size:12.5px;color:var(--gray-2);margin-top:2px}
@media(max-width:700px){
  .timeline{flex-direction:column;gap:20px}
  .tl-step{padding-top:0;padding-left:32px}
  .tl-step::before{top:6px;bottom:6px;left:10px;right:auto;width:2px;height:auto}
  .tl-step:first-child::before{left:10px}
  .tl-step:last-child::before{right:auto}
  .tl-dot{top:2px}
}

@media(max-width:700px){
  .section{padding:64px 18px}
  .hero{padding:80px 18px 70px}
  .hero-stats{gap:32px}
  .links > a:not(.btn):not(.cta){display:none}
  .invoice-card{padding:24px 18px}
}
