/* Pivit transition site, built on the Pivit Design System (tokens.css). Use tokens, never raw hex. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 var(--space-4); color: var(--ink); }
p { margin: 0 0 var(--space-4); }

/* Type styles from the system */
h1 { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.025em; }
.hero h1 { font-size: 56px; line-height: 60px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.015em; }
.lead { font-size: 18px; line-height: 30px; color: var(--ink-muted); max-width: var(--measure); }
.eyebrow, .card .tag { display: block; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: var(--space-3); }
@media (max-width: 720px) {
  .hero h1 { font-size: 40px; line-height: 46px; }
  h1 { font-size: 32px; line-height: 38px; }
  h2 { font-size: 24px; line-height: 30px; }
}

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 720px) { .wrap { padding: 0 var(--space-4); } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--bg); padding: var(--space-2) var(--space-3); z-index: 10; }

/* Header: sticky, white, hairline underneath */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-top: var(--space-2); padding-bottom: var(--space-2); }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); }
.brand img { height: 36px; width: auto; }
.brand small { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.nav { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.nav a { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); text-decoration: none; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); transition: background-color .2s ease, color .2s ease; }
.nav a:hover { background: var(--surface-sunken); }
.nav a[aria-current="page"] { background: var(--orange-soft); color: var(--orange-text); }

/* Hero band */
.hero { background: var(--surface); padding: var(--space-12) 0 var(--space-16); }
@media (max-width: 720px) { .hero { padding: var(--space-16) 0 var(--space-12); } }
.hero-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: start; }
.hero-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Inner pages: compact page-title band with the i-dot motif in the corner */
.page-title { position: relative; overflow: hidden; padding: var(--space-16) 0 var(--space-12); }
.page-title h1 { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.025em; max-width: 760px; }
.page-title .lead { margin-bottom: 0; }
.page-title::before, .page-title::after { content: ""; position: absolute; border-radius: var(--radius-pill); pointer-events: none; }
.page-title::before { width: 56px; height: 56px; right: 120px; top: 36px; background: var(--orange); }
.page-title::after { width: 56px; height: 56px; right: 48px; top: 64px; background: var(--coral); }
@media (max-width: 900px) { .page-title::before, .page-title::after { display: none; } }
@media (max-width: 720px) { .page-title { padding: var(--space-12) 0 var(--space-10); } .page-title h1 { font-size: 32px; line-height: 38px; } }

/* "What does this mean for me?" block between the hero intro and the cards */
.meaning { margin-top: var(--space-12); max-width: var(--measure); }
.meaning h2 { margin-bottom: var(--space-3); }
.meaning p { margin: 0; color: var(--ink-muted); }

/* Audience cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-6); margin-top: var(--space-12); }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; position: relative; overflow: hidden; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--orange); }
.card.onq::before { background: var(--coral); }
.card.onq .tag { color: var(--coral-text); }
.card h2 { margin: 0; }
.card-logo { height: 36px; width: auto; align-self: flex-start; margin: var(--space-2) 0 var(--space-3); }
.card.onq .card-logo { height: 40px; }
.card p { margin: 0; color: var(--ink-muted); }
.card .contact { list-style: none; padding: var(--space-3) var(--space-4); margin: var(--space-2) 0 0; background: var(--surface); border-radius: var(--radius-md); font-size: 14px; line-height: 22px; }
.card .contact li { padding: 2px 0; }

/* Buttons: pills, primary orange with near-black text */
.btns { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: auto; padding-top: var(--space-4); }
.btn { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 20px; font-weight: 600; padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill); text-decoration: none; border: 1.5px solid transparent; transition: background-color .2s ease, border-color .2s ease; }
.btn.primary { background: var(--orange); color: var(--on-orange); }
.btn.primary:hover { background: var(--orange-hover); }
.card.onq .btn.primary { background: var(--coral); color: var(--on-coral); }
.card.onq .btn.primary:hover { background: var(--coral-hover); }
.btn.ghost, .btn.outline { background: transparent; color: var(--ink); border-color: var(--line-control); }
.btn.ghost:hover, .btn.outline:hover { background: var(--surface-sunken); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.hero .btns { margin-top: var(--space-8); padding-top: 0; }

/* Sections: alternate bg / surface bands */
section { padding: var(--space-24) 0; background: var(--bg); }
section:nth-of-type(even) { background: var(--surface); }
@media (max-width: 720px) { section { padding: var(--space-16) 0; } }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-8); align-items: start; }
.box { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); }
section:nth-of-type(odd) .box { background: var(--surface); }
.box h3 { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
section p { max-width: var(--measure); }

table.contacts { width: 100%; border-collapse: collapse; }
table.contacts th, table.contacts td { text-align: left; padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--line); vertical-align: top; }
table.contacts th { width: 40%; color: var(--ink-muted); font-weight: 500; font-size: 14px; }
.table-scroll { overflow-x: auto; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: var(--space-4) 0; max-width: 800px; }
summary { cursor: pointer; font-size: 18px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em; }
summary::marker { color: var(--orange-text); }
details p { margin: var(--space-3) 0 0; color: var(--ink-muted); }

/* Footer: the dark band */
.site-footer { background: var(--surface-inverse); color: var(--ink-inverse-muted); padding: var(--space-16) 0 var(--space-8); font-size: 14px; line-height: 22px; }
.site-footer a { color: var(--ink-inverse); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-6); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: var(--space-1) 0; }
.site-footer h3 { color: var(--ink-inverse); font-size: 18px; line-height: 26px; }
.site-footer .legal { margin: var(--space-8) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--ink-muted); }
.site-footer a:focus-visible { box-shadow: 0 0 0 2px var(--surface-inverse), 0 0 0 4px var(--orange); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .card:hover { transform: none; } }
