/* INVL marketing site
   Light, warm, low-contrast palette. Matches the app's beige/white language. */

:root {
  --bg:        #faf7f1;   /* page */
  --bg-warm:   #f3eee3;   /* alternating band */
  --panel:     #ffffff;
  --panel-2:   #f6f2ea;
  --border:    #e6dfd2;
  --border-2:  #d8cfbd;
  --text:      #2c2a26;
  --muted:     #7d7466;
  --accent:    #24583c;   /* forest green, brand */
  --accent-2:  #1a4230;   /* darker, for hover/press */
  --accent-sf: #e9f1ec;   /* soft fill behind accents */
  --accent-bd: #c7dcd0;   /* border on soft fills */
  --ok:        #15803d;
  --ok-bg:     #e6f4ea;
  --warn:      #b45309;
  --warn-bg:   #fdf3e3;
  --low:       #dc2626;
  --radius:    12px;
  --radius-lg: 18px;
  --shadow:    0 1px 2px rgba(60,50,30,.05), 0 6px 24px rgba(60,50,30,.07);
  --shadow-lg: 0 2px 4px rgba(60,50,30,.05), 0 18px 50px rgba(60,50,30,.10);
  --maxw:      1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-top: 3px solid var(--accent);   /* brand bar, always visible */
  background: rgba(250,247,241,.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 8px; height: 64px; }
.logo { display: flex; align-items: center; margin-right: auto; }
.logo:hover { text-decoration: none; opacity: .78; }
.logo img { display: block; width: auto; height: 21px; }
.site-footer .logo img { height: 25px; }
.nav a.navlink {
  color: var(--muted); font-size: .93rem; padding: 8px 12px; border-radius: 8px; font-weight: 500;
}
.nav a.navlink:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav a.navlink.active { color: var(--text); background: var(--panel); border: 1px solid var(--border); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; height: auto; padding: 12px 24px; }
  .logo { margin-right: auto; }
  .nav a.navlink { padding: 6px 9px; font-size: .85rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-size: .95rem; font-weight: 600;
  border: 1px solid var(--border-2); background: var(--panel); color: var(--text);
  cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sub { display:block; font-size:.78rem; font-weight:500; opacity:.8; margin-top:2px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.band { background: var(--bg-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section.tight { padding: 48px 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .74rem;
  font-weight: 700; color: var(--accent); margin-bottom: 10px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }


/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.22rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { font-size: .85rem; color: var(--muted); margin-top: 16px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-quiet { background: var(--panel-2); box-shadow: none; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px 22px 68px; position: relative; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-sf); color: var(--accent-2);
  border: 1px solid var(--accent-bd);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.step h3 { margin-bottom: .3em; }
.step p:last-child, .step ul:last-child { margin-bottom: 0; }

/* ---------- misc bits ---------- */
.kbd, code:not(pre code) {
  font-family: var(--mono); font-size: .87em;
  background: var(--panel-2); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px;
}
pre {
  background: #2c2a26; color: #f2ede3; padding: 16px 18px; border-radius: var(--radius);
  overflow-x: auto; font-family: var(--mono); font-size: .85rem; line-height: 1.5;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

.note {
  border-left: 3px solid var(--accent); background: var(--accent-sf);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0;
}
.note.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.note.ok   { border-left-color: var(--ok);   background: var(--ok-bg); }
.note p:last-child { margin-bottom: 0; }
.note strong { display: inline; }

.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
}
.pill-accent { background: var(--accent-sf); border-color: var(--accent-bd); color: var(--accent-2); }
.pill-warn { background: var(--warn-bg); border-color: #f0dcb8; color: var(--warn); }
.pill-ok { background: var(--ok-bg); border-color: #cbe6d4; color: var(--ok); }

/* The two words the company is built on: consistency and accountability.
   Their own face and colour, so they read as deliberate wherever they appear
   rather than as arbitrary emphasis. Wrap any future occurrence in this class:
       <span class="value-word">Consistency</span>
   Slightly under 1em because the serif carries a larger x-height than the
   surrounding sans and would otherwise sit visually oversized. */
.value-word {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.97em;
  letter-spacing: .004em;
}

/* Company-value statement. Given real presence because it is the belief the
   product is built on, not a footnote to the cards above it. */
.creed { max-width: 760px; margin: 52px auto 0; text-align: center; }
.creed-rule {
  width: 48px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 0 auto 26px;
}
.creed-quote {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 650; line-height: 1.3; letter-spacing: -.02em;
  color: var(--accent); margin-bottom: 20px; text-wrap: balance;
}
.creed-body { color: var(--muted); font-size: 1.03rem; margin-bottom: 0; }

table.spec { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.spec th, table.spec td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.spec th { color: var(--muted); font-weight: 600; width: 38%; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }

.figure { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.figure figcaption { font-size: .86rem; color: var(--muted); margin-top: 14px; text-align: center; }
.figure-plain { box-shadow: none; background: transparent; border: 0; padding: 0; }

.hash { font-family: var(--mono); font-size: .72rem; color: var(--muted); word-break: break-all; }

ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { padding-left: 26px; position: relative; margin-bottom: 8px; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--border); }
ul.plain li:last-child { border-bottom: 0; }

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--panel); border-top: 1px solid var(--border);
  padding: 48px 0 36px; font-size: .9rem; color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .82rem; }
.footer-legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal-links { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
.legal-fine { margin: 14px 0 0; max-width: 104ch; font-size: .74rem; line-height: 1.6; color: var(--muted); }
