/* Motion runs whatever the device's reduced-motion setting: the owner's call, 15 Nov 2026 (Windows with
   Animation effects off showed a half-still site). What used to wait for no-preference is @media all. */
/* ==========================================================================
   base.css: fonts, tokens, reset, type, layout primitives, buttons.
   HeartBeat App marketing site and help centre.

   The world is a poster series. HeartBeat prints the poster; the visitor's
   app is the headliner. Every poster uses two inks and no more: HeartBeat
   purple, and ONE second ink (--ink2) chosen per poster with data-ink.
   ========================================================================== */

/* ---------- Archivo: one variable family, condensed to wide ------------------
   Bills are set at 62% width and 900 weight; reading text at 100%/400.
   Self-hosted (Latin subset), no CDN. Licence: ../fonts/Archivo-OFL.txt */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  /* HeartBeat purple: the wordmark's own colour, and the field every home and
     platform poster is printed on. */
  --purple: #7a528b;
  --purple-deep: #2a1533;
  --purple-ink: #5d3a6d;          /* purple that reads as text on paper */
  --on-purple: #ffffff;
  --on-purple-2: #f3eaf6;         /* secondary text on the purple field */

  /* Second inks. One per poster, never two. Bright enough to read as large
     type on the deep and purple fields; used as a FILL (with deep ink on top)
     on paper. */
  --ink-marigold: #f5c451;
  --ink-vermilion: #ff7a57;
  --ink-teal: #4fd1b5;
  --ink-cobalt: #93a6ff;
  --ink-rose: #ff94b4;
  --ink2: var(--ink-marigold);
  --on-ink2: #2a1533;

  /* Paper: a cool, faintly violet stock. Never cream. */
  --paper: #f4f2f7;
  --paper-2: #e9e5ef;
  --sheet: #ffffff;
  --ink: #1f1225;
  --ink-soft: #4b3c53;
  --rule: rgba(31, 18, 37, 0.16);
  --rule-strong: rgba(31, 18, 37, 0.32);
  --shadow-float: 0 14px 24px -14px rgba(10, 6, 12, 0.35);

  /* Type */
  --f: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-lead: clamp(1.125rem, 0.4vw + 1.02rem, 1.3125rem);
  --fs-h3: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --fs-h2: clamp(2.25rem, 4.2vw + 1rem, 4.25rem);
  --fs-bill: clamp(3.4rem, 8vw + 0.6rem, 7.25rem);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  --band: clamp(4.5rem, 9vw, 8.5rem);
  --r: 10px;
  --r-sm: 6px;
  --r-screen: 26px;
  --header-h: 68px;
  --hb-header-h: var(--header-h);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Legacy names, still read by help.css. Mapped onto the new world. ---- */
  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --text: var(--ink);
  --text-strong: var(--ink);
  --muted: var(--ink-soft);
  --dim: var(--ink-soft);
  --line: var(--rule);
  --line-strong: var(--rule-strong);
  --brand-ink: var(--purple-ink);
  --brand-400: var(--purple);
  --accent-2: var(--purple);
  --surface-1: var(--sheet);
  --surface-2: var(--paper-2);
  --surface-flat: var(--sheet);
  --surface-hover: var(--paper-2);
  --menu-bg: var(--sheet);
  --shadow: var(--shadow-float);
  --grad-brand: var(--purple);
  --lime: #3f7d3a;
  --cyan: #1d6f86;

  color-scheme: light;
}

/* Dark: the paper goes to night, the purple field deepens so it still reads as
   a field rather than as a glow, and the inks keep their colour. */
:root[data-theme='dark'] {
  --purple: #6a4579;
  --purple-deep: #1f0f27;
  --purple-ink: #d6b6e4;
  --paper: #140b18;
  --paper-2: #1d1223;
  --sheet: #22152a;
  --ink: #f2ebf5;
  --ink-soft: #c9bccf;
  --rule: rgba(242, 235, 245, 0.16);
  --rule-strong: rgba(242, 235, 245, 0.34);
  --shadow-float: 0 14px 24px -14px rgba(0, 0, 0, 0.6);
  --lime: #8fd18a;
  --cyan: #7fd3e8;
  color-scheme: dark;
}

/* Per-poster second ink.

   --ink2-type is the same ink when it is TYPE on the purple field (the hero's last slogan
   line, an emphasised phrase in a bill, a big station number). At full strength vermilion
   measures 2.4:1 on the purple and cobalt 2.7:1, under the 3:1 that large type needs, so
   those are lightened just enough to clear it with a little room; marigold and teal already
   do. Fills, bars and dots keep --ink2, and on the deep field every ink reads as it is. */
