/* Living HTX public site (home page and privacy policy).
   Loaded after styles.css: reuses its color and font tokens (--bg, --ink, --muted, --line, --sun, --f-display, --f-body)
   and the .htx wordmark style. Everything here is scoped to body.biz so the family pages are unaffected. */

body.biz {
  --panel: #151B21;        /* card background, one step up from --bg */
  --ink-2: #C9CFD6;        /* body copy, slightly softer than headings */
  --wrap: 1080px;
  --gutter: 20px;
  --bar-h: 64px;

  display: block;
  height: auto;          /* styles.css pins body to the screen height; this page scrolls */
  min-height: 0;
  padding: 0;
  background: var(--bg);
  font-weight: 500;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

html:has(body.biz) { height: auto; scroll-behavior: smooth; }

.biz .wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}

.biz a { color: var(--sun); text-underline-offset: 3px; }
.biz a:focus-visible,
.biz summary:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link: hidden until focused with the keyboard */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--sun);
  color: var(--bg) !important;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.bar {
  /* Pinned at the top on every screen size: logo, Book a call and the menu stay in reach while scrolling. */
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(58, 67, 78, 0.6);
  background: rgba(14, 18, 22, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding-top: env(safe-area-inset-top, 0px);
}
/* Section links land below the pinned header, not under it. */
.biz section[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }

.bar-in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink) !important;
  margin-right: auto;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.nav { display: none; gap: 22px; }
.nav a,
.menu-panel a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.nav a:hover,
.menu-panel a:hover { color: var(--sun); }

/* Client portal: small and quiet, so it never competes with Book a call */
.portal {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted) !important;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.portal:hover { color: var(--ink) !important; border-color: var(--muted); }

/* Phone menu */
.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.menu-panel a { padding: 12px 14px; border-radius: 8px; }
.menu-panel .menu-portal {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 900px) {
  .nav { display: flex; margin-right: 8px; }
  .portal { display: inline-block; }
  .menu { display: none; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  background: var(--sun);
  color: var(--bg) !important;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-sm { font-size: 14px; padding: 10px 16px; white-space: nowrap; }

.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Type ---------- */
.h-hero,
.h-sec {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h-hero { font-size: clamp(34px, 6vw, 60px); line-height: 1.1; max-width: 18ch; }
.h-sec { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; margin-bottom: 16px; }
.h-sub { font-size: 17px; font-weight: 700; color: var(--ink); margin: 40px 0 8px; }

.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 60ch; margin: 22px 0 32px; }
.intro { font-size: 17px; color: var(--ink-2); max-width: 64ch; margin: 0 0 28px; }
.closer { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 0; max-width: 60ch; }
.fine { font-size: 13px; color: var(--muted); margin: 28px 0 0; }

/* ---------- Sections ---------- */
.hero-biz {
  /* Fills the first screen (below the pinned header): headline, description and one button only. */
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--bar-h));
  min-height: calc(100svh - var(--bar-h) - env(safe-area-inset-top, 0px));
  padding: 48px 0 104px;
  background: radial-gradient(90% 70% at 85% 0%, rgba(245, 158, 91, 0.14), transparent 60%);
}
.hero-biz > .wrap { width: 100%; }

/* "See what we build" sits at the bottom right of the first screen, lined up with the content's right edge. */
.scroll-cue {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scroll-cue:hover { text-decoration: underline; }
.scroll-cue-arrow { display: inline-block; animation: cue-bob 2.4s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.sec { padding: clamp(56px, 8vw, 88px) 0; border-top: 1px solid rgba(58, 67, 78, 0.5); }

/* Lists with an orange dash */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 70ch; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 17px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 14px;
  height: 2px;
  background: var(--sun);
  border-radius: 2px;
}

/* What we build */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile,
.stat,
.person {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.tile h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Tablet and up: every tile the same height (rows match the tallest card), and each title keeps
   two lines of space so the body text starts on the same line across a row. */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
  .tile h3 { line-height: 1.35; min-height: 2.7em; }
}
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

/* Who we work with: six equal pills on the same columns as the tiles above, so both sections share one edge */
.segments {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px 16px;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
}
.segments li {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
@media (min-width: 640px) { .segments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .segments { grid-template-columns: repeat(3, 1fr); } }

/* Results */
.stats { display: grid; gap: 16px; grid-template-columns: 1fr; }
.stat p { margin: 0; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.1;
  color: var(--sun);
}
.stat-what { font-weight: 700; color: var(--ink); font-size: 17px; margin-top: 8px !important; }
.stat-how { color: var(--ink-2); font-size: 15px; margin-top: 10px !important; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 64px;
  min-height: 44px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--sun);
  color: var(--sun);
  font-weight: 700;
}
.steps h3 { margin: 8px 0 4px; font-size: 18px; color: var(--ink); }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 60ch; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps li { padding: 64px 0 0; }
}

/* About */
.about { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.person-initials,
.person-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.person-initials {
  display: grid;
  place-items: center;
  background: rgba(245, 158, 91, 0.15);
  border: 1px solid var(--sun);
  color: var(--sun);
  font-family: var(--f-display);
  font-size: 26px;
}
.person-photo { object-fit: cover; }
.person-name { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.person-name span { font-weight: 500; color: var(--muted); }
.person p { margin: 0; color: var(--ink-2); font-size: 15px; }
.person .person-contact { margin-top: 14px; font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sun);
  font-size: 22px;
  font-weight: 500;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); font-size: 16px; }

/* Final call to action */
.final {
  text-align: center;
  background: radial-gradient(80% 90% at 50% 120%, rgba(245, 158, 91, 0.16), transparent 65%);
}
.final .intro { margin-inline: auto; }
.final .alt { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

/* Footer */
.foot-biz {
  border-top: 1px solid rgba(58, 67, 78, 0.5);
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.foot-biz p { margin: 4px 0; }
.foot-biz a { color: var(--ink-2); text-decoration: none; }
.foot-biz a:hover { color: var(--sun); text-decoration: underline; }

/* Privacy policy page */
.doc { padding: clamp(48px, 8vw, 80px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(32px, 5vw, 44px); margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 18px; color: var(--ink); margin: 28px 0 6px; }
.doc p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* "Message us" page (site/message/) */
.msg .wrap { max-width: 640px; }
.msg .msg-intro { color: var(--ink-2); font-size: 17px; margin: 0 0 28px; }
.msg-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; color: var(--ink); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;           /* 16px+ stops iPhones zooming in on focus */
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; border-color: var(--sun); }
.field [aria-invalid="true"] { border-color: #F2777A; }
.msg .count { margin: 0; justify-self: end; font-size: 13px; color: var(--muted); }
.msg .count.count-full { color: var(--sun); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.msg .form-error { margin: 0; color: #F2777A; font-weight: 600; font-size: 15px; }
.btn-submit { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }
.msg-thanks h2 { font-family: var(--f-display); font-weight: 500; font-size: 28px; margin: 0 0 8px; color: var(--ink); }
.msg .msg-thanks p { color: var(--ink-2); margin: 0 0 12px; }
.msg-thanks:focus { outline: none; }
.msg .msg-alt { margin: 32px 0 0; color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html:has(body.biz) { scroll-behavior: auto; }
  .scroll-cue-arrow { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
