/* AmpliBot design tokens. GENERATED from tokens/tokens.json by scripts/build-tokens.mjs.
   Do not edit by hand: change tokens.json and run `npm run build`. */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&display=swap");

:root {
  /* ── palette: Raw scales. Only a source for the colour roles; never used in components. ── */
  --indigo-50: #ECEFFE;
  --indigo-100: #C8CFFB;
  --indigo-200: #9DAAF6;
  --indigo-400: #3D52D5; /* brand */
  --indigo-500: #2E42C2; /* hover */
  --indigo-900: #0B1140; /* ink */
  --slate-50: #F0F1F8;
  --slate-100: #D4D7EE;
  --slate-200: #B0B5D8;
  --slate-500: #5C6396; /* (inferred) muted text (AA) */

  /* ── color: Colour roles. Use these in components. ── */
  --color-surface: #FFFFFF; /* page, cards */
  --color-surface-tint: #F0F1F8; /* tinted sections, field fill */
  --color-surface-brand: #ECEFFE; /* tags, icon tiles */
  --color-nav-bg: rgba(255,255,255,.88); /* navigation, with a 12 px blur */
  --color-text: #0B1140; /* headlines, labels, important text */
  --color-text-muted: #5C6396; /* (inferred) body text, descriptions (AA contrast 5.7:1) */
  --color-text-subtle: #B0B5D8; /* only unimportant things: waiting state, disabled (2:1) */
  --color-text-brand: #3D52D5; /* eyebrow, italic in headlines, links, numbers */
  --color-border: #D4D7EE; /* card and field borders, lines */
  --color-border-field: #B0B5D8; /* (inferred) form field border (stronger than cards, so fields don't look disabled) */
  --color-border-brand: #C8CFFB; /* tag borders, featured card, finished task */
  --color-border-brand-strong: #9DAAF6; /* (inferred) secondary button border */
  --color-primary: #3D52D5; /* buttons, active state, focus */
  --color-primary-hover: #2E42C2;
  --color-on-primary: #FFFFFF; /* text on indigo */
  --color-primary-edge: #24359E; /* (inferred) pressable edge under the primary button */
  --color-error: #B42318;
  --color-error-bg: #FEF0EF; /* (inferred) */
  --color-success: #1F7A4D; /* (inferred) only for things that are actually done */
  --color-success-bg: #EAF6EF; /* (inferred) */
  --color-graphic-dot: rgba(61,82,213,.15); /* dot grid */
  --color-graphic-line: rgba(61,82,213,.18); /* network lines, pulse ring */
  --color-graphic-node: rgba(61,82,213,.42); /* resting network node */

  /* ── font: Serif speaks (headlines), sans works (everything else). ── */
  --font-display: Newsreader, Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ── fontWeight: Weights. 300 only for Lead and Body, never 700. ── */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;

  /* ── fontSize: 7 sizes = 7 text styles: 12 · 14 · 16 · 18 · 24 · 28–40 · 40–64. ── */
  --fs-display: clamp(40px, 5vw, 64px); /* Display: main headline, big number */
  --fs-heading: clamp(28px, 3vw, 40px); /* Heading: section headline */
  --fs-title: 24px; /* Title: card and step title, price */
  --fs-lead: 18px; /* Lead: intro text, stat value */
  --fs-body: 16px; /* Body: paragraphs */
  --fs-ui: 14px; /* UI: buttons, navigation, fields, card text */
  --fs-label: 12px; /* Label: labels, tags, eyebrow */

  /* ── lineHeight: Line heights: headlines, short texts, paragraphs. ── */
  --lh-tight: 1.1; /* Display, Heading */
  --lh-snug: 1.3; /* Title, Label, single-line UI */
  --lh-relaxed: 1.6; /* Lead, Body, multi-line UI */

  /* ── letterSpacing: Letter spacing. ── */
  --tracking-tight: -.02em; /* serif headlines */
  --tracking-wide: .08em; /* eyebrow (caps) */

  /* ── space: Spacing: 9 steps of 4 px. Name = value / 4. ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* ── layout: Page layout. ── */
  --layout-max: 1160px; /* max content width */
  --layout-gutter: 48px; /* page side padding (24 px on mobile) */
  --layout-gutter-sm: 24px;
  --section-pad: 96px; /* (inferred) section vertical padding */
  --section-pad-sm: 64px; /* (inferred) section vertical padding on mobile */
  --nav-height: 64px;
  --measure: 560px; /* max paragraph width */
  --grid-pitch: 32px; /* dot grid spacing */

  /* ── radius: Radius: small elements 4, controls 8, cards 16. ── */
  --radius-sm: 4px; /* tags, small tiles */
  --radius-md: 8px; /* buttons, fields, icon tiles, stats */
  --radius-lg: 16px; /* cards */
  --radius-full: 999px; /* dots, bars */

  /* ── shadow: Shadows, always tinted with indigo. ── */
  --shadow-sm: 0 4px 20px rgba(61,82,213,.07); /* card, stat */
  --shadow-lg: 0 8px 32px rgba(61,82,213,.10), 0 1px 4px rgba(61,82,213,.04); /* featured card, workflow card */
  --shadow-button: 0 6px 18px rgba(61,82,213,.22); /* (inferred) primary button at rest */
  --shadow-button-hover: 0 10px 24px rgba(61,82,213,.28); /* (inferred) primary button on hover */

  /* ── stroke: Borders are always 1 px. ── */
  --border-width: 1px;

  /* ── duration: Animation durations on the website (reels use motion/tokens.js). ── */
  --duration-fast: .15s; /* button lift */
  --duration-base: .25s; /* colours, borders, states */
  --duration-slow: .6s; /* content entrance */

  /* ── ease: Animation easing on the website. ── */
  --ease-standard: ease;
  --ease-loop: ease-in-out; /* repeating motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1); /* (inferred) button press and lift (settles quickly) */
}

