/* ==========================================================================
   Chadget — Coming soon
   Tokens first. Everything below them uses tokens only, so a restyle
   or a new theme happens in one place.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Brand (sampled from assets/logos) */
  --brand-sky: #068be0;
  --brand-indigo: #5a62ec;
  --brand-navy: #000a44;

  /* Page (follows the visitor's light/dark setting) */
  --page: #f6f5f1;
  --text-strong: var(--brand-navy);
  --text: #2a3052;
  --text-muted: #5b617e;
  --text-accent: #4a52df;
  --line: rgba(0, 10, 68, 0.1);
  --line-strong: rgba(0, 10, 68, 0.2);
  --focus-ring: #068be0;
  --selection: #d9dcfc;
  --success: #11795a;
  --success-soft: #e2f3eb;

  /* Perk cards and their illustrations */
  --card-bg: #ffffff;
  --card-line: rgba(0, 10, 68, 0.08);
  --card-shadow: 0 1px 2px rgba(0, 10, 68, 0.04), 0 12px 32px -18px rgba(0, 10, 68, 0.18);
  --art-bg: #f1f2f7;
  --art-surface: #ffffff;
  --art-surface-muted: #e6e8f2;
  --art-accent-soft: #e5e7fd;
  --art-line: rgba(0, 10, 68, 0.1);
  --art-shadow: rgba(0, 10, 68, 0.14);

  /* Banner (always dark: it sits on the photo) */
  --banner-bg: #010208;
  --banner-text-strong: #ffffff;
  --banner-text: rgba(255, 255, 255, 0.8);
  --banner-text-muted: rgba(255, 255, 255, 0.62);
  --banner-accent: #8ccfff;
  --banner-line: rgba(255, 255, 255, 0.16);
  --banner-line-strong: rgba(255, 255, 255, 0.3);
  --banner-fill: rgba(255, 255, 255, 0.07);
  --banner-fill-hover: rgba(255, 255, 255, 0.1);
  --banner-field-autofill: #10131f;
  --banner-success: #6ee7b7;
  --banner-success-soft: rgba(110, 231, 183, 0.16);
  --banner-danger: #ffb4ab;
  --banner-focus: #7cc8ff;
  --banner-scrim: 1, 2, 8; /* rgb of --banner-bg, for the overlay gradients */
  --banner-overlay: rgba(2, 4, 22, 0.45); /* navy-tinted dark wash over the whole photo */
  --banner-photo-filter: blur(8px) saturate(1.2) contrast(1.06); /* smooths the upscaled JPEG */
  --banner-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Primary button (white on the dark banner) */
  --btn-bg: #ffffff;
  --btn-bg-hover: #e6e8ff;
  --btn-bg-active: #d3d7ff;
  --btn-text: var(--brand-navy);

  /* Contact button (dark fill, blue outline with a soft blue glow) */
  --contact-fill: #06070d;
  --contact-fill-hover: #0c0e1c;
  --contact-fill-active: #13162a;
  --contact-border: #3f6dff;
  --contact-glow: rgba(63, 109, 255, 0.4);

  /* Channels: icon backgrounds use the platforms' own colours; --ch-* tint lines, dots and glows */
  --ch-messenger: #4f8cff;
  --ch-whatsapp: #25d366;
  --ch-instagram: #f0457a;
  --ch-facebook: #3b82f6;
  --ch-website: #8b90ff;
  --flow-line: rgba(255, 255, 255, 0.2);
  --flow-surface: rgba(8, 10, 24, 0.6);
  --flow-surface-strong: rgba(8, 10, 24, 0.78);
  --flow-row-line: rgba(255, 255, 255, 0.06);

  /* Type */
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-xs: 0.75rem;     /* 12 */
  --text-sm: 0.875rem;    /* 14 */
  --text-md: 0.9375rem;   /* 15 */
  --text-base: 1rem;      /* 16 */
  --text-lg: 1.125rem;    /* 18 */
  --text-xl: 1.25rem;     /* 20 */
  --text-lead: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);   /* 17 → 20 */
  --text-display: clamp(2.25rem, 1.2rem + 3.2vw, 3.75rem);    /* 36 → 60 */

  /* Space (4px base) */
  --space-1: 0.25rem;  /* 4  */
  --space-2: 0.5rem;   /* 8  */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */

  /* Shape */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur: 240ms;

  /* Layout */
  --container: 75rem;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2rem);
  --inset: clamp(0.5rem, 0.2rem + 0.8vw, 0.875rem); /* gap around the banner */
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #070b24;
    --text-strong: #f3f4fb;
    --text: #c9cce0;
    --text-muted: #9297b5;
    --text-accent: #a3a8ff;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);
    --focus-ring: #4fb3f6;
    --selection: #2b3290;
    --success: #4cc99a;
    --success-soft: rgba(76, 201, 154, 0.16);

    --card-bg: #0d1334;
    --card-line: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -18px rgba(0, 0, 0, 0.6);
    --art-bg: #121a40;
    --art-surface: #1a2252;
    --art-surface-muted: #232c63;
    --art-accent-soft: #2a3178;
    --art-line: rgba(255, 255, 255, 0.1);
    --art-shadow: rgba(0, 0, 0, 0.45);
  }
}

