
:root{
  --indigo:#6557FF;
  --indigo-2:#8B7CFF;
  --indigo-3:#5142E8;
  --navy:#11122A;
  --navy-2:#191B3B;
  --ink:#101225;
  --paper:#F7F8FC;
  --white:#FFFFFF;
  --line:#E1E5EE;
  --line-dark:rgba(255,255,255,.10);
  --muted:#687184;
  --muted-dark:#B5B9CF;
  --success:#18B978;
  --warning:#E8A93A;
  --danger:#E45454;
  --radius:16px;
  --shadow:0 22px 70px rgba(42,39,112,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit}
.container{width:min(1240px,calc(100% - 44px));margin:0 auto}

/* Header */
.site-header{
  position:sticky;top:0;z-index:100;
  height:74px;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line)
}
.nav{height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:10px;min-width:180px;font-weight:800;font-size:26px;letter-spacing:-.7px}
.brand img{width:38px;height:38px;object-fit:contain}
/* Text-only logo: "Prime" in ink, "Work" in sharp brand purple. */
.brand .brand-hi{color:var(--indigo)}
html[data-theme="dark"] .brand .brand-hi{color:var(--indigo-2)}
.navlinks{display:flex;align-items:center;gap:26px;color:#596276;font-size:13px}
.navlinks a:hover,.navlinks a.current{color:var(--indigo)}
.navactions{display:flex;gap:9px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:42px;padding:0 16px;border-radius:9px;border:1px solid #D9DEEA;
  font-size:13px;font-weight:750;background:#fff;color:#171A2A;transition:.2s
}
.btn:hover{transform:translateY(-1px);border-color:#BEC5D4}
.btn.primary{background:linear-gradient(135deg,var(--indigo),var(--indigo-2));border-color:transparent;color:#fff;box-shadow:0 10px 28px rgba(101,87,255,.22)}
.btn.dark{background:var(--navy);border-color:var(--navy);color:#fff}
.menu-btn{display:none;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 11px;color:var(--ink)}

/* Hero */
.hero{
  position:relative;overflow:hidden;padding:104px 0 82px;background:
  radial-gradient(circle at 78% 18%,rgba(101,87,255,.14),transparent 29%),
  radial-gradient(circle at 88% 30%,rgba(139,124,255,.10),transparent 25%),
  linear-gradient(180deg,#FFFFFF,#F7F8FC);
}
.hero:after{
  content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(101,87,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(101,87,255,.035) 1px,transparent 1px);
  background-size:54px 54px;mask-image:linear-gradient(to bottom,#000,transparent 90%);pointer-events:none
}
.hero-grid{display:grid;grid-template-columns:1.03fr .97fr;gap:62px;align-items:center;position:relative;z-index:2}
.eyebrow{display:flex;align-items:center;gap:10px;font-size:11px;text-transform:uppercase;letter-spacing:1.55px;color:var(--indigo);font-weight:850}
.eyebrow:before{content:"";width:34px;height:2px;background:linear-gradient(90deg,var(--indigo),var(--indigo-2))}
h1{font-size:clamp(60px,7.4vw,100px);line-height:.91;letter-spacing:-5.4px;margin:22px 0 26px}
.hero h1 span{color:#7A8193}
.hero-copy{font-size:18px;line-height:1.72;color:#697387;max-width:700px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.hero-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:46px;padding-top:18px;border-top:1px solid var(--line);max-width:720px}
.hero-meta b{display:block;font-size:13px;margin-bottom:4px}
.hero-meta span{font-size:10px;color:#7A8498;text-transform:uppercase;letter-spacing:.75px}

/* Product UI mockup styled to echo WeCount */
.product-shell{background:#fff;border:1px solid #DDE2EC;border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.product-top{height:44px;background:#24365E;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-size:10px}
.product-body{display:grid;grid-template-columns:72px 1fr;min-height:475px}
.product-side{background:#111B2F;color:#AEB9CC;padding:12px 9px}
.product-side div{height:38px;border-radius:8px;display:grid;place-items:center;margin-bottom:7px;font-size:10px}
.product-side div.on{background:linear-gradient(135deg,var(--indigo),#7B6CFF);color:#fff}
.product-main{padding:18px;background:#F4F7FB}
.product-main .label{font-size:9px;color:#7D8798;text-transform:uppercase;letter-spacing:1.1px}
.product-main h3{font-size:20px;margin:7px 0 14px}
.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.quick div{background:#fff;border:1px solid #DDE3ED;border-radius:9px;padding:10px;font-size:10px;color:#5F687A}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.metric{background:#fff;border:1px solid #DDE3ED;border-radius:10px;padding:12px}
.metric small{display:block;color:#7D8796;font-size:8px;text-transform:uppercase}
.metric b{display:block;font-size:17px;margin-top:6px}
.metric em{font-style:normal;color:var(--success);font-size:9px}
.chart-card{margin-top:10px;background:#fff;border:1px solid #DDE3ED;border-radius:10px;padding:14px}
.chart-card .chart-head{display:flex;justify-content:space-between;font-size:10px;color:#687285}
.chart{height:142px;margin-top:8px;position:relative;overflow:hidden}
.chart svg{width:100%;height:100%}
.ai-note{margin-top:10px;background:#F0EEFF;border:1px solid #D7D0FF;border-radius:10px;padding:12px}
.ai-note b{font-size:11px;color:#4F45D8}.ai-note p{font-size:10px;color:#6E7190;line-height:1.55;margin:5px 0 0}

/* Generic sections */
.section{padding:96px 0}
.section.white{background:#fff}
.section.indigo{background:var(--navy);color:#fff}
.section-head{display:grid;grid-template-columns:.58fr 1.42fr;gap:56px;align-items:end;margin-bottom:48px}
.kicker{font-size:10px;text-transform:uppercase;letter-spacing:1.6px;color:var(--indigo);font-weight:850}
.indigo .kicker{color:#A99FFF}
h2{font-size:clamp(40px,5.2vw,68px);line-height:.98;letter-spacing:-3.3px;margin:0}
.section-head p{font-size:15px;line-height:1.72;color:#6E7789;margin:0;max-width:580px}
.indigo .section-head p{color:#A7ADC2}
.product-list{border-top:1px solid var(--line)}
.product-row{display:grid;grid-template-columns:110px 1fr 1.4fr 100px;gap:26px;align-items:center;padding:24px 0;border-bottom:1px solid var(--line)}
.product-row .code{font-size:10px;letter-spacing:1.3px;color:#98A0AE}
.product-row .name{font-size:22px;font-weight:780;letter-spacing:-.7px}
.product-row .desc{font-size:13px;color:#697385;line-height:1.62}
.product-row .state{text-align:right;font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#8B94A3}
.product-row .state.live{color:var(--indigo);font-weight:850}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.card{background:#fff;border:1px solid #DFE4ED;border-radius:15px;padding:22px;min-height:205px;box-shadow:0 10px 25px rgba(44,52,84,.035)}
.card .icon{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:#F0EEFF;color:var(--indigo);font-size:11px;font-weight:850;margin-bottom:17px}
.card h3{font-size:18px;margin:0 0 8px}.card p{font-size:12px;color:#6B7587;line-height:1.65;margin:0}
.indigo .card{background:#191B3B;border-color:rgba(255,255,255,.10);box-shadow:none}
.indigo .card p{color:#A8AEC1}.indigo .card .icon{background:rgba(139,124,255,.13);color:#B9B0FF}

.bento{display:grid;grid-template-columns:1.05fr .95fr;gap:14px}
.bento-card{border:1px solid rgba(255,255,255,.10);border-radius:16px;background:#161834;padding:24px}
.bento-card h3{font-size:24px;margin:8px 0 10px}.bento-card p{font-size:13px;color:#A7ADC1;line-height:1.65}
.query{margin-top:18px;background:#11132A;border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:13px;font-size:12px}
.answer{margin-top:9px;border-left:2px solid var(--indigo-2);padding-left:12px;color:#9FA6BA;font-size:11px;line-height:1.6}

.pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#DFE4ED;border:1px solid #DFE4ED;border-radius:15px;overflow:hidden}
.pillar{background:#fff;padding:25px;min-height:225px}
.pillar .num{font-size:10px;color:#99A1AF;letter-spacing:1px}.pillar h3{font-size:19px;margin:34px 0 10px}.pillar p{font-size:12px;color:#6D7688;line-height:1.65}

.page-hero{padding:100px 0 62px;background:linear-gradient(180deg,#fff,#F7F8FC);border-bottom:1px solid var(--line)}
.breadcrumb{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:#9098A7;margin-bottom:20px}
.breadcrumb a{color:#626C80}
.page-hero h1{font-size:clamp(56px,6.8vw,88px);max-width:980px;margin:12px 0 22px}
.page-hero p{max-width:800px}

.agent-list{border-top:1px solid rgba(255,255,255,.10)}
.agent{display:grid;grid-template-columns:64px 1fr 32px;gap:18px;align-items:center;padding:20px 0;border-bottom:1px solid rgba(255,255,255,.10)}
.agent .index{font-size:10px;color:#777F9A}.agent h3{margin:0 0 5px;font-size:18px}.agent p{margin:0;color:#A7ADC1;font-size:12px;line-height:1.55}.agent .go{color:#8B7CFF}

.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.price{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px}
.price.featured{border-color:#BEB6FF;box-shadow:0 20px 60px rgba(101,87,255,.10)}
.price h3{font-size:21px;margin:0}.price .amount{font-size:44px;font-weight:800;letter-spacing:-2px;margin:18px 0 2px}.price p{font-size:12px;color:#727B8B}
.price ul{list-style:none;padding:0;margin:20px 0}.price li{font-size:12px;color:#5E6879;padding:9px 0;border-bottom:1px solid #EEF0F5}.price li:before{content:"✓";color:var(--indigo);margin-right:8px}

.form{display:grid;gap:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.input,textarea,select{width:100%;padding:14px;border:1px solid #DCE1EA;border-radius:9px;background:#fff;color:#171A2A;outline:none}
.input:focus,textarea:focus,select:focus{border-color:#8B7CFF;box-shadow:0 0 0 3px rgba(139,124,255,.08)}
textarea{min-height:150px;resize:vertical}

.cta{padding:82px 0;background:linear-gradient(135deg,#5A4BEF,#7467FF 58%,#8B7CFF);color:#fff}
.cta-grid{display:grid;grid-template-columns:1fr auto;gap:32px;align-items:end}
.cta p{color:#E9E7FF;line-height:1.7;max-width:620px}

.footer{background:#11122A;color:#fff;padding:52px 0 30px}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:42px}
.footer-logo{display:flex;align-items:center;gap:10px}.footer-logo img{width:36px;height:36px}.footer-logo b{font-size:18px}
.footer-copy{color:#9DA3BB;font-size:11px;line-height:1.7;max-width:300px}
.footer-grid strong{display:block;font-size:11px;margin-bottom:14px}.footer-grid a{display:block;color:#9DA3BB;font-size:11px;margin:9px 0}
.legal{margin-top:30px;padding-top:20px;border-top:1px solid rgba(255,255,255,.09);display:flex;justify-content:space-between;color:#727A93;font-size:10px}

.brand-panel{background:#000000;border-radius:16px;padding:30px;display:grid;place-items:center;min-height:480px}
.brand-panel img{max-height:420px;object-fit:contain}
.content h3{font-size:27px;margin:34px 0 10px}.content p,.content li{color:#6B7588;line-height:1.75}

@media(max-width:980px){
 .navlinks{display:none}.menu-btn{display:block}
 .hero-grid,.section-head,.bento,.cta-grid{grid-template-columns:1fr}
 .grid-4{grid-template-columns:1fr 1fr}.grid-3{grid-template-columns:1fr 1fr}
 .pillars{grid-template-columns:1fr 1fr}
 .product-row{grid-template-columns:90px 1fr 1.2fr}.product-row .state{display:none}
 .price-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
 .container{width:min(100% - 24px,1240px)}
 .site-header{height:68px}.navactions .btn:first-child{display:none}
 .hero{padding:78px 0 60px}h1{font-size:56px;letter-spacing:-3.4px}
 .hero-meta,.metrics,.quick,.grid-4,.grid-3,.pillars,.form-grid{grid-template-columns:1fr}
 .product-row{grid-template-columns:1fr;gap:7px}.footer-grid{grid-template-columns:1fr}.legal{flex-direction:column;gap:8px}
}


/* =========================================================
   PRIMEWORK LIGHT / DARK THEME
   First visit follows the device/browser preference.
   After the user clicks the single toggle, Light/Dark is saved.
   ========================================================= */

:root{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}

/* One-button theme toggle */
.theme-toggle-single{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  min-width:78px;
  padding:0 12px;
  border:1px solid #D9DEEA;
  border-radius:9px;
  background:#FFFFFF;
  color:#171A2A;
  font-size:11px;
  font-weight:750;
  cursor:pointer;
  transition:.18s ease;
}
.theme-toggle-single:hover{
  border-color:#BFC6D5;
  transform:translateY(-1px);
}
.theme-toggle-icon{font-size:14px;line-height:1}

/* Exact light/dark logo switching */
.brand-picture{
  position:relative;
  display:block;
  width:38px;
  height:38px;
  flex:0 0 38px;
}
.brand-picture img{
  position:absolute;
  inset:0;
  width:38px;
  height:38px;
  object-fit:contain;
}
.logo-light{display:block}
.logo-dark{display:none}
html[data-theme="dark"] .logo-light{display:none}
html[data-theme="dark"] .logo-dark{display:block}

/* IMPORTANT: the accounting/dashboard preview stays a LIGHT professional
   application UI in both website themes, matching the current WeCount UI. */
.product-shell{
  color:#101225;
  background:#FFFFFF;
}
.product-main{
  color:#101225 !important;
  background:#F4F7FB !important;
}
.product-main h3,
.quick div,
.metric,
.metric b,
.chart-card,
.chart-card .chart-head{
  color:#101225 !important;
}
.metric small{color:#7D8796 !important}
.quick div,
.metric,
.chart-card{
  background:#FFFFFF !important;
  border-color:#DDE3ED !important;
}
.ai-note{
  background:#F0EEFF !important;
  border-color:#D7D0FF !important;
  color:#101225 !important;
}
.ai-note b{color:#4F45D8 !important}
.ai-note p{color:#6E7190 !important}

/* DARK MODE */
html[data-theme="dark"]{
  --paper:#0B0D16;
  --white:#10131F;
  --ink:#F6F7FB;
  --line:#2A3040;
  --muted:#A6AEC0;
}
html[data-theme="dark"] body{
  background:#0B0D16;
  color:#F6F7FB;
}
html[data-theme="dark"] .site-header{
  background:rgba(9,11,18,.95);
  border-color:#292F3F;
}
html[data-theme="dark"] .brand{color:#FFFFFF}
html[data-theme="dark"] .navlinks{color:#B1B8C8}
html[data-theme="dark"] .navlinks a:hover,
html[data-theme="dark"] .navlinks a.current{color:#AFA7FF}

html[data-theme="dark"] .theme-toggle-single,
html[data-theme="dark"] .btn:not(.primary):not(.dark){
  background:#121622;
  border-color:#303748;
  color:#F7F8FB;
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero{
  background:
    radial-gradient(circle at 78% 18%,rgba(101,87,255,.20),transparent 29%),
    radial-gradient(circle at 90% 26%,rgba(139,124,255,.08),transparent 24%),
    linear-gradient(180deg,#0B0D16,#10131F);
  border-color:#292F3F;
}
html[data-theme="dark"] .hero:after{
  background-image:
    linear-gradient(rgba(139,124,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(139,124,255,.045) 1px,transparent 1px);
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .product-row .name,
html[data-theme="dark"] .price .amount{
  color:#F7F8FB;
}
html[data-theme="dark"] .hero h1 span{color:#8E96A8}
html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .content p,
html[data-theme="dark"] .content li,
html[data-theme="dark"] .product-row .desc,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .pillar p,
html[data-theme="dark"] .price p,
html[data-theme="dark"] .price li{
  color:#B0B7C7;
}
html[data-theme="dark"] .hero-meta{
  border-color:#2B3140;
}
html[data-theme="dark"] .hero-meta b{color:#F7F8FB}
html[data-theme="dark"] .hero-meta span{color:#8F98AA}

html[data-theme="dark"] .section.white{
  background:#0F121C;
  color:#F7F8FB;
}
html[data-theme="dark"] .section:not(.white):not(.indigo){
  color:#F7F8FB;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .pillar,
html[data-theme="dark"] .price{
  background:#151925;
  border-color:#2B3140;
  color:#F7F8FB;
  box-shadow:none;
}
html[data-theme="dark"] .card .icon{
  background:rgba(139,124,255,.14);
  color:#B9B1FF;
}
html[data-theme="dark"] .product-list,
html[data-theme="dark"] .product-row{
  border-color:#2B3140;
}
html[data-theme="dark"] .product-row .code,
html[data-theme="dark"] .product-row .state{
  color:#8F98AA;
}
html[data-theme="dark"] .pillars{
  background:#2B3140;
  border-color:#2B3140;
}

html[data-theme="dark"] .input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{
  background:#151925;
  border-color:#32394B;
  color:#F7F8FB;
}
html[data-theme="dark"] .input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:#7F899B;
}

/* Pricing separators */
html[data-theme="dark"] .price li{
  border-color:#2B3140;
}

/* Breadcrumbs */
html[data-theme="dark"] .breadcrumb{color:#8E97A9}
html[data-theme="dark"] .breadcrumb a{color:#B6BDCB}

/* Company brand-art panel must always stay pure black */
.brand-panel,
html[data-theme="light"] .brand-panel,
html[data-theme="dark"] .brand-panel{
  background:#000000 !important;
}

/* Footer intentionally stays dark in both themes */
.footer{background:#11122A;color:#FFFFFF}

/* Mobile navigation colors in both modes */
@media(max-width:980px){
  .navlinks.mobile-open{
    display:flex !important;
    position:absolute;
    top:68px;
    left:12px;
    right:12px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:12px;
    background:#FFFFFF;
    border:1px solid #E1E5EE;
    border-radius:12px;
    box-shadow:0 18px 50px rgba(30,35,70,.12);
  }
  .navlinks.mobile-open a{
    padding:11px 10px;
    border-radius:8px;
  }
  html[data-theme="dark"] .navlinks.mobile-open{
    background:#121622;
    border-color:#303748;
    box-shadow:0 18px 50px rgba(0,0,0,.35);
  }
}
@media(max-width:640px){
  .theme-toggle-label{display:none}
  .theme-toggle-single{min-width:42px;padding:0 10px}
}