/* ════ components/base.css ════ */
/* AmpliBot base: 7 text styles, container and section.
   Loaded before the components. Every class has the ab- prefix so it doesn't clash with other projects.

   Text styles (size · line height · weight):
   Display  serif 40–64 · 1.1 · 400   main headline, big number
   Heading  serif 28–40 · 1.1 · 400   section headline
   Title    serif 24    · 1.3 · 400   card and step title
   Lead     sans  18    · 1.6 · 300   intro text
   Body     sans  16    · 1.6 · 300   paragraphs
   UI       sans  14    · 1.6 · 400   buttons, navigation, fields, card text
   Label    sans  12    · 1.3 · 500   labels, tags; Eyebrow = Label in caps, indigo */

.ab {
  margin: 0;
  font: var(--weight-light) var(--fs-body)/var(--lh-relaxed) var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

/* Serif: never bold. The part in <em> = italic in indigo. */
.ab-display, .ab-heading, .ab-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}
.ab-display { font-size: var(--fs-display); line-height: var(--lh-tight); }
.ab-heading { font-size: var(--fs-heading); line-height: var(--lh-tight); }
.ab-title   { font-size: var(--fs-title);   line-height: var(--lh-snug); }
.ab-display em, .ab-heading em, .ab-title em { font-style: italic; color: var(--color-text-brand); }

/* Sans. */
.ab-lead { margin: 0; font: var(--weight-light) var(--fs-lead)/var(--lh-relaxed) var(--font-body); color: var(--color-text-muted); max-width: 440px; }
.ab-body { margin: 0; font: var(--weight-light) var(--fs-body)/var(--lh-relaxed) var(--font-body); color: var(--color-text-muted); max-width: var(--measure); }
.ab-ui   { margin: 0; font: var(--weight-regular) var(--fs-ui)/var(--lh-relaxed) var(--font-body); color: var(--color-text); }
.ab-label { margin: 0; font: var(--weight-medium) var(--fs-label)/var(--lh-snug) var(--font-body); color: var(--color-text); }
.ab-eyebrow {
  margin: 0;
  font: var(--weight-medium) var(--fs-label)/var(--lh-snug) var(--font-body);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-brand);
}

/* Container: max 1160 px, 48 px side padding (24 px on mobile). */
.ab-container { box-sizing: border-box; width: 100%; max-width: var(--layout-max); margin-inline: auto; padding-inline: var(--layout-gutter); }

/* Section: 96 px vertical padding (64 px on mobile), tinted variant. */
.ab-section { padding-block: var(--section-pad); }
.ab-section--tint { background: var(--color-surface-tint); }

@media (max-width: 900px) {
  .ab-container { padding-inline: var(--layout-gutter-sm); }
  .ab-section { padding-block: var(--section-pad-sm); }
}

/* ════ components/button/button.css ════ */
/* Button: primary (.ab-btn), secondary (.ab-btn--secondary), compact (.ab-btn--compact) and text link (.ab-link).
   "Keycap": a darker edge under the button makes it look pressable. It rises a little on hover
   and sinks flat when pressed, on touch screens too.
   Text: primary, secondary and link = Body 16 px, compact = UI 14 px, always weight 500. */

