/* LIMSTrack marketing site. Same brand tokens as the application, but laid
   out as an editorial spread: text sits on a 1120px measure while photography
   runs off the side of the viewport, so the page uses its full width instead
   of stacking everything in a narrow left-hand ribbon. */
:root {
  --ink: #17211f;
  --muted: #52615e;
  --faint: #5c6965;
  --paper: #f4f5f2;
  --paper-2: #eceee8;
  --card: #ffffff;
  /* Brand orange from the logo mark. The bright value is for fills, pills and
     marks; the deep value is the only one used behind white text or as text
     on the paper, so every pairing clears AA. */
  --accent: #ff8a1f;
  --accent-dark: #b54e02;
  --accent-tint: rgba(255, 138, 31, 0.16);
  --espresso: #3a2c25;
  --line: rgba(23, 33, 31, 0.14);
  --hair: rgba(23, 33, 31, 0.08);
  --radius: 10px;
  --frame: 18px;
  --heading: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --body: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Distance from the viewport edge to the 1120px text measure. Photography
     ignores it and runs to the edge; text never does. */
  --gutter: max(24px, calc((100vw - 1120px) / 2));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 112px; }

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 60;
  padding: 10px 14px; background: var(--espresso); color: #fff;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* A trace of paper grain over the whole page, so the flat fills read as stock
   rather than as screen. Fixed and inert, so it never repaints on scroll. */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.11'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

h1, h2, h3 {
  font-family: var(--heading); font-weight: 600; line-height: 1.08;
  margin: 0; letter-spacing: -0.025em; text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: var(--accent-dark); }
img { max-width: 100%; display: block; }

.rule { height: 4px; background: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 245, 242, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-head.stuck {
  border-bottom-color: var(--line);
  background: rgba(244, 245, 242, 0.94);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px; gap: 24px;
}
.site-head img { height: 56px; width: auto; }
.nav {
  display: flex; gap: 32px; align-items: center;
  font-size: 14px; white-space: nowrap;
}
.nav a:not(.btn) {
  color: var(--muted); text-decoration: none; padding: 8px 0; position: relative;
  transition: color 0.3s var(--ease);
}
/* The underline grows from the left rather than switching on. */
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { margin-left: 4px; }

/* buttons — pill, with the arrow nested in its own disc so the two parts can
   move independently under the cursor */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #2a1d15; text-decoration: none;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; font-family: var(--body);
  border: 0; cursor: pointer; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(156, 85, 7, 0.22), 0 12px 24px -14px rgba(156, 85, 7, 0.7);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.btn.lg { font-size: 15px; padding: 13px 14px 13px 26px; }
.btn:hover { background: #ff7a05; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn[disabled] { opacity: 0.6; cursor: default; box-shadow: none; }
.btn-i {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18); font-size: 13px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.btn.lg .btn-i { width: 30px; height: 30px; }
.btn:hover .btn-i { transform: translateX(3px); background: rgba(255, 255, 255, 0.28); }

/* eyebrow — a pill, so it reads as a tag rather than as small text */
.eyebrow { margin: 0 0 22px; }
.eyebrow span {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-tint); color: #8a3b03;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}

/* hero — full-bleed photograph, copy centred over a dark wash */
.hero-full {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(82vh, 760px); display: grid; place-items: center;
  padding: 88px 24px 104px; color: #fff; text-align: center;
  background: var(--espresso);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 55%;
  filter: sepia(0.16) saturate(1.05) contrast(1.02);
}
.hero-full::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(14, 22, 21, 0.55), rgba(14, 22, 21, 0.62) 55%, rgba(14, 22, 21, 0.86)),
    radial-gradient(60% 70% at 50% 45%, rgba(14, 22, 21, 0.25), rgba(14, 22, 21, 0));
}
.hero-full-in { max-width: 820px; margin: 0 auto; }
.hero-full .eyebrow span { background: rgba(255, 255, 255, 0.14); color: #ffd7b3; }
.hero-full h1 {
  font-size: clamp(38px, 5.4vw, 76px); letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-full .lede {
  margin: 26px auto 0; max-width: 44ch;
  font-size: clamp(17px, 1.5vw, 21px); color: rgba(255, 255, 255, 0.86);
}
.hero-full .cta {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.hero-full .quiet { margin: 22px auto 0; font-size: 14px; color: rgba(255, 255, 255, 0.66); max-width: 48ch; }
.btn.ghost {
  background: rgba(255, 255, 255, 0.1); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: none; backdrop-filter: blur(6px);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.18); }
.hero-cap {
  position: absolute; right: 24px; bottom: 18px; margin: 0;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.01em;
}
@media (max-width: 900px) {
  .hero-full { min-height: 0; padding: 72px 24px 88px; }
  .hero-cap { position: static; margin-top: 40px; text-align: center; }
}

.cost-photo, .record-photo { position: relative; margin: 0; align-self: stretch; }
.cost-photo::after, .record-photo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  pointer-events: none; border-radius: inherit;
  background: linear-gradient(to top, rgba(9, 20, 18, 0.72), rgba(9, 20, 18, 0) 78%);
}
@media (max-width: 900px) { .cost-photo::after, .record-photo::after { height: 38%; } }
.cost-photo img, .record-photo img { filter: sepia(0.16) saturate(1.05) contrast(1.02); }

/* sections */
section { padding: clamp(56px, 6.5vw, 88px) 0; }
.section-head { max-width: 44ch; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 44px); }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 17px; }

