/* ==========================================================================
   TechCommerce Center

   Typography and header structure mirror thewattguide.com:
     - Archivo (500/600/700/800) for display type, system stack for body
     - 1500px header bar, 86px logo, centred nav, 14px/600 links
     - flat white header with a 1px rule, no blur
   Colour stays TechCommerce's own: accent sampled from assets/logo.png
   with PHP GD (2026-08-16).
   ========================================================================== */

:root {
  --bg:          #ffffff;
  --surface:     #f5f7fa;
  --ink:         #0c0f11;
  --ink-dim:     #38445c;
  --ink-faint:   #5c6880;
  --line:        #e2e6ed;
  --line-soft:   #eceff4;

  --accent:      #009080;
  --accent-deep: #00705f;
  --accent-soft: rgba(0, 144, 128, .09);

  --sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  --display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;

  --pad:        clamp(1.25rem, 4vw, 3rem);
  --max:        1200px;   /* content */
  --max-header: 1500px;   /* header bar, matches TWG */
  --ease:       cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(32px, 5.2vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
h2 { font-size: clamp(25px, 3.4vw, 33px); font-weight: 800; }
h3 { font-size: 1.0625rem; font-weight: 700; }
h4 { font-size: .9375rem; font-weight: 700; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.accent { color: var(--accent); }

/* ---------- layout ---------------------------------------------------- */

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--surface); }
.section--rule { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.lede { color: var(--ink-faint); font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }

/* ---------- announcement bar ------------------------------------------ */

.announce {
  background: var(--ink); color: rgba(255, 255, 255, .78);
  text-align: center; font-size: .8125rem; padding: .5rem 1rem;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- header ---------------------------------------------------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}

.site-header__inner {
  max-width: var(--max-header);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex; align-items: center; gap: 24px;
}

.brand { flex-shrink: 0; height: 76px; overflow: hidden; display: flex; align-items: center; }
.brand img { height: 86px; width: auto; margin: -5px 0; }

/* CSS-only mobile menu */
.menu-checkbox { display: none; }
.mobile-toggle {
  display: none; cursor: pointer; padding: 8px; color: var(--ink-dim);
  border-radius: 8px; flex-shrink: 0;
}
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-toggle .icon-close { display: none; }
.menu-checkbox:checked ~ .mobile-toggle .icon-menu  { display: none; }
.menu-checkbox:checked ~ .mobile-toggle .icon-close { display: block; }

.nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }

.nav__link, .nav__toggle {
  padding: 10px 13px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink-dim); white-space: nowrap;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav__link:hover, .nav__link[aria-current="page"],
.nav__toggle:hover, .nav__group:hover .nav__toggle, .nav__group:focus-within .nav__toggle {
  color: var(--accent); background: var(--accent-soft);
}

.nav__group { position: relative; }
.nav__toggle svg { width: 12px; height: 12px; margin-left: 2px; transition: transform .15s; }
.nav__group:hover .nav__toggle svg, .nav__group:focus-within .nav__toggle svg { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 210px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(12, 15, 17, .10), 0 4px 8px rgba(12, 15, 17, .05);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 110;
}
.nav__group:hover .menu, .nav__group:focus-within .menu { opacity: 1; visibility: visible; transform: none; }

.menu__label {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint); padding: .5rem .875rem .25rem;
}
.menu__link {
  display: block; padding: 9px 14px;
  font-size: 14px; font-weight: 500; color: var(--ink-dim);
  border-radius: 6px; white-space: nowrap; transition: all .12s;
}
.menu__link:hover { color: var(--accent); background: var(--accent-soft); }
.menu__sep { height: 1px; background: var(--line); margin: .4rem .875rem; }

/* ---------- buttons --------------------------------------------------- */

