/* EMBER showcase — a polished sales landing page. Dark, on-brand, responsive,
   accessible. CSS-var fallbacks so it renders even before theme.js applies the
   tenant palette (and offline). */
:root {
  --bg: #0e1116; --panel: #161b22; --panel2: #1c232d; --line: #2a323d;
  --ink: #e7edf3; --muted: #93a1b0; --brand: #ff7a18; --brand2: #7ec9ff;
  --good: #3fb950; --bad: #f85149; --partial: #d29922;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand2); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #160a04; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Top bar */
.sc-topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
  background: rgba(14, 17, 22, .82); backdrop-filter: blur(8px);
}
.sc-home { color: var(--brand2); text-decoration: none; font-size: 14px; }
.sc-home:hover { text-decoration: underline; }
.sc-wordmark { flex: 1; font-weight: 800; letter-spacing: .04em; font-size: 16px; }
.sc-cta-top {
  text-decoration: none; background: var(--brand); color: #160a04; font-weight: 700;
  border-radius: 9px; padding: 8px 16px; font-size: 13px;
}
.sc-cta-top:hover { filter: brightness(1.08); }

/* Section scaffolding */
section { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
h1 { margin: 0; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.01em; }
h3 { margin: 0 0 8px; font-size: 19px; }
.sc-eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--brand2); font-weight: 700; }
.sc-section-lede { color: var(--muted); font-size: 17px; margin: 0 0 32px; max-width: 60ch; }

/* Hero */
.sc-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.sc-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 420px at 30% -10%, rgba(255, 122, 24, .18), transparent 70%),
              radial-gradient(700px 360px at 90% 0%, rgba(126, 201, 255, .12), transparent 70%);
}
.sc-tagline { margin: 14px 0 0; font-size: clamp(18px, 2.4vw, 24px); color: var(--brand); font-weight: 600; }
.sc-lede { margin: 18px 0 28px; font-size: 18px; color: var(--ink); max-width: 52ch; }
.sc-lede strong { color: var(--good); }
.sc-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sc-hero-mascot { display: flex; justify-content: center; line-height: 0; }
.sc-hero-mascot svg { filter: drop-shadow(0 18px 48px rgba(255, 122, 24, .35)); animation: sc-float 5s ease-in-out infinite; }

/* Buttons */
.sc-btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  border-radius: 11px; padding: 13px 22px; transition: filter .15s ease, transform .15s ease, border-color .15s ease;
}
.sc-btn-primary { background: var(--brand); color: #160a04; border: 1px solid var(--brand); }
.sc-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sc-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.sc-btn-ghost:hover { border-color: var(--brand2); }
.sc-btn:focus-visible, .sc-cta-top:focus-visible, .sc-try:focus-visible, .sc-home:focus-visible {
  outline: 2px solid var(--brand2); outline-offset: 3px;
}

/* Why grid */
.sc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.sc-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease;
}
.sc-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.sc-card-icon { line-height: 0; margin-bottom: 14px; }
.sc-card-icon svg { filter: drop-shadow(0 6px 14px rgba(255, 122, 24, .22)); }
.sc-card p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.sc-try { margin-top: auto; color: var(--brand2); text-decoration: none; font-weight: 600; font-size: 14px; }
.sc-try:hover { text-decoration: underline; }

/* Sample scenario */
.sc-sample-card {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 122, 24, .12), rgba(126, 201, 255, .07));
  border: 1px solid var(--brand); border-radius: 18px; padding: 28px;
}
.sc-sample-body { flex: 1; min-width: 240px; }
.sc-sample-body h3 { font-size: 22px; margin: 4px 0 10px; }
.sc-sample-body p { color: var(--muted); margin: 0; }

/* Book / order */
.sc-book { text-align: center; }
.sc-book-mascot { line-height: 0; display: flex; justify-content: center; margin-bottom: 8px; }
.sc-book-mascot svg { filter: drop-shadow(0 14px 36px rgba(255, 122, 24, .32)); }
.sc-book .sc-hero-actions { justify-content: center; }

/* Footer */
.sc-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.sc-footer p { max-width: 1080px; margin: 0 auto; padding: 28px 24px; color: var(--muted); font-size: 13px; text-align: center; }

@keyframes sc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Responsive */
@media (max-width: 860px) {
  .sc-hero { grid-template-columns: 1fr; text-align: left; }
  .sc-hero-mascot { order: -1; }
  .sc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  section { padding: 52px 18px; }
  .sc-grid { grid-template-columns: 1fr; }
  .sc-hero-actions { flex-direction: column; align-items: stretch; }
  .sc-btn { text-align: center; }
}

/* Respect reduced-motion: no float, no smooth-scroll, no transitions. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sc-hero-mascot svg { animation: none; }
  .sc-btn, .sc-card { transition: none; }
}

/* ---- Light-mode overrides: literals that assume a dark ground ---- */
/* Topbar fill is a translucent copy of the dark --bg (#0e1116 = rgb(14,17,22));
   on a light page it stays a dark bar under dark var(--ink) text. Swap for a
   translucent light-bg fill (light --bg #FAFAF8 = rgb(250,250,248)). */
:root[data-theme="light"] .sc-topbar { background: rgba(250, 250, 248, .82); }
