/* ==========================================================================
   Swarelic AI — landing page styles
   Flat, modern look shared with the Swarelic pitch deck:
   deep ink green, mint, one bright green accent, Plus Jakarta Sans.
   ========================================================================== */

/* Self-hosted Plus Jakarta Sans (variable 400–800, SIL Open Font License) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0F2420;
  --ink-2: #17332D;
  --ink-3: #1F4239;
  --ink-line: #24453D;
  --ink-line-2: #2E5A4F;
  --ink-glow: #132C27;     /* decorative circle behind the early-access form */
  --paper: #F5F9F6;
  --paper-alt: #EAF3EE;    /* alternating light sections */
  --card: #FBFDFC;
  --line: #DCE8E1;
  --line-soft: #E4EEE8;
  --line-strong: #C6DDD0;  /* hover / open borders */
  --field-line: #7C9089;   /* form field borders: 3:1 against card */
  --green: #16B36E;
  --green-hover: #12A062;
  --green-text: #0B8A52;   /* green for large text on light */
  --green-deep: #087447;   /* green for small text on light */
  --mint: #E1F3E9;
  --mint-2: #D2EEDF;
  --mint-3: #ECF7F1;
  --mint-bright: #3DDC97;  /* green on dark */
  --body: #4B5E57;
  --body-strong: #2F443D;
  --muted: #617370;
  --placeholder: #7A8C85;
  --on-dark: #F5F9F6;
  --on-dark-soft: #B7CEC6;
  --saffron: #F5A524;
  --danger: #B42318;
  --danger-bg: #FFF8F7;

  /* Shape & depth */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 10px;
  --shadow-soft: 0 4px 16px rgba(15, 36, 32, 0.06);
  --shadow: 0 24px 64px rgba(15, 36, 32, 0.10);

  /* Type scale */
  --fs-h1: clamp(2.6rem, 6.6vw, 5.25rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 2.6vw, 1.875rem);  /* quotes, statements, closing lines */
  --fs-lead: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-xl: 1.5rem;
  --fs-lg: 1.2rem;      /* card titles */
  --fs-md: 1.0625rem;   /* body */
  --fs-base: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .8rem;
  --fs-2xs: .72rem;

  /* Type & layout */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--mint-2); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.section--dark :focus-visible,
.flow :focus-visible,
.site-footer :focus-visible,
.article-help :focus-visible { outline-color: var(--mint-bright); }
.ea-card :focus-visible { outline-color: var(--ink); }
section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 22px; height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(72px, 10vw, 128px); }
.section--alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--on-dark); }

.section-head {
  display: grid;
  gap: 18px;
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.section-head--center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

/* Two shared uppercase label styles: section/column labels and small in-card labels */
.eyebrow,
.meta dt,
.compare thead th,
.handoff-context h3,
.ea-next,
.article-toc h2,
.footer-cols h3 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.fs__who,
.bubble__who,
.wa__head,
.builder__label,
.meter__label,
.built-in {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow { color: var(--green-deep); text-wrap: balance; }
.section--dark .eyebrow { color: var(--mint-bright); }

.h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.accent { color: var(--green-text); }
.section--dark .accent { color: var(--mint-bright); }

.lead {
  font-size: var(--fs-lead);
  color: var(--body);
  text-wrap: pretty;
}
.section--dark .lead { color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn .icon { width: 20px; height: 20px; stroke-width: 2.4; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary { background: var(--green); color: var(--ink); }
.btn--primary:hover { background: var(--green-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(22, 179, 110, .28); }
.btn--primary:disabled { opacity: .7; cursor: progress; transform: none; box-shadow: none; }

.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }

.btn--lg { min-height: 56px; padding: 14px 30px; font-size: var(--fs-md); }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-weight: 700;
  color: var(--green-deep);
  text-underline-offset: 3px;
}
.text-link .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.text-link:hover .icon { transform: translateX(3px); }
.section--dark .text-link { color: var(--mint-bright); }
.more-link { margin-top: clamp(24px, 3vw, 32px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 249, 246, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(15, 36, 32, .06);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 40px; height: 40px; }
.brand-ai { color: var(--green-text); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--body-strong);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--green-deep); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 7vw, 88px);
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 940px;
  margin-inline: auto;
}

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-title .eyebrow { display: block; margin-bottom: 24px; line-height: 1.6; }

.hero-sub {
  max-width: 640px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--body);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--body-strong);
}
.hero-stats strong { color: var(--green-deep); font-weight: 800; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

.hero-visual {
  max-width: 1200px;
  margin: clamp(24px, 4vw, 40px) auto 0;
}
.hero-visual svg { width: 100%; height: auto; }

.wave rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: wave 1.3s ease-in-out infinite alternate;
}
.wave rect:nth-child(2n)  { animation-delay: -.35s; animation-duration: 1.1s; }
.wave rect:nth-child(3n)  { animation-delay: -.7s; }
.wave rect:nth-child(5n)  { animation-delay: -1s; animation-duration: 1.5s; }
@keyframes wave {
  from { transform: scaleY(.45); }
  to   { transform: scaleY(1); }
}

