/* ==========================================================================
   Inspectaly — shared stylesheet
   Brand: Green #2E6A54 · Ink #0F1418 · Canvas #F5F5F2
   ========================================================================== */

/* ---------- Fonts (self-hosted: no third-party requests) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --green: #2E6A54;
  --green-dark: #24543F;
  --green-light: #6EAF93;
  --green-tint: #E9F1EC;
  --ink: #0F1418;
  --ink-soft: #262B31;
  --canvas: #F5F5F2;
  --white: #FFFFFF;
  --line: #E4E2DB;
  --line-soft: #EAE8E2;
  --text: #55534D;
  --text-mute: #7C7A74;
  --text-faint: #A4A199;
  --good: #2E9E6B;
  --fair: #E9A93C;
  --poor: #D9552F;
  --wrap: 1180px;
  --pad: 40px;
  --radius: 20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); }

/* Accessibility: always-visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: 92px; padding-bottom: 92px; }
.section--line { border-bottom: 1px solid var(--line); }
.bg-white { background: var(--white); }
.bg-canvas { background: var(--canvas); }
.bg-ink { background: var(--ink); color: var(--canvas); }
.bg-green { background: var(--green); color: var(--white); }

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}
.bg-ink .eyebrow { color: var(--green-light); }

.lede { font-size: 16px; line-height: 1.65; color: var(--text); }
.bg-ink .lede { color: #A9A7A0; }

.section-head {
  display: flex; flex-wrap: wrap; gap: 48px;
  align-items: flex-end; margin-bottom: 48px;
}
.section-head__main { flex: 1 1 440px; display: flex; flex-direction: column; gap: 14px; }
.section-head__main h2 { font-size: clamp(30px, 4.2vw, 42px); max-width: 540px; }
.section-head__aside { flex: 1 1 300px; max-width: 380px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15.5px; font-weight: 700; line-height: 1;
  padding: 16px 26px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  font-family: inherit;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: #DDDBD4; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { font-size: 14.5px; padding: 11px 18px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Store badges ---------- */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: flex; align-items: center; gap: 11px;
  background: var(--white); padding: 13px 22px; border-radius: 12px;
  border: 1px solid transparent; transition: background-color .18s ease, border-color .18s ease;
}
.store:hover { background: var(--green-tint); }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__small { font-size: 10.5px; font-weight: 600; color: var(--text-mute); }
.store__big { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.store--dark { background: transparent; border-color: var(--ink-soft); padding: 10px 16px; }
.store--dark:hover { background: transparent; border-color: var(--green-light); }
.store--dark .store__big { color: var(--canvas); font-size: 14px; }
.store--dark .store__small { font-size: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 245, 242, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 36px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 14.5px; font-weight: 600; }
.site-nav a { color: var(--text); }
.site-nav a:hover { color: var(--ink); }
.header-cta { display: flex; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero { background: var(--canvas); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__inner {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
  padding-top: 92px;
}
.hero__copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 24px; padding-bottom: 92px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 60px); line-height: 1.04; letter-spacing: -0.04em; }
.hero__sub { font-size: 18.5px; line-height: 1.6; color: var(--text); max-width: 470px; }
.hero__shots {
  flex: 1 1 380px; display: flex; justify-content: center;
  align-items: flex-end; gap: 20px;
}
.hero__shot-a {
  width: 210px; max-width: 40%; border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 20, 24, 0.14); margin-bottom: 44px;
}
.hero__shot-b {
  width: 250px; max-width: 48%; border-radius: 26px;
  box-shadow: 0 22px 50px rgba(15, 20, 24, 0.18);
}
.pill {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 9px;
  background: var(--green-tint); border-radius: 20px; padding: 7px 14px;
  font-size: 13px; font-weight: 700; color: var(--green);
}
.pill__dot { width: 7px; height: 7px; border-radius: 4px; background: var(--good); flex: none; }
.hero__meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-mute); }

/* ---------- Capability strip ---------- */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip__inner {
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center;
  justify-content: space-between; padding-top: 26px; padding-bottom: 26px;
}
.strip__list {
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  list-style: none; font-size: 14.5px; font-weight: 600; color: var(--text);
}
.strip__list li { display: flex; align-items: center; gap: 9px; }
.strip__list svg { flex: none; }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--canvas); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 26px 32px; display: flex; flex-direction: column; gap: 14px;
}
.bg-canvas .card { background: var(--white); }
.card__icon {
  width: 44px; height: 44px; border-radius: 14px; background: var(--green-tint);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.card p { font-size: 15.5px; line-height: 1.65; color: var(--text); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
}
.step__num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.12em; color: var(--green); font-weight: 400;
}
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.step p { font-size: 15.5px; line-height: 1.65; color: var(--text); }

