:root {
  --coral: #fb5d60;
  --amber: #fcac36;
  --accent: #e03e42;
  --accent-soft: #ffefec;
  --text: #171923;
  --muted: #5f6577;
  --border: #e6e8ef;
  --panel: #f7f7fa;
  --bg: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --accent: #ff8a80; --accent-soft: #3a2626; --text: #e8e9f0; --muted: #a0a5b8; --border: #30333f; --panel: #1d1f27; --bg: #15161c; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* Hero */
header.hero { background: linear-gradient(135deg, var(--coral), var(--amber)); color: #fff; padding: 36px 20px 44px; position: relative; overflow: hidden; }
header.hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 360px; border-radius: 48% 52% 55% 45% / 55% 45% 55% 45%; background: rgba(255,255,255,.12); }
header.hero .wrap { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; opacity: .95; margin-bottom: 18px; }
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.brand a { color: #fff; text-decoration: none; }
header.hero .title { display: flex; align-items: center; gap: 20px; }
header.hero .title img { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 12px 30px rgba(60,20,10,.25); flex: none; }
header.hero h1 { margin: 0; font-size: 32px; line-height: 1.15; }
header.hero p { margin: 6px 0 0; opacity: .92; }
header.hero a { color: #fff; }
.kicker { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .9; }

/* At a glance */
.glance { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: -26px 0 32px; position: relative; }
.glance .tile { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 8px 24px rgba(60,20,10,.08); }
.glance .tile svg { width: 28px; height: 28px; display: block; margin-bottom: 10px; color: var(--accent); }
.glance .tile strong { display: block; font-size: 15px; margin-bottom: 2px; }
.glance .tile span { color: var(--muted); font-size: 14px; }

/* Sections */
main { padding: 0 0 56px; }
.section { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: 0; }
.section .num { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--coral), var(--amber)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; margin-top: 2px; }
.section h2 { font-size: 20px; margin: 4px 0 8px; }
.section p { margin: 0 0 10px; }
.section p:last-child { margin-bottom: 0; }
.summary { border-left: 4px solid var(--coral); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 0 0 8px; }
em { font-style: normal; font-weight: 600; }

/* Permissions table */
table { border-collapse: collapse; width: 100%; font-size: 15px; margin-top: 6px; }
th, td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
td code { background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; font: 600 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }

/* Landing cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 28px 0; }
.card { border: 1px solid var(--border); background: var(--panel); border-radius: 16px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.card img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card p { margin: 0 0 8px; }
h2.plain { font-size: 20px; margin: 32px 0 8px; }

footer { border-top: 1px solid var(--border); padding: 22px 20px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
footer img { width: 22px; height: 22px; border-radius: 6px; vertical-align: middle; margin-right: 6px; }
@media (max-width: 520px) {
  header.hero .title { align-items: flex-start; }
  header.hero .title img { width: 64px; height: 64px; border-radius: 16px; }
  header.hero h1 { font-size: 26px; }
  .section { grid-template-columns: 1fr; gap: 6px; }
}
