/* ITSM marketing_site_2 — "equity research note" design system */
:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --card: #fcfaf6;
  --ink: #1a1d21;
  --ink-2: #3a4047;
  --muted: #6b7178;
  --rule: #d9d2c2;
  --accent: #7c2f2f;
  --accent-2: #a44848;
  --dark: #15181c;
  --dark-2: #1d2126;
  --on-dark: #ede9e0;
  --on-dark-muted: #9ba1a9;
  --dark-rule: #2a2f35;
  --ok: #2f6b4f;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.05; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.22rem; line-height: 1.3; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.1rem;
}
.section-dark .eyebrow { color: var(--accent-2); }
.lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 64ch;
  margin-top: 1.4rem;
}
.small { font-size: 0.85rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: baseline; gap: 0.7rem;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.08em;
  border: 1.5px solid var(--ink); padding: 0.18rem 0.42rem;
}
.brand-text { font-family: var(--serif); font-size: 0.98rem; color: var(--ink-2); }
.brand-text b { font-weight: 600; color: var(--ink); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--ink-2);
  padding: 0.4rem 0; border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.8rem 1.5rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border-radius: 2px; cursor: pointer;
  border: 1.5px solid var(--ink); background: none; color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost { border-color: var(--rule); background: var(--card); }
.btn-lg { min-height: 52px; padding: 0.9rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- sections ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section-alt { background: var(--paper-2); }
.section-dark {
  background: var(--dark); color: var(--on-dark); border-top: none;
}
.section-dark .lead { color: var(--on-dark-muted); }
.section-head { margin-bottom: 3.2rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.page-hero { padding: 72px 0 56px; }
.crumbs {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted); margin-bottom: 1.4rem;
}
.crumbs a { color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center;
}
.hero-note {
  margin-top: 2rem; font-family: var(--mono); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}

/* stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin-top: 4.5rem;
}
.stat { padding: 1.6rem 1.2rem; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat b {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat span {
  display: block; margin-top: 0.45rem;
  font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
}
.stats-note {
  margin-top: 0.8rem; font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
}

/* specimen card */
.specimen {
  background: var(--dark); color: var(--on-dark);
  font-family: var(--mono); font-size: 0.78rem;
  padding: 1.6rem 1.7rem; border-radius: 2px;
  box-shadow: 0 24px 60px -30px rgba(21, 24, 28, 0.5);
}
.specimen-tag {
  color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.66rem; margin-bottom: 1.1rem; display: block;
}
.specimen-row {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 0.55rem 0; border-bottom: 1px dashed var(--dark-rule);
}
.specimen-row:last-of-type { border-bottom: none; }
.specimen-row .k { color: var(--on-dark-muted); }
.specimen-row .v { text-align: right; }
.v-nd { color: var(--on-dark-muted); font-style: italic; }
.specimen-link {
  display: inline-block; margin-top: 1.1rem; color: var(--accent-2);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--rule);
  padding: 1.8rem; border-radius: 2px;
}
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--ink-2); font-size: 0.95rem; }
.card-num {
  font-family: var(--mono); font-size: 0.7rem; color: var(--accent);
  letter-spacing: 0.14em; display: block; margin-bottom: 0.9rem;
}
.section-dark .card-flat h3 { color: var(--on-dark); }
.card-flat p { color: var(--on-dark-muted); font-size: 0.93rem; }

.check-list { list-style: none; }
.check-list li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.8rem;
  color: var(--ink-2); font-size: 0.95rem;
}
.check-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent);
}
.section-dark .check-list li { color: var(--on-dark-muted); }

/* ---------- principles (numbered) ---------- */
.principles { list-style: none; counter-reset: p; }
.principles li {
  counter-increment: p;
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem;
  padding: 1.5rem 0; border-top: 1px solid var(--dark-rule);
}
.principles li::before {
  content: "0" counter(p);
  font-family: var(--mono); font-size: 0.8rem; color: var(--accent-2);
  padding-top: 0.2rem;
}
.principles b {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--on-dark); display: block; margin-bottom: 0.35rem;
}
.principles span { color: var(--on-dark-muted); font-size: 0.95rem; }

/* ---------- product shots ---------- */
.shot-figure { margin: 0; }
.shot {
  position: relative; overflow: hidden; background: var(--dark);
  transform: rotate(-1.1deg);
  filter: drop-shadow(0 18px 42px rgba(21, 24, 28, 0.28));
  transition: transform 0.25s ease;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 89% 100%, 0 100%);
}
.shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top left;
}
.shot--alt {
  transform: rotate(1.1deg);
  clip-path: polygon(0 0, 91% 0, 100% 16%, 100% 100%, 0 100%);
}
.shot--right { clip-path: polygon(0 0, 100% 0, 100% 100%, 11% 100%, 0 84%); }
@media (hover: hover) and (pointer: fine) {
  .shot:hover { transform: rotate(0deg) translateY(-4px); }
}
.shot-figure figcaption {
  margin-top: 1.5rem; font-family: var(--mono); font-size: 0.74rem;
  line-height: 1.7; color: var(--muted); max-width: 58ch;
}
.shot-figure figcaption b { color: var(--ink-2); font-weight: 500; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.data th {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
  text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1.5px solid var(--ink);
}
table.data td {
  padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule);
  vertical-align: top; color: var(--ink-2);
}
table.data td b { color: var(--ink); }

/* ---------- pipeline ---------- */
.stage-num {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--accent); display: block; margin-bottom: 0.9rem;
}

/* ---------- cta ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 2.5rem;
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 3rem; border-radius: 2px;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cta-band p { color: var(--ink-2); margin-top: 0.7rem; max-width: 52ch; }

/* ---------- contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--sans); font-size: 0.97rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: 0.75rem 0.85rem; min-height: 44px;
}
.form-field textarea { resize: vertical; }
.form-note { margin-top: 0.9rem; font-size: 0.8rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark); color: var(--on-dark-muted);
  padding: 64px 0 40px; font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--dark-rule);
}
.site-footer h4 {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--on-dark);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.footer-brand .brand-mark { border-color: var(--on-dark-muted); color: var(--on-dark); }
.footer-brand p { margin-top: 1rem; max-width: 44ch; line-height: 1.7; }
.disclaimer {
  margin-top: 2rem; font-size: 0.78rem; line-height: 1.7; max-width: 96ch;
}
.disclaimer b { color: var(--on-dark); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 0.5rem 24px 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links a { display: block; padding: 0.9rem 0; }
  .nav-cta { padding-top: 0.8rem; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--rule); padding: 1.2rem 0; }
  .stat:nth-child(2) { border-top: 1px solid var(--rule); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .shot, .shot--alt, .shot--right { transform: rotate(-0.4deg); }
  .shot { clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 0 100%); }
  .shot--alt { clip-path: polygon(0 0, 94% 0, 100% 8%, 100% 100%, 0 100%); }
  .shot--right { clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%, 0 92%); }
}
