/* ============================================================
   Ezibell Tech — Products pages & home teaser
   Palette: teal #165368 · sky #8cbac9 · ink #1f2d3a · hi-vis #f97316
   ============================================================ */

.p-hero { background: radial-gradient(900px 400px at 85% -10%, rgba(140,186,201,.35), transparent 60%), linear-gradient(135deg, #0f3a4a 0%, #165368 55%, #1e6b85 100%); color: #fff; padding: 120px 0 70px; position: relative; overflow: hidden; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 34px, rgba(255,255,255,.03) 34px 68px); pointer-events: none; }
.p-hero .container { position: relative; z-index: 1; }
.p-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; margin-bottom: 18px; }
.p-eyebrow.hot { background: #f97316; border-color: #f97316; color: #111; }
.p-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.12; margin: 0 0 16px; font-weight: 800; color: #fff; }
.p-hero h1 em { font-style: normal; color: #ffd166; }
.p-hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 720px; line-height: 1.65; margin: 0 0 28px; }
.p-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.p-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 13px 26px; border-radius: 10px; transition: transform .2s, box-shadow .2s, background .2s; font-size: 15px; }
.p-btn:hover { transform: translateY(-2px); }
.p-btn-hot { background: #f97316; color: #111; box-shadow: 0 10px 24px rgba(249,115,22,.35); }
.p-btn-hot:hover { background: #ff8c3a; }
.p-btn-teal { background: #165368; color: #fff; }
.p-btn-teal:hover { background: #1e6b85; }
.p-btn-light { background: #fff; color: #165368; }
.p-btn-outline { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.p-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.p-btn-ghost { border: 2px solid #d5e2e8; color: #165368; background: #fff; }
.p-btn-ghost:hover { border-color: #165368; }
.p-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.p-hero-shot { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); transform: perspective(1400px) rotateY(-6deg); }
.p-hero-shot img { display: block; width: 100%; height: auto; }
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.p-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 14px 16px; backdrop-filter: blur(6px); }
.p-stat b { display: block; font-size: 1.7rem; line-height: 1; margin-bottom: 4px; color: #fff; }
.p-stat span { font-size: 13px; color: rgba(255,255,255,.75); }

/* ---------- sections ---------- */
.p-section { padding: 80px 0; }
.p-section.alt { background: linear-gradient(180deg, #ffffff 0%, #f5f8fa 100%); }
.p-section.dark { background: #10303c; color: #fff; }
.p-section h2 { text-align: center; color: #165368; font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0 0 12px; font-weight: 800; }
.p-section.dark h2 { color: #fff; }
.p-sub { text-align: center; color: #667; max-width: 760px; margin: 0 auto 46px; font-size: 1.05rem; line-height: 1.65; }
.p-section.dark .p-sub { color: rgba(255,255,255,.75); }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.p-panel { background: #fff; border: 1px solid #e3ebf0; border-radius: 16px; padding: 30px; box-shadow: 0 10px 30px rgba(22,83,104,.06); }
.p-panel h3 { margin: 0 0 14px; font-size: 1.25rem; color: #1f2d3a; display: flex; align-items: center; gap: 10px; }
.p-panel ul { margin: 0; padding: 0; list-style: none; }
.p-panel li { padding: 9px 0 9px 30px; position: relative; color: #445; line-height: 1.5; border-bottom: 1px dashed #e6eef2; }
.p-panel li:last-child { border-bottom: 0; }
.p-panel li::before { position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.p-panel.bad li::before { content: "✕"; background: #fee2e2; color: #b91c1c; }
.p-panel.good li::before { content: "✓"; background: #dcfce7; color: #15803d; }

/* ---------- lifecycle flow (HTML) ---------- */
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; counter-reset: step; }
.flow-step { position: relative; padding: 0 12px; text-align: center; }
.flow-step::after { content: "›"; position: absolute; right: -8px; top: 22px; font-size: 30px; line-height: 1; color: #8cbac9; font-weight: 700; }
.flow-step:last-child::after { display: none; }
.flow-ico { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 26px; background: #eaf3f6; color: #165368; position: relative; box-shadow: inset 0 0 0 1px #d5e2e8; }
.flow-ico::before { counter-increment: step; content: counter(step); position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%; background: #165368; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.flow-step.hot .flow-ico { background: #fff1e6; color: #c2410c; box-shadow: inset 0 0 0 1px #fdba74; }
.flow-step b { display: block; font-size: 15px; color: #1f2d3a; margin-bottom: 4px; }
.flow-step small { display: block; color: #667; font-size: 12.5px; line-height: 1.45; }
.flow-step .actor { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #165368; background: #eaf3f6; padding: 3px 9px; border-radius: 99px; }

/* ---------- decision flowchart (SVG) ---------- */
.chart-wrap { background: #fff; border: 1px solid #e3ebf0; border-radius: 16px; padding: 20px; box-shadow: 0 10px 30px rgba(22,83,104,.06); overflow-x: auto; }
.chart-wrap svg { width: 100%; height: auto; min-width: 760px; font-family: 'Segoe UI', Roboto, Arial, sans-serif; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 14px; font-size: 13px; color: #556; }
.chart-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

/* ---------- roles ---------- */
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role-card { background: #fff; border: 1px solid #e3ebf0; border-radius: 14px; padding: 20px; transition: transform .2s, box-shadow .2s; }
.role-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22,83,104,.12); }
.role-av { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.role-card h4 { margin: 0 0 4px; font-size: 1.02rem; color: #1f2d3a; }
.role-card .scope { font-size: 12px; color: #667; margin-bottom: 10px; }
.role-card p { font-size: 13.5px; color: #445; line-height: 1.55; margin: 0 0 12px; }
.role-card a { font-size: 13px; font-weight: 700; color: #165368; text-decoration: none; }
.role-card a:hover { text-decoration: underline; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot { background: #fff; border: 1px solid #e3ebf0; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(22,83,104,.06); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.shot:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(22,83,104,.14); }
/* height:auto overrides the width/height HTML attributes so 16:10 captures scale instead of cropping */
.shot img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top left; display: block; border-bottom: 1px solid #e8edf3; }
.shot.tall img { height: auto; aspect-ratio: 3/4; object-position: top center; object-fit: cover; background: #f3f4f6; }
.crm-shot { aspect-ratio: auto; }
.crm-shot img { height: auto; aspect-ratio: 16/10; object-fit: cover; }
.featured-shot img, .p-hero-shot img { height: auto; }
.shot figcaption { padding: 14px 16px 16px; }
.shot figcaption b { display: block; color: #1f2d3a; font-size: 15px; margin-bottom: 3px; }
.shot figcaption span { color: #667; font-size: 13px; line-height: 1.45; }
.gallery .wide { grid-column: span 2; }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: #fff; border: 1px solid #e3ebf0; border-radius: 14px; padding: 22px; }
.feat .ic { width: 42px; height: 42px; border-radius: 11px; background: #eaf3f6; color: #165368; display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; }
.feat h4 { margin: 0 0 8px; font-size: 1.05rem; color: #1f2d3a; }
.feat ul { margin: 0; padding-left: 18px; color: #445; font-size: 13.5px; line-height: 1.7; }

/* ---------- roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phase { border-radius: 14px; padding: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.phase .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.phase.done .tag { background: #22c55e; color: #052e16; } .phase.next .tag { background: #ffd166; color: #3b2a00; } .phase.later .tag { background: rgba(255,255,255,.2); color: #fff; }
.phase h4 { margin: 0 0 10px; color: #fff; font-size: 1.1rem; }
.phase ul { margin: 0; padding-left: 18px; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.7; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #f97316, #fb923c); border-radius: 20px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #111; }
.cta-band h3 { margin: 0 0 6px; font-size: 1.6rem; } .cta-band p { margin: 0; color: rgba(0,0,0,.7); }
.cta-band .p-btn-dark { background: #111; color: #fff; }

/* ---------- featured product (products page + home teaser) ---------- */
.featured { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #0f3a4a, #165368); color: #fff; border-radius: 22px; padding: 44px; position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(22,83,104,.25); }
.featured::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 34px, rgba(255,255,255,.03) 34px 68px); pointer-events: none; }
.featured > * { position: relative; }
.featured h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 12px; color: #fff; line-height: 1.2; }
.featured p { color: rgba(255,255,255,.82); line-height: 1.65; margin: 0 0 18px; }
.featured .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.featured .chips span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 12.5px; padding: 5px 12px; border-radius: 99px; }
.featured-shot { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15); }
.featured-shot img { display: block; width: 100%; height: auto; }
.mini-links { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 34px; }
.mini-link { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3ebf0; border-radius: 12px; padding: 12px 14px; text-decoration: none; color: #1f2d3a; font-weight: 600; font-size: 14px; transition: transform .2s, box-shadow .2s; }
.mini-link:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(22,83,104,.12); }
.mini-link .em { font-size: 20px; }
.mini-link small { display: block; color: #667; font-weight: 500; font-size: 11.5px; }
.center { text-align: center; }
.mt-30 { margin-top: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) { .flow { grid-template-columns: repeat(4, 1fr); row-gap: 28px; } .flow-step::after { display: none; } .role-grid { grid-template-columns: repeat(2, 1fr); } .gallery, .feat-grid, .roadmap { grid-template-columns: repeat(2, 1fr); } .mini-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .p-hero { padding: 100px 0 50px; } .p-hero-grid, .p-two, .featured { grid-template-columns: 1fr; } .p-hero-shot { transform: none; } .p-stats { grid-template-columns: repeat(2, 1fr); } .p-section { padding: 56px 0; } .flow { grid-template-columns: repeat(2, 1fr); } .role-grid, .gallery, .feat-grid, .roadmap { grid-template-columns: 1fr; } .gallery .wide { grid-column: auto; } .cta-band { flex-direction: column; text-align: center; padding: 32px 22px; } .featured { padding: 26px 20px; } .mini-links { grid-template-columns: repeat(2, 1fr); } }

/* ---------- home: compact CRM cards under the featured product ---------- */
.small-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.small-card { background: #fff; border: 1px solid #e3ebf0; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(22,83,104,.07); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.small-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(22,83,104,.14); }
.sc-shot { display: block; border-bottom: 1px solid #e8edf3; }
.sc-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top left; }
.sc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.sc-tag { font-size: 12px; font-weight: 600; color: #165368; background: #eaf3f6; padding: 4px 10px; border-radius: 99px; align-self: flex-start; margin-bottom: 8px; }
.sc-body h4 { margin: 0 0 6px; font-size: 1.1rem; color: #1f2d3a; }
.sc-body p { margin: 0 0 14px; font-size: 13.5px; color: #556; line-height: 1.5; }
.sc-actions { margin-top: auto; display: flex; gap: 14px; align-items: center; }
.sc-btn { background: #165368; color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 8px; text-decoration: none; }
.sc-btn:hover { background: #1e6b85; }
.sc-link { font-size: 13.5px; font-weight: 700; color: #165368; text-decoration: none; }
.sc-link:hover { text-decoration: underline; }
@media (max-width: 1024px) { .small-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .small-cards { grid-template-columns: 1fr; } }