.ab-btn {
  --ab-btn-edge: 3px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font: var(--weight-medium) var(--fs-body)/var(--lh-snug) var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 var(--ab-btn-edge) 0 var(--color-primary-edge), var(--shadow-button);
  transition: background var(--duration-base) var(--ease-standard),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.ab-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.ab-btn svg { width: 16px; height: 16px; flex: none; }

/* Hover only on devices that really hover, so a tap doesn't leave the button stuck raised. */
@media (hover: hover) {
  .ab-btn:hover { background: var(--color-primary-hover); }
}

/* Pressed: the button sinks onto its edge. Works for mouse and touch. */
.ab-btn:active {
  transform: translateY(var(--ab-btn-edge));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 var(--color-primary-edge), 0 2px 6px rgba(61, 82, 213, .2);
  transition-duration: 60ms;
}

/* Secondary: a white key with an indigo border and a light indigo edge. For the second most important action. */
.ab-btn--secondary {
  background: var(--color-surface);
  color: var(--color-text-brand);
  box-shadow: inset 0 0 0 1px var(--color-border-brand-strong), 0 var(--ab-btn-edge) 0 var(--color-border-brand);
}
@media (hover: hover) {
  .ab-btn--secondary:hover { background: var(--color-surface-brand); box-shadow: inset 0 0 0 1px var(--color-primary), 0 var(--ab-btn-edge) 0 var(--color-border-brand-strong); }
}
.ab-btn--secondary:active { box-shadow: inset 0 0 0 1px var(--color-primary), 0 0 0 var(--color-border-brand-strong); }

/* Compact: for navigation and tight spots. No arrow, lower edge. */
.ab-btn--compact { --ab-btn-edge: 2px; padding: var(--space-2) var(--space-4); font-size: var(--fs-ui); }

/* Disabled and sending: flat, no edge, can't be pressed. */
.ab-btn[disabled], .ab-btn[aria-disabled="true"], .ab-btn[aria-busy="true"] {
  opacity: .6;
  transform: none;
  box-shadow: none;
}
.ab-btn--secondary[disabled], .ab-btn--secondary[aria-disabled="true"], .ab-btn--secondary[aria-busy="true"] { box-shadow: inset 0 0 0 1px var(--color-border-brand-strong); }
.ab-btn[disabled], .ab-btn[aria-disabled="true"] { cursor: not-allowed; }
.ab-btn[aria-busy="true"] { cursor: wait; }

/* Text link with an arrow. The quietest action; always next to a button. */
.ab-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-brand);
  font: var(--weight-medium) var(--fs-body)/var(--lh-snug) var(--font-body);
  text-decoration: none;
  transition: gap var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
@media (hover: hover) {
  .ab-link:hover { gap: var(--space-3); color: var(--color-primary-hover); }
}
.ab-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Button group: primary first, then secondary or link. */
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .ab-btn:not([disabled]):not([aria-busy="true"]):not(:active):hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 calc(var(--ab-btn-edge) + 1px) 0 var(--color-primary-edge), var(--shadow-button-hover);
  }
  .ab-btn--secondary:not([disabled]):not([aria-busy="true"]):not(:active):hover {
    box-shadow: inset 0 0 0 1px var(--color-primary), 0 calc(var(--ab-btn-edge) + 1px) 0 var(--color-border-brand-strong);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ab-btn:active { transform: none; }
}

/* ════ components/card/card.css ════ */
/* Card: white surface with a 1px border and an indigo shadow. Featured variant (.ab-card--featured)
   and its own parts: badge on the edge (__badge), who it's for (__kicker), title (__title), price (__price),
   note (__note) and text (__body). */

.ab-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.ab-card > * { margin: 0; }
.ab-card--featured { border-color: var(--color-border-brand); box-shadow: var(--shadow-lg); }

/* Slot for a badge on the card's top edge (e.g. a „Nejoblíbenější“ tag). */
.ab-card__badge { position: absolute; top: 0; left: var(--space-6); transform: translateY(-50%); background: var(--color-surface); }

.ab-card__kicker { margin-bottom: calc(var(--space-2) * -1); font: var(--weight-medium) var(--fs-label)/var(--lh-snug) var(--font-body); color: var(--color-text-brand); }
.ab-card__title  { font: var(--weight-regular) var(--fs-title)/var(--lh-snug) var(--font-display); letter-spacing: var(--tracking-tight); color: var(--color-text); }
.ab-card__price  { font: var(--weight-light) var(--fs-body)/var(--lh-snug) var(--font-body); color: var(--color-text-muted); }
.ab-card__price strong { font-size: var(--fs-title); font-weight: var(--weight-medium); color: var(--color-text-brand); }
.ab-card__note   { font: var(--weight-regular) var(--fs-label)/var(--lh-snug) var(--font-body); color: var(--color-text-muted); }
.ab-card__body   { font: var(--weight-light) var(--fs-ui)/var(--lh-relaxed) var(--font-body); color: var(--color-text-muted); }

@media (max-width: 560px) {
  .ab-card { padding: var(--space-4); }
  .ab-card__badge { left: var(--space-4); }
}

/* ════ components/checklist/checklist.css ════ */
/* Checklist: list with a check mark in a small indigo tile. Text = UI 14 px. */

