:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1a17;
  --muted: #5f5a52;
  --rule: #e6e1d8;
  --accent: #b4791a;
  --accent-soft: #fdf6e7;
}

/* Per-app accents. Set via <body class="theme-*">. */
body.theme-banking { --accent: #1f7a4d; --accent-soft: #e8f5ee; }
body.theme-dlu     { --accent: #a8386b; --accent-soft: #fceef4; }
body.theme-alias   { --accent: #2f5fa8; --accent-soft: #eaf1fb; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --surface: #201e1b;
    --text: #f2efe9;
    --muted: #a8a196;
    --rule: #35322d;
    --accent: #e8b45c;
    --accent-soft: #2a241a;
  }
  body.theme-banking { --accent: #5cc98c; --accent-soft: #17281f; }
  body.theme-dlu     { --accent: #e97fae; --accent-soft: #2b1a22; }
  body.theme-alias   { --accent: #7dabf0; --accent-soft: #17202e; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 46rem; margin: 0 auto; }

header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.mark .star {
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  border-radius: 0.55rem;
  font-size: 1rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 1.75rem 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.4rem;
  color: var(--text);
}

p, li { color: var(--text); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }

.lede { font-size: 1.1rem; color: var(--muted); margin-bottom: 0.5rem; }
.date { color: var(--muted); font-size: 0.9rem; margin: 0; }

a { color: var(--accent); text-underline-offset: 2px; }

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 0.6rem;
  padding: 1.15rem 1.35rem;
  margin: 1.75rem 0;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: 0.5rem; }

.faq {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}
.faq:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "\2013"; }
.faq p { margin: 0.85rem 0 0.15rem; color: var(--muted); }

/* Plan table for subscription terms. Scrolls on narrow screens. */
.plans { overflow-x: auto; margin: 1.5rem 0; }
.plans table { border-collapse: collapse; width: 100%; min-width: 26rem; }
.plans th, .plans td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.plans th { font-weight: 600; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.plans tr:last-child td { border-bottom: none; }

/* App index cards on the root page. */
.apps { display: grid; gap: 1rem; margin: 2rem 0; padding: 0; list-style: none; }
.apps li { margin: 0; }
.apps a.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  padding: 1.15rem 1.35rem;
  text-decoration: none;
  color: var(--text);
}
.apps a.card:hover { border-color: var(--accent); }
.apps .card strong { display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }
.apps .card span { color: var(--muted); font-size: 0.92rem; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
