/* ==========================================================
   almers.css  ·  the Almers brand kit as CSS
   Paste-ready. Change a colour here and the whole site follows.
   Fonts are self-hosted from /fonts (no Google requests, no cookies).
   ========================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* 1. Tokens ------------------------------------------------ */
:root {
  /* brand colours */
  --night: #1F2240;  /* Brand colour. The wordmark ink, dark bands and the light-theme primary button. */
  --lamp: #F4B740;  /* Brand accent: the 'light left on'. The wordmark dot, the 'Front desk on' status words and the button on dark bands. Never decoration. Never text on light grounds (1.6:1). */
  --dawn: #E6E3F1;  /* Soft lilac tint. Bot chat bubbles and quiet blocks on light pages. */
  --mist: #F5F4F8;  /* Off-white with a little night in it. Page background and the wordmark ink on dark. */

  /* roles: use these in your own CSS, not the brand names */
  --bg: #F5F4F8;  /* Page background. */
  --surface: #FFFFFF;  /* Cards, the price box, form fields. */
  --ink: #1F2240;  /* Body text and headings on bg, surface and bubble-bot (light 12.2:1 or more, dark 11.5:1 or more). */
  --ink-muted: #5B5E73;  /* Secondary text on bg, surface and bubble-bot (light 5.0:1 or more, dark 5.6:1 or more). */
  --line: #D9D8E3;  /* Hairline dividers and card edges. Decorative only, never the only edge of a control. */
  --field-border: #85879C;  /* Borders of inputs and outline buttons (3.2:1 or more on bg and surface in both themes). */
  --action: #1F2240;  /* Primary button fill. */
  --on-action: #FFFFFF;  /* Text on the action fill (light 15.4:1, dark 8.6:1). */
  --band: #1F2240;  /* Dark grounds: the hero stage behind the chat, the price section, the closing section and footer. */
  --on-band: #F5F4F8;  /* Text on band (14.1:1 light, 11.6:1 dark). */
  --on-band-muted: #B9BAD0;  /* Secondary text on band (8.1:1 light, 6.7:1 dark). */
  --bubble-bot: #E6E3F1;  /* The assistant's chat bubble. */
  --bubble-guest: #FFFFFF;  /* The visitor's chat bubble. */
  --focus: #1F2240;  /* Keyboard focus ring: solid 2px with a 2px gap. On bands it switches to lamp. */
  --error: #B3261E;  /* Form error text and borders (6.0:1 or more on bg and surface). */
  --shadow-lift: 0 1px 2px rgba(31,34,64,0.06), 0 8px 24px rgba(31,34,64,0.08);

  /* spacing and corners */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 96px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: Figtree, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

/* 2. Type styles ------------------------------------------ */
.text-display { font-family: var(--font-display); font-size: 72px; line-height: 72px; font-weight: 700; letter-spacing: -0.035em; }
.text-h1 { font-family: var(--font-display); font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.02em; }
.text-h2 { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.025em; }
.text-statement { font-family: var(--font-display); font-size: 52px; line-height: 56px; font-weight: 600; letter-spacing: -0.03em; }
.text-h3 { font-family: var(--font-display); font-size: 21px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.text-lead { font-family: var(--font-body); font-size: 19px; line-height: 30px; font-weight: 400; letter-spacing: 0; }
.text-body { font-family: var(--font-body); font-size: 17px; line-height: 27px; font-weight: 400; letter-spacing: 0; }
.text-small { font-family: var(--font-body); font-size: 14px; line-height: 21px; font-weight: 400; letter-spacing: 0; }
.text-label { font-family: var(--font-body); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; }

/* 3. Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 27px;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; color: inherit; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
img { max-width: 100%; height: auto; }

/* Page width and side gutter */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(var(--space-4), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-4), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--space-7); }
@media (min-width: 800px) { .section { padding-block: var(--space-8); } }
.stack { display: flex; flex-direction: column; gap: var(--space-5); }
.measure { max-width: 62ch; }
.muted { color: var(--ink-muted); }

/* Small capitalised label for metadata (a date, a status). Never above a heading. */
.label {
  font-size: 13px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
}
.tint { background: var(--surface); }
/* Phones get smaller display sizes; desktop sizes live in the type styles */
@media (max-width: 699px) {
  .text-h2 { font-size: 30px; line-height: 34px; }
  .text-statement { font-size: 32px; line-height: 36px; }
}