.ab-checklist { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); padding: 0; margin: 0; }
.ab-checklist li {
  position: relative;
  padding-left: var(--space-6);
  font: var(--weight-regular) var(--fs-ui)/var(--lh-relaxed) var(--font-body);
  color: var(--color-text);
}
.ab-checklist li::before {
  content: "";
  position: absolute; left: 0; top: calc((var(--fs-ui) * var(--lh-relaxed) - 12px) / 2);
  width: 12px; height: 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 6l2 2 4-4' stroke='%233D52D5' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ════ components/dotgrid/dotgrid.css ════ */
/* Dot grid: dots every 32 px, indigo 15 %. Section background or a canvas for a node network.
   Inside the grid, nodes (.ab-node) and lines (.ab-line) are placed in grid steps: style="--x: 3; --y: 2".
   --fade variant: dots fade out towards the edges (hero). */

.ab-dotgrid {
  --pitch: var(--grid-pitch);
  position: relative;
  isolation: isolate;
}
.ab-dotgrid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--color-graphic-dot) 1.7px, transparent 2.2px);
  background-size: var(--pitch) var(--pitch);
}
.ab-dotgrid--fade::before {
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Anything (tag, text) centred on a grid dot: class="ab-at" style="--x: 3; --y: 2". */
.ab-dotgrid > .ab-at {
  position: absolute;
  z-index: 2;
  left: calc((var(--x, 0) + .5) * var(--pitch));
  top: calc((var(--y, 0) + .5) * var(--pitch));
  translate: -50% -50%;
  white-space: nowrap;
}

/* ════ components/input/input.css ════ */
/* Input: form field. Wrapper (.ab-field), label (.ab-label from base), field (.ab-input for input and textarea),
   hint (.ab-hint), error ([aria-invalid]) and message after sending (.ab-msg). Field text = UI 14 px. */

.ab-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.ab-label__optional { font-weight: var(--weight-light); color: var(--color-text-muted); }

.ab-input {
  box-sizing: border-box;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: var(--border-width) solid var(--color-border-field);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font: var(--weight-regular) var(--fs-ui)/var(--lh-relaxed) var(--font-body);
  outline: none;
  transition: border-color var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard);
}
textarea.ab-input { resize: vertical; min-height: var(--space-24); }
.ab-input::placeholder { color: var(--color-text-muted); opacity: 1; }
.ab-input:hover { border-color: var(--color-text-muted); }
.ab-input:focus { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.ab-input:disabled { background: var(--color-surface-tint); border-color: var(--color-border); color: var(--color-text-muted); cursor: not-allowed; }
.ab-input[aria-invalid="true"] { border-color: var(--color-error); }

.ab-hint { font: var(--weight-regular) var(--fs-label)/var(--lh-snug) var(--font-body); color: var(--color-text-muted); }
.ab-hint--error { color: var(--color-error); }

/* Range slider (calculator). */
.ab-range { width: 100%; accent-color: var(--color-primary); }

/* Message after the form is sent. */
.ab-msg {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font: var(--weight-medium) var(--fs-ui)/var(--lh-relaxed) var(--font-body);
}
.ab-msg--success { padding-inline: 0; color: var(--color-text-brand); }
.ab-msg--error   { background: var(--color-error-bg); color: var(--color-error); }

/* ════ components/icon/icon.css ════ */
/* Icon: a set of line icons (1.3 px stroke, round caps). Takes its colour from the text (currentColor).
   Usage: <span class="ab-icon ab-icon--shield"></span>. Size 16 px, --sm 12 px, --lg 20 px.
   Tile (.ab-icon-tile): indigo-50 square with an indigo icon. 32 px, --sm 24 px, --lg 40 px. */

.ab-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  vertical-align: middle;
}
.ab-icon--sm { width: 12px; height: 12px; }
.ab-icon--lg { width: 20px; height: 20px; }

