/* AIMarketFlow, B2B Sales Systems (2026-11-23)
   Style language: flat minimalism on warm paper, one tactile element (the press button).
   System: Crimson Plinth (website-library), re-cut to the client's logo red (token --red).
   Button: 3D push button (cssbuttons.io / Uiverse "pushable" family), re-tokened. */

:root {
  /* color */
  --paper: #f6f2ec;
  --surface: #ffffff;
  --sunken: #efe9e0;
  --ink: #17120f;
  --ink-muted: #5f5852;
  --hairline: #e2dbd0;
  --hairline-strong: #cfc6b8;
  --red: #e40205;          /* logo red: fills, button, large display text (4.37:1 on paper) */
  --red-text: #c10204;     /* red for normal-size text on paper (5.74:1) */
  --red-deep: #a10104;
  --red-edge: #5c0002;
  --red-soft: #fbe3e1;
  --white: #ffffff;
  --shadow-ink: hsl(20 20% 8% / 0.18);

  /* type */
  --display: "Panchang", "Archivo", sans-serif;
  --text: "Archivo", sans-serif;

  /* space: tight inside, open between (8 / 16 / 32 / 72 / 112) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --radius: 12px;
  --wrap: 1180px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-reveal: 600ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }  /* sticky header never covers an anchor or a focused element */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
:is(a[href], button, [role=button]) { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
@media (min-width: 900px) { .wrap { padding: 0 var(--s7); } }

.skip { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: var(--s3) var(--s4); border-radius: 8px; text-decoration: none; }
.skip:focus { top: var(--s4); }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-wrap: balance;
}

/* ---------- button (push) ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding-top: 5px;           /* room for the lifted face, keeps layout still */
  text-decoration: none;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}