/* ==========================================================================
   Base
   ========================================================================== */

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

input,
button {
  font: inherit;
  color: inherit;
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--selection);
  color: var(--text-strong);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.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;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  flex: 1;
}

/* The inset is added so page content lines up with content inside the banner */
.container {
  width: 100%;
  max-width: calc(var(--container) + (var(--gutter) + var(--inset)) * 2);
  margin-inline: auto;
  padding-inline: calc(var(--gutter) + var(--inset));
}

/* ==========================================================================
   Header (floats over the banner)
   ========================================================================== */

.site-header {
  position: absolute;
  top: var(--inset);
  right: 0;
  left: 0;
  z-index: 2;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.brand {
  display: inline-flex;
  border-radius: var(--radius-sm);
}

.brand:focus-visible {
  outline-color: var(--banner-focus);
}

.brand img {
  width: auto;
  height: 28px;
}

/* Contact button: blue outline on a dark fill (opens an email) */
.contact-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.5rem;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--contact-border);
  border-radius: var(--radius);
  background: var(--contact-fill);
  box-shadow:
    0 0 18px -6px var(--contact-glow),
    inset 0 0 14px -8px var(--contact-glow);
  color: var(--banner-text-strong);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow var(--dur) var(--ease-out);
}

.contact-arrow {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease-out);
}

@media (hover: hover) {
  .contact-btn:hover {
    background: var(--contact-fill-hover);
    box-shadow:
      0 0 24px -4px var(--contact-glow),
      inset 0 0 16px -8px var(--contact-glow);
  }

  .contact-btn:hover .contact-arrow {
    transform: translateX(3px);
  }
}

.contact-btn:active {
  background: var(--contact-fill-active);
}

.contact-btn:focus-visible {
  outline-color: var(--banner-focus);
}

@media (min-width: 40rem) {
  .brand img {
    height: 32px;
  }

  .contact-btn {
    min-height: 2.75rem;
    padding-inline: var(--space-5);
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   Banner
   ========================================================================== */

.banner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(40rem, calc(100svh - var(--inset) * 2), 64rem);
  margin: var(--inset);
  padding-block: 8rem var(--space-8); /* top: room for the header */
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: var(--banner-bg);
  color: var(--banner-text);
  color-scheme: dark;
  text-align: center;
}

/* Layer 1: the photo. A light blur smooths the stretched JPEG (the swirls are
   soft light anyway, so it never reads as blurry). The layer bleeds 40px past
   the edges so the blur's faded rim stays hidden. */
.banner::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -2;
  background: url("../thumbs/banner-bg.jpg") center 30% / cover no-repeat;
  filter: var(--banner-photo-filter);
}

/* Layer 2, top to bottom: grain · edge vignette · text scrims · dark wash */
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--banner-grain),
    radial-gradient(ellipse 115% 90% at 50% 55%, rgba(var(--banner-scrim), 0) 50%, rgba(var(--banner-scrim), 0.6) 100%),
    radial-gradient(ellipse 60% 48% at 50% 42%, rgba(var(--banner-scrim), 0.6), rgba(var(--banner-scrim), 0) 72%),
    linear-gradient(to bottom, rgba(var(--banner-scrim), 0.8) 0%, rgba(var(--banner-scrim), 0.3) 45%, rgba(var(--banner-scrim), 0) 78%),
    linear-gradient(var(--banner-overlay), var(--banner-overlay));
}