.ab-icon--check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black'%3E%3Cpath d='M2 7l3 3 6-6' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ab-icon--arrow { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ab-icon--trend { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13' fill='none' stroke='black'%3E%3Cpath d='M2 10l3-3 2 2 4-5' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ab-icon--clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black'%3E%3Ccircle cx='8' cy='8' r='6.5' stroke-width='1.3'/%3E%3Cpath d='M8 5v3.5L10 10' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ab-icon--mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black'%3E%3Crect x='1' y='3' width='14' height='10' rx='2' stroke-width='1.3'/%3E%3Cpath d='M1 5l7 5 7-5' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ab-icon--eye { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black'%3E%3Ccircle cx='9' cy='9' r='2.5' stroke-width='1.3'/%3E%3Cpath d='M1.5 9S4.2 3.5 9 3.5 16.5 9 16.5 9 13.8 14.5 9 14.5 1.5 9 1.5 9z' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ab-icon--globe { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black'%3E%3Ccircle cx='9' cy='9' r='6.5' stroke-width='1.3'/%3E%3Cpath d='M2.5 9h13M9 2.5c1.8 1.8 2.6 4 2.6 6.5S10.8 13.7 9 15.5C7.2 13.7 6.4 11.5 6.4 9S7.2 4.3 9 2.5z' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ab-icon--shield { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black'%3E%3Cpath d='M9 2l6 2.5v4.5c0 3.5-2.6 6-6 7-3.4-1-6-3.5-6-7V4.5L9 2z' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M6.5 9l1.8 1.8L11.8 7' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Icon tile. */
.ab-icon-tile {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-surface-brand);
  color: var(--color-text-brand);
}
.ab-icon-tile--sm { width: 24px; height: 24px; border-radius: var(--radius-sm); }
.ab-icon-tile--lg { width: 40px; height: 40px; }

/* ════ components/line/line.css ════ */
/* Line: a thin line between two grid dots (indigo 18 %).
   Used only inside a dot grid: style="--x1: 2; --y1: 1; --x2: 5; --y2: 3".
   The browser calculates the length and angle. */

.ab-line {
  --dx: calc(var(--x2, 0) - var(--x1, 0));
  --dy: calc(var(--y2, 0) - var(--y1, 0));
  position: absolute;
  left: calc((var(--x1, 0) + .5) * var(--pitch, 32px));
  top: calc((var(--y1, 0) + .5) * var(--pitch, 32px));
  width: calc(hypot(var(--dx), var(--dy)) * var(--pitch, 32px));
  height: 1px;
  margin-top: -.5px;
  background: var(--color-graphic-line);
  transform-origin: 0 50%;
  transform: rotate(atan2(var(--dy), var(--dx)));
  pointer-events: none;
}

/* ════ components/logo/logo.css ════ */
/* Logo: mark (three nodes in a triangle) + the word AmpliBot in DM Sans 500.
   Large (default): mark 28 px, text 18 px. Small (--small): 24 px and 16 px. White (--white). */

.ab-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font: var(--weight-medium) var(--fs-lead)/1 var(--font-body);
  text-decoration: none;
}
.ab-logo__mark { flex: none; width: 28px; height: 28px; color: var(--color-primary); }
.ab-logo--small { gap: var(--space-2); font-size: var(--fs-body); }
.ab-logo--small .ab-logo__mark { width: 24px; height: 24px; }
.ab-logo--white, .ab-logo--white .ab-logo__mark { color: var(--color-on-primary); }

/* ════ components/node/node.css ════ */
/* Node: a point in the network. Resting (default, 5 px, indigo 42 %), pulsing (--pulse, 8 px with rings)
   and hub (--hub, 12 px with larger rings). Rings only spread when the user hasn't turned off animations.
   Inside a dot grid it's placed in grid steps: style="--x: 3; --y: 2". */

.ab-node {
  --size: 5px;
  --reach: 3.5;
  position: relative;
  z-index: 1;
  display: inline-block;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--color-graphic-node);
}
.ab-node--pulse { --size: 8px; --reach: 3.5; background: var(--color-primary); }
.ab-node--hub   { --size: 12px; --reach: 3.7; background: var(--color-primary); }

/* Two rings that expand and fade (18 % and 10 %). */
.ab-node--pulse::before, .ab-node--pulse::after,
.ab-node--hub::before, .ab-node--hub::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
}

@keyframes ab-node-ring {
  from { transform: scale(1); opacity: var(--ring-opacity); }
  to   { transform: scale(var(--reach)); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .ab-node--pulse::before, .ab-node--hub::before { --ring-opacity: .18; animation: ab-node-ring 2.5s linear infinite; }
  .ab-node--pulse::after,  .ab-node--hub::after  { --ring-opacity: .10; animation: ab-node-ring 2.5s linear 1s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-node--pulse::before, .ab-node--hub::before { opacity: .18; transform: scale(2); }
}

/* Placement in a dot grid: dot x, y (counted from 0, top left). */
.ab-dotgrid > .ab-node {
  position: absolute;
  left: calc((var(--x, 0) + .5) * var(--pitch));
  top: calc((var(--y, 0) + .5) * var(--pitch));
  translate: -50% -50%;
}

/* ════ components/progress/progress.css ════ */
/* Progress bar: a thin 4 px bar with a label (Label) next to it. Fill = the --value variable (0–100 %). */

.ab-progress { display: flex; align-items: center; gap: var(--space-3); }
.ab-progress__bar { flex: 1; height: 4px; overflow: hidden; border-radius: var(--radius-full); background: var(--color-border); }
.ab-progress__bar::before {
  content: "";
  display: block;
  width: var(--value, 0%);
  height: 100%;
  background: var(--color-primary);
  transition: width var(--duration-base) var(--ease-standard);
}
.ab-progress__label { font: var(--weight-regular) var(--fs-label)/var(--lh-snug) var(--font-body); color: var(--color-text-muted); white-space: nowrap; }

/* ════ components/stat/stat.css ════ */
/* Stat: a small white box with a number (Lead 18 px) or an icon, and a label (Label 12 px). */

.ab-stat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font: var(--weight-medium) var(--fs-ui)/var(--lh-snug) var(--font-body);
  color: var(--color-text);
}
.ab-stat__icon {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-brand);
  color: var(--color-primary);
}
.ab-stat__icon svg { width: 12px; height: 12px; }
.ab-stat__value { display: block; font-size: var(--fs-lead); color: var(--color-text-brand); }
.ab-stat__label { display: block; font: var(--weight-regular) var(--fs-label)/var(--lh-snug) var(--font-body); color: var(--color-text-muted); }