/* Browser surfaces in the palette */
::selection { background: var(--lamp); color: var(--night); }
html { caret-color: var(--ink); accent-color: var(--night); }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 10; background: var(--action); color: var(--on-action); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--space-4); }

/* 4. Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font-family: var(--font-body); font-size: 17px; line-height: 20px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: color-mix(in srgb, var(--action) 88%, var(--lamp)); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--field-border); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-lamp { background: var(--lamp); color: var(--night); }
.btn-lamp:hover { background: color-mix(in srgb, var(--lamp) 85%, #ffffff); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* 5. Dark band (full-width dark section) -------------------- */
.band { background: var(--band); color: var(--on-band); --focus: var(--lamp); }
.band .muted, .band .label { color: var(--on-band-muted); }
.band .btn-secondary { color: var(--on-band); border-color: var(--on-band-muted); }
.band .btn-secondary:hover { border-color: var(--on-band); }
/* Light boxes sitting on a band go back to normal text colours */
.band :is(.price, .chat, .card) { --focus: var(--ink); }
.band :is(.price, .chat, .card) .muted { color: var(--ink-muted); }

/* 6. Chat preview ------------------------------------------ */
/* The stage: the studio after closing time, with the light still on */
.stage {
  background: var(--band); color: var(--on-band); --focus: var(--lamp);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
  background-image: radial-gradient(120% 70% at 85% 0%, color-mix(in srgb, var(--lamp) 22%, transparent), transparent 60%);
  min-width: 0;
}
@media (min-width: 900px) { .stage { padding: var(--space-6); } }
.stage-status { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: space-between; white-space: nowrap; gap: var(--space-3); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-band-muted); }
.stage-status .on { color: var(--lamp); }

.stage .chat { box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 18px 40px rgba(0,0,0,0.3); border-color: transparent; }
.chat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  max-width: 420px; width: 100%;
  color: var(--ink);
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 21px;
}
.chat-head strong { font-weight: 600; }
.chat-status { color: var(--ink-muted); }
.bubble {
  max-width: 85%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 15px; line-height: 22px;
}
.bubble.guest { align-self: flex-end; background: var(--bubble-guest); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--bubble-bot); border-bottom-left-radius: 4px; }
.bubble time { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.chat-note { font-size: 13px; line-height: 18px; color: var(--ink-muted); text-align: center; }

/* 7. Cards, steps, lists ----------------------------------- */
.grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
  min-width: 0;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 56px; line-height: 56px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); margin-bottom: var(--space-2); font-variant-numeric: tabular-nums; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; }
.ticks li::before { content: ""; width: 7px; height: 12px; margin: 6px 0 0 6px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* 8. Price box --------------------------------------------- */
.price {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  padding: var(--space-6) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
  max-width: 520px; width: 100%;
}
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.price-amount { font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.price-offer { background: var(--dawn); color: var(--night); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 15px; line-height: 22px; }

/* 9. Questions (FAQ) --------------------------------------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; font-family: var(--font-display); font-size: 22px; line-height: 27px; }
.faq details[open] summary::after { content: "–" / ""; }
.faq details p { margin-top: calc(-1 * var(--space-2)); padding-bottom: var(--space-4); color: var(--ink-muted); }

/* 10. Header and footer ------------------------------------ */
.site-header { padding-block: var(--space-4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.wordmark { display: inline-block; line-height: 0; }
.wordmark img, .wordmark svg { height: 28px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 600px) { .nav a.wide { display: none; } .nav { gap: var(--space-4); } }
.nav a:hover { text-decoration: underline; }
.site-footer { font-size: 14px; line-height: 21px; padding-block: var(--space-7); }
.site-footer .wrap { display: grid; gap: var(--space-5); }
.legal { display: grid; gap: var(--space-2); color: #8B8DAB; } /* quieter than --on-band-muted, still 4.8:1 on night */
/* The closing brand moment: the wordmark across the full width */
.signoff { display: block; width: 100%; height: auto; margin-top: var(--space-6); }
.legal a { color: inherit; display: inline-block; padding-block: 4px; }
.signoff + .legal { text-align: center; justify-items: center; text-wrap: balance; }
.site-footer { border-top: 1px solid color-mix(in srgb, var(--on-band) 12%, transparent); }

/* 11. Forms (only if you add one later) -------------------- */
.field { display: grid; gap: var(--space-1); }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  padding: var(--space-3); min-height: 48px;
}
.field .error { color: var(--error); font-size: 14px; }