@media (max-width: 40rem) {
  .banner {
    padding-block: 7rem var(--space-6);
  }
}

/* Portrait screens: the photo is cropped tall, so the bright swirl would sit
   behind the form. Keep the scrim dark through the content, light below it. */
@media (max-width: 40rem), (orientation: portrait) {
  .banner::before {
    background-position: center bottom;
  }

  .banner::after {
    background:
      var(--banner-grain),
      radial-gradient(ellipse 130% 90% at 50% 60%, rgba(var(--banner-scrim), 0) 50%, rgba(var(--banner-scrim), 0.55) 100%),
      linear-gradient(to bottom, rgba(var(--banner-scrim), 0.88) 0%, rgba(var(--banner-scrim), 0.78) 58%, rgba(var(--banner-scrim), 0) 88%),
      linear-gradient(var(--banner-overlay), var(--banner-overlay));
  }
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow ---------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: baseline; /* the dots sit on the text baseline, like full stops */
  justify-content: center;
  gap: 3px;
  margin-bottom: var(--space-5);
  color: var(--banner-accent);
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem); /* 17 → 20 */
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* "Coming soon..." — three dots that pulse in turn */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.animate .loading-dots span {
  animation: dot-pulse 1.4s ease-in-out infinite;
}

.animate .loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.animate .loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Headline --------------------------------------------------------------- */