:root { --ink2-type: var(--ink-marigold); }
[data-ink='marigold'] { --ink2: var(--ink-marigold); --ink2-type: var(--ink-marigold); }
[data-ink='vermilion'] { --ink2: var(--ink-vermilion); --ink2-type: color-mix(in srgb, var(--ink-vermilion) 70%, #fff); }
[data-ink='teal'] { --ink2: var(--ink-teal); --ink2-type: var(--ink-teal); }
[data-ink='cobalt'] { --ink2: var(--ink-cobalt); --ink2-type: color-mix(in srgb, var(--ink-cobalt) 84%, #fff); }
[data-ink='rose'] { --ink2: var(--ink-rose); --ink2-type: color-mix(in srgb, var(--ink-rose) 94%, #fff); }
/* HeartBeat Studio's own lilac, from its mark. Used only on Studio's posters. */
[data-ink='lilac'] { --ink2: #c3a6d8; --ink2-type: color-mix(in srgb, #c3a6d8 90%, #fff); }

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media all { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
table { border-collapse: collapse; }

/* Browser surfaces carry the design too. */
::selection { background: var(--ink2); color: var(--on-ink2); }
:focus-visible { outline: 2px solid var(--purple-ink); outline-offset: 3px; border-radius: 3px; }
.on-field :focus-visible, .poster--purple :focus-visible, .poster--deep :focus-visible { outline-color: var(--ink2); }
html { scrollbar-color: var(--rule-strong) var(--paper); }
input, textarea { caret-color: var(--purple-ink); }

/* ==========================================================================
   Type
   ========================================================================== */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

/* The bill: heavy, tight, sentence case. Only the home slogan is set in the
   extra-condensed capitals (see .hero .bill in site.css); everywhere else
   capitals made the site read as a film or gig poster, not a product. */
.bill {
  font-size: var(--fs-bill);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.bill > span { display: block; }
.bill em, .h2 em { font-style: normal; color: var(--ink2); }
.poster--purple .bill em, .poster--purple .h2 em { color: var(--ink2-type); }

.h2, .prose h2 {
  font-size: var(--fs-h2);
  font-weight: 850;
  font-stretch: 82%;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h3, .prose h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); max-width: 58ch; text-wrap: pretty; }
.lead.lead--strong { color: inherit; font-weight: 650; }
.small { font-size: var(--fs-sm); }
.fine { font-size: var(--fs-xs); color: var(--ink-soft); }
p { text-wrap: pretty; }
strong, b { font-weight: 700; }

/* Labels that sit on a poster's rules: condensed caps at reading size. */
.caps {
  font-stretch: 75%;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Tabular figures wherever numbers line up. */
.num, table, time { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink2); color: var(--on-ink2); padding: 0.6rem 1rem; font-weight: 700; border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   The main button: the one bright thing on any screen. Book a demo lives
   here. (Class kept as .ticket; it is a plain solid button, no stub.)
   ========================================================================== */
.ticket {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  min-height: 3.25rem;
  background: var(--ink2);
  color: var(--on-ink2);
  text-decoration: none;
  font-weight: 750;
  font-stretch: 92%;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 16px -10px rgba(10, 6, 12, 0.45);
  transition: transform 0.35s var(--ease), filter 0.2s, box-shadow 0.35s var(--ease);
}
.ticket-main { display: flex; align-items: center; padding: 0.7rem 0.35rem 0.7rem 1.4rem; }
.ticket-stub {
  display: flex; align-items: center; justify-content: center;
  width: 2.9rem;
}
.ticket-stub svg { width: 1.2rem; height: 1.2rem; transition: transform 0.35s var(--ease); }
.ticket:hover { transform: translateY(-2px); filter: saturate(1.08); text-decoration: none; }
.ticket:hover .ticket-stub svg { transform: translateX(3px); }
.ticket:active { transform: translateY(0); }
.ticket:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.poster--purple .ticket:focus-visible, .poster--deep .ticket:focus-visible { outline-color: var(--on-purple); }
.ticket-sm { min-height: 2.5rem; font-size: 0.95rem; }
.ticket-sm .ticket-main { padding: 0.4rem 0.2rem 0.4rem 1rem; }
.ticket-sm .ticket-stub { width: 2.2rem; }
.ticket-sm .ticket-stub svg { width: 1rem; height: 1rem; }

/* Quiet actions: an underlined text link with an arrow. */
.quiet {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}
.quiet:hover { text-decoration-thickness: 2px; }
.quiet svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.quiet:hover svg { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* Plain buttons, used by the header and the help centre. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0.45rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-strong);
  background: transparent; color: var(--ink);
  font-weight: 650; font-size: var(--fs-sm); text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--paper-2); border-color: var(--ink-soft); text-decoration: none; }
.btn-primary { background: var(--purple); border-color: var(--purple); color: var(--on-purple); }
.btn-primary:hover { background: var(--purple-deep); border-color: var(--purple-deep); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 2.25rem; padding: 0.35rem 0.85rem; }
.btn-block { width: 100%; }
