/* certcommand.org: the colors and type of the user guide (docs/guide). */
:root {
  --paper: #f5f5f7;
  --card: #ffffff;
  --ink: #221f20;
  --soft: #5f5b5c;
  --line: #dcdcdf;
  --chip: #ebebee;
  --eoc: #1d4f91;
  --leader: #9a6b00;
  --leader-mark: #ffc21a;
  --member: #0d7a52;
  --shadow: 0 1px 2px rgb(34 31 32 / 0.08), 0 8px 24px rgb(34 31 32 / 0.08);
  --shadow-big: 0 2px 4px rgb(34 31 32 / 0.08), 0 24px 60px rgb(34 31 32 / 0.16);
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1120px;
  --text: 760px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161516; --card: #222021; --ink: #f5f5f7; --soft: #a9a5a6; --line: #3a3738; --chip: #2c2a2b;
    --eoc: #8db8f2; --leader: #ffc21a; --member: #4cc38a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4); --shadow-big: 0 24px 60px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161516; --card: #222021; --ink: #f5f5f7; --soft: #a9a5a6; --line: #3a3738; --chip: #2c2a2b;
  --eoc: #8db8f2; --leader: #ffc21a; --member: #4cc38a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4); --shadow-big: 0 24px 60px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible, .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: var(--text); }
.kicker { font: 500 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin: 0 0 14px; }
.soft { color: var(--soft); }

/* ── The bar at the top ── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { flex: none; border-radius: 22.5%; box-shadow: 0 1px 3px rgb(6 12 36 / 0.3); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .menu summary {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav > a.docs { background: var(--ink); color: var(--paper); }
.nav > a.docs:hover { opacity: 0.88; }
.nav .short { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--chip); }
.menu summary svg { transition: transform 0.15s; }
.menu[open] summary svg { transform: rotate(180deg); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-big);
}
.menu-list a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-size: 15px; }
.menu-list a:hover { background: var(--chip); }
.menu-list small { display: block; color: var(--soft); font-size: 13px; line-height: 1.35; }
.menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
@media (max-width: 440px) {
  .nav .full { display: none; }
  .nav .short { display: inline; }
  .nav > a, .menu summary { padding: 0 11px; }
}

/* ── Buttons ── */
.button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid var(--ink);
}
.button:hover { opacity: 0.88; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { background: var(--chip); opacity: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.more { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.more:hover { text-decoration: underline; }

/* ── The opening of the home page ── */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; }
.hero .lead { font-size: 19px; color: var(--soft); margin: 0 0 28px; max-width: 34em; }
.stage { position: relative; padding: 0 0 13% 9%; }
.stage .window { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-big); overflow: hidden; background: var(--card); }
.stage .phone { position: absolute; left: 0; bottom: 0; width: 27%; }
.phone { border-radius: 13% / 6%; border: 5px solid #221f20; box-shadow: var(--shadow-big); overflow: hidden; background: #221f20; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Four facts ── */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 26px 22px 26px 0; }
.fact + .fact { padding-left: 22px; border-left: 1px solid var(--line); }
.fact svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.fact h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.fact p { margin: 0; font-size: 15px; color: var(--soft); line-height: 1.5; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ── Sections ── */
.block { padding: 88px 0; }
.block + .block { border-top: 1px solid var(--line); }
.block h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.block .intro { font-size: 19px; color: var(--soft); max-width: 40em; margin: 0 0 40px; }
@media (max-width: 640px) { .block { padding: 60px 0; } }

/* How it works: three steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 700 15px/1 var(--sans); margin-bottom: 16px;
}
.steps h3 { margin: 0 0 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--soft); font-size: 16px; }
.steps .who { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; display: block; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* The three roles side by side */
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow-x: auto; }
.glance { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15.5px; line-height: 1.45; }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.glance tbody tr:last-child th, .glance tbody tr:last-child td { border-bottom: 0; }
.glance thead th, .glance thead td { border-bottom: 1px solid var(--line); }
.glance col.label { width: 14%; }
.glance col.app { width: 28.66%; }
.glance thead th { font-size: 17px; font-weight: 800; padding-top: 22px; }
.glance thead th small { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin-top: 4px; }
.glance tbody th { font: 500 12px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); padding-top: 18px; }
.scroll-hint { display: none; font-size: 14px; color: var(--soft); margin: 10px 0 0; }
@media (max-width: 800px) { .scroll-hint { display: block; } }

/* Role chips and colors */
.role { --role: var(--ink); }
.role.eoc { --role: var(--eoc); }
.role.leader { --role: var(--leader); }
.role.member { --role: var(--member); }
/* An app's icon and name, as in a store */
.app-id { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.app-id img { width: 60px; height: 60px; flex: none; border-radius: 22.5%; box-shadow: 0 2px 8px rgb(6 12 36 / 0.25); }
.app-id strong { display: block; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.app-id small { display: flex; align-items: center; gap: 8px; margin-top: 5px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--role); flex: none; display: inline-block; }
.role.leader .dot { background: var(--leader-mark); box-shadow: 0 0 0 1px rgb(154 107 0 / 0.5); }
.who.role { color: var(--role); }

/* One section per role: words and pictures */
.feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.feature.flip .media { order: -1; }
/* A dashboard or the console: the words above, the picture across the page. */
.feature.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
.feature.wide .media { grid-column: 1 / -1; margin-top: 28px; }
.feature.wide .ticks { margin-top: 6px; }
.feature p.say { font-size: 18px; color: var(--soft); margin: 0 0 22px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; }
.ticks li { position: relative; padding: 0 0 0 30px; margin: 0 0 11px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--role) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.role.leader .ticks li::before { background-color: var(--leader-mark); }
.media .window { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-big); overflow: hidden; background: var(--card); }
.phones { display: flex; justify-content: center; gap: 6%; padding: 0 4%; }
.phones .phone { width: 42%; }
.phones .phone:nth-child(2) { margin-top: 12%; }
@media (max-width: 900px) {
  .feature, .feature.wide { grid-template-columns: 1fr; gap: 32px; }
  .feature.wide .media { margin-top: 0; }
  .feature.flip .media { order: 0; }
}

/* Getting started */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin: 0 0 8px; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.card p { margin: 0 0 18px; color: var(--soft); font-size: 16px; }
.card > :last-child { margin-top: auto; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ── Inner pages (technology, privacy, team leaders) ── */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-weight: 800; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
.page-head .lead { font-size: 19px; color: var(--soft); margin: 0; }
.page { padding: 32px 0 80px; }
.page .card { display: block; margin: 0 0 16px; padding: 24px 26px; }
.page .card h2 { font-size: 20px; margin: 0 0 10px; letter-spacing: -0.01em; }
.page .card h3 { font-size: 17px; margin: 20px 0 6px; }
.page .card p { color: var(--ink); margin: 0 0 10px; }
.page .card p:last-child { margin-bottom: 0; }
.page .card .soft { color: var(--soft); }
.page ul, .page ol { margin: 6px 0 10px; padding-left: 22px; }
.page li { margin: 6px 0; }
.page a:not(.button) { color: var(--ink); text-decoration: underline; }
.page .card > .button, .page .download .button { margin: 6px 12px 6px 0; }
.lic { color: var(--soft); font-size: 14px; white-space: nowrap; }

/* ── Change log (/changelog/, made by scripts/changelog-page.py) ── */
.page-head .versions { font-size: 15px; margin: 14px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filters button { font: 600 15px/1 var(--sans); color: var(--ink); background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.release h2 a { text-decoration: none; }
.release h2 a:hover { text-decoration: underline; }
.page .release .when { color: var(--soft); font-size: 14.5px; margin: -4px 0 8px; }
.release ul { list-style: none; padding: 0; margin: 0; }
.release li { margin: 10px 0 0; }
.app { display: inline-block; font: 500 11px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px; margin-right: 6px; vertical-align: 2px; white-space: nowrap; }
.app.phone { color: var(--member); }
.app.dashboard { color: var(--leader); }

/* ── Bottom of every page ── */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h2 { font: 500 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin: 4px 0 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0 0 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-brand p { color: var(--soft); margin: 10px 0 0; max-width: 24em; }
.foot-base { color: var(--soft); font-size: 14px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