/* ════ components/step/step.css ════ */
/* Step: "01 — Title" with the text indented under the title.
   Step list (.ab-steps), step (.ab-step), header (__head, __num, __dash, __title), text (__body)
   and a slot under the text (__extra) for anything else. Title = Title, text = Body. */

.ab-steps {
  --step-num: 16px;
  --step-dash: 20px;
  --step-indent: calc(var(--step-num) + var(--step-dash) + var(--space-2) * 2);
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--space-8);
}

.ab-step__head {
  display: grid;
  grid-template-columns: var(--step-num) var(--step-dash) 1fr;
  gap: var(--space-2);
  align-items: baseline;
  margin-bottom: var(--space-2);
}
.ab-step__num { font: var(--weight-medium) var(--fs-label)/1 var(--font-body); color: var(--color-text-brand); }
.ab-step__dash { height: 1px; align-self: center; background: var(--color-border); }
.ab-step__title { margin: 0; font: var(--weight-regular) var(--fs-title)/var(--lh-snug) var(--font-display); letter-spacing: var(--tracking-tight); color: var(--color-text); }

/* Text starts exactly under the title (hanging indent). */
.ab-step__body, .ab-step__extra { margin: 0; padding-left: var(--step-indent); max-width: var(--measure); }
.ab-step__body { font: var(--weight-light) var(--fs-body)/var(--lh-relaxed) var(--font-body); color: var(--color-text-muted); }
.ab-step__extra { margin-top: var(--space-3); }

@media (max-width: 560px) {
  .ab-step__body, .ab-step__extra { padding-left: 0; }
}

/* ════ components/tag/tag.css ════ */
/* Tag: short labels. One shape for everything: 4 px radius, Label 12 px text.
   Tag (.ab-tag), on white (.ab-tag--white) and status with a dot (.ab-status). */

.ab-tag, .ab-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: var(--space-1) var(--space-2);
  border: var(--border-width) solid var(--color-border-brand);
  border-radius: var(--radius-sm);
  background: var(--color-surface-brand);
  color: var(--color-text-brand);
  font: var(--weight-medium) var(--fs-label)/var(--lh-snug) var(--font-body);
}
.ab-tag--white { background: var(--color-surface); }

/* Status: a running process. The dot pulses (only when the user hasn't turned off animations). */
.ab-status__dot {
  position: relative;
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.ab-status__dot::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: var(--color-graphic-line);
}
.ab-status--done { border-color: var(--color-success-bg); background: var(--color-success-bg); color: var(--color-success); }
.ab-status--done .ab-status__dot { background: var(--color-success); }
.ab-status--done .ab-status__dot::after { display: none; }

@keyframes ab-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .ab-status__dot::after { animation: ab-pulse 2s ease-out infinite; }
}

/* ════ components/task/task.css ════ */
/* Task: a process row with a status icon, name (UI 500) and detail (Label).
   The list (.ab-tasks) joins the icons with a vertical line. States: --done, --active, default = waiting.
   CSS draws the icons, nothing goes into the HTML. */

.ab-tasks { --task-icon: 28px; list-style: none; margin: 0; padding: 0; }

.ab-task { position: relative; display: flex; gap: var(--space-3); padding: var(--space-2) 0; }
.ab-task:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--task-icon) / 2);
  top: calc(var(--space-2) + var(--task-icon));
  bottom: calc(var(--space-2) * -1);
  width: 1px;
  background: var(--color-border);
}

