/* asergaz: colours and fonts carried over from asergaz-offers.html */
:root {
  --bg: #eef2f4; --surface: #ffffff; --ink: #14232e; --muted: #4f6270; --rule: #cfd9df;
  /* Blue is the site's own colour. Each offer has one: purple for the Knowledge Loop, green for the Edge AI Path. */
  --main: #2f6f8f; --main-soft: #e3eef4;
  --loop: #6d4f96; --loop-soft: #ece7f3; --edge: #5f7f2a; --edge-soft: #ecf1e1;
  --accent: var(--main); --accent-soft: var(--main-soft); --on-accent: #fff;
  color-scheme: light;
  --display: "Inter", "Archivo", "Helvetica Neue", Arial, sans-serif;   /* Inter holds only "&": see baseof.html */
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}
/* Dark mode. baseof.html sets data-theme on <html>: the visitor's choice, or what their device asks for. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1a22; --surface: #16242e; --ink: #e6edf1; --muted: #9fb2bf; --rule: #2a3c48;
  --main: #7fb7d4; --main-soft: #1c3341;
  --loop: #b7a1dd; --loop-soft: #2a2438; --edge: #a9c46e; --edge-soft: #24321a;
  --on-accent: #0f1a22;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text);
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3, .eyebrow, .brand, nav, .button, .more, time { font-family: var(--display); }

.site-header { border-bottom: 1px solid var(--rule); background: var(--surface); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: .2rem 1rem; padding-top: .3rem; padding-bottom: .3rem; flex-wrap: wrap; }
.brand { font-weight: 750; font-stretch: 112%; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.brand { padding: .65rem 0; }
nav { display: flex; gap: 1.2rem; font-size: .95rem; white-space: nowrap; }
nav a { color: var(--muted); text-decoration: none; padding: .65rem 0; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--ink); }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem .8rem; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.offer.loop { --accent: var(--loop); --accent-soft: var(--loop-soft); }
.offer.edge { --accent: var(--edge); --accent-soft: var(--edge-soft); }

.hero { padding: 4rem 0 3rem; }
.hero.home { padding: 3rem 0 .5rem; }
.hero .name { font-size: 1rem; font-weight: 650; font-stretch: 100%; color: var(--main); margin: 0 0 .6rem; }
.tagline { font-family: var(--display); font-weight: 750; font-stretch: 108%; font-size: clamp(1.45rem, 3.6vw, 2.2rem); line-height: 1.14;
  max-width: 46rem; margin: 0 0 1.2rem; text-wrap: balance; }
.tagline span { display: block; }
.tagline span + span { margin-top: .5em; }
.hero.home h1 { margin-bottom: .6rem; }
.hero.home .lead { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
h1, h2, h3 { text-wrap: balance; }
.offer .hero { background: var(--accent-soft); border-bottom: 4px solid var(--accent); }
.hero h1 { font-weight: 750; font-stretch: 108%; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.08; margin: .3rem 0 1rem; max-width: 46rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 44rem; margin: 0 0 1.6rem; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: .9rem; margin: 0; }
.eyebrow span { color: var(--muted); font-weight: 500; }

.prose { padding-top: 1.5rem; padding-bottom: 1rem; }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.prose > * { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; color: var(--accent); margin: 2.2rem 0 .6rem; line-height: 1.25; }
.prose li { margin-bottom: .35rem; }
.note { font-size: .9rem; color: var(--muted); }
.muted { color: var(--muted); }

.button { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-weight: 650; padding: .75rem 1.3rem; border-radius: 6px; }
.button:hover { filter: brightness(1.08); }
.button { border: 2px solid var(--accent); text-align: center; }
.button.ghost { background: transparent; color: var(--accent); }
.button.ghost:hover { background: var(--accent-soft); filter: none; }

/* The assessment: the thing on offer, as a card */
.assessment { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: 6px;
  padding: 1.6rem 1.6rem 1.8rem; margin: 2.5rem 0 1rem; }