/* ---------- Use-case tabs ---------- */

.tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--body-strong);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.tab .icon { width: 20px; height: 20px; }
.tab__short { display: none; }
.tab:hover { background: var(--mint); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--on-dark); }

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 24px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.js .tab-panel:not([hidden]) { animation: panel-in .35s ease both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.tab-copy { display: grid; gap: 20px; align-content: start; }
.tab-copy > p { color: var(--body); }

.quote {
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}
.tab-copy > .quote { color: var(--ink); }

.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.meta dt { color: var(--green-deep); }
.meta dd { margin-top: 4px; font-weight: 600; text-wrap: balance; }

/* ---------- Animated call workflow (use-case tabs) ----------
   States set by script.js on each step (li.fs):
   no class = waiting · .is-active = in progress · .is-done = finished.
   Without JavaScript, or with reduced motion, every step shows finished. */

.flow {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px 22px 24px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.flow__top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--on-dark-soft);
}
.flow__timer {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
}
.flow__replay {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  padding: 0;
  border: 1px solid var(--ink-line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark-soft);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .3s ease;
}
.flow__replay .icon { width: 18px; height: 18px; }
.flow__replay:hover { color: var(--mint-bright); border-color: var(--mint-bright); transform: rotate(-30deg); }
.flow__progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink-3);
}
.flow__progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint-bright);
  transition: width .5s ease;
}
.js .flow__progress span { width: 0; }
html:not(.js) .flow__timer,
html:not(.js) .flow__replay { display: none; }

.flow__steps {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  transition: opacity .4s ease;
}
.flow.is-resetting .flow__steps { opacity: 0; }

/* One step on the rail */
.fs { position: relative; padding-left: 30px; }
.fs::before {               /* node */
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--mint-bright);
  background: var(--mint-bright);
  transition: background-color .3s ease, border-color .3s ease;
}
.fs::after {                /* connector to the next step */
  content: "";
  position: absolute;
  left: 7px; top: 31px; bottom: -11px;
  width: 2px;
  background-color: var(--ink-line);
  background-image: linear-gradient(var(--mint-bright), var(--mint-bright));
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100% 100%;
  transition: background-size .5s ease;
}
.fs:last-child::after { display: none; }

.fs__body { transition: opacity .4s ease, transform .4s ease; }