.ab-task__icon {
  flex: none;
  box-sizing: border-box;
  width: var(--task-icon); height: var(--task-icon);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-tint) center / 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Crect x='2' y='2' width='10' height='10' rx='2' stroke='%23B0B5D8' stroke-width='1.2'/%3E%3C/svg%3E");
  transition: background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.ab-task--done .ab-task__icon {
  border-color: var(--color-border-brand);
  background-color: var(--color-surface-brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2 7l3 3 6-6' stroke='%233D52D5' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ab-task--active .ab-task__icon {
  border-color: var(--color-primary);
  background-color: var(--color-surface-brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Ccircle cx='7' cy='7' r='2.5' fill='%233D52D5'/%3E%3Ccircle cx='7' cy='7' r='5' stroke='%233D52D5' stroke-dasharray='2 2'/%3E%3C/svg%3E");
}

.ab-task__name { font: var(--weight-medium) var(--fs-ui)/var(--lh-snug) var(--font-body); color: var(--color-text-subtle); }
.ab-task--done .ab-task__name, .ab-task--active .ab-task__name { color: var(--color-text); }
.ab-task__detail { font: var(--weight-regular) var(--fs-label)/var(--lh-snug) var(--font-body); color: var(--color-text-muted); }

/* ════ molecules/calculator/calculator.css ════ */
/* Calculator: an inputs card (sliders with a live value) and a result card (big serif number). */

.ab-calc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); max-width: 920px; align-items: start; }

.ab-calc__input + .ab-calc__input { margin-top: var(--space-6); }
.ab-calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.ab-calc__label { font: var(--weight-regular) var(--fs-ui)/var(--lh-snug) var(--font-body); color: var(--color-text); }
.ab-calc__value { font: var(--weight-medium) var(--fs-title)/var(--lh-snug) var(--font-body); color: var(--color-text-brand); }
.ab-calc__scale { display: flex; justify-content: space-between; margin-top: var(--space-1); font: var(--weight-regular) var(--fs-label)/var(--lh-snug) var(--font-body); color: var(--color-text-muted); }

.ab-calc__result { margin: 0; font: var(--weight-regular) var(--fs-display)/var(--lh-tight) var(--font-display); letter-spacing: var(--tracking-tight); color: var(--color-text-brand); }
.ab-calc__caption { margin: 0; font: var(--weight-light) var(--fs-ui)/var(--lh-relaxed) var(--font-body); color: var(--color-text-muted); }
.ab-calc__total { padding-top: var(--space-4); border-top: var(--border-width) solid var(--color-border); font: var(--weight-medium) var(--fs-lead)/var(--lh-snug) var(--font-body); color: var(--color-text); }
.ab-calc__total small { font: var(--weight-regular) var(--fs-ui)/var(--lh-snug) var(--font-body); color: var(--color-text-muted); }
.ab-calc .ab-btn { align-self: flex-start; }

@media (max-width: 900px) {
  .ab-calc { grid-template-columns: 1fr; }
}

/* ════ molecules/contact-form/contact-form.css ════ */
/* Contact form: stacked fields + button + message after sending. */

.ab-form { max-width: 440px; }
.ab-form > .ab-btn { margin-top: var(--space-1); align-self: flex-start; }
.ab-form > .ab-msg { margin-top: var(--space-4); }

/* ════ molecules/footer/footer.css ════ */
/* Footer: line on top, logo with a company line on the left, links on the right. */

.ab-footer { padding: var(--space-8) 0; border-top: var(--border-width) solid var(--color-border); background: var(--color-surface); }
.ab-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.ab-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.ab-footer__note { font: var(--weight-regular) var(--fs-label)/var(--lh-snug) var(--font-body); color: var(--color-text-muted); }
.ab-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.ab-footer__links a {
  font: var(--weight-regular) var(--fs-label)/var(--lh-snug) var(--font-body);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-standard);
}
.ab-footer__links a:hover { color: var(--color-primary); }
.ab-footer__links a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ════ molecules/nav/nav.css ════ */
/* Nav: 64 px top bar with a blurred, semi-transparent background.
   Made of the logo (.ab-logo), links (.ab-nav__links) and a compact button on the right. */

.ab-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--color-nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-width) solid var(--color-border);
}
.ab-nav--fixed { position: fixed; left: 0; right: 0; }
.ab-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }

.ab-nav__links { display: flex; gap: var(--space-8); margin: 0 0 0 auto; padding: 0; list-style: none; }
.ab-nav__links a {
  color: var(--color-text-muted);
  font: var(--weight-regular) var(--fs-ui)/var(--lh-snug) var(--font-body);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-standard);
}
.ab-nav__links a:hover, .ab-nav__links a[aria-current="page"] { color: var(--color-primary); }
.ab-nav__links a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: var(--radius-sm); }

@media (max-width: 900px) {
  .ab-nav__links { display: none; }
}

/* ════ molecules/node-list/node-list.css ════ */
/* Node list: the bullets are pulsing nodes joined by a vertical line.
   Item = node in a 32 px column + content (title Title, text Body). */

