/* Shared styles for the product pages (erp.html, crm.html, hrm.html) and plans.html. Loaded after brand/v1/;
 * each page's inline <style> still comes last and can override these by source order. */

/* These pages have no scroll listener, so the nav keeps its bottom border */
.nav { border-bottom-color: var(--line); }
.footer { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.03; letter-spacing: -.03em; margin-bottom: 26px; font-variation-settings: "opsz" 72; }
.hero .status { margin-bottom: 22px; }
@media (max-width: 760px) { .glyphs span:nth-child(n+4) { display: none; } }
.cta-row { align-items: center; }

/* Text link with a growing rule, e.g. "See plans" */
.text-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.text-link::after { content: ""; width: 24px; height: 1px; background: currentColor; transition: width .3s ease; }
.text-link:hover::after { width: 44px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--ink-2); max-width: 62ch; }

/* ---------- Feature / module grid ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature { padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s; }
.feature:hover { border-color: var(--line-strong); }
.feature--hot { border-color: color-mix(in srgb, var(--purple) 45%, transparent); background: linear-gradient(160deg, var(--tint), transparent 70%), var(--surface); }
.f-sym { display: block; margin-bottom: 16px; font: italic 400 1.9rem/1 var(--font-display); color: var(--purple); }
.feature h3 { font-family: var(--font-sans); font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: .98rem; color: var(--ink-2); }

/* ---------- Diagrams (static SVG) ---------- */
.diagram {
  position: relative; overflow: hidden; margin: 0; padding: 10px;
  border: 1px solid var(--line); border-radius: 20px; background-color: var(--surface);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center;
}
.diagram svg { display: block; width: 100%; height: auto; }
.d-edge { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.d-dash { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; fill: none; }
.d-hot { stroke: var(--purple); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.d-box { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.3; }
.d-box.hot { stroke: var(--purple); stroke-width: 2; }
.d-fill { fill: var(--purple); }
.d-fill.soft { opacity: .18; }
.d-fill.mid { opacity: .45; }
.d-blue { fill: var(--blue); opacity: .32; }
.d-label { font: 11px var(--font-mono); fill: var(--muted); }
.d-label.strong { fill: var(--accent-text); font-weight: 500; }
.d-label.big { font-size: 13px; }
.d-hot.draw { stroke-dasharray: 1; animation: draw 1.2s ease-out .3s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Spotlight: copy beside a diagram ---------- */
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .spotlight { grid-template-columns: 1fr; } }
.spotlight h2 { margin-bottom: 18px; }
.spotlight p { color: var(--ink-2); max-width: 46ch; }
.spotlight p + p { margin-top: 14px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(-45deg); }

/* ---------- Related product cards ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.related a {
  display: grid; gap: 6px; padding: 26px 24px; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  transition: border-color .3s, transform .3s;
}
.related a:hover { border-color: var(--purple); transform: translateY(-2px); }
.related h3 { font-size: 1.6rem; line-height: 1.15; }
.related p { color: var(--ink-2); font-size: .98rem; }
.related .text-link { margin-top: 10px; }
.related a:hover .text-link::after { width: 44px; }

/* ---------- Closing call to action (dark brand panel) ---------- */
.cta { padding: 0 0 clamp(64px, 9vw, 120px); }
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: clamp(36px, 6vw, 80px); border-radius: 28px; border: 1px solid rgba(167, 139, 250, .28);
  background:
    radial-gradient(110% 140% at 88% 0%, #3B1E8F 0%, transparent 55%),
    radial-gradient(90% 120% at 0% 100%, #1D3FA8 0%, transparent 60%),
    #0B1030;
}
.cta-panel h2 { color: #fff; margin-bottom: 16px; max-width: 14em; }
.cta-panel p { color: rgba(255, 255, 255, .8); max-width: 48ch; margin-bottom: 30px; }
.cta-panel :focus-visible { outline-color: #C4B5FD; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.cta-glyph { position: absolute; right: 4%; top: 50%; z-index: -1; transform: translateY(-50%); font: italic 400 clamp(10rem, 24vw, 18rem)/1 var(--font-display); color: #A78BFA; opacity: .12; pointer-events: none; user-select: none; }

@media (prefers-reduced-motion: reduce) {
  .d-hot.draw { animation: none; stroke-dasharray: none; }
  .text-link::after, .feature, .related a, .btn-outline-light { transition: none; }
}
