/* Scalquire — white and black, Poppins.
   Layout: left-aligned editorial grid on white, hairline rules instead of cards,
   one black band per page for contrast. Single light look by design. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #56575b;
  --ink-3: #6f7075;
  --rule: #e3e3e6;
  --wash: #f5f5f6;
  --on-ink: #ffffff;
  --on-ink-2: #b9babe;
  --rule-on-ink: #2c2c2f;
  --warn-bg: #fff6d6;
  --warn-ink: #5a4500;

  --font: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-display: clamp(2.5rem, 6.2vw, 4.75rem);
  --t-h1: clamp(2.25rem, 5vw, 3.75rem);
  --t-h2: clamp(1.75rem, 3.3vw, 2.625rem);
  --t-h3: 1.1875rem;
  --t-lead: clamp(1.0625rem, 1.5vw, 1.25rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-label: 0.75rem;

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 7.5vw, 104px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--on-ink); }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Structure ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.section--flush { border-top: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > * { min-width: 0; }

/* ---------- Type ---------- */
.label {
  font-size: var(--t-label); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.display { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.035em; }
.h1 { font-size: var(--t-h1); line-height: 1.08; letter-spacing: -0.03em; }
.h2 { font-size: var(--t-h2); line-height: 1.14; letter-spacing: -0.025em; }
.h3 { font-size: var(--t-h3); line-height: 1.35; letter-spacing: -0.01em; }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.prose { max-width: 40em; display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 500; }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.arrow-link span { transition: transform .2s ease; }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 500; font-size: 0.9375rem; line-height: 1;
  padding: 16px 28px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--on-ink); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn--small { padding: 12px 20px; font-size: 0.875rem; }