.hero-title {
  max-width: 12em;
  color: var(--banner-text-strong);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Lead ------------------------------------------------------------------- */

.lead {
  max-width: 44rem;
  margin-top: var(--space-5);
  color: var(--banner-text);
  font-size: var(--text-lead);
  line-height: 1.55;
  text-wrap: balance;
}

/* ==========================================================================
   Signup form (on the dark banner)
   ========================================================================== */

.signup {
  width: 100%;
  max-width: 30rem;
  margin-top: var(--space-6);
  text-align: left;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.signup-input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 var(--space-4);
  border: 1px solid var(--banner-line-strong);
  border-radius: var(--radius);
  background: var(--banner-fill);
  color: var(--banner-text-strong);
  font-size: var(--text-base);
  caret-color: var(--banner-text-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.signup-input::placeholder {
  color: var(--banner-text-muted);
  opacity: 1;
}

.signup-input:-webkit-autofill {
  -webkit-text-fill-color: var(--banner-text-strong);
  -webkit-box-shadow: 0 0 0 100px var(--banner-field-autofill) inset;
}

.signup-input:focus-visible {
  outline: none;
  border-color: var(--banner-focus);
  box-shadow: 0 0 0 1px var(--banner-focus);
}

.signup-input[aria-invalid="true"],
.signup-input[aria-invalid="true"]:focus-visible {
  border-color: var(--banner-danger);
  box-shadow: 0 0 0 1px var(--banner-danger);
}

.signup-input:read-only {
  cursor: progress;
}

@media (hover: hover) {
  .signup-input:hover:not(:focus-visible):not([aria-invalid="true"]) {
    background-color: var(--banner-fill-hover);
  }
}

/* From ~480px the field and button share one frame */
@media (min-width: 30rem) {
  .signup-row {
    flex-direction: row;
    gap: var(--space-1);
    padding: 5px;
    border: 1px solid var(--banner-line-strong);
    border-radius: calc(var(--radius) + 5px);
    background: var(--banner-fill);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition:
      border-color var(--dur-fast) var(--ease-out),
      box-shadow var(--dur-fast) var(--ease-out),
      background-color var(--dur-fast) var(--ease-out);
  }

  .signup-input,
  .signup-input:focus-visible,
  .signup-input[aria-invalid="true"],
  .signup-input[aria-invalid="true"]:focus-visible,
  .signup-input:hover:not(:focus-visible):not([aria-invalid="true"]) {
    height: 48px;
    padding-inline: var(--space-3);
    border: 0;
    box-shadow: none;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .signup-row:has(.signup-input:focus-visible) {
    border-color: var(--banner-focus);
    box-shadow: 0 0 0 1px var(--banner-focus);
  }

  .signup-row:has(.signup-input[aria-invalid="true"]) {
    border-color: var(--banner-danger);
    box-shadow: 0 0 0 1px var(--banner-danger);
  }

  .signup .btn {
    height: 48px;
  }
}

@media (min-width: 30rem) and (hover: hover) {
  .signup-row:hover:not(:has(.signup-input:focus-visible)) {
    background-color: var(--banner-fill-hover);
  }
}

/* Button ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 52px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: var(--text-base);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-arrow {
  transition: transform var(--dur) var(--ease-out);
}

.btn-spinner {
  display: none;
  animation: spin 0.8s linear infinite;
}

@media (hover: hover) {
  .btn:hover:not(:disabled) {
    background: var(--btn-bg-hover);
  }

  .btn:hover:not(:disabled) .btn-arrow {
    transform: translateX(3px);
  }
}

.btn:active:not(:disabled) {
  background: var(--btn-bg-active);
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--banner-focus);
  outline-offset: 2px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.btn.is-loading {
  cursor: progress;
}

.btn.is-loading .btn-arrow {
  display: none;
}

.btn.is-loading .btn-spinner {
  display: block;
}

/* Message line (reserves its height so nothing jumps) --------------------- */

.signup-message {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 1.25rem;
  margin-top: var(--space-2);
  color: var(--banner-danger);
  font-size: var(--text-sm);
  line-height: 1.45;
  text-align: left;
}

.signup-message:not(:empty)::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm0 3.25a.9.9 0 0 1 .9.9v3.4a.9.9 0 0 1-1.8 0v-3.4a.9.9 0 0 1 .9-.9Zm0 7.6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm0 3.25a.9.9 0 0 1 .9.9v3.4a.9.9 0 0 1-1.8 0v-3.4a.9.9 0 0 1 .9-.9Zm0 7.6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fine-print {
  margin-top: var(--space-1);
  color: var(--banner-text-muted);
  font-size: var(--text-sm);
}

/* Success ---------------------------------------------------------------- */

.signup-success {
  display: flex;
  gap: var(--space-4);
  width: 100%;
  max-width: 30rem;
  margin-top: var(--space-7);
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--banner-line);
  border-radius: var(--radius-lg);
  background: var(--banner-fill);
  text-align: left;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: rise 420ms var(--ease-out) both;
}

.signup-success-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--banner-success-soft);
  color: var(--banner-success);
}

.signup-success-icon svg {
  width: 18px;
  height: 18px;
}

.signup-success-title {
  color: var(--banner-text-strong);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
}

.signup-success-title:focus {
  outline: none;
}

.signup-success-text {
  margin-top: var(--space-1);
  color: var(--banner-text);
  font-size: var(--text-md);
  overflow-wrap: anywhere;
}

.signup-success-text strong {
  color: var(--banner-text-strong);
  font-weight: 600;
}

.link-btn {
  margin-top: var(--space-3);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--banner-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:focus-visible {
  outline-color: var(--banner-focus);
}

@media (hover: hover) {
  .link-btn:hover {
    text-decoration-thickness: 2px;
  }
}

/* ==========================================================================
   Channel flow: every channel runs into one inbox (bottom of the banner)
   main.js draws the lines between the chips and the inbox and plays
   the messages in. Without JS it is a still picture.
   ========================================================================== */

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

[data-channel="messenger"] { --ch: var(--ch-messenger); }
[data-channel="whatsapp"]  { --ch: var(--ch-whatsapp); }
[data-channel="instagram"] { --ch: var(--ch-instagram); }
[data-channel="facebook"]  { --ch: var(--ch-facebook); }
[data-channel="website"]   { --ch: var(--ch-website); }

.flow {
  --row-h: 56px;

  position: relative;
  display: grid;
  grid-template-areas: "left inbox right";
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(4rem, 9vw, 8rem);
  width: 100%;
  max-width: 62rem;
  margin-top: var(--space-8);
  text-align: left;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.flow-path {
  fill: none;
  stroke: var(--flow-line);
  stroke-width: 1.25;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
  transition: stroke 400ms var(--ease-out);
}

.flow-path.is-active {
  stroke: color-mix(in srgb, var(--ch) 80%, white);
  animation: dash-flow 0.7s linear infinite;
}

.flow-dot {
  opacity: 0;
  transition: opacity 150ms var(--ease-out);
}

.flow-dot.is-moving {
  opacity: 1;
}

.flow-dot-glow {
  fill: var(--ch);
  opacity: 0.45;
}

.flow-dot-core {
  fill: #ffffff;
}

/* Channel chips ---------------------------------------------------------- */

.flow-channels {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.flow-channels--left {
  grid-area: left;
  align-items: flex-end;
}

.flow-channels--right {
  grid-area: right;
  align-items: flex-start;
}

/* Icon-only channel buttons (decorative; the flow is read out as one image) */
.channel {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--banner-line);
  border-radius: 50%;
  background: var(--flow-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    border-color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}

.channel .ci {
  width: 36px;
  height: 36px;
}

.channel .ci svg {
  width: 19px;
  height: 19px;
}

.channel .ci-facebook svg {
  width: 100%;
  height: 100%;
}

.channel.is-active {
  border-color: color-mix(in srgb, var(--ch) 70%, white);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--ch) 22%, transparent),
    0 0 32px color-mix(in srgb, var(--ch) 45%, transparent);
  transform: scale(1.06);
}

/* Platform icons in a coloured circle */
.ci {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
}

.ci svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.ci-messenger { background: linear-gradient(45deg, #0a7cff 0%, #a033ff 60%, #ff5c87 100%); }
.ci-whatsapp  { background: #25d366; }
.ci-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ci-website   { background: var(--brand-indigo); }

/* The Facebook mark is already a circle: show it full size, blue on white */
.ci-facebook {
  background: #ffffff;
  color: #0866ff;
}

.ci-facebook svg {
  width: 100%;
  height: 100%;
}

.ci-sm {
  width: 24px;
  height: 24px;
}

.ci-sm svg {
  width: 13px;
  height: 13px;
}

.ci-sm.ci-facebook svg {
  width: 100%;
  height: 100%;
}

/* Inbox card ------------------------------------------------------------- */

.inbox {
  position: relative;
  z-index: 1;
  grid-area: inbox;
  width: 22rem;
  overflow: hidden;
  border: 1px solid var(--banner-line);
  border-radius: var(--radius-lg);
  background: var(--flow-surface-strong);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.inbox-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--banner-line);
  font-size: 0.8125rem;
}

.inbox-head img {
  width: 16px;
  height: 16px;
}

.inbox-title {
  color: var(--banner-text-strong);
  font-weight: 600;
}

.inbox-meta {
  margin-left: auto;
  color: var(--banner-text-muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.inbox-list {
  position: relative;
  height: calc(var(--row-h) * 3);
  overflow: hidden;
  padding: 0;
  list-style: none;
}

.inbox-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  height: var(--row-h);
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--flow-row-line);
}

/* Brief tint in the channel's colour when a message lands */
.inbox-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ch) 22%, transparent), transparent 75%);
  opacity: 0;
  pointer-events: none;
}

