/* =========================================================
   Northview homepage: Attio-style layout system, 2026-08-26.
   Reference: attio.com/platform/data (structure, type rhythm and components only;
   no Attio markup, copy or artwork is reproduced).

   Brand tokens are UNCHANGED: navy base, orange accent. Attio's page is white, so
   this is their structure in Northview's skin, not a pixel match.
   Site-wide since the 2026-08-26 rollout (was front-page only).
   ========================================================= */

:root {
  --at-rule: rgba(255, 255, 255, 0.11);   /* column rules + panel edges */
  --at-dot:  rgba(255, 255, 255, 0.10);   /* hatch dots */
  --at-card: rgba(255, 255, 255, 0.04);
}

/* ---- Eyebrow pill ------------------------------------------------------- */
.at-eyebrow {
  display: inline-block;
  padding: 6px 15px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  background: var(--at-card);
  border: 1px solid var(--at-rule);
  border-radius: var(--r-pill);
  margin-bottom: 28px;
}

/* ---- Two-tone heading: bold lead clause, muted continuation ------------- */
.at-lead {
  max-width: 15ch;
  font-size: clamp(30px, 4.1vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--text-primary);
}
.at-lead span { color: var(--text-dim); font-weight: 600; }
.at-lead--wide { max-width: 22ch; }

/* ---- Column-ruled panel with a dotted hatch ----------------------------- */
.at-panel {
  position: relative;
  padding: clamp(70px, 10vh, 120px) clamp(22px, 4vw, 64px);
  border-top: 1px solid var(--at-rule);
  border-bottom: 1px solid var(--at-rule);
  background-image: radial-gradient(var(--at-dot) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* the two vertical rules that frame the content column */
.at-panel::before,
.at-panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--at-rule);
}
.at-panel::before { left: clamp(22px, 4vw, 64px); }
.at-panel::after  { right: clamp(22px, 4vw, 64px); }

.at-panel__inner { max-width: var(--container); margin: 0 auto; position: relative; }

/* ---- Numbered sub-items, mono [01] ------------------------------------- */
.at-nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  margin-top: clamp(48px, 7vh, 84px);
}
.at-num {
  padding: 34px clamp(20px, 2.4vw, 40px) 30px;
  border-left: 1px solid var(--at-rule);
}
.at-num:last-child { border-right: 1px solid var(--at-rule); }
.at-num__i {
  display: block;
  margin-bottom: 18px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.at-num h3 {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  letter-spacing: -0.018em;
  margin-bottom: 10px;
}
.at-num p { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }

/* ---- Hero entity diagram: cards joined by dotted connectors ------------- */
.at-map {
  position: relative;
  max-width: 1060px;
  margin: clamp(52px, 8vh, 96px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 34px);
}
.at-map__hub {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  box-shadow: 0 0 50px -10px var(--accent-glow);
}
.at-map__hub i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
}

.at-obj {
  position: relative;
  background: var(--at-card);
  border: 1px solid var(--at-rule);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}
/* dotted riser from each card up toward the hub */
.at-obj::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 1px;
  height: 22px;
  background-image: linear-gradient(to bottom, var(--border-mid) 50%, transparent 0);
  background-size: 1px 6px;
}
.at-obj__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--at-rule);
}
.at-obj__name { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.at-obj__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cool);
  padding: 3px 8px;
  border: 1px solid var(--at-rule);
  border-radius: var(--r-pill);
}
.at-obj__row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--at-rule);
}
.at-obj__row:last-child { border-bottom: 0; }
.at-obj__row svg { width: 13px; height: 13px; flex: none; color: var(--text-dim); }
.at-obj__more { padding: 10px 14px; font-size: 12.5px; color: var(--text-dim); }

@media (max-width: 800px) {
  .at-map { grid-template-columns: 1fr; max-width: 380px; }
  .at-obj::before { display: none; }
  .at-num { border-left: 0; border-top: 1px solid var(--at-rule); }
  .at-num:last-child { border-right: 0; }
  .at-panel::before, .at-panel::after { display: none; }
}

/* ---- Marketplace cards, restyled into the same flat panel language ------ */
.offer {
  background: var(--at-card);
  border-color: var(--at-rule);
  border-radius: 12px;
}
.offer--featured { background: var(--bg-elevated); }

/* ---- Body copy following a two-tone heading needs its own breathing room -- */
.at-lead + .section__sub,
.at-lead + .section__sub--answer { margin-top: 26px; max-width: 58ch; }
.section__head:has(.at-lead) { max-width: none; }

/* =========================================================
   Homepage reference pass 2, 2026-08-26.
   Source: screenshots in "New website" (attio.com homepage).
   Patterns taken: product shot in browser chrome, sticky left-nav journey,
   two-column feature rows. Content is Northview's own.
   ========================================================= */