.band .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.band .btn:hover { background: transparent; color: var(--on-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a:not(.btn) { text-decoration: none; font-size: 0.9375rem; color: var(--ink-2); padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 128px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: end; }
.hero__grid > * { min-width: 0; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.page-hero { padding-block: clamp(56px, 8vw, 104px); }
.page-hero .stack { gap: 24px; max-width: 52rem; }

/* Criteria sheet: the acquisition terms, set like a term sheet */
.sheet { border: 1px solid var(--ink); background: var(--paper); }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--ink); }
.sheet__head .h3 { font-size: 1rem; }
.sheet__rows > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.sheet__rows dt { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.sheet__rows dd { font-weight: 500; font-size: 0.9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.sheet__foot { padding: 16px 22px; font-size: var(--t-small); color: var(--ink-2); }

/* ---------- Three columns ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: clamp(36px, 5vw, 64px); }
.cols3 > div { padding: 28px 28px 0 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cols3 > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.cols3 p { color: var(--ink-2); }

/* ---------- Process ---------- */
.steps { border-top: 1px solid var(--ink); counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 72px minmax(0, 4fr) minmax(0, 6fr); gap: 20px;
  padding-block: 26px; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.steps li::before { content: counter(step, decimal-leading-zero); font-weight: 300; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps p { color: var(--ink-2); }

/* ---------- Reasons grid ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.grid2 > div { padding: 30px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.grid2 > div:nth-child(odd) { padding-right: 36px; border-right: 1px solid var(--rule); }
.grid2 > div:nth-child(even) { padding-left: 36px; }
.grid2 p { color: var(--ink-2); }

/* ---------- Two lists ---------- */
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.lists > div { border-top: 1px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ticks { display: flex; flex-direction: column; }
.ticks li { padding-block: 13px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.note { font-size: var(--t-small); color: var(--ink-3); }

/* ---------- Black band ---------- */
.band { background: var(--ink); color: var(--on-ink); padding-block: var(--section); }
.band .label { color: var(--on-ink-2); }
.band .muted, .band .lead { color: var(--on-ink-2); }
.facts { border-top: 1px solid var(--on-ink); }
.facts > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--rule-on-ink); align-items: baseline; }
.facts dt { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink-2); }
.facts dd { font-size: 0.9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.facts--light { border-top-color: var(--ink); }
.facts--light > div { border-bottom-color: var(--rule); }
.facts--light dt { color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px; font-weight: 500; font-size: 1.0625rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.6rem; line-height: 1; flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 40em; padding-bottom: 24px; }

/* ---------- Closing call ---------- */
.closing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.closing .stack { max-width: 36rem; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--t-small); font-weight: 500; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #b4b5ba; border-radius: 0; padding: 14px 16px; width: 100%; min-height: 52px;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b0b0c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-small); color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.result { grid-column: 1 / -1; border: 1px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.result pre {
  margin: 0; font-family: var(--font); font-size: var(--t-small); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--wash); padding: 16px; color: var(--ink);
}
.result__email { font-weight: 500; user-select: all; }

/* ---------- Legal pages ---------- */
.legal { max-width: 46rem; display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); }
.legal h2 { font-size: 1.3125rem; letter-spacing: -0.015em; color: var(--ink); margin-top: 28px; }
.legal ul { list-style: disc; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.legal a { text-underline-offset: 4px; }

/* Marked slot: a detail still to be supplied before launch */
.todo { background: var(--warn-bg); color: var(--warn-ink); padding: 1px 6px; font-weight: 500; white-space: normal; }
.band .todo { background: #3a2f08; color: #ffe38a; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ink); padding-block: clamp(48px, 6vw, 80px) 32px; font-size: var(--t-small); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); }
.footer__grid > * { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.footer p, .footer li { color: var(--ink-2); }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.8125rem; }
.footer__base p { color: inherit; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .hero__grid, .split, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { align-items: start; }
  .cols3 { grid-template-columns: minmax(0, 1fr); }
  .cols3 > div { padding: 24px 0; border-bottom: 1px solid var(--rule); }
  .cols3 > div + div { padding-left: 0; border-left: 0; }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); gap: 6px 16px; }
  .steps li p { grid-column: 2; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--ink); padding: 8px var(--gutter) 24px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding-block: 16px; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; color: var(--ink); }
  .nav .btn { margin-top: 20px; }
}
@media (max-width: 640px) {
  .grid2, .lists, .form { grid-template-columns: minmax(0, 1fr); }
  .grid2 > div:nth-child(odd) { padding-right: 0; border-right: 0; }
  .grid2 > div:nth-child(even) { padding-left: 0; }
  .facts > div, .sheet__rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Proof strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-top: clamp(48px, 7vw, 88px); }
.strip > div { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.strip > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.strip dt { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.strip dd { font-weight: 500; font-size: 1rem; line-height: 1.4; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); margin-top: clamp(32px, 5vw, 56px); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.compare th:first-child { padding-left: 0; width: 20%; }
.compare thead th { font-weight: 500; font-size: 1rem; }
.compare tbody th { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 21px; }
.compare td { color: var(--ink-2); }
.compare .is-us { background: var(--wash); color: var(--ink); font-weight: 500; }
.table-note { font-size: var(--t-small); color: var(--ink-3); margin-top: 16px; max-width: 46em; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: clamp(32px, 5vw, 56px); }
.timeline li { position: relative; padding: 28px 28px 0 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.timeline .when { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.timeline p { color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Guide ---------- */
.guide-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 8px; }
.guide-nav a { font-size: 0.9375rem; }
.prose .ticks { margin-top: 4px; border-top: 1px solid var(--rule); }
.prose h3 { color: var(--ink); margin-top: 12px; }
.source { font-size: var(--t-small); color: var(--ink-3); }

@media (max-width: 900px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .strip > div, .strip > div + div { padding: 18px 16px 18px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .strip > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .timeline { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--ink); margin-left: 4px; }
  .timeline li { padding: 0 0 28px 24px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 5px; left: -5px; }
}

/* Hero without a side panel: copy runs wide, headline sets the measure */
.hero__solo .hero__copy { max-width: none; }
.hero__solo .display { font-size: clamp(2.5rem, 6.4vw, 5.125rem); line-height: 1.04; }
.hero__solo .lead { max-width: 36em; }

/* ---------- Section rhythm: alternate white and a quiet grey ---------- */
.section--wash { background: var(--wash); border-top: 0; }
.section--wash + .section, .section--wash + .footer { border-top-color: transparent; }
.section--wash + .footer { border-top: 1px solid var(--ink); }
.section--wash .field input, .section--wash .field select, .section--wash .field textarea { background-color: var(--paper); }
.section--wash .result { background: var(--paper); }

/* ---------- Four-step flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: clamp(32px, 5vw, 56px); counter-reset: flow; }
.flow li { counter-increment: flow; padding: 26px 28px 0 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flow li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.flow li::before { content: counter(flow, decimal-leading-zero); font-weight: 300; font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.flow p { color: var(--ink-2); font-size: 0.9375rem; }
.section--wash .flow li + li { border-left-color: #dcdcdf; }
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li, .flow li + li { padding: 22px 16px 22px 0; border-left: 0; border-bottom: 1px solid #dcdcdf; }
  .flow li:nth-child(even) { padding-left: 16px; border-left: 1px solid #dcdcdf; }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Photography: one black-and-white photo beside each main page heading ---------- */
.hero__grid { align-items: center; }
.media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; max-width: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; }
.page-hero .hero__grid .stack { max-width: none; }
@media (max-width: 900px) {
  .media { aspect-ratio: 3 / 2; }
}