.ab-nodelist {
  --col: var(--grid-pitch);
  --gap: var(--space-12);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.ab-nodelist__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--col) 1fr;
  gap: var(--space-6);
}

/* Node centred in the column, level with the title's first line. */
.ab-nodelist__item > .ab-node {
  justify-self: center;
  margin-top: calc(var(--fs-title) * var(--lh-snug) / 2 - var(--size) / 2);
}

/* Vertical line from this node to the next item's node. */
.ab-nodelist__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(var(--col) / 2);
  top: calc(var(--fs-title) * var(--lh-snug) / 2);
  bottom: calc((var(--gap) + var(--fs-title) * var(--lh-snug) / 2) * -1);
  width: 1px;
  background: var(--color-graphic-line);
}

.ab-nodelist__item .ab-title { margin-bottom: var(--space-2); }

/* ════ molecules/package-card/package-card.css ════ */
/* Package card: card + tag as a badge + checklist + button.
   Only glue rules; the parts' look lives in the components. */

.ab-package > .ab-btn { width: fit-content; margin-top: var(--space-2); }
.ab-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); align-items: start; padding-top: var(--space-3); }

@media (max-width: 900px) {
  .ab-packages { grid-template-columns: 1fr; }
}

/* ════ molecules/process/process.css ════ */
/* Process with CTA: step list + line + timing sentence + button.
   .ab-cta-bar can also be used on its own under any content. */

.ab-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--color-border);
  font: var(--weight-light) var(--fs-body)/var(--lh-relaxed) var(--font-body);
  color: var(--color-text-muted);
}
.ab-cta-bar p { margin: 0; }
.ab-cta-bar strong { font-weight: var(--weight-medium); color: var(--color-text); }

/* ════ molecules/section-head/section-head.css ════ */
/* Section head: eyebrow + two-line headline (second line italic in indigo) + intro text.
   Left-aligned, max 640 px, 48 px below it to the section content. */

.ab-section-head { max-width: 640px; margin-bottom: var(--space-12); }
.ab-section-head > .ab-heading, .ab-section-head > .ab-display { margin-top: var(--space-3); }
.ab-section-head > .ab-lead, .ab-section-head > .ab-body { margin-top: var(--space-4); }

/* ════ molecules/tool-map/tool-map.css ════ */
/* Tool map: a hub node in the middle, lines to the tool tags around it.
   Area of 17 × 9 dots (544 × 288 px). On narrow screens it becomes a plain row of tags. */

.ab-toolmap {
  width: calc(17 * var(--grid-pitch));
  height: calc(9 * var(--grid-pitch));
  max-width: 100%;
}

@media (max-width: 600px) {
  .ab-toolmap { display: flex; flex-wrap: wrap; gap: var(--space-2); width: auto; height: auto; }
  .ab-toolmap::before, .ab-toolmap > .ab-line, .ab-toolmap > .ab-node { display: none; }
  .ab-toolmap > .ab-at { position: static; translate: none; }
}

/* ════ molecules/trust/trust.css ════ */
/* Trust item: icon tile + short title + text. A group of three side by side, no cards. */

.ab-trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.ab-trust { display: flex; flex-direction: column; gap: var(--space-3); max-width: 320px; }
.ab-trust__title { margin: 0; font: var(--weight-medium) var(--fs-body)/var(--lh-snug) var(--font-body); color: var(--color-text); }
.ab-trust__text { margin: 0; font: var(--weight-light) var(--fs-ui)/var(--lh-relaxed) var(--font-body); color: var(--color-text-muted); }

@media (max-width: 900px) {
  .ab-trust-list { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ════ molecules/workflow-card/workflow-card.css ════ */
/* Workflow card: a product demo instead of a photo. Card + status + tasks + progress bar + floating stats. */

.ab-workflow {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.ab-workflow__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ab-workflow__title { font: var(--weight-medium) var(--fs-ui)/var(--lh-snug) var(--font-body); color: var(--color-text); }
.ab-workflow > .ab-progress { padding-top: var(--space-4); border-top: var(--border-width) solid var(--color-border); }

/* Floating stats at the card's corners. */
.ab-workflow__float { position: absolute; z-index: 1; }
.ab-workflow__float--top    { top: calc(var(--space-8) * -1); right: calc(var(--space-6) * -1); }
.ab-workflow__float--bottom { bottom: calc(var(--space-12) * -1); left: calc(var(--space-6) * -1); }

@keyframes ab-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: no-preference) {
  .ab-workflow__float { animation: ab-float 4s var(--ease-loop) infinite; }
  .ab-workflow__float--bottom { animation-delay: 2s; }
}
@media (max-width: 560px) {
  .ab-workflow__float--top { right: calc(var(--space-2) * -1); }
  .ab-workflow__float--bottom { left: calc(var(--space-2) * -1); }
}