/* ---- Journey: sticky left rail, panel on the right --------------------- */
.at-journey {
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr;
  gap: clamp(26px, 4vw, 70px);
  align-items: start;
}
.at-rail { position: sticky; top: 120px; display: grid; gap: 2px; }
.at-rail button {
  position: relative;
  padding: 9px 0 9px 18px;
  text-align: left;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.at-rail button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: transparent;
  transition: background 0.2s ease;
}
.at-rail button:hover { color: var(--text-secondary); }
.at-rail button.is-active { color: var(--text-primary); font-weight: 700; }
.at-rail button.is-active::before { background: var(--accent); }

.at-stage { display: grid; }
.at-stage__panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.at-stage__panel.is-active { opacity: 1; visibility: visible; transform: none; }
.at-stage__panel h3 {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin-bottom: 10px;
}
.at-stage__panel > p { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); max-width: 52ch; margin-bottom: 22px; }

.at-rows { border: 1px solid var(--at-rule); border-radius: 11px; overflow: hidden; background: var(--at-card); }
.at-rows__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--at-rule);
}
.at-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--at-rule);
}
.at-row:last-child { border-bottom: 0; }
.at-row em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  color: var(--accent-cool);
  border: 1px solid var(--at-rule);
}
.at-row em.is-good { color: #6ee7b7; }

/* ---- Two-column feature rows ------------------------------------------- */
.at-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--at-rule);
}
.at-duo__item {
  padding: clamp(30px, 4vh, 46px) clamp(20px, 2.6vw, 44px);
  border-right: 1px solid var(--at-rule);
  border-bottom: 1px solid var(--at-rule);
}
.at-duo__item h3 {
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.at-duo__item h3 span { color: var(--text-dim); font-weight: 600; }

@media (max-width: 860px) {
  .at-journey { grid-template-columns: 1fr; }
  .at-rail { position: static; grid-auto-flow: column; overflow-x: auto; gap: 6px; padding-bottom: 8px; }
  .at-rail button { padding: 8px 14px; white-space: nowrap; font-size: 14px; border: 1px solid var(--at-rule); border-radius: var(--r-pill); }
  .at-rail button::before { display: none; }
  .at-rail button.is-active { background: var(--bg-elevated); }
  /* stacked panels: show them all rather than hiding four fifths of the content */
  .at-stage { display: block; }
  .at-stage__panel { opacity: 1; visibility: visible; transform: none; }
  .at-stage__panel + .at-stage__panel { margin-top: 40px; }
  .at-duo__item { border-right: 0; }
}

/* ---- at-lead inside a centred section head -----------------------------
   The vertical templates centre their section heads. Without this the 22ch
   max-width stays left-anchored and the centred text reads as ragged and
   off-axis. Centre the block and let it run wider. */
.section__head--center .at-lead,
.cta__inner .at-lead {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__head--center .at-lead--wide,
.cta__inner .at-lead--wide { max-width: 26ch; }

/* ---- Article titles opt into the tracking but keep the article measure ---- */
.article__title.at-lead {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* ---- The booking CTA: deliberately the biggest block on the homepage ----- */
.book-cta { border-bottom: 0; }
.book-cta__inner { text-align: center; }
.book-cta__title {
  font-size: clamp(44px, 9vw, 118px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.book-cta__sub {
  max-width: 48ch;
  margin: 0 auto 34px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--text-secondary);
}
.book-cta__actions { margin-bottom: 14px; }
.book-cta__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: clamp(40px, 6vh, 70px);
}
.book-cta__alt { margin-top: 34px; font-size: 14px; color: var(--text-muted); }

/* ---- Landing-funnel pieces ---------------------------------------------- */
.landing-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.landing-header__cta { padding: 11px 20px; font-size: 14.5px; }

/* Repeated inline CTA between funnel sections */
.cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(30px, 4vh, 46px) var(--pad-x);
  text-align: center;
}
.cta-bar__line {
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-primary);
}

/* Risk reversal block */
.guarantee { text-align: center; }
.guarantee__title {
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.032em;
  max-width: 18ch;
  margin: 0 auto 20px;
}
.guarantee__sub {
  max-width: 52ch;
  margin: 0 auto 30px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Problem stats, reusing the benchmark strip inside a panel */
.problem-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: clamp(44px, 6vh, 76px);
}
.problem-stat {
  padding: 30px clamp(18px, 2.2vw, 36px);
  border-left: 1px solid var(--at-rule);
}
.problem-stat:last-child { border-right: 1px solid var(--at-rule); }
.problem-stat b {
  display: block;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--accent-cool-bright);
  margin-bottom: 8px;
}
.problem-stat span { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

@media (max-width: 860px) {
  .problem-stat { border-left: 0; border-top: 1px solid var(--at-rule); }
  .problem-stat:last-child { border-right: 0; }
  .landing-header__cta { padding: 9px 15px; font-size: 13px; }
}
