/* ApexFlows site styles. No external fonts, scripts or trackers. */
:root {
  --concrete: #e9ecee;
  --panel: #ffffff;
  --ink: #18212b;
  --muted: #55606c;
  --line: #c9d0d6;
  --hivis: #f2c230;
  --bubble-me: #d8e6f3;
  --ok: #1f7a4d;
  --measure: 38rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --concrete: #151b22;
    --panel: #1e2630;
    --ink: #e8ecf0;
    --muted: #a3adb8;
    --line: #34404c;
    --bubble-me: #2a3e52;
    --ok: #5cc28f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; }
.brand { font-weight: 800; letter-spacing: -0.02em; font-size: 1.25rem; text-decoration: none; }
.brand span { display: inline-block; width: 0.7em; height: 0.7em; background: var(--hivis); margin-right: 0.4em; transform: skewX(-12deg); }
.top nav a { margin-left: 1.25rem; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0 4rem; }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 850;
  margin: 0 0 1.25rem;
  max-width: 13ch;
}
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 30rem; margin: 0 0 2rem; }
.cta {
  display: inline-block; background: var(--hivis); color: #18212b; font-weight: 700;
  padding: 0.85rem 1.4rem; border-radius: 0.4rem; text-decoration: none;
}
.cta:hover { filter: brightness(0.95); }
.small { font-size: 0.92rem; color: var(--muted); }

/* The demo: a receipt and the chat it turns into */
.demo { position: relative; min-height: 34rem; }
.receipt {
  position: absolute; left: 0; top: 0.5rem; width: 15.5rem;
  background: #fffef9; color: #2b2b2b;
  font: 0.8rem/1.45 ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  padding: 1.1rem 1rem 1.4rem; transform: rotate(-4deg);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 12px 24px -12px rgba(24,33,43,.35);
  -webkit-mask: radial-gradient(circle at 6px 100%, transparent 5px, #000 5.5px) 0 0/12px 100%;
          mask: radial-gradient(circle at 6px 100%, transparent 5px, #000 5.5px) 0 0/12px 100%;
}
.receipt .c { text-align: center; }
.receipt .row { display: flex; justify-content: space-between; }
.receipt hr { border: 0; border-top: 1px dashed #9a9a9a; margin: 0.5rem 0; }
.chat {
  position: absolute; right: 0; top: 12.5rem; width: min(21rem, 100%);
  background: var(--panel); border: 1px solid var(--line); border-radius: 1rem;
  padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem;
  box-shadow: 0 18px 40px -24px rgba(24,33,43,.5);
}
.msg { max-width: 88%; padding: 0.55rem 0.8rem; border-radius: 0.9rem; font-size: 0.93rem; line-height: 1.4; }
.msg.me { align-self: flex-end; background: var(--bubble-me); border-bottom-right-radius: 0.25rem; }
.msg.bot { align-self: flex-start; background: var(--concrete); border-bottom-left-radius: 0.25rem; }
.msg .photo { display: block; font-size: 0.8rem; color: var(--muted); }
.buttons { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.buttons span { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 0.4rem; padding: 0.3rem; font-size: 0.85rem; background: var(--panel); }
.done { color: var(--ok); font-weight: 600; }

/* Content sections */
section.band { padding: 3.5rem 0; border-top: 1px solid var(--line); }
section.band h2 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 1.5rem; line-height: 1.15; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.cols h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.cols p { margin: 0; color: var(--muted); }
.later { color: var(--muted); }
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
ol.steps li { counter-increment: s; }
ol.steps li::before { content: counter(s); display: block; font-weight: 850; font-size: 2.6rem; line-height: 1; margin-bottom: 0.5rem; color: var(--muted); }
ol.steps h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
ol.steps p { margin: 0; color: var(--muted); }

/* Long-form pages (privacy, terms, connect) */
.doc { max-width: var(--measure); padding: 2rem 0 4rem; }
.doc h1 { font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1.1; margin: 1rem 0 0.5rem; }
.doc h2 { font-size: 1.3rem; margin: 2.25rem 0 0.5rem; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 0.5rem 0.5rem 0.5rem 0; }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: 0.92rem; color: var(--muted); }
footer .links a { margin-right: 1.25rem; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .demo { min-height: 0; padding-bottom: 1rem; }
  .receipt { position: relative; top: 0; }
  .chat { position: relative; top: auto; margin: -4.5rem 0 0 auto; }
  .cols, ol.steps { grid-template-columns: 1fr; }
}
@media (max-width: 26rem) {
  .receipt { width: 13.5rem; }
  .top nav a { margin-left: 0.8rem; }
}