/* Speech bubbles */
.fs__bubble {
  position: relative;
  display: grid;
  max-width: 92%;
  padding: 10px 14px 12px;
  border-radius: var(--radius);
  font-weight: 600;
}
.fs--caller .fs__bubble {
  justify-self: start;
  background: var(--ink-3);
  border-bottom-left-radius: 5px;
}
.fs--ai .fs__body { display: grid; }
.fs--ai .fs__bubble {
  justify-self: end;
  background: var(--green);
  color: var(--ink);
  border-bottom-right-radius: 5px;
}
.fs__who { opacity: .9; }
.fs__typing {
  position: absolute;
  left: 14px; bottom: 14px;
  display: flex;
  gap: 5px;
  opacity: 0;
}
.fs__typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: typing 1s ease-in-out infinite;
}
.fs__typing i:nth-child(2) { animation-delay: .15s; }
.fs__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Action rows */
.fs__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.fs__icon {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: var(--radius-xs);
  background: var(--ink-3);
  color: var(--mint-bright);
}
.fs__icon .icon { width: 17px; height: 17px; }
.fs__label { flex: 1; min-width: 0; font-weight: 600; }
.when-active { display: none; }
.fs__status { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.fs__spinner {
  display: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--ink-line-2);
  border-top-color: var(--mint-bright);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fs__check { width: 20px; height: 20px; color: var(--mint-bright); stroke-width: 2.6; }

/* Results that appear under an action */
.fs__result {
  margin-top: 8px;
  transition: opacity .45s ease .1s, transform .45s ease .1s;
}

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots span {
  padding: 5px 12px;
  border: 1px solid var(--ink-line-2);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.slots .is-pick { background: var(--mint-bright); border-color: var(--mint-bright); color: var(--ink); }

.wa {
  display: grid;
  gap: 4px;
  max-width: 92%;
  padding: 10px 12px;
  background: var(--mint);
  color: var(--ink);
  border-radius: var(--radius-sm);
  border-top-left-radius: 4px;
  font-weight: 600;
}
.wa__head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-deep);
}
.wa__head .icon { width: 14px; height: 14px; }

.meter { display: flex; align-items: center; gap: 12px; }
.meter__track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink-3);
}
.meter__fill {
  display: block;
  width: var(--v, 80%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--saffron), var(--mint-bright));
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1) .15s;
}
.meter__label {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--saffron);
  color: var(--ink);
}

.ctx { display: flex; flex-wrap: wrap; gap: 6px; }
.ctx span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.tracker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 2px;
}
.tracker li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--on-dark-soft);
}
.tracker li::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink-line-2);
  background: var(--ink);
  transition: background-color .3s ease, border-color .3s ease;
}
.tracker li::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 100%; height: 2px;
  background: var(--ink-line);
  transition: background-color .3s ease;
}
.tracker li:last-child::after { display: none; }
.tracker .t-done::before { background: var(--mint-bright); border-color: var(--mint-bright); }
.tracker .t-done::after { background: var(--mint-bright); }
.tracker .t-now { color: var(--on-dark); font-weight: 800; }
.tracker .t-now::before { border-color: var(--mint-bright); animation: live 1.6s ease-out infinite; }
.tracker li:nth-child(2)::before, .tracker li:nth-child(1)::after { transition-delay: .35s; }
.tracker li:nth-child(3)::before, .tracker li:nth-child(2)::after { transition-delay: .7s; }

/* ---- Animated states (only once script.js is running) ---- */
.js .flow .fs:not(.is-done)::before { background: var(--ink); border-color: var(--ink-line-2); }
.js .flow .fs.is-active::before { border-color: var(--mint-bright); animation: live 1.4s ease-out infinite; }
.js .flow .fs:not(.is-done)::after { background-size: 100% 0%; }

.js .flow .fs:not(.is-active):not(.is-done) .fs__body { opacity: .22; transform: translateY(4px); }

.js .flow .fs:not(.is-done) .fs__text { visibility: hidden; }
.js .flow .fs.is-active .fs__typing { opacity: 1; }

.js .flow .fs:not(.is-done) .when-active { display: inline; }
.js .flow .fs:not(.is-done) .when-done { display: none; }
.js .flow .fs.is-active .fs__row { border-color: rgba(61, 220, 151, .55); box-shadow: 0 0 0 3px rgba(61, 220, 151, .12); }
.js .flow .fs.is-active .fs__spinner { display: block; }
.js .flow .fs:not(.is-done) .fs__check { display: none; }

.js .flow .fs:not(.is-done) .fs__result { opacity: 0; transform: translateY(6px); visibility: hidden; }
.js .flow .fs:not(.is-done) .meter__fill { width: 0; }
.js .flow .fs:not(.is-done) .tracker li::before { background: var(--ink); border-color: var(--ink-line-2); }
.js .flow .fs:not(.is-done) .tracker li::after { background: var(--ink-line); }
.js .flow:not(.flag-picked) .slots .is-pick { background: transparent; border-color: var(--ink-line-2); color: var(--on-dark); }