.inbox-row.is-new {
  animation: row-in 500ms var(--ease-out) both;
}

.inbox-row.is-new::before {
  animation: row-glow 2400ms ease-out both;
}

.row-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.row-name,
.row-text {
  overflow: hidden;
  font-size: 0.8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.row-name {
  color: var(--banner-text-strong);
  font-weight: 600;
}

.row-text {
  color: var(--banner-text-muted);
}

/* "New" and "AI replied" share one cell, so swapping them never shifts the row */
.row-status {
  display: grid;
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.row-status > * {
  grid-area: 1 / 1;
  justify-self: end;
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}

.status-new {
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: rgba(124, 200, 255, 0.14);
  color: var(--banner-accent);
}

.status-done {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--banner-success);
  opacity: 0;
  transform: translateY(4px);
}

.status-done svg {
  width: 13px;
  height: 13px;
}

.inbox-row.is-replied .status-new {
  opacity: 0;
  transform: translateY(-4px);
}

.inbox-row.is-replied .status-done {
  opacity: 1;
  transform: none;
}

/* Narrower screens: icon-only chips in a row above the inbox */
@media (max-width: 56rem) {
  .flow {
    grid-template-areas:
      "left right"
      "inbox inbox";
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: var(--space-2);
    row-gap: var(--space-8);
    max-width: 26rem;
  }

  .flow-channels {
    flex-direction: row;
    gap: var(--space-2);
  }

  /* The two groups meet in the middle so all five icons read as one row */
  .flow-channels--left {
    justify-content: flex-end;
  }

  .flow-channels--right {
    justify-content: flex-start;
  }

  .channel {
    width: 50px;
    height: 50px;
  }

  .channel .ci {
    width: 32px;
    height: 32px;
  }

  .channel .ci svg {
    width: 17px;
    height: 17px;
  }

  .inbox {
    width: 100%;
  }
}

@media (max-width: 24rem) {
  .inbox-meta {
    display: none;
  }
}

/* ==========================================================================
   Early access perks
   ========================================================================== */

.perks {
  padding-block: var(--space-8);
}

/* One sentence as the heading, in three tones: strong → accent → muted */
.section-statement {
  max-width: 30rem;
  margin: 0 auto var(--space-7);
  color: var(--text-strong);
  font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.tone-accent {
  color: var(--text-accent);
}

.tone-muted {
  color: var(--text-muted);
}

.perk-list {
  display: grid;
  gap: var(--space-5);
  max-width: 30rem;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

.perk-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  border: 1px solid var(--card-line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

/* Illustration panel */
.perk-art {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--art-bg);
}

.perk-art svg {
  display: block;
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
}

.perk-body {
  padding: var(--space-5) var(--space-3) var(--space-3);
}

.perk-title {
  color: var(--text-strong);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.perk-text {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: 1.6;
}

@media (min-width: 60rem) {
  .perks {
    padding-block: var(--space-9);
  }

  .section-statement {
    max-width: 32em;
    margin-inline: 0;
  }

  .perk-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
}

/* Illustration parts: colours come from tokens, so they follow light/dark */
.art-surface        { fill: var(--art-surface); }
.art-surface-muted  { fill: var(--art-surface-muted); }
.art-bg             { fill: var(--art-bg); }
.art-ink            { fill: var(--text-strong); }
.art-muted          { fill: var(--text-muted); }
.art-accent         { fill: var(--brand-indigo); }
.art-accent-soft    { fill: var(--art-accent-soft); }
.art-accent-text    { fill: var(--text-accent); }
.art-on-accent,
.art-white          { fill: #ffffff; }
.art-success        { fill: var(--success); }
.art-success-soft   { fill: var(--success-soft); }
.art-fb             { fill: #0866ff; }
.art-divider        { stroke: var(--art-line); stroke-width: 1; }
.art-stroke-ink     { stroke: var(--text-strong); }
.art-accent-line    { fill: none; stroke: var(--brand-indigo); stroke-width: 1.5; stroke-dasharray: 3 4; }
.art-shadow         { flood-color: var(--art-shadow); flood-opacity: 1; }
.art-semibold       { font-weight: 600; }
.art-bold           { font-weight: 700; letter-spacing: -0.01em; }
.art-heavy          { font-weight: 800; letter-spacing: -0.03em; }
.art-confetti-sky    { fill: #38bdf8; }
.art-confetti-indigo { fill: #818cf8; }
.art-confetti-green  { fill: #34d399; }
.art-confetti-amber  { fill: #fbbf24; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-5) var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Motion
   Gated behind .animate, which is only set when the visitor has not
   asked for reduced motion.
   ========================================================================== */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dot-pulse {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -16;
  }
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes row-glow {
  0% { opacity: 0; }
  12% { opacity: 1; }
  100% { opacity: 0; }
}

.animate .banner::before {
  animation: settle 1600ms var(--ease-out) both;
}

.animate .banner-content > * {
  animation: rise 700ms var(--ease-out) both;
}

.animate .banner-content > :nth-child(1) { animation-delay: 150ms; }
.animate .banner-content > :nth-child(2) { animation-delay: 220ms; }
.animate .banner-content > :nth-child(3) { animation-delay: 290ms; }
.animate .banner-content > :nth-child(n + 4) { animation-delay: 360ms; }

/* Reduced motion: the floor, in case anything slips through */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