.btn {
  display: inline-block;
  padding: .8125rem 1.75rem;
  font-family: var(--mono);
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: all .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row--center { justify-content: center; }

/* ---------- hero ------------------------------------------------------ */

.hero {
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.hero .lede { margin-inline: auto; margin-top: 1.25rem; }
.hero .btn-row { margin-top: 2rem; }

.pill {
  display: inline-block;
  padding: .4rem 1rem; margin-bottom: 1.75rem;
  font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft); border-radius: 999px;
  background: var(--accent-soft);
}

/* ---------- stat band ------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stats__item { padding: 1.75rem 1.25rem; text-align: center; border-left: 1px solid var(--line); }
.stats__item:first-child { border-left: 0; }
.stats__num {
  font-family: var(--display); font-size: 1.75rem; font-weight: 800;
  color: var(--accent); letter-spacing: -.03em;
}
.stats__label {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: .35rem;
}

/* ---------- cards ----------------------------------------------------- */

.grid { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { padding: 1.75rem 1.5rem; border-left: 1px solid var(--line); }
.card:first-child { border-left: 0; }
.card__num {
  font-family: var(--display); font-size: 1.5rem; font-weight: 800;
  color: var(--accent); letter-spacing: .01em; margin-bottom: 1rem;
}
.card h3 { margin-bottom: .625rem; }
.card p { color: var(--ink-faint); font-size: .875rem; line-height: 1.65; }
.card__link { display: inline-block; margin-top: 1.25rem; font-size: .875rem; font-weight: 600; color: var(--accent-deep); }
.card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

.viewall {
  display: inline-block; margin-bottom: 2rem;
  font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep);
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}

/* ---------- split ----------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

/* Asymmetric variants: main column plus a narrower aside. These MUST be classes
   rather than inline `style="grid-template-columns:…"` — an inline declaration
   outranks the media query below, so the two-column grid survived onto phones
   and pushed the page ~150px wider than the viewport. */
.split--form { grid-template-columns: 1.45fr 1fr; align-items: start; }
.split--faq  { grid-template-columns: 1.6fr 1fr;  align-items: start; }

.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.15rem; color: var(--ink-faint); font-size: .9375rem; }
.checklist li + li { margin-top: .55rem; }
.checklist li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* report panels */
.panel { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.panel__head {
  background: var(--ink); color: #fff; padding: .875rem 1.25rem;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
}
.panel__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9375rem 1.25rem; border-top: 1px solid var(--line); font-size: .9375rem;
}
.panel__row:first-of-type { border-top: 0; }