.live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, .6);
  animation: live 1.8s ease-out infinite;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); }
  100% { box-shadow: 0 0 0 12px rgba(61, 220, 151, 0); }
}

.call-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 48px;
}
.call-wave span {
  width: 6px;
  height: 100%;
  border-radius: 999px;
  background: var(--mint-bright);
  transform-origin: center;
  animation: wave 1.2s ease-in-out infinite alternate;
}
.call-wave span:nth-child(odd)  { animation-delay: -.4s; }
.call-wave span:nth-child(3n)   { animation-delay: -.8s; animation-duration: 1s; }
.call-wave span:nth-child(4n)   { height: 60%; }
.call-wave span:nth-child(5n)   { height: 40%; }
.call-wave span:nth-child(7n)   { height: 80%; }

/* ---------- Workflow builder ---------- */

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.builder-copy { display: grid; gap: 20px; }

.builder__window {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.builder__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.builder__title { flex: 1; min-width: 0; padding-left: 8px; font-size: var(--fs-sm); font-weight: 700; }
.builder__publish {
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.builder__body { display: flex; }
.builder__side {
  display: grid;
  align-content: start;
  gap: 8px;
  width: 168px;
  flex: none;
  padding: 18px;
  background: var(--mint-3);
  border-right: 1px solid var(--line);
}
.builder__label {
  margin-bottom: 4px;
  color: var(--green-deep);
}
.chip {
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.builder__canvas {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 22px 28px;
  background: var(--paper);
}
.node {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  font-size: var(--fs-sm);
  line-height: 1.3;
}
.node__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: var(--radius-xs);
  background: var(--mint);
  color: var(--green-deep);
}
.node__icon .icon { width: 18px; height: 18px; }
.node__text { display: grid; }
.node__text b { font-weight: 800; color: var(--green-deep); }
.node--accent { border: 2px solid var(--green); }
.node--accent .node__icon { background: var(--green); color: var(--ink); }
.node--pill {
  width: auto;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 700;
}
.vline {
  position: relative;
  width: 2px;
  height: 26px;
  background: var(--green);
}
.vline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: 6px solid var(--green);
  border-bottom: 0;
}

/* ---------- Conversations (dark) ---------- */

.statement {
  text-wrap: balance;
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--on-dark);
}
.no-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.no-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--ink-line-2);
  border-radius: 999px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--on-dark-soft);
}
.no-list .icon { width: 18px; height: 18px; color: var(--saffron); }

.convo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.convo-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
}
.convo-card h3 { font-size: var(--fs-lg); font-weight: 800; }

.bubble {
  max-width: 88%;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.45;
}
.bubble__who {
  display: block;
  margin-bottom: 4px;
  opacity: .9;
}
.bubble--caller {
  justify-self: start;
  background: var(--ink-3);
  color: var(--on-dark);
  border-bottom-left-radius: 6px;
}
.bubble--ai {
  justify-self: end;
  background: var(--green);
  color: var(--ink);
  border-bottom-right-radius: 6px;
}
.convo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--on-dark-soft);
}
.convo-note .icon { color: var(--mint-bright); margin-top: 2px; }

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: var(--fs-base);
}
.compare th,
.compare td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th {
  color: var(--body);
  background: var(--paper);
}
.compare tbody th { font-weight: 600; width: 46%; }
.compare .is-us { background: var(--mint-3); }
.compare thead .is-us { background: var(--ink); color: var(--mint-bright); }
.compare td { width: 18%; }
.compare--text tbody th { width: 28%; }
.compare--text td { width: 36%; color: var(--body-strong); }

.yes, .no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.yes { color: var(--green-deep); }
.no  { color: var(--muted); }
.yes .icon, .no .icon { width: 20px; height: 20px; stroke-width: 2.4; }