.assessment h2 { margin-top: 0; }
.terms { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 1rem; font-family: var(--display); font-size: .88rem; font-weight: 650; }
.terms span { background: var(--accent-soft); color: var(--accent); padding: .25rem .7rem; border-radius: 999px; }
.assessment .button { margin-top: .6rem; }

/* Proof: the results as figures, the story behind them folded away */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.4rem 0; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.2rem; }
.stat strong { display: block; font-family: var(--display); font-weight: 750; font-size: 1.9rem; line-height: 1.1; color: var(--accent); margin-bottom: .4rem; }
.stat span { display: block; font-size: .95rem; line-height: 1.5; color: var(--muted); }

/* Phones only: the booking button, always in reach */
.sticky-cta { display: none; }

.cta-band { margin-top: 3rem; padding: 3rem 0; background: var(--surface); border-top: 1px solid var(--rule); }
.cta-band h2 { margin: 0 0 .4rem; color: var(--accent); }

.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-top: 2rem; padding-bottom: 1.5rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--loop);
  border-radius: 6px; padding: 1.6rem; text-decoration: none; color: var(--ink); }
.card.loop { --accent: var(--loop); }
.card.edge { --accent: var(--edge); border-top-color: var(--edge); }
.card h2 { color: var(--ink); margin: .3rem 0 .7rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 750; font-stretch: 108%; line-height: 1.15; }
.card p:not(.eyebrow) { margin: 0 0 1rem; }
.card .more { color: var(--accent); font-weight: 650; font-size: .95rem; margin-top: auto; }
.card:hover { border-color: var(--accent); }

/* End of an offer page: the other offer, as a homepage card */
.related { padding-top: 2.5rem; }
.related > h2 { font-size: 1.5rem; margin: 0 0 .8rem; color: var(--ink); }
.related .card { max-width: 36rem; }
.related .card + .card { margin-top: 1rem; }
.card h3 { color: var(--ink); margin: .3rem 0 .7rem; font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 750; font-stretch: 108%; line-height: 1.15; }

.writing, .linkedin { padding-top: 2.5rem; padding-bottom: 1rem; }
.writing h2, .linkedin h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.post { display: block; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1.2rem; color: var(--ink); text-decoration: none; }
.post time { font-size: .85rem; color: var(--muted); }
.post h3 { margin: .3rem 0 .4rem; font-size: 1.1rem; }
.post p { margin: 0; font-size: .95rem; color: var(--muted); }

.site-footer { margin-top: 3rem; border-top: 1px solid var(--rule); padding: 1.5rem 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.site-footer p { margin: 0; }
.theme-toggle { font: inherit; font-family: var(--display); color: var(--ink); background: var(--surface); border: 1px solid var(--rule);
  border-radius: 6px; padding: .55rem .9rem; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }
.when-dark, :root[data-theme="dark"] .when-light { display: none; }
:root[data-theme="dark"] .when-dark { display: inline; }

@media (max-width: 760px) {
  .offers { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.5rem; }
  .hero { padding: 2rem 0 1.75rem; }
  .hero.home { padding: 1.75rem 0 0; }
  .stats { grid-template-columns: 1fr; gap: .7rem; }
  .assessment { padding: 1.2rem 1.1rem 1.4rem; margin-left: -.35rem; margin-right: -.35rem; }
  .actions .button { flex: 1 1 100%; }
  nav { gap: 1rem; font-size: .9rem; }
  .cta-band { margin-top: 2rem; padding: 2rem 0; }
  .sticky-cta { display: flex; align-items: center; justify-content: space-between; gap: .8rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    padding: .6rem 1.25rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--rule);
    box-shadow: 0 -4px 16px rgba(20, 35, 46, .1); font-family: var(--display); font-weight: 650; font-size: .92rem; line-height: 1.25;
    transition: transform .2s ease; }
  .sticky-cta.hidden { transform: translateY(110%); }
  .sticky-cta small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
  .sticky-cta .button { padding: .6rem 1rem; white-space: nowrap; }
  body:has(.sticky-cta) .site-footer { padding-bottom: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
