/* Pivomo public site. Tokens and rules follow the Pivomo brand guidelines v1.1:
   Ink + White carry ~70%, Lime is the accent, Coral is a signal (dot, bullets, band, key number).
   Josefin Sans for display, Mulish for body. Left-aligned, sentence case, never justified. */

@font-face {
  font-family: "Josefin Sans";
  src: url("/fonts/josefin-sans-variable.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/fonts/mulish-variable.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #231F20;
  --lime: #DBE13F;
  --coral: #F05050;
  --slate: #555861;
  --mist: #C8D1D9;
  --white: #FFFFFF;

  --bg: #FFFFFF;
  --surface: #F0F3F6;
  --text: var(--ink);
  --muted: var(--slate);
  --rule: #DCE2E8;
  --logo: var(--ink);
  --focus: var(--ink);

  --display: "Josefin Sans", "Century Gothic", "Avenir Next", sans-serif;
  --body: "Mulish", "Avenir Next", "Segoe UI", system-ui, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1819; --surface: #2A2627; --text: #F3F5F7; --muted: #AEB6BF;
    --rule: #3B3637; --logo: #FFFFFF; --focus: var(--lime); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1819; --surface: #2A2627; --text: #F3F5F7; --muted: #AEB6BF;
  --rule: #3B3637; --logo: #FFFFFF; --focus: var(--lime); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--coral); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: 65ch; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h1 { font-weight: 300; font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.05; letter-spacing: -.01em; }
h2 { font-weight: 400; font-size: clamp(1.75rem, 3.6vw, 2.4rem); line-height: 1.12; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--ink); padding: 10px 14px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }

.label { font: 600 .75rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: block; }
.lede { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; }

/* ---------- Logo (masked artwork, never retyped) ---------- */
.wm { position: relative; display: block; aspect-ratio: 880 / 220; width: 128px; }
.wm::before, .wm::after { content: ""; position: absolute; inset: 0; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.wm::before { background: var(--wm-c, var(--logo)); -webkit-mask-image: url("/img/wm-ink.png"); mask-image: url("/img/wm-ink.png"); }
.wm::after  { background: var(--dot-c, var(--coral)); -webkit-mask-image: url("/img/wm-dot.png"); mask-image: url("/img/wm-dot.png"); }
.ring { display: block; color: var(--ring-c, var(--logo)); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.hdr { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.hdr .logo { display: block; padding: 8px 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font: 600 .92rem/1 var(--display); letter-spacing: .02em; text-decoration: none; padding: 10px 12px 8px; border-radius: 999px; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--coral); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; padding: 10px; border-radius: var(--radius); display: grid; place-items: center; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 2px;
    background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px; min-width: 230px;
    box-shadow: 0 12px 30px rgba(35, 31, 32, .14); }
  .menu-panel a { font: 600 1rem/1 var(--display); text-decoration: none; padding: 13px 12px 11px; border-radius: var(--radius); }
  .menu-panel a:hover { background: var(--surface); }
  .menu-panel .btn { margin-top: 6px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 600 1rem/1 var(--display); letter-spacing: .04em; padding: 15px 24px 13px; border-radius: 999px;
  border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #E6EB5C; }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--text); color: var(--bg); }
.nav .btn, .menu-panel .btn { padding: 11px 18px 9px; font-size: .92rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.sec-head h2 + p { margin-top: 14px; color: var(--muted); }
.surface { background: var(--surface); }
.sec.surface + .sec, .sec + .sec.surface { border-top: 0; }

/* Ink panels: Lime on Ink, white logo */
.ink { background: var(--ink); color: var(--white); --logo: var(--white); --ring-c: var(--white); --muted: #C8D1D9; --rule: #3B3637; }
.ink .label { color: var(--lime); }
.ink .btn-line { color: var(--white); }
.ink .btn-line:hover { background: var(--white); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px); border-bottom: 6px solid var(--lime); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero h1 b { font-weight: 600; color: var(--lime); }
.hero .lede { color: #DCE2E8; margin-top: 22px; }
.hero-ring { position: absolute; z-index: 0; width: min(620px, 92vw); right: -10%; top: 50%; transform: translateY(-50%); --ring-c: #3a3536; pointer-events: none; }
@media (max-width: 700px) { .hero-ring { right: -40%; opacity: .7; } }
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); border-bottom: 6px solid var(--lime); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); max-width: 22ch; }
.page-hero .lede { color: #DCE2E8; margin-top: 18px; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid > * { min-width: 0; }
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px 22px 20px; }
.surface .card, .surface .price:not(.feature), .surface .person, .surface .outcomes li { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }

.dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dots li { padding-left: 22px; position: relative; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* Turning points: a run of pills */
.moments { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.moments li { font: 600 .9rem/1 var(--display); letter-spacing: .02em; border: 1px solid var(--rule); border-radius: 999px; padding: 10px 14px 8px; }

/* Audience columns */
.audience { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.audience .card { padding: 28px; }
.audience h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 16px; }

/* Stats: Coral is the key number */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.stat { border-left: 3px solid var(--lime); padding: 4px 0 4px 20px; }
.stat b { display: block; font: 300 clamp(3rem, 7vw, 4.4rem)/1 var(--display); color: var(--coral); }
.stat p { margin: 10px 0 0; }
.stat cite { display: block; font-style: normal; font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* ---------- Role map ---------- */
.rolemap { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 10px; }
.rolemap .axis { font: 600 .72rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rolemap .ax-top { grid-column: 2 / 4; display: flex; justify-content: space-between; padding-inline: 4px; }
.rolemap .ax-side { grid-row: 2 / 4; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; justify-content: space-around; gap: 24px; padding-block: 4px; }
.role { background: var(--surface); border-radius: var(--radius); padding: 20px; min-height: 170px; position: relative; }
.surface .role { background: var(--bg); }
.role h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.role h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; }
.role p { margin: 0; color: var(--muted); font-size: .98rem; }
.role .tags { margin-top: 12px; font: 600 .7rem/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) {
  .rolemap { grid-template-columns: minmax(0, 1fr); }
  .rolemap .ax-top, .rolemap .ax-side { display: none; }
  .role { min-height: 0; }
}

/* Callout: the "not a test" promise */
.promise { border-left: 3px solid var(--coral); padding: 4px 0 4px 20px; margin-top: 32px; max-width: 70ch; }
.promise b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; display: block; margin-bottom: 4px; }
.promise p { margin: 0; color: var(--muted); }

/* ---------- Loop / steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: 20px; }
.surface .steps li { background: var(--bg); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 300 1.9rem/1 var(--display); color: var(--coral); margin-bottom: 12px; }
@media (max-width: 999px) {
  .steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; }
  .steps li::before { grid-row: 1 / 3; margin: 0; }
}
.steps b { display: block; font: 600 .82rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Timeline table ---------- */
.table-scroll { overflow-x: auto; }
.timeline { border-collapse: collapse; width: 100%; min-width: 560px; }
.timeline th, .timeline td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.timeline th { font: 600 .72rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.timeline td:first-child { font-family: var(--display); font-weight: 600; white-space: nowrap; }
.timeline td b { font-family: var(--display); font-weight: 600; }
.who { display: inline-block; font: 600 .72rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px 5px; border-radius: 999px; white-space: nowrap; }
.who-you { background: var(--lime); color: var(--ink); }
.who-team { background: var(--mist); color: var(--ink); }
.who-board { background: var(--ink); color: var(--lime); }
@media (max-width: 640px) {
  .timeline { min-width: 0; }
  .timeline thead { position: absolute; left: -9999px; }
  .timeline tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .timeline td { display: block; padding: 0; border: 0; }
  .timeline td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .timeline td:nth-child(3) { grid-row: 1; grid-column: 2; }
}
:root[data-theme="dark"] .who-board { background: var(--white); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .who-board { background: var(--white); color: var(--ink); } }

/* ---------- Pricing ---------- */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.price { background: var(--surface); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.price.feature { background: var(--ink); color: var(--white); --muted: #C8D1D9; }
.price .amt { font: 300 3rem/1 var(--display); }
.price.feature .amt { color: var(--lime); }
.price h3 { font-size: 1.15rem; margin-top: 8px; }
.price p { margin: 0; color: var(--muted); }

/* ---------- People ---------- */
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.person { background: var(--surface); border-radius: var(--radius); padding: 26px; }
.person .role-title { font: 600 .75rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.person .role-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.person h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 10px; }
.person p { margin: 0; color: var(--muted); }

.quote { font: 300 clamp(1.4rem, 3vw, 2rem)/1.3 var(--display); max-width: 34ch; margin: 0; }
.quote-by { margin-top: 14px; font: 600 .78rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 0; font: 400 1.2rem/1.3 var(--display); color: var(--muted); }

/* Mission statement */
.mission { font: 300 clamp(1.5rem, 3.2vw, 2.15rem)/1.3 var(--display); max-width: 30ch; margin: 0 0 28px; }
.mission mark { background: linear-gradient(transparent 62%, var(--lime) 62%); color: inherit; padding: 0 2px; }
.ink .mission mark { background: none; color: var(--lime); }
:root[data-theme="dark"] .mission mark { background: none; color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mission mark { background: none; color: var(--lime); } }
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.outcomes li { background: var(--surface); padding: 18px; border-radius: var(--radius); font: 400 1.15rem/1.3 var(--display); }
.outcomes li small { display: block; font: 300 1.6rem/1 var(--display); color: var(--coral); margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.band { padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.band h2 { max-width: 20ch; }
.band p { color: #DCE2E8; margin-top: 14px; }
.band .ring { position: absolute; width: 340px; right: -60px; bottom: -110px; --ring-c: #3a3536; }
.deadline { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font: 600 .82rem/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }

/* ---------- Prose (privacy, terms) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.note { background: var(--surface); border-left: 3px solid var(--coral); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; margin-bottom: 32px; }
.note p { margin: 0; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: #C8D1D9; --logo: var(--white); padding-block: 48px 40px; font-size: .9rem; border-top: 1px solid #3B3637; }
.ftr .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.ftr .wm { width: 140px; }
.ftr .tagline { margin: 14px 0 0; max-width: 36ch; color: #C8D1D9; }
.ftr nav { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 10px 36px; }
.ftr nav a { color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 600; letter-spacing: .02em; }
.ftr nav a:hover { color: var(--lime); }
.ftr .legal { border-top: 1px solid #3B3637; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.ftr .legal p { margin: 0; max-width: none; }
.ftr a { color: var(--white); }

/* ---------- Consent bar and footer cookie settings ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 760px; margin: 0 auto; background: var(--ink); color: var(--white);
  border: 1px solid #3B3637; border-radius: var(--radius); padding: 20px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; box-shadow: 0 16px 40px -12px rgba(0,0,0,.45); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; font-size: .94rem; line-height: 1.5; color: #C8D1D9; }
.consent p a { color: var(--white); }
.consent .actions { display: flex; gap: 12px; }
.consent .btn-line { background: transparent; color: var(--white); }
.consent .btn-line:hover { background: var(--white); color: var(--ink); }
button.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.ftr nav button.linkish { color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 600; letter-spacing: .02em; }
.ftr nav button.linkish:hover { color: var(--lime); }
