/* ── MyWestock brand palette ── */
:root {
  --mw-green:  #006A2C;
  --mw-dark:   #00592A;
  --mw-yellow: #FFCC00;
  --mw-navy:   #061409;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color:        #006A2C;
  --md-primary-fg-color--light: #1B7F3F;
  --md-primary-fg-color--dark:  #00592A;
  --md-accent-fg-color:         #FFCC00;
  --md-accent-fg-color--dark:   #CCB000;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #1B7F3F;
  --md-primary-fg-color--light: #2E9152;
  --md-primary-fg-color--dark:  #006A2C;
  --md-accent-fg-color:         #FFCC00;
}

/* ── Header ── */
.md-header {
  background-color: var(--mw-navy) !important;
}
/* Hide the auto-generated site-name text; logo partial has the brand */
.md-header__title { display: none; }

/* Brand text in logo partial */
.mw-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.mw-logo-my      { color: #ffffff; }
.mw-logo-westock { color: #FFCC00; }

/* ── Admonitions ── */
.md-typeset .admonition.screenshot,
.md-typeset details.screenshot {
  border-color: #006A2C;
}
.md-typeset .screenshot > .admonition-title,
.md-typeset .screenshot > summary {
  background-color: rgba(0,106,44,.08);
}
.md-typeset .screenshot > .admonition-title::before,
.md-typeset .screenshot > summary::before {
  background-color: #006A2C;
  -webkit-mask-image: var(--md-admonition-icon--note);
  mask-image: var(--md-admonition-icon--note);
}

/* ── Role badges ── */
.role-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 2px;
}
.role-admin    { background:#fee2e2; color:#b91c1c; }
.role-support  { background:#fef3c7; color:#92400e; }
.role-bo       { background:#dbeafe; color:#1d4ed8; }
.role-rm       { background:#e0e7ff; color:#3730a3; }
.role-tm       { background:#ede9fe; color:#5b21b6; }
.role-sm       { background:#d1fae5; color:#065f46; }
.role-maint    { background:#ffedd5; color:#92400e; }
.role-fc       { background:#f3f4f6; color:#374151; }

/* ── Step callouts ── */
.step-grid {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.4rem 0.8rem;
  margin: 1rem 0;
}
.step-num {
  background: #006A2C;
  color: #fff;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   LANDING PAGE — hero, screens, features
   ══════════════════════════════════════════════ */

/* Hero ───────────────────────────────────────── */
.hp-hero {
  background: linear-gradient(135deg, #061409 0%, #003d18 55%, #006A2C 100%);
  border-radius: 16px;
  margin: 0 0 2.5rem;
  overflow: hidden;
  position: relative;
}
.hp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,106,44,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(255,204,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 2.5rem 2.5rem;
  position: relative;
  z-index: 1;
}
.hp-eyebrow {
  display: inline-block;
  background: rgba(255,204,0,0.15);
  color: #FFCC00;
  border: 1px solid rgba(255,204,0,0.3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hp-h1,
.md-typeset .hp-h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hp-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin: 0 0 1.8rem;
  max-width: 480px;
}
.hp-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hp-btn-primary {
  background: #FFCC00;
  color: #061409 !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.1s;
}
.hp-btn-primary:hover { background: #ffe033; transform: translateY(-1px); }
.hp-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none !important;
  transition: background 0.15s;
}
.hp-btn-ghost:hover { background: rgba(255,255,255,0.14); }
.hp-stats-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hp-stat { text-align: center; padding: 0 0.5rem; }
.hp-stat-val { display: block; font-size: 1.3rem; font-weight: 800; color: #FFCC00; }
.hp-stat-lbl { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; }
.hp-stat-div { width: 1px; height: 32px; background: rgba(255,255,255,0.15); }

/* Browser frame ─────────────────────────────── */
.hp-browser-frame {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.12),
    0 24px 60px rgba(0,0,0,0.45),
    0 8px 20px rgba(0,0,0,0.25);
}
.hp-browser-bar {
  background: #e8e8e8;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #d4d4d4;
}
.hp-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hp-url-pill {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  height: 20px;
  margin-left: 8px;
  font-size: 0.68rem;
  color: #666;
  display: flex;
  align-items: center;
  padding: 0 8px;
  letter-spacing: 0.02em;
}
.hp-browser-frame img {
  width: 100%;
  display: block;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Screenshot section ─────────────────────────── */
.hp-screens-section {
  margin: 0 0 2.5rem;
}
.hp-section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.hp-section-eyebrow {
  display: inline-block;
  color: #006A2C;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.hp-section-h2,
.md-typeset .hp-section-h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.md-typeset .hp-h2-dark {
  color: #0f172a !important;
}
.hp-section-sub {
  font-size: 0.97rem;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.hp-screens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.55fr;
  gap: 1.5rem;
  align-items: start;
}
.hp-screen-card { display: flex; flex-direction: column; gap: 1rem; }
.hp-frame-sm { border-radius: 8px; }
.hp-frame-sm img {
  max-height: 260px;
  object-fit: cover;
  object-position: top;
  width: 100%;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
.hp-screen-caption {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.hp-screen-caption .hp-screen-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.hp-screen-caption strong { display: block; font-size: 0.95rem; color: #0f172a; margin-bottom: 0.25rem; }
.hp-screen-caption p { font-size: 0.84rem; color: #64748b; margin: 0; line-height: 1.5; }

/* Phone frame ──────────────────────────────────── */
.hp-phone-frame {
  background: #1a1a1a;
  border-radius: 32px;
  padding: 14px 10px 20px;
  box-shadow:
    0 0 0 1px #333,
    0 20px 50px rgba(0,0,0,0.4);
  position: relative;
  max-width: 200px;
  margin: 0 auto;
}
.hp-phone-chrome {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}
.hp-phone-notch {
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 3px;
}
.hp-phone-frame img {
  width: 100%;
  border-radius: 20px !important;
  border: none !important;
  box-shadow: none !important;
  display: block;
}
.hp-phone-home {
  width: 40px;
  height: 4px;
  background: #444;
  border-radius: 2px;
  margin: 10px auto 0;
}

/* Feature section ─────────────────────────────── */
.hp-features-section {
  background: linear-gradient(160deg, #F4F8F4 0%, #E8F5EC 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 0 0 2.5rem;
}
.hp-ey-dark { color: #004d1f; }
.hp-h2-dark { color: #0f172a; }
.hp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.hp-feature-card {
  background: #fff;
  border: 1px solid #D1E8D6;
  border-radius: 12px;
  padding: 1.4rem 1.25rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.hp-feature-card:hover {
  border-color: #006A2C;
  box-shadow: 0 4px 20px rgba(0,106,44,0.1);
}
.hp-feat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.hp-feat-icon-wrap svg { width: 22px; height: 22px; }
.hp-fi-green  { background: #dcfce7; color: #15803d; }
.hp-fi-amber  { background: #fef9c3; color: #92400e; }
.hp-fi-blue   { background: #dbeafe; color: #1d4ed8; }
.hp-fi-purple { background: #ede9fe; color: #5b21b6; }
.hp-fi-red    { background: #fee2e2; color: #b91c1c; }
.hp-fi-teal   { background: #ccfbf1; color: #0f766e; }
.hp-feature-card h3,
.md-typeset .hp-feature-card h3 { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin: 0 0 0.4rem; }
.hp-feature-card p  { font-size: 0.84rem; color: #64748b; margin: 0; line-height: 1.55; }

/* Docs section & footer ────────────────────────── */
.hp-docs-section { margin-bottom: 2rem; }
.hp-footer-band {
  background: #F4F8F4;
  border: 1px solid #D1E8D6;
  border-radius: 10px;
  padding: 1rem 1.4rem;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 0.5rem;
}
.hp-footer-band strong { color: #006A2C; }

/* Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .hp-hero-inner { grid-template-columns: 1fr; padding: 2.5rem 1.5rem 2rem; }
  .hp-hero-visual { display: none; }
  .hp-screens-grid { grid-template-columns: 1fr 1fr; }
  .hp-screen-card:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; }
  .hp-screen-card:last-child .hp-phone-frame { max-width: 140px; }
  .hp-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hp-screens-grid { grid-template-columns: 1fr; }
  .hp-screen-card:last-child { flex-direction: column; }
  .hp-features-grid { grid-template-columns: 1fr; }
  .hp-stats-row { gap: 0.25rem; }
  .hp-stat-val { font-size: 1.1rem; }
}

/* ── Home page cards ── */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.home-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow .15s, border-color .15s;
  display: block;
}
.home-card:hover {
  border-color: var(--mw-green);
  box-shadow: 0 4px 16px rgba(0,106,44,.12);
}
.home-card .hc-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}
.home-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mw-green);
}
.home-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--md-default-fg-color--light);
}

/* ── Responsive images ── */
.md-typeset img {
  border-radius: 8px;
  border: 1px solid var(--md-default-fg-color--lightest);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
