/* SKAIT ERP Connector page. Prefix erp-. Uses the site tokens from styles.css. */
.erp-hero { background: var(--navy); position: relative; overflow: hidden; padding: 4.5rem 0 4rem; }
.erp-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(21,169,173,.28), transparent 55%); pointer-events: none; }
.erp-hero .container { position: relative; z-index: 1; }
.erp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.erp-hero h1 { color: var(--white); }
.erp-hero .lead { color: rgba(248,250,252,.86); font-size: 1.15rem; margin-top: 1.1rem; max-width: 34rem; }
.erp-hero .eyebrow { color: var(--gold); background: rgba(212,167,44,.15); }
.erp-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.erp-actions .btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(248,250,252,.45); }
.erp-actions .btn-ghost:hover { border-color: var(--white); background: rgba(248,250,252,.08); color: var(--white); }
.erp-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.erp-badges li { font-size: .82rem; font-weight: 600; color: var(--white); border: 1px solid rgba(248,250,252,.28); border-radius: 100px; padding: .3rem .8rem; }
.erp-badges li::before { content: '\2713'; color: var(--teal); margin-right: .4rem; }
.erp-video { position: relative; border-radius: 16px; overflow: hidden; background: #0b1220; box-shadow: 0 24px 60px rgba(0,0,0,.4); aspect-ratio: 16 / 9; }
.erp-video video { width: 100%; height: 100%; display: block; object-fit: cover; background: #0b1220; }
.erp-video-cap { font-size: .8rem; color: rgba(248,250,252,.7); margin-top: .6rem; text-align: center; }
.erp-video-cap-dark { color: var(--gray); }
.erp-problem { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.erp-problem .pillar h3 { font-size: 1.05rem; }
.erp-ask { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.erp-q { background: var(--white); border: 1px solid var(--gray-light); border-left: 4px solid var(--teal); border-radius: 12px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.erp-q-tag { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.erp-q p { font-weight: 600; font-size: 1.05rem; line-height: 1.4; color: var(--navy); }
.erp-note { font-size: .88rem; color: var(--gray); margin-top: 1.25rem; }
.erp-steps { counter-reset: erpstep; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; padding: 0; list-style: none; }
.erp-steps li { counter-increment: erpstep; background: var(--white); border: 1px solid var(--gray-light); border-radius: 12px; padding: 1.75rem; }
.erp-steps li::before { content: counter(erpstep); display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; margin-bottom: 1rem; }
.erp-steps h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.erp-sec { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.erp-sec .pillar { background: rgba(248,250,252,.04); border-color: rgba(248,250,252,.14); }
.erp-sec .pillar h3 { color: var(--white); }
.erp-sec .pillar p { color: rgba(248,250,252,.8); }
.erp-dark { background: var(--navy); color: var(--white); }
.erp-dark h2 { color: var(--white); }
.erp-dark .lead, .erp-dark > .container > .reveal > p { color: rgba(248,250,252,.82); }
.erp-works { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.erp-works li { background: var(--gray-soft); border: 1px solid var(--gray-light); border-radius: 100px; padding: .35rem .9rem; font-weight: 600; font-size: .92rem; }
.erp-price { max-width: 760px; margin: 0 auto; text-align: center; }
.erp-price-box { background: var(--white); border: 2px solid var(--teal); border-radius: 16px; padding: 2rem; margin-top: 1.5rem; box-shadow: var(--shadow-md); }
.erp-price-box strong { font-size: 1.25rem; display: block; margin-bottom: .4rem; }
.erp-faq { max-width: 820px; margin: 2rem auto 0; }
.erp-faq details { background: var(--white); border: 1px solid var(--gray-light); border-radius: 12px; padding: 0 1.4rem; margin-bottom: .75rem; }
.erp-faq summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.erp-faq summary::-webkit-details-marker { display: none; }
.erp-faq summary::after { content: '+'; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.erp-faq details[open] summary::after { content: '\2212'; }
.erp-faq details p { padding: 0 0 1.2rem; color: var(--gray); }
.erp-form-wrap { max-width: 760px; margin: 0 auto; }
.erp-form-wrap .form-card { margin-top: 1.5rem; }
.erp-form-wrap textarea { width: 100%; }
.erp-form-note { font-size: .85rem; color: var(--gray); margin-top: .9rem; }
@media (max-width: 900px) { .erp-hero-grid { grid-template-columns: 1fr; gap: 2rem; } .erp-hero { padding: 3rem 0; } }

/* Illustrative demo: a fixed-size screen. The canvas is drawn at one design size and scaled, so it never changes size. */
.erp-device { --dw: 960; --dh: 600; max-width: 960px; margin: 2rem auto 0; }
.erp-bezel { background: #0f172a; border-radius: 18px 18px 0 0; padding: 14px 14px 0; position: relative; box-shadow: var(--shadow-lg); }
.erp-bezel::before { content: ''; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: #334155; }
.erp-view { position: relative; width: 100%; aspect-ratio: calc(var(--dw) / var(--dh)); overflow: hidden; background: #fff; border-radius: 6px 6px 0 0; }
.erp-canvas { position: absolute; left: 0; top: 0; width: calc(var(--dw) * 1px); height: calc(var(--dh) * 1px); transform-origin: 0 0; display: flex; flex-direction: column; font-size: 16px; background: #fff; }
.erp-base { height: 16px; width: 108%; margin: 0 -4%; background: linear-gradient(#e2e6ec, #b4bcc8); border-radius: 0 0 16px 16px; position: relative; }
.erp-base::after { content: ''; position: absolute; top: 0; left: 50%; width: 120px; height: 6px; margin-left: -60px; background: #9aa3b0; border-radius: 0 0 8px 8px; }
.erp-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1.2rem; background: var(--gray-soft); border-bottom: 1px solid var(--gray-light); font-size: 13px; font-weight: 600; flex: none; }
.erp-pills { display: flex; gap: .5rem; }
.erp-pill { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--gray-light); border-radius: 100px; padding: .2rem .7rem; white-space: nowrap; }
.erp-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.erp-pill.lock::before { background: var(--gold); }
.erp-ill { background: #FEF3C7; color: #78560a; border-radius: 100px; padding: .2rem .7rem; white-space: nowrap; }
.erp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px 1fr; }
.erp-side { padding: 1.1rem; border-right: 1px solid var(--gray-light); background: #fbfcfd; }
.erp-side h3 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-bottom: .7rem; font-weight: 800; }
.erp-side button { display: block; width: 100%; text-align: left; font: inherit; font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--navy); background: #fff; border: 1px solid var(--gray-light); border-radius: 10px; padding: .7rem .85rem; margin-bottom: .55rem; cursor: pointer; }
.erp-side button:hover { border-color: var(--teal); }
.erp-side button[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); background: #f2fbfb; }
.erp-side button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.erp-thread { padding: 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; overflow: hidden; min-height: 0; }
.erp-msg { max-width: 94%; border-radius: 14px; padding: .8rem 1.1rem; line-height: 1.5; font-size: 15px; }
.erp-user { align-self: flex-end; background: var(--navy); color: var(--white); font-weight: 600; min-height: 2.6rem; }
.erp-ai { align-self: flex-start; background: var(--gray-soft); border: 1px solid var(--gray-light); animation: erpIn .35s ease both; width: 100%; max-width: 100%; }
@keyframes erpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.erp-status { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: .4rem; }
.erp-ai p { margin-bottom: .7rem; }
.erp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .9rem; }
.erp-kpis div { background: #fff; border: 1px solid var(--gray-light); border-radius: 10px; padding: .5rem .8rem; }
.erp-kpis span { display: block; font-size: 11px; color: var(--gray); font-weight: 600; }
.erp-kpis b { font-size: 18px; }
.erp-kpis .up { color: #0f8a5f; }
.erp-bars { display: flex; align-items: flex-end; gap: .8rem; height: 120px; padding: .4rem .2rem 0; border-bottom: 1px solid var(--gray-light); margin-bottom: 1.4rem; }
.erp-bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3rem; }
.erp-bars i { display: block; width: 100%; height: var(--h); background: #9fd9db; border-radius: 6px 6px 0 0; }
.erp-bars .top i { background: var(--teal); }
.erp-bars span { font-size: 11px; color: var(--gray); font-weight: 600; margin-bottom: -1.3rem; }
.erp-tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--gray-light); font-size: 14px; }
.erp-tbl th, .erp-tbl td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--gray-light); }
.erp-tbl th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); background: var(--gray-soft); }
.erp-tbl tr:last-child td { border-bottom: 0; }
.erp-foot { padding: .6rem 1.2rem; font-size: 12px; color: var(--gray); border-top: 1px solid var(--gray-light); background: var(--gray-soft); flex: none; }
.erp-demo-cta { text-align: center; margin-top: 2.2rem; }
/* Phone: a phone-shaped screen on narrow devices, drawn at its own fixed size */
.erp-device.is-phone { --dw: 360; --dh: 720; max-width: 320px; }
.erp-device.is-phone .erp-bezel { border-radius: 38px; padding: 12px; }
.erp-device.is-phone .erp-bezel::before { top: 18px; width: 70px; height: 6px; margin-left: -35px; border-radius: 4px; z-index: 2; }
.erp-device.is-phone .erp-view { border-radius: 28px; }
.erp-device.is-phone .erp-base { display: none; }
.erp-device.is-phone .erp-top { flex-direction: column; align-items: flex-start; padding-top: 1.6rem; gap: .4rem; }
.erp-device.is-phone .erp-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.erp-device.is-phone .erp-side { border-right: 0; border-bottom: 1px solid var(--gray-light); padding: .7rem .9rem .3rem; }
.erp-device.is-phone .erp-side h3 { display: none; }
.erp-device.is-phone .erp-side button { padding: .5rem .7rem; margin-bottom: .4rem; font-size: 13px; }
.erp-device.is-phone .erp-thread { padding: .8rem; }
.erp-device.is-phone .erp-msg { font-size: 14px; max-width: 100%; }
.erp-device.is-phone .erp-kpis { gap: .4rem; }
.erp-device.is-phone .erp-kpis div { padding: .4rem .5rem; }
.erp-device.is-phone .erp-kpis b { font-size: 14px; }
.erp-device.is-phone .erp-bars { height: 90px; }

/* Mid-page call to action and mobile sticky bar */
.erp-strip { text-align: center; padding: 2.5rem 0 0; }
.erp-strip .btn + .btn { margin-left: .6rem; }
.btn-wa { background: #1faa59; color: #fff; }
.btn-wa:hover { background: #178a47; color: #fff; transform: translateY(-2px); }
.erp-sticky { display: none; }
@media (max-width: 900px) {
  .erp-sticky { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 899; padding: .6rem 5.4rem calc(.6rem + env(safe-area-inset-bottom, 0px)) .8rem; background: rgba(15,23,42,.96); box-shadow: 0 -4px 16px rgba(0,0,0,.25); }
  .erp-sticky .btn { flex: 1; padding: .7rem .6rem; font-size: .9rem; justify-content: center; text-align: center; }
  body.erp-page { padding-bottom: 4.5rem; }
  body.erp-page .wa-float { display: none; }
  .erp-strip .btn + .btn { margin-left: 0; margin-top: .6rem; }
}