/* ---------- App screens ---------- */
.screens { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.screen { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.screen img { width: 100%; border-radius: 20px; border: 1px solid var(--ink-soft); }
.screen h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.screen p { font-size: 14px; line-height: 1.55; color: #A9A7A0; }

/* ---------- CTA band ---------- */
.cta__inner {
  display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: space-between;
  padding-top: 72px; padding-bottom: 72px;
}
.cta__copy { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.cta__copy h2 { font-size: clamp(28px, 4vw, 38px); }
.cta__copy p { font-size: 17px; line-height: 1.6; color: #C3DACF; }

/* ---------- About ---------- */
.about__inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.about__copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 22px; }
.about__copy h2 { font-size: clamp(30px, 4.2vw, 42px); max-width: 500px; }
.about__copy p { font-size: 17px; line-height: 1.7; color: var(--text); max-width: 520px; }
.about__aside { flex: 0 1 300px; max-width: 320px; display: flex; flex-direction: column; gap: 18px; }
.about__aside img { width: 100%; border-radius: 22px; box-shadow: 0 16px 36px rgba(15, 20, 24, 0.12); }
.principles { list-style: none; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.principles li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 16px; line-height: 1.6; color: var(--text); max-width: 520px;
}
.principles svg { flex: none; margin-top: 4px; }
.principles strong { color: var(--ink); font-weight: 700; }

/* ---------- Audience ---------- */
.audience { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 901px) { .audience { grid-template-columns: repeat(2, 1fr); } }
.audience__item {
  background: var(--canvas); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--green); border-radius: 14px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
}
.audience__item h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.audience__item p { font-size: 15.5px; line-height: 1.65; color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 0; max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__item summary:hover { color: var(--green); }
.faq__answer { padding: 0 0 24px; font-size: 16px; line-height: 1.7; color: var(--text); max-width: 720px; }

/* ---------- Contact ---------- */
.contact__inner { display: flex; flex-wrap: wrap; gap: 64px; }
.contact__copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.contact__copy h2 { font-size: clamp(30px, 4.2vw, 42px); max-width: 420px; }
.contact__copy > p { font-size: 16.5px; line-height: 1.65; color: var(--text); max-width: 400px; }
.contact__details { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; list-style: none; }
.contact__details li { display: flex; align-items: flex-start; gap: 13px; }
.contact__icon {
  width: 38px; height: 38px; border-radius: 12px; background: var(--green-tint);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.contact__details a, .contact__details address {
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  font-style: normal; line-height: 1.5; padding-top: 7px;
}
.contact__details a:hover { color: var(--green); }

.form {
  flex: 1 1 420px; background: var(--white); border: 1px solid var(--line-soft);
  border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.form__row { display: flex; gap: 14px; flex-wrap: wrap; }
.field { flex: 1 1 150px; display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 700; color: #4A4842; }
.field input, .field select, .field textarea {
  border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  font-family: inherit; font-size: 15px; color: var(--ink);
  outline: none; width: 100%; transition: border-color .18s ease;
}
.field input, .field select { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.form__note { font-size: 12.5px; line-height: 1.55; color: #9A978F; }
.form button { height: 52px; padding: 0 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9A7A0; }
.site-footer a { color: #A9A7A0; }
.site-footer a:hover { color: var(--green-light); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; gap: 48px;
  padding-top: 60px; padding-bottom: 40px;
}
.site-footer__brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand .brand__name { color: var(--canvas); font-size: 18px; }
.site-footer__tag { font-size: 14px; line-height: 1.6; max-width: 250px; }
.site-footer__col {
  flex: 0 1 160px; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px;
}
.site-footer__col h2 {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: #6B6862;
}
.site-footer__legal {
  border-top: 1px solid var(--ink-soft);
  padding-top: 22px; padding-bottom: 44px;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; font-size: 13px; color: #6B6862;
}
.site-footer__legal address { font-style: normal; }
.site-footer__legal a { color: #6B6862; text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal-header { background: var(--white); border-bottom: 1px solid var(--line); }
.legal-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px;
  padding-top: 16px; padding-bottom: 16px;
}
.legal-hero { background: var(--canvas); border-bottom: 1px solid var(--line); }
.legal-hero__inner { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.legal-hero h1 { font-size: clamp(34px, 5.4vw, 50px); }
.legal-hero__meta { font-size: 14.5px; color: var(--text-mute); }

.legal-body { background: var(--white); }
.legal-body__inner {
  padding-top: 56px; padding-bottom: 72px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start;
}
.legal-content { flex: 1 1 560px; max-width: 760px; display: flex; flex-direction: column; gap: 36px; }
.legal-content section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 100px; }
.legal-content h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.legal-content h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.72; color: var(--text); }
.legal-content ul { padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.legal-content li::marker { color: var(--green); }
.legal-content dl { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.legal-content dt { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.legal-content dd { margin: 0; font-size: 16px; line-height: 1.72; color: var(--text); }

.legal-toc {
  flex: 0 1 240px; position: sticky; top: 100px;
  border-left: 2px solid var(--line); padding-left: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.legal-toc h2 {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint);
}
.legal-toc ol { list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: toc; }
.legal-toc a { font-size: 14px; line-height: 1.45; color: var(--text); }
.legal-toc a:hover { color: var(--green); }

.callout {
  background: var(--green-tint); border-radius: 16px; padding: 24px 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.callout h2 { font-size: 18px; font-weight: 700; }
.callout p { font-size: 15.5px; line-height: 1.65; color: #3D5B4E; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero__inner { padding-top: 56px; gap: 40px; }
  .hero__copy { padding-bottom: 56px; }
  .section-head { margin-bottom: 32px; gap: 24px; }
  .about__inner, .contact__inner, .legal-body__inner { gap: 40px; }
  .legal-toc { position: static; flex-basis: 100%; }
  .cta__inner { padding-top: 56px; padding-bottom: 56px; }
}

@media (max-width: 720px) {
  .site-header__inner { gap: 12px 20px; }
  .brand { margin-right: auto; }
  .site-nav {
    order: 3; flex-basis: 100%; gap: 18px;
    overflow-x: auto; flex-wrap: nowrap;
    padding-bottom: 2px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  .hero__shots { gap: 12px; }
  .form { padding: 24px; }
  .screen { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .legal-header, .legal-toc, .site-footer, .form { display: none; }
  body { background: #fff; }
  .legal-content { max-width: none; }
}
