/* =========================================================
   Northlight — Design & Web Studio
   "Artboard" visual system
   ========================================================= */

:root {
  /* palette */
  --canvas:    #E7E3DA;   /* desk / artboard surround */
  --sheet:     #FCFBF9;   /* panels & cards */
  --ink:       #16171C;   /* primary text */
  --ink-soft:  #5C5E58;   /* muted text */
  --line:      rgba(22, 23, 28, 0.14);
  --line-soft: rgba(22, 23, 28, 0.07);
  --accent:    #3A34EB;   /* electric indigo */
  --accent-dk: #2621C4;
  --coral:     #FF7A45;   /* swatch-only warm chip */

  /* type */
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  /* scale */
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 14px;

  --sp-section: clamp(72px, 11vw, 148px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- utility ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
}

/* focus visibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--fill { background: var(--ink); color: var(--sheet); }
.btn--fill:hover { background: var(--accent); border-color: var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--sheet); }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__in {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6em; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand__name b { color: var(--accent); font-weight: 800; }

.nav__links { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav__links a { font-size: 0.94rem; color: var(--ink-soft); transition: color .15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: inline-flex; }

.nav__toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) var(--sp-section);
  overflow: hidden;
}
/* faint grid guides */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc((100% ) / 6) 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 62%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0 62%, transparent 92%);
  opacity: .8;
  pointer-events: none;
}
.hero__label {
  position: absolute; top: clamp(20px, 4vw, 40px); right: var(--gut);
  text-align: right; line-height: 1.7;
  display: none;
}
@media (min-width: 780px){ .hero__label { display: block; } }

.hero__top { display: flex; align-items: center; gap: 1em; margin-bottom: clamp(28px, 5vw, 52px); }

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero__title .ink-out {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
}
.hero__title em { color: var(--accent); font-style: normal; }

.hero__lede {
  margin-top: clamp(24px, 4vw, 34px);
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--ink-soft);
}
.hero__lede b { color: var(--ink); font-weight: 600; }

.hero__actions { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 14px; }

/* swatch strip — the signature */
.swatches {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 720px;
  background: var(--line);
}
.swatch { padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 4px; min-height: 108px; justify-content: flex-end; }
.swatch span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; }
.swatch .hex { opacity: .85; }
.swatch--ink    { background: var(--ink);    color: #fff; }
.swatch--indigo { background: var(--accent); color: #fff; }
.swatch--coral  { background: var(--coral);  color: var(--ink); }
.swatch--paper  { background: var(--sheet);  color: var(--ink); }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--sheet);
  overflow: hidden;
  padding-block: 16px;
}
.marquee__track {
  display: flex; gap: 3rem; width: max-content;
  animation: slide 32s linear infinite;
}
.marquee__track span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 3rem;
  white-space: nowrap;
}
.marquee__track span::after { content: "◆"; color: var(--accent); font-size: 0.7em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* =========================================================
   SECTION SCAFFOLD
   ========================================================= */
.section { padding-block: var(--sp-section); }
.section--tint { background: var(--sheet); border-block: 1px solid var(--line-soft); }
.section__head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 64px); }
.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.section__intro { margin-top: 20px; color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; }

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.svc { background: var(--sheet); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 14px; transition: background .2s ease; }
.svc:hover { background: #fff; }
.svc__num { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; }
.svc__title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.svc__body { color: var(--ink-soft); font-size: 0.98rem; }
.svc__tags { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); }

/* =========================================================
   PROCESS
   ========================================================= */
.process { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.step {
  background: var(--canvas);
  display: grid;
  grid-template-columns: minmax(70px, 0.5fr) minmax(180px, 1.2fr) 2.6fr;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(26px, 3.5vw, 40px) 0;
  align-items: start;
}
.step__num { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--accent); line-height: 1; }
.step__title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.step__body { color: var(--ink-soft); }
.step__body .kbd { font-family: var(--mono); font-size: 0.8em; background: var(--sheet); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }

/* =========================================================
   PRICING
   ========================================================= */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tier {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(22,23,28,.5); }
