/* Zephon site styles. Palette from docs/brand/ZephonColorPallete.png (DECISIONS.md).
   Rule: nothing is ever hidden (scripts/check-hidden.js): no hiding properties,
   no screen-reader-only helpers, no collapsing menus. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  /* Brand palette */
  --ink: #040404;
  --black: #000000;
  --blue: #0E87D7;
  --indigo: #547AE9;
  --violet: #8470F6;
  /* Approved accessible shade of --blue for link text and button fills (5.6:1 on white) */
  --link: #0A6BAE;
  --link-hover: #08609C;

  /* Neutrals */
  --bg: #FFFFFF;
  --panel: #F4F7FB;
  --line: #DDE3EC;
  --muted: #4A5363;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9D6F5;

  --gradient: linear-gradient(120deg, var(--blue) 0%, var(--indigo) 50%, var(--violet) 100%);

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 72rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.mono { font-family: var(--mono); font-size: 0.95em; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); margin-bottom: 0.5rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }

/* Skip link: slides into view when a keyboard user tabs to it (first focusable element on every page).
   Moved with transform, not hidden: it stays in the page and is read by screen readers. */
.skip { position: absolute; left: 1rem; top: 0.5rem; z-index: 10; font-size: 0.9rem; padding: 0.4rem 1rem; background: var(--bg); border: 2px solid var(--link); border-radius: var(--radius); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Header: navigation wraps instead of collapsing into a hidden menu */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand img { display: block; width: 168px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.3rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 2px solid var(--link); line-height: 1.2; }
.btn-primary { background: var(--link); color: var(--on-dark); }
.btn-primary:hover { background: var(--link-hover); border-color: var(--link-hover); color: var(--on-dark); }
.btn-secondary { background: transparent; color: var(--link); }
.btn-secondary:hover { background: var(--panel); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.nav .btn { padding: 0.5rem 1rem; color: var(--on-dark); border-bottom-width: 2px; }
.nav .btn:hover { color: var(--on-dark); border-bottom-color: var(--link-hover); }

/* Sections */
section { padding: 3.5rem 0; }
.panel { background: var(--panel); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark a { color: var(--on-dark); }
.dark .muted, .dark .lead { color: var(--on-dark-muted); }
.rule { height: 4px; width: 4rem; background: var(--gradient); border: 0; margin: 0 0 1.25rem; border-radius: 2px; }

/* Hero */
.hero { padding: 4rem 0 3.5rem; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gradient); }
.hero h1 span { display: block; }
.hero .tagline-2 { color: var(--indigo); }
/* Gradient text only where the browser can paint it; otherwise the solid colour above stays visible */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero .tagline-2 { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
.page-hero { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 0.9rem; margin-bottom: 0.75rem; }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; border-top: 4px solid var(--blue); }
.card:nth-child(3n+2) { border-top-color: var(--indigo); }
.card:nth-child(3n) { border-top-color: var(--violet); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--link); text-decoration: underline; }
.card p:last-child { margin-bottom: 0; }
.card-feature { padding: 1.8rem; }
.card-feature h3 { font-size: 1.5rem; }
.subhead { margin-top: 2rem; }
.card .meta { font-size: 0.9rem; color: var(--muted); }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.stats li { margin: 0; }
.stats strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--link); }
.dark .stats strong { color: var(--on-dark); }

/* Credentials */
.cred-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cred-list li { margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.92rem; font-weight: 600; background: var(--bg); }
.dark .cred-list li { background: transparent; border-color: #3A3F4A; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--panel); }
.table-scroll { overflow-x: auto; }

/* Logo walls: static grid, consistent cell height, full colour */
.logo-wall { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.logo-wall li { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); height: 5.5rem; display: flex; align-items: center; justify-content: center; padding: 0.9rem 1rem; }
.logo-wall a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logo-wall img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.logo-extra { margin-top: 0.75rem; font-size: 0.95rem; }

/* Quotes */
blockquote { margin: 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--violet); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
blockquote p { font-size: 1.1rem; }
blockquote footer { color: var(--muted); font-weight: 600; }

/* Long-form content (case studies, services) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.layout-aside { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 60rem) { .layout-aside { grid-template-columns: minmax(0, 1fr) 20rem; } }
.aside { align-self: start; background: var(--panel); border-radius: var(--radius); padding: 1.4rem; font-size: 0.95rem; }
.aside h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.aside dl { margin: 0; }
.aside dt { font-weight: 600; margin-top: 0.8rem; }
.aside dd { margin: 0; color: var(--muted); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { margin: 0; font-family: var(--mono); font-size: 0.8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0.15rem 0.5rem; }

/* Blog posts */
.post img { display: block; margin: 1.25rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.post pre { background: #0F1420; color: #E6EDF7; padding: 1rem 1.2rem; border-radius: var(--radius); overflow-x: auto; font-family: var(--mono); font-size: 0.88rem; line-height: 1.5; }
.post code { font-family: var(--mono); font-size: 0.9em; background: var(--panel); padding: 0.1em 0.35em; border-radius: 3px; }
.post pre code { background: none; padding: 0; color: inherit; }
.post h2 { font-size: 1.45rem; }
.post blockquote { margin: 1.25rem 0; }

/* FAQ: plain open sections, never accordions */
.faq h3 { margin-top: 1.8rem; }

/* CTA band */
.cta { text-align: left; }
.cta h2 { max-width: 40rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 3rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--on-dark); }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer-bottom { border-top: 1px solid #2A2E36; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-tagline { color: var(--on-dark); font-weight: 600; }

@media print {
  .site-header .nav, .btn-row, .cta { break-inside: avoid; }
  .dark, .site-footer { background: none; color: var(--ink); }
}

/* Video cards: thumbnail and caption, linking to YouTube */
.video { display: block; max-width: 44rem; margin: 1.5rem 0; color: var(--ink); text-decoration: none; }
.video-thumb { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-thumb img { display: block; width: 100%; }
.video-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%;
  background: var(--link) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 55% no-repeat;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.video:hover .video-thumb::after { background-color: var(--link-hover); }
.video-playing .video-thumb::after { content: none; }
.video-thumb iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-caption { display: block; margin-top: 0.6rem; }
.video:hover .video-caption strong { color: var(--link); text-decoration: underline; }

/* Spacing utilities (no inline style attributes: the Content-Security-Policy allows stylesheets from this site only) */
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }

/* Homepage proof bar */
.proof { padding: 1.75rem 0; }
.proof .stats { margin: 0; }
.card .stats { gap: 0.75rem 1.75rem; }
.card .stats strong { font-size: 1.4rem; }