.compare-kicker {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.compare-more { margin-top: 16px; }

/* ---------- Integrations & industries (icon cards) ---------- */

.int-grid,
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.int-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.int-card,
.ind-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.int-card h3,
.ind-card h3 { margin-bottom: 4px; font-size: var(--fs-lg); font-weight: 800; }
.int-card p,
.ind-card p { color: var(--body); font-size: var(--fs-base); text-wrap: pretty; }
.ind-card .text-link { margin-top: 10px; font-size: var(--fs-sm); }
.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  flex: none;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--green-deep);
}
.card-icon .icon { width: 26px; height: 26px; }
/* Brand logos keep their own colours, so they sit on a plain tile instead of mint */
.card-icon--logo { background: var(--card); border: 1px solid var(--line); }
.card-icon--logo img { width: 30px; height: 30px; object-fit: contain; }
.card-icon--logo .card-icon__wide { width: 44px; }
.card-icon--logo .card-icon__lg { width: 36px; height: 36px; }  /* this file has extra built-in padding */

.api-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 22px 26px;
  border: 2px dashed var(--green);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.api-callout .icon { width: 30px; height: 30px; color: var(--green-deep); }
.api-callout p { font-size: var(--fs-lead); font-weight: 700; }

/* ---------- How it works (dark) ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.how-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  padding: clamp(22px, 3vw, 28px);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
}
.how-visual {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 196px;
  margin-bottom: 8px;
  padding: 18px;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
}
.connected li,
.done li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ink-2);
  border-radius: var(--radius-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.connected .status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--mint-bright);
}
.connected .status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint-bright);
}
.connected .icon, .done .icon { width: 18px; height: 18px; color: var(--mint-bright); }
.how-visual .bubble { max-width: 100%; font-size: var(--fs-base); }
.how-visual .call-wave { height: 36px; justify-content: center; }
.how-num {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--mint-bright);
}
.how-card h3 { font-size: var(--fs-lg); font-weight: 800; }
.how-card p { color: var(--on-dark-soft); }

.tagline {
  margin-top: clamp(36px, 5vw, 56px);
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.tagline span { color: var(--mint-bright); }

/* ---------- Human handoff ---------- */

.handoff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.handoff-copy { display: grid; gap: 20px; }
.handoff-copy > p:not(.eyebrow) { color: var(--body); }

.handoff-points { display: grid; gap: 12px; margin-top: 4px; }
.handoff-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.handoff-points .pt-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--green-deep);
}
.handoff-points .icon { width: 20px; height: 20px; }

.handoff-diagram {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.handoff-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.hf-node {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 10px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-base);
}
.hf-node__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--green-deep);
}
.hf-node__icon .icon { width: 26px; height: 26px; }
.hf-node__icon img { width: 32px; height: 32px; }
.hf-node--ai { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.hf-arrow { color: var(--green-text); }
.hf-arrow .icon { width: 26px; height: 26px; stroke-width: 2.4; }

.handoff-context {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--mint-3);
  border: 1px solid var(--mint-2);
  border-radius: var(--radius);
}
.handoff-context h3 { color: var(--green-deep); }
.handoff-context ul { display: grid; gap: 10px; }
.handoff-context li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.handoff-context .icon { color: var(--green-text); width: 20px; height: 20px; }

/* ---------- Early access (dark) ---------- */

.early-access { position: relative; overflow: hidden; }
.early-access::before {
  content: "";
  position: absolute;
  right: -260px; top: -260px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ink-2) 0 45%, var(--ink-glow) 45% 100%);
  pointer-events: none;
}
.ea-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}
.ea-copy { display: grid; gap: 20px; }
.ea-copy .h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.03em; }
.ea-next { margin-top: 8px; color: var(--on-dark); }
.ea-steps { display: grid; gap: 14px; }
.ea-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--on-dark-soft);
}
.ea-steps__num {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--ink-line-2);
  color: var(--mint-bright);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.ea-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 10px rgba(61, 220, 151, .12);
}
.ea-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { font-size: var(--fs-sm); font-weight: 700; }
.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230F2420' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input::placeholder { color: var(--placeholder); }
.field input:hover,
.field select:hover { border-color: var(--body); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--green-deep);
  background-color: var(--card);
  box-shadow: 0 0 0 4px rgba(22, 179, 110, .18);
}
.field [aria-invalid="true"] { border-color: var(--danger); background-color: var(--danger-bg); }
.field-error { font-size: var(--fs-sm); font-weight: 600; color: var(--danger); }

