/* ERP by ZCode, landing page.
   White page, one light blue accent, dark buttons only for the main calls to action. */
:root {
  --page: #fff;
  --ink: #171717;
  --muted: #737373;
  --soft-ink: #a3a3a3;
  --line: #ececec;
  --soft: #f6f7f9;
  --blue: #8ccaf7;
  --blue-soft: #eaf5fe;
  --blue-ink: #1f6fb2;
  --teal-cell: #ccfbf1;
  --teal-line: #5eead4;
  --teal: #0d9488;
  --green: #16a34a;
  --header-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { font-family: "Host Grotesk", ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; border-radius: 6px; }
.wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mid { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.thin { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- header: sticky, border and dark button only after scrolling ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); font-size: 14px; }
.logo { display: flex; align-items: baseline; gap: 6px; font-size: 16px; font-weight: 500; letter-spacing: -.01em; justify-self: start; }
.logo small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.links { display: flex; gap: 26px; color: var(--muted); }
.links a:hover { color: var(--ink); }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; color: var(--muted); }
.actions .login:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 10px 16px; font-size: 14.5px; white-space: nowrap; font-weight: 500; border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2b2b; }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: #d4d4d4; }
.nav .btn { padding: 7px 13px; font-size: 13.5px; }
.site-header.scrolled .nav-cta { background: var(--ink); border-color: var(--ink); color: #fff; }
.arrow { color: var(--muted); font-size: 14.5px; }
.arrow:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-top: 72px; }
.hero h1 { font-weight: 400; font-size: clamp(40px, 6.2vw, 72px); line-height: 1; letter-spacing: -.04em; }
.hero p { color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.55; max-width: 540px; margin-top: 20px; }
.ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.fine { font-size: 12.5px; color: var(--soft-ink); margin-top: 14px; }
.demo { margin-top: 56px; border-radius: 16px; background: linear-gradient(180deg, var(--blue-soft), #fff 80%); padding: 36px 36px 0; }
.demo iframe { display: block; width: 100%; height: 760px; border: 0; background: transparent; color-scheme: light; }

/* ---------- sections ---------- */
.block { padding-top: 104px; }
.kicker { font-size: 13px; color: var(--blue-ink); margin-bottom: 10px; }
h2 { font-weight: 400; font-size: clamp(27px, 3.4vw, 36px); letter-spacing: -.025em; line-height: 1.12; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.tile { background: var(--soft); border-radius: 18px; padding: 22px 22px 0; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; }
.tile h3 { font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.tile p { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; max-width: 340px; }
.tile .vis { margin-top: 20px; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.t-sheet { grid-column: span 2; }
.t-phone { grid-row: span 2; }
.t-tpl { grid-column: span 3; min-height: 0; padding-bottom: 22px; }
.snap { background: #fff; border: 1px solid #e6e6e6; border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .25); width: 100%; font-size: 12px; }

.sh { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 18px 18px 16px; }
.sheet { width: 92px; height: 150px; border: 1px solid #b9c9c6; border-radius: 3px; background: #fff; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); gap: 3px; padding: 6px; }
.sheet i { background: var(--teal-cell); border: 1px solid var(--teal-line); border-radius: 1px; }
.sh .big { font-size: 30px; line-height: 1; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.sh .mut { color: var(--muted); font-size: 11.5px; }
.rows { margin-top: 12px; border-top: 1px solid #f0f0f0; }
.rows div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f4f4f4; font-size: 11.5px; }
.rows div span:first-child { color: #3f3f3f; }
.rows div span:last-child { font-variant-numeric: tabular-nums; }
.rows .tot { border-bottom: 0; font-weight: 500; }
.pricechip { display: inline-flex; margin-top: 10px; font-size: 11.5px; color: #0f766e; background: #f0fdfa; border-radius: 999px; padding: 4px 10px; }

.phone { width: min(100%, 244px); margin-bottom: 22px; filter: drop-shadow(0 16px 20px rgb(0 0 0 / .14)); }
.scr { background: #faf9f5; padding: 28px 12px 0; font-size: 10px; font-variant-numeric: tabular-nums; }
.scr::after { content: ""; position: absolute; bottom: 5px; left: 32%; right: 32%; height: 2px; border-radius: 2px; background: var(--soft-ink); }
.wa { background: #dcf5e3; border-radius: 9px; padding: 6px 8px; font-size: 9.5px; margin: 0 0 12px auto; width: fit-content; max-width: 86%; color: #2f2f2f; }
.pv-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.pv-title { font-weight: 500; font-size: 11.5px; display: block; }
.pv-h small { color: var(--muted); font-size: 9px; }
.chip { font-size: 8.5px; border-radius: 999px; padding: 4px 7px; background: #e3f5e8; color: #166534; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.note { display: flex; gap: 6px; background: #ecf7ef; border: 1px solid #bfe7cb; border-radius: 9px; font-size: 9.5px; line-height: 1.35; padding: 8px; margin-top: 10px; }
.note svg { width: 11px; height: 11px; color: var(--green); flex: none; margin-top: 1px; }
.pv-l { font-size: 10px; font-weight: 500; margin: 12px 0 6px; }
.pv-c { background: #fff; border: 1px solid #e2ded8; border-radius: 10px; padding: 9px; }
.pv-c .t { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; font-weight: 500; }
.pv-c p { color: var(--muted); line-height: 1.4; margin-top: 5px; font-size: 9.5px; }
.dock { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--ink); color: var(--page); border-radius: 999px; display: flex; align-items: center; gap: 12px; padding: 6px 14px; font-size: 9px; white-space: nowrap; }
.dock-total { font-weight: 500; font-size: 11px; display: block; }

.tl { padding: 14px 16px 6px; }
.ev { display: flex; gap: 10px; padding-bottom: 11px; position: relative; }
.ev:not(:last-child)::before { content: ""; position: absolute; left: 8.5px; top: 20px; bottom: 1px; width: 1px; background: #e3e3e3; }
.ev i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d4d4d4; flex: none; display: grid; place-items: center; background: #fff; }
.ev.on i { background: #dcfce7; border-color: #86efac; color: #15803d; }
.ev i svg { width: 9px; height: 9px; }
.ev b { font-weight: 500; font-size: 12px; display: block; }
.ev small { color: var(--muted); font-size: 10.5px; }
.ev:not(.on) b { color: var(--muted); font-weight: 400; }

.ws { padding: 14px 14px 4px; }
.ws .g { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 0 4px 6px; }
.ws .o { border-radius: 9px; padding: 8px 10px; display: grid; gap: 2px; font-size: 11px; }
.ws .o.sel { background: #fff; box-shadow: 0 0 0 1px #e8e8e8; }
.ws .o .r { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ws .o b { font-weight: 500; font-size: 12px; }
.ws .o span { color: var(--muted); }
.ws .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); }
.ws .tm { color: #0f766e !important; font-variant-numeric: tabular-nums; }
.ws .ex { color: #dc2626 !important; font-size: 10.5px; }
.ws .g2 { margin-top: 8px; }

.tpl-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 18px; }
.tpl { background: #fff; border-radius: 12px; padding: 10px 8px; text-align: center; font-size: 11.5px; color: #3f3f3f; box-shadow: 0 0 0 1px #ececec; }
.tpl img { display: block; width: 100%; height: 54px; object-fit: contain; margin-bottom: 6px; }

/* ---------- how it works ---------- */
.steps { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 170px 1fr; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.steps .n { color: var(--blue-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.steps .t { font-weight: 500; }
.steps .d { color: var(--muted); }

/* ---------- pricing ---------- */
.price-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.toggle { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; font-size: 13px; }
.toggle button { font: inherit; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.toggle small { color: var(--blue-ink); margin-left: 4px; font-size: inherit; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; display: flex; flex-direction: column; }
.plan.pop { border-color: var(--blue); background: linear-gradient(180deg, var(--blue-soft), #fff 60%); }
.plan .tag { font-size: 12px; color: var(--blue-ink); min-height: 16px; }
.plan h3 { font-weight: 500; font-size: 17px; margin-top: 4px; }
.plan .for { font-size: 13px; color: var(--muted); margin-top: 2px; }
.amt { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 2px; }
.amt b { font-weight: 400; font-size: 36px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.amt span { color: var(--muted); font-size: 13px; }
.billed { font-size: 12px; color: var(--soft-ink); min-height: 16px; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; margin: 16px 0 20px; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 8px; line-height: 1.35; }
.plan li svg { width: 14px; height: 14px; color: var(--blue-ink); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; font-size: 14px; padding: 10px; }
.pnote { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { margin-top: 26px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: -6px; padding-bottom: 17px; max-width: 620px; }
details p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- closing ---------- */
.band { margin-top: 104px; background: linear-gradient(180deg, var(--blue-soft), #f4f9fe); border-radius: 18px; padding: 52px 28px; text-align: center; }
.band h2 { max-width: 520px; margin: 0 auto; }
.band .ctas { justify-content: center; margin-top: 24px; }
.foot { margin-top: 140px; border-top: 1px solid var(--line); padding: 72px 0 40px; color: var(--muted); }
.foot-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 56px; }
.foot-brand .logo { color: var(--ink); }
.foot-brand p { margin-top: 14px; font-size: 15px; line-height: 1.5; max-width: 260px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-cols h4 { font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 16px; }
.foot-cols a { display: block; font-size: 15px; padding: 5px 0; }
.foot a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 88px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- legal pages ---------- */
.legal { padding-top: 72px; }
.legal h1 { font-weight: 400; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.legal-updated { color: var(--soft-ink); font-size: 14px; margin-top: 14px; }
.legal-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.legal-nav a { font-size: 14px; color: var(--muted); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); }
.legal-nav a:hover { color: var(--ink); border-color: #d4d4d4; }
.legal-nav a[aria-current="page"] { background: var(--blue-soft); border-color: transparent; color: var(--ink); }
.legal-content { margin-top: 48px; font-size: 16px; line-height: 1.7; color: #404040; }
.legal-content > * + * { margin-top: 16px; }
.legal-content h2 { font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); margin-top: 48px; }
.legal-content h3 { font-weight: 500; font-size: 17px; color: var(--ink); margin-top: 32px; }
.legal-content ul, .legal-content ol { padding-left: 22px; display: grid; gap: 8px; }
.legal-content li::marker { color: var(--soft-ink); }
.legal-content strong { font-weight: 500; color: var(--ink); }
.legal-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--blue); }
.legal-callout { background: var(--blue-soft); border-radius: 14px; padding: 18px 20px; font-size: 15px; line-height: 1.6; color: #3a3a3a; }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-sheet, .t-tpl { grid-column: span 2; }
  .t-phone { grid-row: span 2; }
  .tpl-row { grid-template-columns: repeat(4, 1fr); }
  .foot-top { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .wide, .mid, .thin { padding: 0 18px; }
  .actions .login { display: none; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 48px); letter-spacing: -.035em; }
  .hero p { font-size: 16px; margin-top: 14px; }
  .ctas { gap: 14px; margin-top: 24px; }
  .hero .ctas .btn { width: 100%; padding: 13px 16px; font-size: 15px; }
  .hero .ctas .arrow { width: 100%; text-align: center; }
  .fine { text-align: center; }
  .demo { margin: 36px -18px 0; border-radius: 0; padding: 18px 12px 0; }
  .block { padding-top: 76px; }
  .bento { grid-template-columns: 1fr; }
  .t-sheet, .t-tpl { grid-column: auto; }
  .t-phone { grid-row: auto; min-height: 420px; }
  .tile { min-height: 0; padding: 20px 18px 0; }
  .tile .vis { margin-top: 18px; }
  .sh { grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; }
  .sheet { width: 72px; height: 118px; padding: 4px; gap: 2px; }
  .tpl-row { grid-template-columns: repeat(7, 96px); overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -18px 0; padding: 2px 18px 4px; scrollbar-width: none; }
  .tpl-row::-webkit-scrollbar { display: none; }
  .tpl { scroll-snap-align: start; }
  .steps li { grid-template-columns: 34px 1fr; gap: 3px 8px; padding: 14px 0; }
  .steps .d { grid-column: 2; font-size: 14.5px; }
  .price-h { align-items: flex-start; flex-direction: column; }
  .plans { grid-template-columns: 1fr; }
  .plan.pop { order: -1; }
  .band { margin-top: 76px; padding: 40px 20px; }
  .band .ctas .btn { width: 100%; padding: 13px 16px; }
  .legal { padding-top: 40px; }
  .legal-content { margin-top: 36px; font-size: 15.5px; }
  .legal-content h2 { font-size: 18.5px; margin-top: 40px; }
  .foot { margin-top: 96px; padding: 56px 0 32px; }
  .foot-top { grid-template-columns: 1fr; gap: 44px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .foot-cols a { padding: 7px 0; font-size: 16px; }
  .foot-bottom { margin-top: 56px; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