/* cost — photograph off the left edge, the ledger of consequences on the measure */
#cost { padding-top: clamp(72px, 8vw, 116px); }
.cost-grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: 0; align-items: stretch;
}
.cost-photo img {
  width: 100%; height: 100%; min-height: 460px;
  object-fit: cover; object-position: 46% 50%;
  border-radius: 0 var(--frame) var(--frame) 0;
}
.cost-photo figcaption {
  position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 20px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.01em;
}
.cost-body { padding: 0 var(--gutter) 0 64px; align-self: center; }
.cost-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cost-item { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.cost-item h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.015em; }
.cost-item p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }

@media (max-width: 900px) {
  .cost-grid { grid-template-columns: 1fr; gap: 36px; }
  .cost-photo img { min-height: 0; aspect-ratio: 16 / 10; border-radius: 0; }
  .cost-body { padding: 0 24px; }
}

/* capabilities — six cards in a tray, each a thin-line mark over a short
   paragraph, then the facts strip beneath */
.capabilities { background: var(--card); border-top: 1px solid var(--line); }
.capabilities .section-head { max-width: 56ch; margin-left: auto; margin-right: auto; text-align: center; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap {
  background: rgba(23, 33, 31, 0.035); border-radius: 22px; padding: 6px;
  border: 1px solid var(--hair);
}
.cap-in {
  background: var(--card); border-radius: 16px; padding: 26px 24px 28px; height: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(23, 33, 31, 0.04);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.cap:hover .cap-in {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 34px -24px rgba(23, 33, 31, 0.45);
}
.cap-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: var(--accent-tint); color: #8a3b03; margin-bottom: 18px;
}
.cap-icon svg { width: 28px; height: 28px; }
.cap h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.015em; }
.cap p { margin: 0; font-size: 15px; color: var(--muted); }
.cap-grid .cap:last-child:nth-child(3n + 1) { grid-column: 2; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr 1fr; } .cap-grid .cap:last-child:nth-child(3n + 1) { grid-column: auto; } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

.numbers {
  margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 24px;
}
.numbers div { display: grid; align-content: start; gap: 8px; }
.numbers dt {
  font-family: var(--heading); font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(34px, 3.2vw, 46px); color: #e56d08; font-variant-numeric: tabular-nums;
}
.numbers dt span { font-size: 0.5em; margin-left: 2px; letter-spacing: 0; white-space: nowrap; color: var(--accent-dark); }
.numbers dd { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 1000px) { .numbers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .numbers { grid-template-columns: 1fr 1fr; } }

/* fit — a full-bleed split, the two verdicts weighed against each other */
.fit { padding: 0; }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; }
.fit-col { padding: clamp(56px, 6vw, 88px) 56px; display: grid; align-content: center; }
.fit-col.yes { background: var(--card); padding-left: var(--gutter); }
.fit-col.no { background: var(--espresso); color: #fff; padding-right: var(--gutter); }
.fit-col h2 { font-size: clamp(26px, 3.1vw, 40px); margin-bottom: 24px; max-width: 12ch; }
.fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 34ch; }
.fit-col li { padding-left: 24px; position: relative; font-size: 17px; line-height: 1.55; }
.fit-col li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.fit-col.no li { color: rgba(255, 255, 255, 0.86); }
.fit-col.no li::before { background: var(--accent); }
@media (max-width: 820px) {
  .fit-grid { grid-template-columns: 1fr; }
  .fit-col { padding: 52px 24px; }
}