.form-note { text-align: center; font-size: var(--fs-sm); color: var(--body); }
.form-status { text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--danger); }
.form-status:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ea-success {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px 8px;
  text-align: center;
}
.ea-success:focus { outline: none; }
.ea-success__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
}
.ea-success__icon .icon { width: 36px; height: 36px; stroke-width: 2.6; }
.ea-success h3 { font-size: var(--fs-xl); font-weight: 800; }
.ea-success p { color: var(--body); max-width: 360px; }

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: var(--fs-md);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-deep);
  transition: transform .25s ease, background-color .2s ease;
}
.faq-icon .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--green); color: var(--ink); }
.faq-answer { padding: 0 24px 22px; color: var(--body); }
.faq-answer p + p { margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(56px, 7vw, 80px) 32px;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  color: var(--on-dark-soft);
  font-size: var(--fs-base);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: 48px;
}
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand .brand-ai { color: var(--mint-bright); }
.footer-tagline { font-size: var(--fs-lg); font-weight: 700; color: var(--on-dark); }
.footer-company { font-size: var(--fs-sm); }
.footer-contact { display: grid; gap: 8px; margin-top: 8px; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--mint-bright); }
.footer-contact .icon { width: 18px; height: 18px; color: var(--mint-bright); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 32px 24px;
}
.footer-cols h3 {
  margin-bottom: 14px;
  color: var(--mint-bright);
}
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: var(--on-dark-soft); text-decoration: none; transition: color .2s ease; }
.footer-cols a:hover { color: var(--on-dark); }

.footer-disclaimer {
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}
.footer-disclaimer a { color: var(--on-dark); font-weight: 700; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
  font-size: var(--fs-sm);
}
.built-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px dashed var(--saffron);
  border-radius: 999px;
  color: var(--saffron);
}

/* ---------- Inner pages (solution pages and policies) ---------- */

.page-hero { padding-top: clamp(40px, 6vw, 72px); }
.page-hero--landing { padding-bottom: clamp(56px, 8vw, 96px); }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.page-copy { display: grid; gap: 20px; align-content: start; max-width: 780px; }
.page-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: var(--fs-sm);
  color: var(--body);
}
.breadcrumb a { color: var(--body-strong); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--green-deep); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.article-body { padding-bottom: clamp(72px, 10vw, 128px); }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}
.article-aside { display: grid; gap: 16px; }
.article-toc {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.article-toc h2 { color: var(--green-deep); }
.article-toc ol { display: grid; gap: 10px; margin-top: 16px; }
.article-toc a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--body-strong);
  text-decoration: none;
}
.article-toc a:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-help {
  display: grid;
  gap: 6px;
  padding: 24px;
  background: var(--ink);
  color: var(--on-dark-soft);
  border-radius: var(--radius-lg);
}
.article-help__title { font-size: var(--fs-lg); font-weight: 800; color: var(--on-dark); }
.article-help a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--mint-bright);
  text-decoration: none;
}
.article-help a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-help .icon { width: 18px; height: 18px; }

