/* =====================================================================
   Appslin ERP product pages — Salon, Hospital, Footwear Manufacturing
   Each page is themed by its product colour (--erp), on the shared
   Blueprint system. App screens are pure HTML/CSS sample mock-ups.
   ===================================================================== */
.ep--salon { --erp: #a5803a; --erp-deep: #7d5f25; --erp-soft: #f8f0df; --erp-glow: rgba(212, 178, 106, .28); }
.ep--hospital { --erp: #0a9d68; --erp-deep: #067a52; --erp-soft: #e3f7ef; --erp-glow: rgba(16, 185, 129, .24); }
.ep--footwear { --erp: #2563eb; --erp-deep: #1c4ed8; --erp-soft: #e6efff; --erp-glow: rgba(37, 99, 235, .24); }

/* ---------------- Hero ---------------- */
.ep-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: clamp(40px, 5.5vw, 76px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(ellipse 55% 65% at 85% 40%, var(--erp-glow), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(37, 99, 235, .08), transparent 70%),
    #fbfdff; }
.ep-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ep-tag { display: inline-block; font-size: .84rem; font-weight: 700; color: var(--erp-deep); background: var(--erp-soft); border: 1px solid color-mix(in srgb, var(--erp) 25%, transparent); padding: 6px 14px; border-radius: 100px; margin-bottom: 18px; }
.ep-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; color: var(--navy-900); margin-bottom: 18px; }
.ep-hero h1 em { font-style: normal; color: var(--erp-deep); }
.ep-hero .d1-actions { margin: 28px 0 28px; }
.ep-who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.ep-who p { font-size: .86rem; font-weight: 700; color: var(--muted); }
.ep-who ul { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-who li { font-size: .84rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; }
.ep-hero-visual { position: relative; }
.ep-hero-visual .app { box-shadow: 0 40px 90px rgba(10, 31, 68, .2); }
.ep-note { position: absolute; right: 14px; bottom: -28px; font-size: .78rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .ep-hero-copy > * { animation: d1-rise .8s var(--ease) both; }
  .ep-hero-copy > :nth-child(2) { animation-delay: .06s; } .ep-hero-copy > :nth-child(3) { animation-delay: .12s; } .ep-hero-copy > :nth-child(4) { animation-delay: .18s; } .ep-hero-copy > :nth-child(5) { animation-delay: .24s; } .ep-hero-copy > :nth-child(6) { animation-delay: .3s; }
  .ep-hero-visual { animation: d1-rise 1s .25s var(--ease) both; }
  .ep-hero-visual .app-bars span { animation: ep-grow .9s var(--ease) both; animation-delay: .7s; transform-origin: bottom; }
}
@keyframes ep-grow { from { transform: scaleY(0); } }

/* ---------------- Benefits ---------------- */
.ep-bens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.ep-ben { padding: 28px 26px; display: grid; gap: 8px; align-content: start; border-left: 1px solid var(--line); }
.ep-ben:first-child { border-left: 0; }
.ep-ben .i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--erp-soft); color: var(--erp-deep); margin-bottom: 6px; }
.ep-ben h3 { font-size: 1.1rem; }
.ep-ben p { font-size: .93rem; }

/* ---------------- Modules ---------------- */
.ep-mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ep-mod { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; display: grid; gap: 14px; align-content: start; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.ep-mod:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(10, 31, 68, .1); border-color: color-mix(in srgb, var(--erp) 40%, var(--line)); }
.ep-mod > .i { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: linear-gradient(135deg, var(--erp), var(--erp-deep)); color: #fff; box-shadow: 0 10px 22px var(--erp-glow); }
.ep-mod h3 { font-size: 1.08rem; margin-bottom: 4px; }
.ep-mod p { font-size: .92rem; line-height: 1.55; }

/* ---------------- Screens ---------------- */
.ep-screen-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 30px; }
.ep-screen-tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--muted); transition: background-color .25s, color .25s, box-shadow .25s; }
.ep-screen-tabs button span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.ep-screen-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(10, 31, 68, .08); }
.ep-screen-tabs button[aria-selected="true"] span { background: var(--erp); border-color: var(--erp); color: #fff; }
.ep-screen { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 56px); align-items: center; animation: d1-fade .35s; }
.ep-screen-copy { display: grid; gap: 12px; }
.ep-screen-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ep-screen-copy ul { display: grid; gap: 10px; margin-top: 6px; }
.ep-screen-copy li { display: flex; gap: 10px; color: var(--ink); }
.ep-screen-copy li .i { color: var(--erp); margin-top: 4px; }
.ep-screen-img { margin: 0; padding: clamp(14px, 2.4vw, 30px); border-radius: 28px; background: radial-gradient(ellipse 80% 80% at 70% 20%, var(--erp-glow), transparent 70%), var(--erp-soft); }
.ep-screen-img .app { box-shadow: 0 30px 70px rgba(10, 31, 68, .16); }
.ep-screen-img figcaption { margin-top: 12px; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------------- Steps (navy band) ---------------- */
.ep-steps-sec { background: var(--navy-900); color: rgba(255, 255, 255, .72);
  background-image: radial-gradient(ellipse 50% 80% at 100% 0%, var(--erp-glow), transparent 70%);
  background-size: auto; }
.ep-steps-sec h2, .ep-steps-sec h3 { color: #fff; }
.ep-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: ep; }
.ep-steps li { counter-increment: ep; position: relative; padding: 24px 22px 22px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 8px; align-content: start; }
.ep-steps li::before { content: counter(ep); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; background: var(--erp); color: #fff; margin-bottom: 8px; }
.ep-steps h3 { font-size: 1.12rem; }
.ep-steps p { font-size: .93rem; }

/* ---------------- Other products ---------------- */
.ep-others { display: grid; grid-template-columns: auto 1fr 1fr; gap: 16px; align-items: stretch; }
.ep-others > p { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: 1.15rem; align-self: center; max-width: 14ch; }
.ep-other { --c: #2563eb; display: grid; gap: 4px; padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--ink); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.ep-other::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.ep-other--salon { --c: #a5803a; } .ep-other--hospital { --c: #0a9d68; } .ep-other--footwear { --c: #2563eb; }
.ep-other:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(10, 31, 68, .1); color: var(--ink); }
.ep-other small { font-size: .8rem; font-weight: 700; color: var(--c); }
.ep-other b { font-family: var(--f-display); font-size: 1.2rem; }
.ep-other span { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .9rem; color: var(--blue-600); margin-top: 6px; }

/* =====================================================================
   App mock-ups
   ===================================================================== */
.app { --erp: #2563eb; --erp-deep: #1c4ed8; --erp-soft: #e6efff;
  border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); font-size: 12px; line-height: 1.35; color: var(--ink); user-select: none; font-family: var(--f-body); }
.app--salon { --erp: #a5803a; --erp-deep: #7d5f25; --erp-soft: #f8f0df; }
.app--hospital { --erp: #0a9d68; --erp-deep: #067a52; --erp-soft: #e3f7ef; }
.app--footwear { --erp: #2563eb; --erp-deep: #1c4ed8; --erp-soft: #e6efff; }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--navy-900); color: #fff; }
.app-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.app-bar b { margin-left: 8px; font-family: var(--f-display); font-size: 12px; }
.app-search { margin-left: auto; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); border-radius: 6px; padding: 3px 26px 3px 10px; font-size: 10.5px; }
.app-user { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--erp); font-size: 9px; font-weight: 700; }
.app-body { display: grid; grid-template-columns: 22% 1fr; min-height: 330px; }
.app-nav { background: var(--erp-soft); padding: 12px 8px; display: grid; gap: 3px; align-content: start; }
.app-nav li { padding: 7px 10px; border-radius: 8px; font-weight: 600; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-nav li.on { background: var(--erp); color: #fff; }
.app-main { padding: 14px; display: grid; gap: 12px; align-content: start; min-width: 0; background: #fbfcfe; }
.app-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.app-title b { font-family: var(--f-display); font-size: 14px; }
.app-chip { font-size: 10px; font-weight: 700; color: var(--erp-deep); background: var(--erp-soft); padding: 3px 9px; border-radius: 10px; }
.app-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.app-kpis div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: grid; gap: 2px; min-width: 0; }
.app-kpis small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-kpis b { font-family: var(--f-display); font-size: 17px; color: var(--ink); white-space: nowrap; }
.app-kpis em { font-style: normal; font-size: 10px; color: var(--erp-deep); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.app-card-t { font-weight: 700; font-size: 11px; color: var(--ink); margin-bottom: 8px; }
.app-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 120px; padding-top: 4px; }
.app-bars li { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 4px; align-items: end; }
.app-bars span { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--erp), color-mix(in srgb, var(--erp) 55%, #fff)); }
.app-bars li:nth-child(6) span { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.app-bars small { font-size: 9px; color: var(--muted); text-align: center; }
.app-list { display: grid; }
.app-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.app-list li:last-child { border-bottom: 0; }
.app-list b { font-size: 11px; white-space: nowrap; }
.app-list span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-list em, .app-table td em, .app-col em { font-style: normal; font-weight: 700; font-size: 9.5px; color: var(--erp-deep); background: var(--erp-soft); padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.app-board { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; }
.app-col { background: #f1f4f9; border-radius: 10px; padding: 8px; display: grid; gap: 6px; align-content: start; min-height: 230px; min-width: 0; }
.app-col p { display: flex; justify-content: space-between; align-items: center; font-size: 11px; padding: 2px 2px 4px; }
.app-col p span { font-size: 10px; background: #fff; border-radius: 8px; padding: 0 6px; color: var(--muted); font-weight: 700; }
.app-col ul { display: grid; gap: 6px; }
.app-col li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--erp); border-radius: 8px; padding: 7px 8px; display: grid; gap: 2px; justify-items: start; }
.app-col li b { font-size: 11px; }
.app-col li span { color: var(--muted); font-size: 10.5px; }
.app-col li em { margin-top: 3px; }
.app-table-wrap { overflow: hidden; padding: 0; }
.app-table-wrap .app-card-t { padding: 10px 12px 0; }
.app-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.app-table th { text-align: left; font-size: 10px; color: var(--muted); font-weight: 700; padding: 8px 12px; background: #f4f6fa; border-bottom: 1px solid var(--line); white-space: nowrap; }
.app-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.app-table tbody tr:last-child td { border-bottom: 0; }
.app-table tfoot td { border-bottom: 0; padding-top: 6px; padding-bottom: 6px; color: var(--muted); }
.app-table tfoot td:last-child, .app-table tbody td:last-child { text-align: right; }
.app-table thead th:last-child { text-align: right; }
.app-total td { color: var(--ink) !important; font-weight: 700; font-family: var(--f-display); font-size: 13px; border-top: 1px solid var(--line); }
.app-matrix td, .app-matrix th { text-align: center !important; }
.app-matrix td:first-child, .app-matrix th:first-child { text-align: left !important; }
.app-matrix td.is-low { color: #b42318; background: #fdecec; font-weight: 700; }
.app-legend { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); }
.app-legend i { width: 10px; height: 10px; border-radius: 3px; background: #fdecec; border: 1px solid #f5b5b0; }
.app-split--bill { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); }
.app-pay { display: grid; gap: 10px; align-content: start; }
.app-pay ul { display: flex; gap: 4px; }
.app-pay li { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: 10.5px; }
.app-pay li.on { background: var(--erp-soft); border-color: var(--erp); color: var(--erp-deep); }
.app-pay > b { font-family: var(--f-display); font-size: 22px; }
.app-btn { display: block; text-align: center; padding: 8px; border-radius: 8px; background: var(--erp); color: #fff; font-weight: 700; font-size: 11px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .ep-hero-grid { grid-template-columns: 1fr; }
  .ep-bens { grid-template-columns: 1fr 1fr; }
  .ep-ben:nth-child(3) { border-left: 0; }
  .ep-ben:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ep-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-screen { grid-template-columns: 1fr; }
  .ep-steps { grid-template-columns: 1fr 1fr; }
  .ep-others { grid-template-columns: 1fr 1fr; }
  .ep-others > p { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 700px) {
  .app { font-size: 10.5px; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-nav { display: none; }
  .app-kpis { grid-template-columns: 1fr 1fr; }
  .app-split, .app-split--bill { grid-template-columns: 1fr; }
  .app-board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow: hidden; }
  .app-col { min-height: 0; }
  .app-table-wrap { overflow-x: auto; }
  .app-search { display: none; }
  .ep-screen-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .ep-screen-tabs button { white-space: nowrap; }
}
@media (max-width: 600px) {
  .ep-bens, .ep-mods, .ep-steps, .ep-others { grid-template-columns: 1fr; }
  .ep-ben { border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .ep-ben:last-child { border-bottom: 0; }
  .ep-hero .d1-actions .hx-btn { flex: 1 1 100%; }
}
@media (min-width: 1081px) { .ep-hero-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } .ep-hero-visual { margin-right: -20px; } }
@media (min-width: 420px) and (max-width: 600px) { .ep-mods { grid-template-columns: 1fr 1fr; gap: 12px; } .ep-mod { padding: 18px 16px; } }

/* Real dashboard screenshot in the hero (Salon, Footwear) */
.ep-hero { padding-block: clamp(32px, 4.4vw, 60px) clamp(40px, 5vw, 72px); }
.ep-shot { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px rgba(10, 31, 68, .22), 0 0 0 8px rgba(255, 255, 255, .6); transition: transform .4s var(--ease); }
.ep-shot:hover { transform: translateY(-4px); }
.ep-shot .d1-browser { display: flex; }
.ep-shot img { width: 100%; height: auto; display: block; }
.ep-shot-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.ep-shot-note .i { width: 18px; height: 18px; color: var(--erp-deep, var(--green-600)); }
@media (min-width: 1081px) {
  .ep-hero-grid:has(.ep-hero-visual--shot) { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
  .ep-hero-visual--shot { margin-right: 0; }
  .ep-hero-visual--shot .ep-shot { width: calc(100% + max(0px, (100vw - 1240px) / 2) + 40px); max-width: 1000px; border-radius: 16px 0 0 16px; border-right: 0; }
}

/* Tighter hero top spacing (matches inner pages) */
.ep-hero { padding-top: clamp(20px, 2.4vw, 32px); }
.ep-hero .pg-crumbs { margin-bottom: 14px; }

/* Hero visual sits near the top (level with the heading), not centred low against the long copy */
@media (min-width: 1081px) {
  .ep-hero-grid { align-items: start; }
  .ep-hero-visual { align-self: start; margin-top: 44px; }
}

/* "Built for" — highlighted audience card (colour follows each product) */
.ep-who { position: relative; display: grid; gap: 12px; margin-top: 28px; padding: 18px 20px 20px; border: 1px solid color-mix(in srgb, var(--erp) 30%, transparent); border-left: 4px solid var(--erp); border-radius: 18px;
  background: linear-gradient(135deg, var(--erp-soft), #fff 85%); box-shadow: 0 16px 36px color-mix(in srgb, var(--erp) 14%, transparent); }
.ep-who p { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--f-display); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--erp-deep); }
.ep-who p::before { content: ""; width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--erp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ep-who ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ep-who li { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid color-mix(in srgb, var(--erp) 22%, var(--line)); border-radius: 12px; padding: 10px 12px; line-height: 1.3; transition: border-color .25s, transform .25s var(--ease); }
.ep-who li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--erp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ep-who li:hover { border-color: var(--erp); transform: translateY(-1px); }
@media (max-width: 420px) { .ep-who ul { grid-template-columns: 1fr; } }

/* Screenshot heroes (Salon, Footwear): keep the whole screenshot inside the page, no right-edge bleed */
@media (min-width: 1081px) {
  .ep-hero-grid:has(.ep-hero-visual--shot) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .ep-hero-visual--shot { margin-right: 0; min-width: 0; }
  .ep-hero-visual--shot .ep-shot { width: 100%; max-width: 100%; border-radius: 16px; border-right: 1px solid var(--line); }
}
