/* A+ CITY — certsociety.com design system (restyle v3: "quiet product")
   One light background, hairline cards, hover-only soft shadows, mixed-case
   Inter headings. The brand lives in the words; the single dark band per page
   is the footer, which also carries the one approved visual touch — the
   skyline silhouette. Zero frameworks, zero build step. */

:root {
  --bg: #fafaf8;          /* the one page background */
  --card: #ffffff;
  --hairline: #e5e3dd;
  --navy: #16243f;        /* headings + emphasis text */
  --navy-deep: #0e1830;   /* the single dark band: footer */
  --navy-soft: #24365c;
  --ink: #24303f;
  --ink-soft: #5b6472;
  --muted: #6b7280;       /* placeholder text — AA (4.83:1) on white */
  --accent: #0b7d72;      /* teal — CTAs, links, small tags only */
  --accent-deep: #085f56;
  --accent-soft: #e7f2f0; /* faint accent tint for tiny chips */
  --amber-deep: #8a5c0a;  /* tiny labels only (e.g. the SOON chip) */
  --right: #2b7554;       /* AA on --right-bg (4.95:1) and on white */
  --right-bg: #eaf4ee;
  --wrong: #b3372f;
  --wrong-bg: #f9ecea;
  --tint: #f4f3ef;        /* quiet gray panel tint (explanations, titlebars) */
  --radius: 10px;
  --shell: 1080px;        /* tighter, more intentional centered column */
  --col: 50rem;           /* the shared centered text-column measure */
  --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
}

/* type scale ~38 / 26 / 19 / 17 — mixed case, semibold, never shouting */
h1, h2, h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(1.9rem, 3vw, 2.375rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.625rem); }
h3 { font-size: 1.17rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; height: auto; }

p { max-width: 70ch; } /* readable measure even inside the wide shell */

/* ---------- layout primitives ---------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* Single-column text sections use a centered column of the shared measure so
   the content reads as an intentional centered block, not left-pinned in a
   wide shell. Card grids keep the full shell. */
.shell.narrow { max-width: var(--col); }

.band { padding: 4.5rem 0; }
.band-tight { padding: 2.75rem 0; }

.measure { max-width: 42rem; }

.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 880px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.card-grid { display: grid; gap: 1.4rem; }
@media (min-width: 700px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid.two-up { grid-template-columns: 1fr; }
@media (min-width: 760px) { .card-grid.two-up { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards (the former "plates", now quiet) ---------- */

.plate {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.plate-pad { padding: 1.75rem; }

a.plate, .plate-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 140ms ease, border-color 140ms ease;
}
a.plate:hover, .plate-link:hover {
  box-shadow: var(--shadow-hover);
  border-color: #d8d5cc;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.72rem;   /* small caps allowed only at tag size */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;     /* clear separation from the heading below it */
}

.rule-title { margin-bottom: 0.35rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.78rem 1.4rem; /* ≥44px tall */
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}
.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.btn-ghost,
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-ghost:hover,
.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: none;
}

/* ---------- header / nav (light, hairline) ---------- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--hairline);
}
.site-header .shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  padding: 0.5rem 0;
}
.brand .brand-accent { color: var(--accent); }
.brand:hover { color: var(--navy); }
.brand:hover .brand-accent { color: var(--accent-deep); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  padding: 0.72rem 0.8rem; /* ≥44px tap target */
  border-radius: 8px;
}
.site-nav a:hover { color: var(--accent-deep); background: var(--tint); }
.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"] { color: var(--accent-deep); font-weight: 600; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.62rem 1.05rem !important;
  margin-left: 0.5rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-deep); color: #fff !important; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
    padding: 0.5rem 1rem 1rem;
    margin: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem 0.75rem; }
  .nav-cta { margin: 0.5rem 0 0; text-align: center; }
  .site-header { position: relative; }
}

/* ---------- hero (text-only, generous whitespace) ---------- */

.hero { padding: 5rem 0 4rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  font-size: 1.17rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.hero-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 125, 114, 0.35);
  padding: 0.55rem 0;
}
.hero-link:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

/* ---------- page heads (former dark bands, now quiet) ---------- */

.page-head { padding: 3rem 0 0.5rem; }
.page-head h1 { margin-bottom: 0.5rem; }

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.fact-row li { display: flex; align-items: center; gap: 0.5rem; }
.fact-row li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c9c5ba; }

/* ---------- cert / feature cards ---------- */

.cert-card { display: flex; flex-direction: column; }
.cert-card .plate-pad { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.cert-card h3 { margin: 0; }
.cert-meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.cert-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.cert-list li { padding-left: 1.1rem; position: relative; margin-bottom: 0.3rem; }
.cert-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #c9c5ba;
}
.cert-card .btn, .cert-card .btn-outline { margin-top: auto; }

.value-card { padding: 1.6rem 1.75rem; }
.value-card h3 { margin-bottom: 0.55rem; }
.value-card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- email capture / gate ---------- */

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 30rem;
}
/* author display:flex would otherwise beat the UA [hidden] rule, leaving the
   form visible after notify.js sets form.hidden = true */
.gate-form[hidden] { display: none; }
.gate-form input[type="email"] {
  font: inherit;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.gate-form input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate-form input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.gate-form .btn { width: 100%; }
@media (min-width: 640px) {
  .gate-form { flex-direction: row; }
  .gate-form input[type="email"] { flex: 1; }
  .gate-form .btn { width: auto; }
}
.gate-fineprint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }
.gate-fineprint a { color: var(--accent); }
.gate-unlock-link {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  padding: 0.8rem 0;
  min-height: 44px;
}
.gate-success { font-weight: 600; color: var(--right); }

/* In-flow gate card: quiet white card, not a brand moment */
.gate-plate { background: var(--card); }
.gate-plate h2, .gate-plate h3 { color: var(--navy); }
.gate-plate p { color: var(--ink); }

/* ---------- book: slim homepage cross-sell strip (text + link, no image) ---------- */

.book-strip {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.1rem 1.4rem;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: none;
}
.book-strip a { font-weight: 600; }

/* ---------- book: the one full pitch, on /the-book/ only ---------- */

.book-media {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 640px) {
  .book-media { grid-template-columns: 160px minmax(0, 1fr); }
}
.book-cover {
  width: 100%;
  max-width: 160px;   /* small thumbnail, not the focus */
  border: 1px solid var(--hairline);
  border-radius: 6px;
  display: block;
}
.credibility {
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--hairline);
  padding-left: 0.85rem;
}
.book-media .btn { margin-top: 0.5rem; }

/* ---------- footer — the single dark band + the skyline ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #97a3ba;
  font-size: 0.85rem;
  margin-top: 5rem;
  padding-top: 1.25rem;
}
.site-footer .shell {
  display: grid;
  gap: 1.75rem;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 820px) {
  .site-footer .shell { grid-template-columns: 2fr 1fr; align-items: start; }
}
.site-footer p { margin: 0 0 0.75rem; }
.site-footer a { color: #7fd4c8; }
.footer-honesty { font-weight: 600; color: #c3cddf; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-brand {
  font-family: "Archivo Black", sans-serif;
  color: #e8ecf4;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* ---------- utility ---------- */

.section-head { margin-bottom: 1.75rem; }
.center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