/* session — the contract, as numbered beats */
.session { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.session .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px 64px; align-items: start; }
.session .section-head { margin-bottom: 0; }
.contract { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.session-note { grid-column: 2; }
@media (max-width: 900px) { .session .wrap { grid-template-columns: 1fr; } .contract { grid-template-columns: 1fr; } .session-note { grid-column: 1; } }
.beat {
  display: grid; grid-template-columns: 48px 1fr; gap: 8px 16px;
  padding: 20px 0; border-top: 1px solid var(--hair);
}
.beat:nth-last-child(-n+2) { border-bottom: 1px solid var(--hair); }
@media (max-width: 900px) { .beat:nth-last-child(2) { border-bottom: 0; } }
.beat .n {
  font-family: var(--heading); font-weight: 600; font-size: 22px;
  color: var(--accent-dark); line-height: 1; padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.beat h3 { font-size: 17px; }
.beat p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.session-note {
  margin: 8px 0 0; max-width: 60ch; font-size: 15px; color: var(--muted);
  padding-left: 18px; border-left: 2px solid var(--accent);
}

/* record — the rail of the workflow, photograph off the right edge */
.record-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 0; align-items: stretch;
}
.record-body { padding: 0 64px 0 var(--gutter); align-self: center; }
.record-photo img {
  width: 100%; height: 100%; min-height: 460px;
  object-fit: cover; object-position: 50% 50%;
  border-radius: var(--frame) 0 0 var(--frame);
}
.record-photo figcaption {
  position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 20px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.01em;
}
.rail { display: grid; gap: 0; }
.rail-step {
  display: grid; grid-template-columns: 108px 1fr; gap: 18px;
  padding: 14px 0; border-top: 1px solid var(--hair);
}
.rail-step:last-child { border-bottom: 1px solid var(--hair); }
.rail-step h3 {
  font-size: 12px; font-weight: 700; color: var(--accent-dark);
  letter-spacing: 0.12em; text-transform: uppercase; padding-top: 4px;
}
.rail-step p { margin: 0; font-size: 16px; color: var(--muted); }
.trust-line {
  margin: 32px 0 0; font-size: 14.5px; color: var(--muted); max-width: 50ch;
  padding-top: 20px; border-top: 1px solid var(--hair);
}
@media (max-width: 900px) {
  .record-grid { grid-template-columns: 1fr; gap: 36px; }
  .record-body { padding: 0 24px; }
  .record-photo img { min-height: 0; aspect-ratio: 16 / 10; border-radius: 0; }
  .rail-step { grid-template-columns: 1fr; gap: 4px; }
}

/* clinics — the one section that speaks to the other side of the connection */
.clinics { background: var(--card); border-top: 1px solid var(--line); }
.clinics-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.clinics .section-head { margin-bottom: 0; }
.clinics .rail-step { grid-template-columns: 96px 1fr; }
@media (max-width: 900px) { .clinics-grid { grid-template-columns: 1fr; gap: 36px; } }

/* objections */
.objections { background: var(--paper-2); }
.objections .section-head { max-width: 56ch; margin-left: auto; margin-right: auto; text-align: center; }
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  gap: 20px; padding: 20px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::after {
  content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 17px; color: var(--accent-dark); background: rgba(255, 255, 255, 0.6);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}
.faq summary:hover::after { background: #fff; transform: scale(1.06); }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { margin: 0 0 24px; max-width: 66ch; color: var(--muted); font-size: 15.5px; }

/* contact */
.contact { background: var(--card); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 56px; align-items: start;
}
.contact-grid .section-head { margin-bottom: 20px; }
.assurance { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.assurance li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.assurance li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* The form sits in a tray, so it reads as one object rather than as loose
   fields on the section background. */
.form {
  display: grid; gap: 18px; background: var(--paper);
  border: 1px solid var(--hair); border-radius: 20px; padding: 28px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--faint); }
.field .hint { margin: 0; font-size: 13px; color: var(--faint); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--ink); width: 100%;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(23, 33, 31, 0.26); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent-dark); outline-offset: 1px; border-color: transparent;
}
.field textarea { min-height: 132px; resize: vertical; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%2352615e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-color: #fff;
}
.status { font-size: 14px; margin: 0; padding: 12px 14px; border-radius: var(--radius); display: none; }
.status.show { display: block; }
.status.ok { background: var(--accent-tint); color: #8a3b03; }
.status.bad { background: rgba(176, 42, 42, 0.09); color: #9a2727; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 28px; }
footer a { color: var(--muted); text-decoration: none; transition: color 0.3s var(--ease); }
footer a:hover { color: var(--ink); }
.foot-top { display: flex; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand img { height: 40px; width: auto; }
.foot-brand p { margin: 0; max-width: 52ch; font-size: 14px; color: var(--muted); }
.foot-col { display: flex; gap: 24px; font-size: 14.5px; }
/* privacy page carries a two-span footer */
footer .wrap > span { display: inline-block; margin-right: 24px; font-size: 13px; color: var(--faint); }
.foot-bottom {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--faint);
}

/* motion — a single heavy easing curve, and a stagger inside any list that
   asks for one, so rows arrive in reading order rather than all at once */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .stagger > .reveal:nth-child(2) { transition-delay: 70ms; }
.js .stagger > .reveal:nth-child(3) { transition-delay: 140ms; }
.js .stagger > .reveal:nth-child(4) { transition-delay: 210ms; }
.js .stagger > .reveal:nth-child(5) { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn-i, .nav a::after, .faq summary::after { transition: none; }
}

@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
}