.tag {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .3rem .625rem; border-radius: 999px; white-space: nowrap;
}
.tag--pass  { color: var(--accent-deep); background: var(--accent-soft); }
.tag--note  { color: var(--ink-faint);   background: var(--line-soft); }
.tag--plain { color: var(--ink-faint); }
.tag--warn  { color: #8a6100; background: rgba(217, 164, 6, .13); }

/* ---------- dark process feature -------------------------------------- */

.feature { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.feature__dark { background: var(--ink); color: #fff; padding: clamp(2rem, 4vw, 3.5rem); }
.feature__dark h2 { color: #fff; }
.feature__dark p { color: rgba(255, 255, 255, .62); margin-top: 1.25rem; max-width: 46ch; }
.feature__dark .btn { margin-top: 2rem; }
.feature__side { padding: clamp(2rem, 4vw, 3.5rem); background: #fff; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 2.25rem 1fr auto; gap: 1rem;
  align-items: baseline; padding: .95rem 0; border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps__n { font-family: var(--mono); font-size: .75rem; color: var(--accent); }
.steps__t { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.steps__m { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); text-align: right; }

/* ---------- accordion ------------------------------------------------- */

.faq { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 900px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.125rem 1.5rem; cursor: pointer; list-style: none;
  font-size: .9375rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-faint); border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details[open] summary { color: var(--accent-deep); }
.faq__body { padding: 0 1.5rem 1.375rem; color: var(--ink-faint); font-size: .9375rem; line-height: 1.65; max-width: 70ch; }

/* ---------- forms ----------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: .625rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim);
}
.field input, .field select, .field textarea {
  font: inherit; font-size: .9375rem; color: var(--ink);
  padding: .75rem .875rem;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }

.form-rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 1.5rem; }

.aside-card { border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.375rem; background: #fff; }
.aside-card + .aside-card { margin-top: 1rem; }
.aside-card__label {
  font-family: var(--mono); font-size: .625rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
}
.aside-card__value { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.aside-card__meta { color: var(--ink-faint); font-size: .8125rem; margin-top: .2rem; }
.aside-card__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.aside-card__row + .aside-card__row { margin-top: .5rem; }
.aside-card__row span:first-child { color: var(--ink-faint); }

.aside-card--dark {
  background: var(--ink); color: #fff;
  border-color: var(--ink); border-top: 3px solid var(--accent);
  padding: 1.5rem 1.375rem;
}
.aside-card--dark h3 { color: #fff; margin-bottom: .5rem; }
.aside-card--dark p { color: rgba(255, 255, 255, .7); font-size: .8125rem; margin-bottom: 1.125rem; }

.info__label {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 1.5rem;
}
.info__label:first-child { margin-top: 0; }
.info__value { font-size: .9375rem; margin-top: .3rem; color: var(--ink); }

/* ---------- closing CTA ----------------------------------------------- */

.cta { text-align: center; background: var(--surface); }
.cta .lede { margin-inline: auto; margin-top: 1rem; }
.cta .btn-row { margin-top: 1.75rem; }

/* ---------- footer ---------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); border-top: 3px solid var(--accent); }
.site-footer__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.site-footer h4 { color: #fff; margin-bottom: 1.125rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .625rem; }
.site-footer a { font-size: .875rem; transition: color .15s; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; font-size: .875rem; line-height: 1.9; color: #fff; font-weight: 600; }
.site-footer address a { color: rgba(255, 255, 255, .7); font-weight: 400; }
.site-footer__base {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.25rem; font-size: .8125rem; color: rgba(255, 255, 255, .45);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* ---------- skip link ------------------------------------------------- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink); color: #fff;
  font-size: .875rem; font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- form footnotes -------------------------------------------- */

.form-note, .form-sent {
  margin-top: .875rem;
  font-size: .8125rem; line-height: 1.6; color: var(--ink-faint);
}
.form-note a, .form-sent a {
  color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px;
}
.form-sent {
  padding: .875rem 1rem; margin-top: 1rem;
  background: var(--accent-soft); border-radius: 8px; color: var(--ink-dim);
}
.form-sent[hidden] { display: none; }

/* Inline links inside FAQ answers and checklists pick up the accent so the
   pages stop repeating the same inline style attribute on every one. */
.faq__body a, .checklist a {
  color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px;
}
.checklist strong { color: var(--ink); font-weight: 600; }

/* ---------- responsive ------------------------------------------------ */

@media (max-width: 1100px) {
  .site-header__inner { padding: 12px 24px; gap: 14px; }
  .nav__link, .nav__toggle { padding: 9px 9px; font-size: 13px; }
  .brand { height: 64px; }
  .brand img { height: 72px; }
}

@media (max-width: 960px) {
  .split, .split--form, .split--faq, .feature { grid-template-columns: 1fr; }
  .grid--5, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .card { border-left: 0; border-top: 1px solid var(--line); }
  .card:first-child { border-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(odd) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }

  /* hamburger takes over */
  .mobile-toggle { display: flex; order: -1; }
  .nav { display: none; }
  .menu-checkbox:checked ~ .nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(12, 15, 17, .10);
    padding: 8px; z-index: 99; gap: 0;
  }
  .menu-checkbox:checked ~ .nav > .nav__link,
  .menu-checkbox:checked ~ .nav .nav__toggle {
    padding: 14px 20px; border-radius: 0; border-bottom: 1px solid var(--line);
    width: 100%; justify-content: flex-start;
  }
  .menu-checkbox:checked ~ .nav .nav__group { width: 100%; }
  .menu-checkbox:checked ~ .nav .menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-bottom: 1px solid var(--line);
    border-radius: 0; min-width: 0; padding: 4px 0 8px 12px;
  }
}

@media (max-width: 720px) {
  .grid--5, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .steps li { grid-template-columns: 2rem 1fr; }
  .steps__m { grid-column: 2; text-align: left; }
  .brand { height: 52px; }
  .brand img { height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
