/* AISTMA — product marketing site.
   Palette inherited from the owner-locked brand tokens (12-sys-aistma/aistma/templates/
   tokens.css): ink #2B2B3A, orange #FF6B17 as the single accent, the five-colour band as
   the recognition strip. Everything else is disciplined for an enterprise construction
   buyer: the vernacular is carried by TYPE (mono document numbers, stamps, revision
   lines), not by colour.

   Type: Jost (geometric display — the honest web relative of the brand's Century Gothic)
   + IBM Plex Sans (body; engineering-document DNA) + IBM Plex Mono (document numbers,
   labels, timestamps — the native typography of this subject). */

:root {
  --ink: #2B2B3A;
  --ink-soft: #4A4A5C;      /* 8.7:1 on white — de-emphasis by SIZE, never by thinness */
  --paper: #FFFFFF;
  --wash: #FAFAFC;
  --hair: #E7E7EE;
  --orange: #FF6B17;        /* brand accent — marks and rules, never body text */
  --tint: #FFF1E7;
  --approved: #0E7C4A;      /* the single colour payoff, used only on a status stamp */

  --pink: #FF5C9D;
  --purple: #8B5CF6;
  --blue: #4FC3F7;
  --yellow: #FFC72C;

  --display: "Jost", "Century Gothic", "Trebuchet MS", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gut: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ── the recognition band: the brand's own signature device, one hairline ────────── */
.band { display: flex; height: 4px; }
.band i { flex: 1; }
.band i:nth-child(1) { background: var(--pink); }
.band i:nth-child(2) { background: var(--purple); }
.band i:nth-child(3) { background: var(--blue); }
.band i:nth-child(4) { background: var(--yellow); }
.band i:nth-child(5) { background: var(--orange); }

/* ── shared type devices ─────────────────────────────────────────────────────────── */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker b { color: var(--orange); font-weight: 600; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(33px, 6.4vw, 66px); }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -.01em; line-height: 1.25; }

.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-soft); max-width: 58ch; }

/* The one emphasis device: a rule under a phrase, in brand orange.
   Drawn as a BACKGROUND rather than an absolutely-positioned ::after, and without
   white-space:nowrap. The first version used both, and the nowrap silently forced the page
   375px-wide phones could not fit: at the hero size this phrase needs ~358px of unbreakable
   line, which pushed the whole layout into horizontal scroll. A background stripe wraps
   correctly per line (box-decoration-break paints it on every fragment), so the phrase can
   break where it must and still carry its underline. */
.mark {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 100% .13em;
  background-position: 0 calc(100% - .08em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.doc { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }

/* ── buttons ─────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: 10px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43, 43, 58, .18); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { box-shadow: 0 8px 20px rgba(43, 43, 58, .10); }

/* ── nav ─────────────────────────────────────────────────────────────────────────── */
.nav { border-bottom: 1px solid var(--hair); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 50; }
.nav__in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: .18em; text-decoration: none; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: 15px; text-decoration: none; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 780px) { .nav__hide { display: none; } }

/* ── hero ────────────────────────────────────────────────────────────────────────── */
/* The faint grid is drawing-sheet vernacular: the background of every document this
   audience reads all day. Kept two shades above invisible so it registers as texture,
   never as decoration. */
.hero {
  padding: clamp(48px, 8vw, 92px) 0 clamp(40px, 6vw, 72px);
  background-image:
    linear-gradient(#F1F1F6 1px, transparent 1px),
    linear-gradient(90deg, #F1F1F6 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin: 18px 0 20px; }
.hero .lede { margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* ── THE SIGNATURE: the field device ─────────────────────────────────────────────── */
/* A phone-shaped panel showing the product's actual magic moment. Deliberately NOT a
   WhatsApp clone — the reply is rendered in the visual language of a transmittal, with a
   real document number and a status stamp, because that is what makes it credible to
   someone who reads registers all day. */
.device {
  border: 1.5px solid var(--ink); border-radius: 22px; overflow: hidden;
  background: var(--paper); box-shadow: 0 24px 60px -28px rgba(43, 43, 58, .45);
  max-width: 400px; margin-inline: auto; width: 100%;
}
.device__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--hair); background: var(--wash);
}
.device__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--approved); flex: none; }
.device__name { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.device__meta { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }

.thread { padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 14px; }

.msg { max-width: 88%; }
.msg__who { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.msg__body { padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; }

.msg--in { align-self: flex-end; text-align: right; }
.msg--in .msg__body { background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }

.msg--out { align-self: flex-start; max-width: 94%; }
.msg--out .msg__body { background: var(--wash); border: 1px solid var(--hair); border-bottom-left-radius: 5px; }

.rows { display: flex; flex-direction: column; gap: 7px; margin: 10px 0 2px; }
.row { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; }
.row span { color: var(--ink-soft); }
.stamp {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; border: 1px solid currentColor; flex: none;
}
.stamp--ok { color: var(--approved); }
.stamp--wait { color: var(--ink-soft); }

.file {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 11px 13px; border: 1.5px solid var(--ink); border-radius: 11px; background: var(--paper);
}
.file__ico { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .04em; padding: 4px 6px; border-radius: 4px; background: var(--tint); color: var(--orange); flex: none; }
.file__name { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__size { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); flex: none; }

/* The load sequence: question, then answer, then the drawing arrives. One orchestrated
   moment rather than scattered effects. */
.reveal { opacity: 0; transform: translateY(10px); animation: rise .55s cubic-bezier(.2,.7,.3,1) forwards; }
.reveal--1 { animation-delay: .25s; }
.reveal--2 { animation-delay: 1.05s; }
.reveal--3 { animation-delay: 1.75s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── the integration flow strip: platform in, WhatsApp out ───────────────────────── */
.flow {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}
.flow__node {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  padding: 9px 14px; border: 1px solid var(--hair); border-radius: 8px;
  background: var(--paper); color: var(--ink-soft); white-space: nowrap;
}
.flow__node--core {
  border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600;
  letter-spacing: .18em;
}
.flow__line {
  width: clamp(28px, 6vw, 64px); height: 0;
  border-top: 2px dashed var(--orange); flex: none;
}
@media (max-width: 640px) {
  .flow { gap: 10px; }
  .flow__line { width: 18px; }
}

/* ── sections ────────────────────────────────────────────────────────────────────── */
.sec { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--hair); }
.sec--wash { background: var(--wash); }
.sec__head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 48px); }
.sec__head h2 { margin: 14px 0 16px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } }

