/* CertificateChief — chrm.fr/certificatechief */
:root {
  color-scheme: light dark;
  --navy-950: #0b1220;
  --navy-900: #111b2e;
  --navy-800: #1a2740;
  --navy-700: #26375a;
  --copper: #c86b3a;
  --copper-soft: #e39060;
  --green: #2f9e5b;

  --paper: #f6f4ef;
  --surface: #ffffff;
  --ink: #131a29;
  --muted: #5a6477;
  --line: rgba(19, 26, 41, .11);
  --accent: #b45a2b;
  --chip: rgba(19, 26, 41, .05);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --page: 72rem;
  --read: 42rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 12px 40px -12px rgba(11, 18, 32, .22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1322;
    --surface: #131d31;
    --ink: #e8ecf4;
    --muted: #9aa5bb;
    --line: rgba(232, 236, 244, .1);
    --accent: #e8955f;
    --chip: rgba(232, 236, 244, .06);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px -16px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--copper-soft); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: .88em; }
.wrap { width: min(var(--page), calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; padding: .5rem 1rem; background: var(--surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--navy-950) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #e8ecf4;
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 3.6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.site-header nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: .92rem; }
.site-header nav a { color: rgba(232, 236, 244, .72); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #fff; }
.site-header .home { font-size: .85rem; color: rgba(232, 236, 244, .5); text-decoration: none; padding-left: 1.4rem; border-left: 1px solid rgba(255, 255, 255, .12); }
.site-header .home:hover { color: #fff; }
@media (max-width: 640px) {
  .site-header .home, .site-header nav .opt { display: none; }
  .site-header nav { gap: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #e8ecf4;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(200, 107, 58, .22), transparent 60%),
    radial-gradient(50rem 30rem at 0% 0%, rgba(70, 110, 190, .22), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 70%, var(--paper) 70%);
  padding-top: clamp(3.5rem, 9vw, 7rem);
}
.hero::before { /* faint guilloche-like grid */
  content: ""; position: absolute; inset: 0 0 30% 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-copy { position: relative; text-align: center; max-width: 48rem; margin-inline: auto; }
.hero-icon { width: 104px; height: 104px; margin: 0 auto 1.6rem; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--copper-soft);
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.025em;
  margin: .9rem 0 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--copper-soft); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(232, 236, 244, .78); margin: 0 auto; max-width: 38rem; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 1.4rem; margin-top: 2.2rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .7rem 1.25rem .7rem 1rem; border-radius: 12px;
  background: #fff; color: #0b1220; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: grid; line-height: 1.15; text-align: left; }
.store-badge small { font-size: .68rem; letter-spacing: .02em; color: #5a6477; }
.store-badge strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.cta .meta { font-size: .88rem; color: rgba(232, 236, 244, .6); }
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.formats li {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .04em;
  padding: .28rem .6rem; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .14); color: rgba(232, 236, 244, .8);
  background: rgba(255, 255, 255, .04);
}
.hero-shot { position: relative; margin: clamp(3rem, 7vw, 4.5rem) auto 0; max-width: 64rem; }
.hero-shot img {
  border-radius: 12px; width: 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -30px rgba(0, 0, 0, .75), 0 18px 40px -20px rgba(0, 0, 0, .5);
}

/* ---------- Sections ---------- */
section { padding-block: clamp(4rem, 10vw, 7.5rem); }
.section-head { max-width: var(--read); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
p.kicker, .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .8rem; }
h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 1rem;
}
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .45rem; }
.section-head p, .muted { color: var(--muted); }
.section-head p { font-size: 1.1rem; margin: 0; }
.section-head p.kicker { color: var(--accent); font-size: .78rem; margin: 0 0 .8rem; }
.local .section-head p.kicker { color: var(--copper-soft); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 10vw, 7rem); }
.feature.flip .feature-media { order: -1; }
.feature-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.feature-copy > p:not(.kicker) { color: var(--muted); font-size: 1.06rem; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: color-mix(in srgb, var(--copper) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23c86b3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
}

/* Scenarios */
.scenarios { background: var(--surface); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.card {
  padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.card .q { font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.3; margin: 0 0 .8rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Toolbox grid */
.tools { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); border-top: 1px solid var(--line); }
.tool { padding: 1.6rem 1.4rem 1.7rem 0; border-bottom: 1px solid var(--line); }
.tool svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: .8rem; }
.tool p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Local-first band */
.local {
  color: #e8ecf4;
  background:
    radial-gradient(40rem 24rem at 100% 100%, rgba(200, 107, 58, .18), transparent 60%),
    var(--navy-900);
}
.local .kicker { color: var(--copper-soft); }
.local .section-head p { color: rgba(232, 236, 244, .72); }
.local a { color: var(--copper-soft); }
.promises { display: grid; gap: 2.2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.promise { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.3rem; }
.promise p { margin: 0; color: rgba(232, 236, 244, .68); font-size: .97rem; }
.promise h3 { display: flex; gap: .6rem; align-items: baseline; }
.promise h3 .n { font-family: var(--mono); font-size: .75rem; color: var(--copper-soft); font-weight: 500; }

/* Honest section */
.honest { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.status-panel {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem; font-size: .95rem;
}
.status-panel .label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
.status-panel dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.2rem; margin: 0; }
.status-panel dt { color: var(--muted); text-align: right; }
.status-panel dd { margin: 0; font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--green); } .dot.warn { background: var(--copper); }
.status-panel .note { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.plain-list p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .honest { grid-template-columns: 1fr; } }

/* Specs */
.specs-section { background: var(--surface); border-block: 1px solid var(--line); }
.specs { display: grid; grid-template-columns: 14rem 1fr; margin: 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { font-weight: 600; padding-right: 1.5rem; }
.specs dd { color: var(--muted); }
@media (max-width: 640px) {
  .specs { grid-template-columns: 1fr; }
  .specs dt { border-bottom: 0; padding-bottom: .1rem; }
  .specs dd { padding-top: 0; }
}

/* FAQ */
.faq { max-width: 48rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2rem 1.15rem 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font: 400 1.5rem/1 var(--sans); color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 1.3rem; color: var(--muted); max-width: var(--read); }

/* Closing CTA */
.closing { text-align: center; padding-block: clamp(4rem, 9vw, 6.5rem); }
.closing img { width: 84px; height: 84px; margin: 0 auto 1.4rem; }
.closing h2 { margin-bottom: .7rem; }
.closing p { color: var(--muted); margin: 0 auto 2rem; max-width: 34rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.6rem; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Subpages (support, privacy) ---------- */
.page-hero {
  color: #e8ecf4; padding-block: clamp(3rem, 8vw, 5rem) clamp(2.5rem, 6vw, 3.5rem);
  background:
    radial-gradient(40rem 20rem at 90% -20%, rgba(200, 107, 58, .2), transparent 60%),
    var(--navy-950);
}
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin: .6rem 0 .8rem; }
.page-hero p { color: rgba(232, 236, 244, .74); margin: 0; max-width: var(--read); font-size: 1.1rem; }
.prose { max-width: var(--read); padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin: 2.6rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .updated { font-size: .88rem; }
.contact-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.contact-card svg { width: 28px; height: 28px; color: var(--accent); flex: none; margin-top: .15rem; }
.contact-card p { margin: .2rem 0 0; }
.contact-card .addr { font-weight: 600; font-size: 1.05rem; }
.callout {
  border-left: 3px solid var(--copper); padding: .9rem 1.1rem; margin: 1.4rem 0;
  background: color-mix(in srgb, var(--copper) 8%, transparent); border-radius: 0 10px 10px 0;
}
.callout p { margin: 0; color: var(--ink); font-size: .96rem; }
.prose .faq { margin: 0; }
.page-hero p.eyebrow { color: var(--copper-soft); font-size: .78rem; }