/* Long-form text (policies and guides) arrives as plain HTML, so it is styled by element */
.prose { max-width: 46rem; }
.prose h2 {
  margin-top: 56px;
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose p,
.prose li { line-height: 1.75; color: var(--body); }
.prose h3 { margin-top: 28px; font-size: var(--fs-lg); font-weight: 800; }
.prose p,
.prose ul,
.prose ol { margin-top: 16px; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose ol { padding-left: 1.25rem; list-style: decimal; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--green); }
.prose a { font-weight: 600; color: var(--green-deep); text-underline-offset: 3px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose code {
  padding: .1em .4em;
  background: var(--mint-3);
  border-radius: var(--radius-xs);
  font-size: .9em;
}
.prose .policy-summary,
.prose .summary-box {
  padding: clamp(20px, 3vw, 28px);
  background: var(--mint-3);
  border: 1px solid var(--mint-2);
  border-radius: var(--radius-lg);
}
.prose .policy-summary strong,
.prose .summary-box strong {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.prose .policy-summary p,
.prose .summary-box p { margin-top: 10px; }
.prose .table-scroll {
  margin-top: 20px;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.prose table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.prose caption { padding: 14px 16px; background: var(--paper); text-align: left; font-weight: 700; }
.prose th,
.prose td {
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  color: var(--body);
}
.prose th { font-weight: 700; color: var(--ink); }

.link-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.link-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 16px;
  height: 100%;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color .2s ease;
}
.link-card:hover { border-color: var(--line-strong); }
.link-card__title { font-size: var(--fs-lg); font-weight: 800; }
.link-card__sub { color: var(--body); }
.link-card .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--green-deep);
  transition: transform .2s ease;
}
.link-card:hover .icon { transform: translateX(3px); }

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .builder-grid,
  .handoff-grid,
  .ea-grid { grid-template-columns: minmax(0, 1fr); }
  .int-grid,
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Tablet: each How-it-works card puts its visual beside the text */
@media (min-width: 621px) and (max-width: 1040px) {
  .how-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: clamp(20px, 4vw, 40px);
  }
  .how-visual { grid-column: 1; grid-row: 1 / -1; margin-bottom: 0; }
  .how-num { grid-column: 2; grid-row: 2; }
  .how-card > h3 { grid-column: 2; grid-row: 3; }
  .how-card > p { grid-column: 2; grid-row: 4; }
}

/* Same card height on every tab so the page doesn't jump when switching */
@media (min-width: 861px) {
  .flow { min-height: 620px; }
}

@media (max-width: 860px) {
  .tab-panel { grid-template-columns: minmax(0, 1fr); }

  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: -24px; right: -24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 24px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(15, 36, 32, .08);
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { padding: 14px 4px; font-size: var(--fs-md); border-bottom: 1px solid var(--line-soft); }
  .nav-menu .btn { margin-top: 12px; }
}

@media (max-width: 620px) {
  body { font-size: var(--fs-base); }
  .int-grid,
  .ind-grid,
  .convo-grid,
  .field-row,
  .meta,
  .link-cards { grid-template-columns: minmax(0, 1fr); }

  /* Hero art: zoom in on the phone and pull the greetings inward so the text stays readable */
  .hero-visual svg { width: 150%; max-width: none; margin-left: -25%; }
  .hero-bubble--left { transform: translateX(84px); }
  .hero-bubble--right { transform: translateX(-74px); }

  /* Use-case tabs: three equal buttons with short labels */
  .tabs { width: 100%; border-radius: var(--radius); }
  .tab {
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
  }
  .tab__long { display: none; }
  .tab__short { display: inline; }

  /* Comparison: keep the capability column pinned so the Swarelic column is visible */
  .compare { min-width: 540px; font-size: var(--fs-sm); }
  .compare th,
  .compare td { padding: 14px 12px; }
  .compare td { width: auto; }
  .compare tbody th,
  .compare thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 170px;
    background: var(--card);
    box-shadow: inset -1px 0 0 var(--line);
  }
  .compare thead th:first-child { background: var(--paper); }

  .int-card,
  .ind-card { gap: 14px; padding: 18px; }
  .card-icon { width: 44px; height: 44px; }
  .card-icon .icon { width: 22px; height: 22px; }
  .card-icon--logo img { width: 26px; height: 26px; }
  .card-icon--logo .card-icon__wide { width: 38px; }
  .card-icon--logo .card-icon__lg { width: 32px; height: 32px; }

  .builder__side { display: none; }
  .handoff-flow { grid-template-columns: minmax(0, 1fr); }
  .hf-arrow { justify-self: center; transform: rotate(90deg); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bubble { max-width: 100%; }
  .hero-ctas .btn,
  .page-ctas .btn { width: 100%; }
  .tab-panel { padding: 18px; }
  .flow { padding: 18px 14px 20px; }
  .flow__top { font-size: var(--fs-xs); }
  .fs { padding-left: 26px; }
  .fs__bubble, .wa { max-width: 100%; }
  .hero-stats { gap: 8px; }
  .hero-stats li { gap: 6px; padding: 8px 12px; font-size: var(--fs-sm); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    /* none, not a near-zero duration: tiny transitions on inherited visibility can leave
       the call-flow results blank in some Chromium builds */
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
