/* EntraAscend marketing site — sober, commercial, coherent with the app.
   Palette lifted from the app: Primary #512BD4 (violet), Azure accent #0078D4,
   role-type colours (Entra violet-blue, Groups teal, Azure blue). Light/dark. */

:root {
  --primary: #512BD4;
  --primary-600: #4322b0;
  --azure: #0078D4;
  --entra: #8661C5;
  --group: #2E9E8F;
  --azure-role: #0078D4;

  --bg: #ffffff;
  --bg-band: #f6f5fb;
  --surface: #ffffff;
  --border: #e6e3f0;
  --text: #1c1a26;
  --text-muted: #5a5670;
  --shadow: 0 1px 2px rgba(20, 16, 40, .06), 0 8px 24px rgba(20, 16, 40, .06);
  --radius: 14px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ac99ea;
    --primary-600: #c3b4f1;
    --azure: #4aa3e8;
    --entra: #b49ce0;
    --group: #56c2b2;
    --azure-role: #4aa3e8;
    --bg: #14121c;
    --bg-band: #1b1826;
    --surface: #201d2c;
    --border: #322d45;
    --text: #ece9f6;
    --text-muted: #a7a1bf;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 12px; max-width: 20em; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text-muted); font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  color: #fff !important; background: var(--primary);
  padding: 8px 14px; border-radius: 10px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-600); text-decoration: none; }
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, transform .05s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; background:
  radial-gradient(1200px 500px at 15% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
  font-weight: 700; color: var(--azure); margin: 0 0 12px;
}
.eyebrow-center { text-align: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 18px; }
.lede { font-size: 1.12rem; color: var(--text-muted); margin: 0 0 26px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--text-muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* Real app screenshot, in a clean device frame */
.hero-art { display: flex; justify-content: center; }
.phone-shot {
  margin: 0;
  width: 260px; max-width: 78vw;
  border-radius: 40px; padding: 11px;
  background: linear-gradient(160deg, #2a2740, #17151f);
  box-shadow: var(--shadow);
}
.phone-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 30px;
  border: 1px solid var(--border);
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.band { background: var(--bg-band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lede { color: var(--text-muted); font-size: 1.05rem; max-width: 46em; margin: 0 0 28px; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: var(--text-muted); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary); font-weight: 800;
}
.step p { color: var(--text-muted); margin: 0; }

/* Pillars (org-level outcomes) */
.pillar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.pillar h3 { color: var(--primary); }
.pillar p { color: var(--text-muted); margin: 0; }
.why-footnote { margin-top: 26px; color: var(--text-muted); font-size: .92rem; }

/* Small uppercase surface / group labels inside a section */
.surface-label {
  text-transform: uppercase; letter-spacing: .09em; font-size: .72rem;
  font-weight: 700; color: var(--text-muted); margin: 0 0 14px;
}

/* Surface 1 — the app UI: two benefits beside the catalogue screenshot */
.admins-grid {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 48px; align-items: start;
}
@media (max-width: 860px) { .admins-grid { grid-template-columns: 1fr; gap: 32px; } }
.admins-features { display: grid; gap: 26px; }
.feature h3 { color: var(--primary); }
.feature p { color: var(--text-muted); margin: 0; }
.phone-shot-inline { width: 224px; max-width: 66vw; justify-self: center; }
@media (min-width: 861px) { .phone-shot-inline { align-self: start; } }

/* Surface 2 — an OS notification: a distinct, smaller, framed callout */
.notif-callout {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 36px;
}
@media (max-width: 720px) {
  .notif-callout { grid-template-columns: 1fr; gap: 24px; text-align: center; padding: 28px 24px; }
}
.notif-copy h3 { color: var(--azure); }
.notif-copy p { color: var(--text-muted); margin: 0; max-width: 40em; }
.surface-label-alt { color: var(--azure); }
.notif-shot {
  margin: 0; width: 170px; max-width: 56vw; justify-self: center;
  border-radius: 26px; padding: 7px;
  background: linear-gradient(160deg, #2a2740, #17151f);
  box-shadow: var(--shadow);
}
.notif-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 20px; border: 1px solid var(--border);
}
.notif-shot figcaption {
  margin-top: 10px; text-align: center; color: var(--text-muted); font-size: .82rem;
  padding: 0 6px;
}

/* Inline how-it-works (inside the admins section) */
.how-inline { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 36px; }
.steps-inline { margin: 0; }

/* Trust grid */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--azure); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.trust-item p { color: var(--text-muted); margin: 0; }
.trust-footnote { margin-top: 22px; color: var(--text-muted); font-size: .92rem; }

/* Pricing — capacity-only bundles, compact side-by-side */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-align: center;
}
.price-card h3 { margin-bottom: 4px; }
.price-card-contact { background: var(--bg-band); }
.price { margin: 6px 0 4px; }
.price .amount { font-size: 2.1rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.price .contact-amount { font-size: 1.5rem; }
.price .per { color: var(--text-muted); font-size: .9rem; margin-left: 4px; }
/* Honest volume taper: effective per-user rate, the real differentiator */
.price-peruser {
  margin: 0 0 14px; font-size: .86rem; font-weight: 600; color: var(--azure);
  font-variant-numeric: tabular-nums;
}
.price-peruser-muted { color: var(--text-muted); font-weight: 500; }
.price-sub { color: var(--text-muted); margin: 0 0 18px; font-size: .92rem; flex: 1; }
.price-card .btn { text-align: center; width: 100%; }
.price-note { margin-top: 20px; color: var(--text-muted); font-size: .88rem; }

/* Shared "Every plan includes" — one list, not per-card */
.includes {
  margin-top: 30px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow);
}
.includes-title { font-size: 1.05rem; color: var(--text); margin: 0 0 16px; }
.includes-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px;
}
@media (max-width: 640px) { .includes-list { grid-template-columns: 1fr; } }
.includes-list li { position: relative; padding-left: 26px; color: var(--text-muted); }
.includes-list li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 6px;
  border-left: 2px solid var(--group); border-bottom: 2px solid var(--group);
  transform: rotate(-45deg);
}

/* CTA */
.cta-section { background:
  linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--bg)), var(--bg)); }
.cta-wrap { text-align: center; }
.cta-wrap h2, .cta-wrap .section-lede { margin-left: auto; margin-right: auto; }
.cta-actions { margin: 22px 0 10px; }
.cta-fallback { color: var(--text-muted); font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-band); padding: 36px 0; }
.footer-grid { display: flex; flex-direction: column; gap: 6px; }
.footer-brand { font-weight: 800; margin: 0 0 4px; }
.footer-tag { color: var(--text-muted); margin: 0 0 12px; }
.footer-fine { color: var(--text-muted); font-size: .85rem; margin: 0; }