.tier--feature { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.tier--feature .tier__price, .tier--feature .tier__name { color: #fff; }
.tier--feature .feat li { color: color-mix(in srgb, #fff 78%, transparent); }
.tier--feature .feat li::before { color: var(--coral); }
.tier--feature .tier__eyebrow { color: var(--coral); }
.tier__eyebrow { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tier__name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.tier__price { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; }
.tier__price small { font-family: var(--mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-soft); display: block; margin-top: 4px; text-transform: uppercase; }
.tier--feature .tier__price small { color: color-mix(in srgb, #fff 62%, transparent); }
.tag--flag { position: absolute; top: 18px; right: 18px; background: var(--coral); color: var(--ink); border: none; }

.feat { display: flex; flex-direction: column; gap: 9px; }
.feat li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 0.96rem; }
.feat li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.tier .btn { margin-top: auto; justify-content: center; }

/* care plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plan { background: var(--sheet); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.plan__name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.plan__price { font-family: var(--mono); font-size: 0.9rem; color: var(--accent); letter-spacing: 0.04em; }
.plan__feat { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.plan__feat li { font-size: 0.9rem; color: var(--ink-soft); padding-left: 16px; position: relative; }
.plan__feat li::before { content: "·"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

.note { margin-top: 26px; font-size: 0.9rem; color: var(--ink-soft); border-left: 2px solid var(--accent); padding-left: 16px; max-width: 62ch; }

/* included-with-every-plan strip (pricing) */
.incl-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 15px 22px; border: 1px dashed var(--accent); border-radius: var(--r); margin-bottom: 24px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.incl-band__tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.incl-band__items { color: var(--ink-soft); font-size: 0.95rem; }

/* ongoing-care band (home) */
.care-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.care-band__lead .btn { margin-top: 26px; }
.care-points { border-top: 1px solid var(--line); }
.care-points li { display: flex; gap: clamp(14px, 3vw, 24px); align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.care-points__k { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; color: var(--accent); flex: none; min-width: 128px; }
.care-points__v { color: var(--ink-soft); font-size: 1rem; }

/* tabular figures for all prices/stats */
.tier__price, .plan__price, .care-points__k { font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .care-band { grid-template-columns: 1fr; }
  .care-points__k { min-width: 104px; }
}

/* spread-the-cost (build financing) */
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 34px; font-family: var(--mono); font-size: 0.78rem; }
.formula__step { background: var(--sheet); border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px; }
.formula__step b { color: var(--accent); }
.formula__step--result { background: var(--ink); color: #fff; border-color: var(--ink); }
.formula__op { color: var(--accent); font-weight: 700; font-family: var(--mono); }
.fin-table-wrap { overflow-x: auto; }
.fin-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.fin-table th { text-align: right; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding: 0 0 12px 16px; border-bottom: 1px solid var(--line); font-weight: 400; }
.fin-table th:first-child { text-align: left; padding-left: 0; }
.fin-table td { padding: 15px 0 15px 16px; border-bottom: 1px solid var(--line-soft); text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.fin-table td:first-child { text-align: left; padding-left: 0; font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink); }
.fin-table .off { color: var(--accent); font-weight: 600; }
.fin-table tr:last-child td { border-bottom: none; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--ink); color: var(--sheet); border-radius: calc(var(--r) + 6px); padding: clamp(34px, 6vw, 72px); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.contact__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -0.03em; }
.contact__lede { margin-top: 18px; color: color-mix(in srgb, #fff 74%, transparent); max-width: 40ch; }
.contact__meta { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.contact__meta .mono { color: color-mix(in srgb, #fff 60%, transparent); }
.contact__meta a { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.contact__meta a:hover { color: var(--coral); }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, #fff 60%, transparent); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 0.95rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-content: center; margin-top: 4px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding-block: clamp(48px, 7vw, 80px) 40px; }
.footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__tag { max-width: 34ch; color: var(--ink-soft); margin-top: 14px; }
.footer__cols { display: flex; gap: clamp(40px, 8vw, 96px); flex-wrap: wrap; }
.footer__col h4 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.footer__col a { display: block; padding: 4px 0; color: var(--ink); font-size: 0.96rem; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; }
.footer__bottom .mono { font-size: 0.68rem; }

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.pagehead { padding-block: clamp(48px, 7vw, 92px) clamp(30px, 4vw, 48px); }
.pagehead h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.035em; margin-top: 16px; }
.pagehead p { margin-top: 20px; color: var(--ink-soft); max-width: 52ch; font-size: 1.08rem; }

/* legal / prose */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin: 44px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; margin: 24px 0 6px; }
.prose p { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul.bullets { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.prose ul.bullets li { position: relative; padding-left: 20px; color: var(--ink-soft); }
.prose ul.bullets li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }

/* =========================================================
   REVEAL
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet);
  }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--canvas); border-bottom: 1px solid var(--line);
    padding: 20px var(--gut) 28px; gap: 16px;
  }
  .nav[data-open="true"] .nav__cta { display: inline-flex; }
  .contact__grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 54px 1fr; }
  .step__body { grid-column: 1 / -1; padding-top: 4px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .tier:hover { transform: none; }
}
