/* Shared layout for Enbright app sites. Each site sets its accent tokens in its own stylesheet. */

:root {
  color-scheme: light dark;
  --accent: #6d4aff;
  --accent-text: #5b36f0;
  --accent-ink: #ffffff;
  --accent-soft: #f1edff;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1b22;
  --muted: #5f5a6b;
  --line: #e8e4ee;
  --shadow: 0 1px 2px rgb(24 18 48 / 6%), 0 12px 32px rgb(24 18 48 / 7%);
  --radius: 20px;
  --max-width: 1040px;
  --prose-width: 42rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #a98bff;
    --accent-text: #b9a1ff;
    --accent-ink: #160f29;
    --accent-soft: #231c38;
    --bg: #121017;
    --surface: #1b1822;
    --text: #f2eff7;
    --muted: #aaa4b8;
    --line: #2d2937;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 12px;
}

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

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* Home hero */

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 56px;
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
    padding-top: 56px;
    padding-bottom: 88px;
  }
}

.hero-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  font-weight: 750;
}

.lede {
  margin: 0 0 28px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.store-badge.is-pending {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.requirements {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.illustration {
  padding: 28px;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface));
  box-shadow: var(--shadow);
}

/* Sections */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
}

.section-intro {
  margin: 0 0 32px;
  max-width: 38rem;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.steps h3,
.features h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.steps p,
.features p {
  margin: 0;
  color: var(--muted);
}

.features {
  display: grid;
  gap: 28px 40px;
}

@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.features > div {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.callout {
  max-width: var(--prose-width);
  margin: 0;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 10px;
}

/* Text pages */

.prose {
  max-width: var(--prose-width);
  padding-top: 32px;
  padding-bottom: 72px;
}

.prose h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.prose h2 {
  margin: 44px 0 10px;
  font-size: 1.35rem;
}

.prose h3 {
  margin: 28px 0 6px;
  font-size: 1.1rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose li + li {
  margin-top: 6px;
}

.prose .updated,
.prose .lede {
  color: var(--muted);
}

.contact-card {
  margin: 28px 0 8px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: 0;
}

.contact-card .email {
  display: inline-block;
  margin: 6px 0 10px;
  font-size: 1.35rem;
  font-weight: 650;
}

kbd {
  font-family: inherit;
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }

  .nav a {
    padding: 6px 8px;
  }
}