.card { }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* The step numbers are used because these ARE a sequence — the order is the onboarding
   order and the reader needs it. Not decoration. */
.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step__no { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--orange); margin-bottom: 10px; display: block; }

/* asked-questions list: real questions from live use, set in mono because they are quotes
   from a chat log, not marketing copy */
.asks { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--hair); }
.ask {
  display: flex; gap: 16px; align-items: baseline;
  padding: 15px 4px; border-bottom: 1px solid var(--hair);
  font-family: var(--mono); font-size: 15px;
}
.ask__q { flex: 1; }
.ask__t { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .06em; flex: none; }
@media (max-width: 640px) { .ask { flex-direction: column; gap: 4px; font-size: 14px; } }

/* the honesty panel — bordered, quiet, deliberately unsold */
.honest { border: 1.5px solid var(--ink); border-radius: 16px; padding: clamp(24px, 4vw, 40px); }
.honest ul { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.honest li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.honest li::before { content: "—"; font-family: var(--mono); color: var(--orange); flex: none; }

/* ── ROI calculator ──────────────────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.field { margin-bottom: 24px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.field output { font-family: var(--mono); font-size: 15px; color: var(--orange); }
.field input[type="range"] { width: 100%; accent-color: var(--orange); height: 24px; }
.field small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

.result { border: 1.5px solid var(--ink); border-radius: 16px; padding: clamp(24px, 4vw, 34px); background: var(--paper); }
.result__row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.result__row:last-of-type { border-bottom: 0; }
.result__row b { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.result__big { margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--ink); }
.result__big div { font-family: var(--display); font-size: clamp(30px, 5vw, 42px); font-weight: 500; letter-spacing: -.02em; }
.result small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 12px; line-height: 1.5; }

/* ── pilot / price ───────────────────────────────────────────────────────────────── */
.price { border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.price__top { padding: clamp(24px, 4vw, 36px); border-bottom: 1px solid var(--hair); }
.price__fig { font-family: var(--display); font-size: clamp(40px, 6vw, 58px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.price__fig span { font-family: var(--body); font-size: 16px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.price__body { padding: clamp(24px, 4vw, 36px); }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.price li { display: flex; gap: 12px; font-size: 16px; }
.price li::before { content: "✓"; color: var(--approved); font-weight: 700; flex: none; }

/* ── faq ─────────────────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { padding: 20px 0; font-family: var(--display); font-size: 19px; font-weight: 500; cursor: pointer; list-style: none; display: flex; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--orange); font-size: 22px; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 22px; color: var(--ink-soft); max-width: 72ch; }

/* ── contact form ────────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.form input, .form textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--hair); border-radius: 10px; background: var(--paper);
}
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form textarea { min-height: 110px; resize: vertical; }
.form__msg { font-size: 15px; min-height: 22px; }
.form__msg[data-state="ok"] { color: var(--approved); }
.form__msg[data-state="err"] { color: var(--orange); }

/* ── footer ──────────────────────────────────────────────────────────────────────── */
.foot { padding: 48px 0 40px; border-top: 1px solid var(--hair); }
.foot__in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.foot__in a { text-decoration: none; }
.foot__in a:hover { color: var(--ink); }
.foot__links { margin-left: auto; display: flex; gap: 22px; }
@media (max-width: 640px) { .foot__links { margin-left: 0; } }

.legal { max-width: 72ch; }
.legal h2 { margin: 36px 0 14px; }
.legal h3 { margin: 26px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