.btn .edge {
  position: absolute; left: 0; right: 0; bottom: 0; top: 5px;
  border-radius: var(--radius);
  background: var(--red-edge);
  box-shadow: 0 1px 1px var(--shadow-ink), 0 6px 14px var(--shadow-ink);
}
.btn .front {
  position: relative;
  display: flex; align-items: center; gap: var(--s3);
  min-height: 54px;
  padding: 0 var(--s5);
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  transform: translateY(-5px);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.btn:hover .front { transform: translateY(-7px); background: var(--red-deep); }
.btn:active .front { transform: translateY(-1px); transition-duration: 60ms; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn-sm .front { min-height: 44px; padding: 0 var(--s4); font-size: 15px; }
.btn-light .edge { background: var(--red-edge); }
.btn-light .front { background: var(--white); color: var(--red-text); }
.btn-light:hover .front { background: var(--red-soft); }
@media (prefers-reduced-motion: reduce) { .btn .front { transition: background-color var(--dur-fast) linear; } }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 5px; text-decoration-thickness: 2px;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.text-link:hover { text-decoration-color: var(--red); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.header-bar { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.brand { display: block; border-radius: 10px; }
.brand img { width: 48px; height: 48px; }
.nav { display: none; gap: var(--s6); margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--ink-muted); transition: color var(--dur-fast) var(--ease-out); }
.nav a:hover { color: var(--ink); }
.header-bar .btn { margin-left: auto; }
@media (min-width: 760px) {
  .nav { display: flex; }
  .header-bar .btn { margin-left: var(--s4); }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: var(--s8) 0 160px; }
.hero-line { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; overflow: hidden; }
.hero-line path { fill: none; stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.hero-inner { position: relative; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 70px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  padding-bottom: 0.06em;  /* Panchang descenders sit below the line box */
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--red); }
.lede { margin-top: var(--s5); max-width: 56ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s6); }
.note { margin-top: var(--s4); font-size: 15px; color: var(--ink-muted); }
@media (min-width: 900px) {
  .hero { padding: var(--s9) 0 var(--s9); min-height: calc(100svh - 73px); display: flex; align-items: center; }
  .hero-line { top: 0; height: 100%; }
}

/* ---------- leaks (ledger) ---------- */
.leaks { padding: var(--s9) 0; border-top: 1px solid var(--hairline); }
.ledger { margin-top: var(--s7); }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
.ledger-head { display: none; }
.ledger-row { padding: var(--s5) 0; border-top: 1px solid var(--hairline-strong); }
.ledger-row:last-child { border-bottom: 1px solid var(--hairline-strong); }
.ledger-row p:first-child { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
.ledger-row p:last-child { color: var(--ink-muted); }
@media (min-width: 900px) {
  .ledger-head, .ledger-row { grid-template-columns: 5fr 6fr; gap: var(--s7); }
  .ledger-head { display: grid; padding-bottom: var(--s3); font-size: 14px; font-weight: 600; color: var(--ink-muted); }
  .ledger-row { padding: var(--s6) 0; }
  .ledger-row p:first-child { font-size: 20px; }
}

/* ---------- flow (stages) ---------- */
.flow { padding: var(--s9) 0; background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stages { position: relative; margin-top: var(--s7); display: grid; gap: var(--s6); padding-left: var(--s6); }
.stages::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 3px; background: var(--red); border-radius: 2px; }
.stage { position: relative; }
.stage .dot { position: absolute; left: calc(-1 * var(--s6) + 1px); top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--red); }
.stage h3 { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.stage h3 .n { color: var(--red-text); margin-right: var(--s1); }
.stage p { margin-top: var(--s2); color: var(--ink-muted); font-size: 16px; max-width: 40ch; }
@media (min-width: 1000px) {
  .stages { grid-template-columns: repeat(5, 1fr); gap: var(--s6); padding-left: 0; padding-top: var(--s7); }
  .stages::before { left: 6px; right: 0; top: 5px; bottom: auto; width: auto; height: 3px; }
  .stage .dot { left: 0; top: calc(-1 * var(--s7) - 0px); }
}

/* ---------- handoff + thread ---------- */
.handoff { padding: var(--s9) 0; background: var(--sunken); }
.handoff-grid { display: grid; gap: var(--s7); }
.handoff-copy p { margin-top: var(--s5); max-width: 46ch; color: var(--ink-muted); font-size: 18px; }
.thread figcaption { font-size: 14px; font-weight: 600; color: var(--ink-muted); padding-bottom: var(--s3); border-bottom: 1px solid var(--hairline-strong); }
.thread ol { display: grid; gap: var(--s3); margin-top: var(--s5); }
.msg { max-width: 88%; padding: var(--s3) var(--s4); border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); }
.msg .who { display: block; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.msg p { margin-top: 2px; font-size: 16px; line-height: 1.5; }
.msg.in { justify-self: end; background: var(--paper); border-color: var(--hairline-strong); }
.msg.human { border: 2px solid var(--red); }
.msg.human .who { color: var(--red-text); }
.event { display: flex; align-items: center; gap: var(--s2); justify-self: center; padding: var(--s2) 0; font-size: 14px; font-weight: 600; color: var(--red-text); }
.event .ico { width: 18px; height: 18px; flex: none; }
.event.booked { color: var(--ink); }
@media (min-width: 1000px) {
  .handoff-grid { grid-template-columns: 5fr 6fr; gap: var(--s8); align-items: start; }
  .handoff-copy { position: sticky; top: 120px; }
}

/* ---------- fit ---------- */
.fit { padding: var(--s9) 0; }
.fit-list {
  margin-top: var(--s5);
  max-width: 34ch;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(19px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -0.015em;
  color: var(--ink-muted);
}

/* ---------- cta ---------- */
.cta { padding: var(--s9) 0; background: var(--red); color: var(--white); }
.cta h2 { max-width: 18ch; }
.cta-inner > p { margin-top: var(--s5); max-width: 52ch; font-size: 18px; }
.cta .actions { margin-top: var(--s5); }
.cta .mail { margin-top: var(--s5); font-size: 16px; }
.cta .mail a { display: inline-block; padding: 12px 0; font-weight: 600; text-underline-offset: 4px; }
.cta :focus-visible { outline-color: var(--white); }

/* ---------- footer ---------- */
.site-footer { padding: var(--s7) 0; border-top: 1px solid var(--hairline); }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.footer-bar img { width: 40px; height: 40px; }
.footer-bar p { font-size: 15px; color: var(--ink-muted); }
.footer-bar nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); margin-left: auto; }
.footer-bar nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink-muted); text-underline-offset: 4px; }
.footer-bar nav a:hover { color: var(--ink); }

/* ---------- privacy page ---------- */
.doc { padding: var(--s8) 0 var(--s9); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.doc h2 { margin-top: var(--s7); font-size: 20px; }
.doc p { margin-top: var(--s3); color: var(--ink-muted); max-width: 64ch; }
.doc .updated { margin-top: var(--s3); font-size: 15px; }
.doc a { color: var(--red-text); text-underline-offset: 4px; }

/* ---------- motion (JS only; without JS or with reduced motion everything is visible) ---------- */
.js .hero-line { clip-path: inset(0 100% 0 0); }
/* EXCEPTION to visant-motion/duration: one-time hero draw on load (marketing piece), not an interactive element */
.js .hero.on .hero-line { clip-path: inset(0 0 0 0); transition: clip-path 1400ms var(--ease-out) 200ms; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.on { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .thread li { opacity: 0; transform: translateY(10px); }
.js .thread.on li { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .js .hero-line { clip-path: none; }
  .js .reveal, .js .thread li { opacity: 1; transform: none; transition: none; }
}
