/* ============================================================
   Innopartner — preview build
   Palette derived from 400dpiLogo.png: navy wordmark, teal arc,
   raspberry arc. Semantics: teal = automation speaking,
   raspberry = human / after-hours, navy = ink.
   The two arcs interlock; so do the two voices.
   ============================================================ */

:root {
  --paper:  #FAFAFA;
  --panel:  #FFFFFF;
  --ink:    #001932;
  --muted:  #5A6B78;
  --faint:  #8C9AA5;
  --signal: #008573;
  --signal-deep: #007565;
  --signal-soft: #D6FFF9;
  --night:  #941959;
  --night-soft: #F9DCEB;
  --line:   #E1E5E8;
  --bubble: #EDF0F2;

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1120px;
  --gut: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 14px;
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,250,250,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; display: block; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a:not(.btn) { font-size: 14.5px; color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-block; font-family: var(--body); font-weight: 500;
  font-size: 15px; padding: 11px 20px; border-radius: 6px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 15px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.03; letter-spacing: -0.035em;
  margin: 0 0 22px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero p.lede { font-size: 18.5px; color: var(--muted); margin: 0 0 32px; max-width: 33em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- signature: the overnight thread ---------- */
.thread {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 20px 24px;
  box-shadow: 0 1px 2px rgba(12,34,51,.05), 0 14px 36px -20px rgba(12,34,51,.25);
}
.thread-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.thread-head .dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--signal-soft); color: var(--signal-deep);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 13px;
}
.thread-head .who { font-weight: 600; font-size: 14.5px; }
.thread-head .status {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--night); border: 1px solid #F0C9DC; background: var(--night-soft);
  padding: 3px 8px; border-radius: 20px;
}
.msg { margin-bottom: 14px; opacity: 0; animation: rise .5s ease forwards; }
.msg:nth-child(1) { animation-delay: .15s; }
.msg:nth-child(2) { animation-delay: .75s; }
.msg:nth-child(3) { animation-delay: 1.3s; }
.msg:nth-child(4) { animation-delay: 1.9s; }
@keyframes rise { from { opacity:0; transform: translateY(8px);} to {opacity:1; transform:none;} }
@media (prefers-reduced-motion: reduce) { .msg { opacity: 1; animation: none; } }
.bubble {
  display: inline-block; padding: 10px 14px; border-radius: 12px;
  font-size: 15px; line-height: 1.5; max-width: 88%;
}
.msg.in .bubble { background: var(--bubble); border-bottom-left-radius: 3px; }
.msg.out { text-align: right; }
.msg.out .bubble {
  background: var(--signal); color: #fff;
  border-bottom-right-radius: 3px; text-align: left;
}
.stamp { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 5px; }
.msg.out .stamp { text-align: right; }
.thread-foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .04em;
}

/* ---------- sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-tight { padding: 40px 0; }
.section h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 2.7vw, 34px);
  letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 12px;
}
.section .sub { color: var(--muted); margin: 0 0 40px; max-width: 42em; }

.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; margin: 0 0 9px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .tick {
  font-family: var(--mono); font-size: 11px; color: var(--signal);
  letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 14px;
}

.verts {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.vert { background: var(--panel); padding: 26px 24px; border-top: 3px solid transparent; }
.vert:nth-child(1) { border-top-color: var(--signal); }
.vert:nth-child(2) { border-top-color: var(--night); }
.vert:nth-child(3) { border-top-color: var(--ink); }
.vert h3 { font-family: var(--display); font-size: 16.5px; font-weight: 700; margin: 0 0 6px; }
.vert p { margin: 0; font-size: 15px; color: var(--muted); }

.strip {
  display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
}
.strip span::before { content: "▪"; color: var(--signal); margin-right: 9px; }
.strip span:nth-child(even)::before { color: var(--night); }

.close-cta { text-align: center; padding: 84px 0; border-top: 1px solid var(--line); }
.close-cta h2 { margin-bottom: 14px; }
.close-cta p { color: var(--muted); margin: 0 0 28px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14.5px; color: var(--muted); }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { font-size: 13px; color: var(--faint); margin-top: 18px; }

/* ============================================================
   LEGAL DOCUMENT PAGES
   ============================================================ */
.doc-head { padding: 54px 0 34px; border-bottom: 1px solid var(--line); }
.doc-head h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.08;
}
.doc-head .org { color: var(--muted); margin: 0; }
.doc-head .updated {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin-top: 16px;
}
.doc-layout { display: grid; grid-template-columns: 232px 1fr; gap: 56px; padding: 44px 0 84px; align-items: start; }
.toc { position: sticky; top: 92px; }
.toc p {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 9px; }
.toc a {
  text-decoration: none; color: var(--muted); font-size: 14px;
  border-left: 2px solid var(--line); padding-left: 12px; display: block; line-height: 1.35;
}
.toc a:hover { color: var(--ink); border-left-color: var(--signal); }

.doc-body { max-width: 44em; }
.doc-body h2 {
  font-family: var(--display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.015em; margin: 44px 0 14px; padding-top: 6px;
  scroll-margin-top: 92px; color: var(--ink);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-family: var(--display); font-weight: 600; font-size: 16.5px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.doc-body p { margin: 0 0 15px; color: #2C3B47; }
.doc-body ul { margin: 0 0 18px; padding-left: 22px; color: #2C3B47; }
.doc-body li { margin-bottom: 7px; }
.doc-body a { color: var(--signal-deep); }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.callout {
  background: var(--signal-soft); border-left: 3px solid var(--signal);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 22px 0; font-size: 15.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards, .verts { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 56px; }
  .section, .close-cta { padding: 52px 0; }
  .logo img { height: 32px; }
}
