/* ==========================================================================
   DaliTek Consulting Services — Design System
   Brand: "artisan business systems" — warm craft meets precise engineering.
   Palette: deep teal (structure) · warm cream (canvas) · terracotta (accent)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colours */
  --teal-900: #061E25;
  --teal-800: #08323C;
  --teal-700: #0B4A57;
  --teal-600: #106274;
  --teal-500: #17798E;
  --teal-300: #6FA9B6;
  --teal-100: #D7E7EA;

  --cream-50: #FDFBF7;
  --cream-100: #FBF8F3;
  --cream-200: #F3EDE3;
  --cream-300: #E8DFD0;

  --clay-700: #8E3F14;
  --clay-600: #C9662E;
  --clay-500: #DB7B3F;
  --clay-100: #F7E3D5;

  --ink-900: #14212A;
  --ink-700: #2C3B45;
  --ink-500: #55666F;
  --ink-400: #7A8A92;

  --sand-100: #F6F3EC;
  --line: #E2D9C9;
  --line-strong: #CFC3AE;

  /* Semantic roles — light (default) */
  --bg: var(--cream-100);
  --bg-elevated: var(--cream-50);
  --bg-sunken: var(--sand-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-faint: var(--ink-400);
  --heading: var(--teal-800);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --accent: var(--clay-600);
  --accent-hover: var(--clay-700);
  --accent-soft: var(--clay-100);
  --brand: var(--teal-700);
  --focus: #0E6E86;
  --focus-on-dark: #8FD3E2;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.38vw, 1.42rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.72vw, 1.85rem);
  --step-3: clamp(1.78rem, 1.52rem + 1.28vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.66rem + 2.2vw, 3.3rem);
  --step-5: clamp(2.5rem, 1.75rem + 3.6vw, 4.35rem);

  /* Space + shape */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 7rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(6, 30, 37, 0.05),
    0 2px 6px rgba(6, 30, 37, 0.04);
  --shadow: 0 2px 4px rgba(6, 30, 37, 0.04),
    0 12px 28px -8px rgba(6, 30, 37, 0.14);
  --shadow-lg: 0 4px 8px rgba(6, 30, 37, 0.05),
    0 28px 56px -16px rgba(6, 30, 37, 0.22);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Dark sections share one token set so components stay portable */
.on-dark {
  --bg: var(--teal-800);
  --bg-elevated: var(--teal-700);
  --bg-sunken: var(--teal-900);
  --text: #EAF2F3;
  --text-muted: #A9C2C8;
  --text-faint: #8AA6AE;
  --heading: var(--cream-100);
  --border: rgba(215, 231, 234, 0.16);
  --border-strong: rgba(215, 231, 234, 0.3);
  --accent: #E8945A;
  --accent-hover: #F2A56F;
  --accent-soft: rgba(232, 148, 90, 0.14);
  --brand: var(--teal-100);
  --focus: var(--focus-on-dark);
  color: var(--text);
  background-color: var(--bg);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

/* The `hidden` attribute must always win. Without this, any class rule that
   sets `display` (e.g. .form-status[data-state]) silently overrides it and
   leaves empty containers visible on the page. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--clay-700);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.on-dark a {
  color: var(--teal-100);
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
  line-height: 1.2;
}
h4 {
  font-size: var(--step-1);
  line-height: 1.25;
}

p,
li {
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.15em;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
}

::selection {
  background: var(--teal-700);
  color: var(--cream-100);
}

/* ---------- 3. Accessibility ---------- */
.sr-only {
  position: absolute;
  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;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--teal-700);
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--sunken {
  background: var(--bg-sunken);
}

.section--paper {
  background: var(--bg-elevated);
}

.section--dark {
  background: var(--teal-800);
  color: #EAF2F3;
}

.section--teal-deep {
  background: linear-gradient(160deg, var(--teal-800) 0%, var(--teal-900) 100%);
  color: #EAF2F3;
}

.section--ruled {
  border-top: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
  opacity: 0.7;
}

.on-dark .eyebrow {
  color: #E8945A;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
}

.section-head {
  max-width: 66ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

.section-head h2 + .lede {
  margin-top: 1rem;
}

.stack > * + * {
  margin-top: var(--stack-gap, 1.15rem);
}

.grid {
  display: grid;
  gap: clamp(1.15rem, 2.6vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 288px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--teal-700);
  --btn-fg: var(--cream-100);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
}

.btn--accent {
  --btn-bg: var(--clay-600);
  --btn-fg: #fff;
}

.btn--accent:hover {
  --btn-bg: var(--clay-700);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--teal-700);
  --btn-border: var(--border-strong);
}

.btn--ghost:hover {
  --btn-bg: rgba(11, 74, 87, 0.06);
  --btn-border: var(--teal-700);
}

.on-dark .btn--ghost,
.btn--ghost-light {
  --btn-fg: var(--cream-100);
  --btn-border: rgba(215, 231, 234, 0.36);
}

.btn--ghost-light:hover {
  --btn-bg: rgba(215, 231, 234, 0.12);
  --btn-border: var(--cream-100);
}

.btn--light {
  --btn-bg: var(--cream-100);
  --btn-fg: var(--teal-800);
}

.btn--light:hover {
  --btn-bg: #fff;
}

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: var(--step-0);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--clay-700);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  padding-bottom: 2px;
  transition: gap 0.16s var(--ease), border-color 0.16s var(--ease);
}

.text-link:hover {
  gap: 0.62rem;
  border-bottom-color: currentColor;
}

.text-link--light {
  color: var(--teal-100);
}

/* ---------- 6. Header + navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream-100) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 14px rgba(6, 30, 37, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--teal-800);
  flex: none;
}

.wordmark:hover {
  color: var(--teal-700);
}

.wordmark__mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
}

.wordmark__text {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1;
}

.wordmark__text em {
  font-style: normal;
  color: var(--clay-600);
}

.wordmark__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-primary a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.28rem;
  height: 2px;
  background: var(--clay-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav-primary a:hover {
  color: var(--teal-800);
  background: rgba(11, 74, 87, 0.05);
}

.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-primary a[aria-current="page"] {
  color: var(--teal-800);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--teal-800);
  background: var(--cream-50);
}

.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 10px;
  position: relative;
}

.nav-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease),
    top 0.24s var(--ease);
}

.nav-toggle__bars i:nth-child(1) {
  top: 0;
}
.nav-toggle__bars i:nth-child(2) {
  top: 4px;
}
.nav-toggle__bars i:nth-child(3) {
  top: 8px;
}

[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  top: 4px;
  transform: rotate(45deg);
}
[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}
[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  top: 4px;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--cream-100);
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--gutter) 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
  animation: drawer-in 0.26s var(--ease) both;
}

.nav-drawer[data-open="true"] {
  display: block;
}

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

.nav-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-drawer li {
  border-bottom: 1px solid var(--border);
}

.nav-drawer a.nav-drawer__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.15rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--teal-800);
  text-decoration: none;
}

.nav-drawer a.nav-drawer__link span:last-child {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav-drawer a.nav-drawer__link:hover,
.nav-drawer a.nav-drawer__link[aria-current="page"] {
  color: var(--clay-700);
}

.nav-drawer .btn {
  width: 100%;
}

.nav-drawer__meta {
  margin-top: 1.75rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.nav-drawer__meta a {
  font-weight: 600;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream-100);
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(3rem, 6vw, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(11, 74, 87, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(11, 74, 87, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(
    ellipse 90% 70% at 60% 0%,
    #000 10%,
    transparent 72%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.9rem 0.42rem 0.6rem;
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-700);
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay-600);
  flex: none;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--clay-500);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.hero h1 {
  margin: 1.4rem 0 0;
}

.hero h1 .accent {
  color: var(--clay-600);
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

.hero__lede {
  margin-top: 1.4rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 54ch;
}

.hero .btn-row {
  margin-top: 2rem;
}

.hero__meta {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__meta svg {
  color: var(--clay-600);
  flex: none;
}

/* Hero visual composition — assembled UI "specimen board" */
.hero-visual {
  position: relative;
  padding: clamp(0.5rem, 2vw, 1.25rem) 0;
}

.specimen {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.panel {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.panel__title {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.panel--chart {
  transform: rotate(-1.1deg);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 108px;
}

.chart-bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: var(--teal-100);
  position: relative;
  transform-origin: bottom;
  animation: bar-grow 0.9s var(--ease) both;
}

.chart-bars i:nth-child(1) {
  height: 34%;
  animation-delay: 0.05s;
}
.chart-bars i:nth-child(2) {
  height: 52%;
  animation-delay: 0.12s;
}
.chart-bars i:nth-child(3) {
  height: 41%;
  animation-delay: 0.19s;
}
.chart-bars i:nth-child(4) {
  height: 68%;
  animation-delay: 0.26s;
}
.chart-bars i:nth-child(5) {
  height: 78%;
  background: var(--teal-500);
  animation-delay: 0.33s;
}
.chart-bars i:nth-child(6) {
  height: 100%;
  background: var(--teal-700);
  animation-delay: 0.4s;
}

@keyframes bar-grow {
  from {
    transform: scaleY(0.05);
    opacity: 0.4;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.stat-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.stat-row div {
  flex: 1;
}

.stat-row b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--teal-800);
  line-height: 1.1;
}

.stat-row small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
  font-weight: 600;
}

.panel--stack {
  transform: rotate(1.3deg);
}

.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.mini-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--ink-700);
}

.mini-list .tick {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--clay-700);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.6rem;
  font-weight: 700;
}

.mini-list .pill {
  margin-left: auto;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-700);
}

.badge-float {
  position: absolute;
  background: var(--teal-800);
  color: var(--cream-100);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 2;
}

.badge-float--tl {
  top: -6px;
  left: -6px;
  animation: floaty 6s ease-in-out infinite;
}

.badge-float--br {
  bottom: -10px;
  right: -4px;
  background: var(--clay-600);
  animation: floaty 6s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* ---------- 8. Page hero (interior pages) ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.25rem);
  background: var(--cream-100);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 102, 46, 0.12), transparent 68%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  max-width: 74ch;
}

.page-hero h1 {
  font-size: var(--step-4);
}

.page-hero .lede {
  margin-top: 1.1rem;
}

.breadcrumb {
  font-size: var(--step--1);
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--border-strong);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ---------- 9. Cards + shared components ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-100);
  color: var(--teal-700);
  margin-bottom: 1.05rem;
}

.card__icon--clay {
  background: var(--accent-soft);
  color: var(--clay-700);
}

.card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: var(--step--1);
  line-height: 1.62;
}

.card__list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay-500);
}

.card__foot {
  margin-top: 1.4rem;
}

/* Numbered process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(1.15rem, 2.4vw, 1.6rem);
}

.step {
  counter-increment: step;
  position: relative;
  padding: clamp(1.35rem, 2.6vw, 1.85rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clay-600);
  letter-spacing: 0.02em;
}

.step h3 {
  font-size: var(--step-1);
}

.step p {
  color: var(--text-muted);
  font-size: var(--step--1);
}

.step__meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.checklist svg {
  color: var(--clay-600);
  flex: none;
  margin-top: 3px;
}

.checklist strong {
  color: var(--text);
  font-weight: 600;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.on-dark .tag {
  background: rgba(215, 231, 234, 0.08);
  color: var(--text-muted);
}

.badge-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--clay-700);
}

.on-dark .badge-label {
  background: rgba(232, 148, 90, 0.16);
  color: #F0A874;
}

.note {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-left: 3px solid var(--clay-500);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.note svg {
  flex: none;
  color: var(--clay-600);
  margin-top: 2px;
}

.on-dark .note {
  background: rgba(6, 30, 37, 0.4);
}

/* ---------- 10. Work preview cards ---------- */
.demo-card {
  display: grid;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
  align-content: start;
}

.demo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.demo-card__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--teal-900);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.demo-card__body {
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.demo-card__body h3 {
  font-size: var(--step-1);
}

.demo-card__body p {
  color: var(--text-muted);
  font-size: var(--step--1);
}

.demo-card__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.demo-card__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-faint);
}

/* Miniature browser chrome used inside previews */
.mini-browser {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.mini-browser__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: none;
}

.mini-browser__chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.mini-browser__url {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(234, 242, 243, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-browser__body {
  flex: 1;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(165deg, var(--teal-800), var(--teal-900));
  min-height: 0;
}

/* Abstract skeleton pieces shared by all previews */
.sk {
  border-radius: 4px;
  background: rgba(234, 242, 243, 0.16);
}

.sk--head {
  height: 11px;
  width: 62%;
  background: rgba(234, 242, 243, 0.72);
}

.sk--sub {
  height: 7px;
  width: 84%;
}

.sk--sub2 {
  height: 7px;
  width: 48%;
}

.sk--btn {
  height: 15px;
  width: 74px;
  border-radius: 999px;
  background: var(--clay-500);
}

.sk--teal {
  background: rgba(111, 169, 182, 0.4);
}

.sk-row {
  display: flex;
  gap: 0.45rem;
}

.sk-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sk-box {
  border-radius: 6px;
  background: rgba(234, 242, 243, 0.1);
  border: 1px solid rgba(234, 242, 243, 0.12);
}

.sk-flex {
  flex: 1;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.cal-grid span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(234, 242, 243, 0.12);
}

.cal-grid span.is-active {
  background: var(--clay-500);
}

.spark-row {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
}

.spark-row i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: rgba(111, 169, 182, 0.55);
  min-height: 4px;
}

.spark-row i.hi {
  background: var(--clay-500);
}

/* ---------- 11. Demo shell (interactive prototypes) ---------- */
.demo-page {
  background: var(--teal-900);
}

.demo-bar {
  background: var(--cream-100);
  border-bottom: 1px solid var(--border);
  padding-block: 0.9rem;
}

.demo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* This is an <h1> for document structure, so neutralise the browser's default
   heading margin and let the explicit size below win. */
.demo-bar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--teal-800);
  font-weight: 600;
}

.demo-bar__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
}

.demo-bar__back:hover {
  gap: 0.62rem;
}

.demo-stage {
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}

.demo-stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

/* The framed "screen" the prototype runs inside */
.screen {
  background: var(--cream-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(215, 231, 234, 0.22);
  min-width: 0;
}

.screen__chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  background: var(--sand-100);
  border-bottom: 1px solid var(--border);
}

.screen__chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  flex: none;
}

.screen__chrome i:nth-child(1) {
  background: #E0A08A;
}
.screen__chrome i:nth-child(2) {
  background: #E8CE9A;
}
.screen__chrome i:nth-child(3) {
  background: #A9CDB5;
}

.screen__url {
  margin-left: 0.5rem;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen__viewport {
  padding: clamp(1rem, 2.6vw, 1.85rem);
  min-height: 480px;
  color: var(--ink-900);
  background: var(--cream-100);
}

.screen__viewport h2,
.screen__viewport h3,
.screen__viewport h4 {
  color: var(--teal-800);
}

/* Control panel beside the screen */
.control-panel {
  background: rgba(6, 30, 37, 0.55);
  border: 1px solid rgba(215, 231, 234, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  color: #EAF2F3;
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}

.control-panel h2 {
  font-size: 1.05rem;
  color: var(--cream-100);
  margin-bottom: 0.5rem;
}

.control-panel > p {
  font-size: var(--step--1);
  color: #A9C2C8;
}

.control-panel hr {
  border-top-color: rgba(215, 231, 234, 0.16);
  margin-block: 1.15rem;
}

.control-panel__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8AA6AE;
  margin-bottom: 0.65rem;
  display: block;
}

.control-panel ol {
  font-size: var(--step--1);
  color: #C6D8DC;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.control-panel a {
  color: var(--teal-100);
}

/* Demo notice strip */
.demo-notice {
  background: rgba(232, 148, 90, 0.12);
  border: 1px solid rgba(232, 148, 90, 0.28);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: var(--step--1);
  color: #F0BE96;
  display: flex;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.demo-notice svg {
  flex: none;
  margin-top: 2px;
}

/* ---------- 12. Shared in-demo UI components ---------- */
.ui-app {
  font-size: 0.92rem;
  line-height: 1.55;
}

.ui-app h4 {
  font-family: var(--font-display);
  color: var(--teal-800);
}

.ui-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  background: var(--teal-800);
  color: var(--cream-100);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.ui-topbar__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.ui-topbar__nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ui-topbar__nav button {
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(234, 242, 243, 0.78);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.ui-topbar__nav button:hover {
  background: rgba(234, 242, 243, 0.12);
  color: #fff;
}

.ui-topbar__nav button[aria-current="true"] {
  background: var(--cream-100);
  color: var(--teal-800);
  font-weight: 600;
}

.ui-view[hidden] {
  display: none;
}

.ui-view {
  animation: view-in 0.32s var(--ease) both;
}

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

.ui-panel {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.ui-panel--pad {
  padding: 1.25rem;
}

.ui-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 0.4rem;
}

.ui-input,
.ui-select,
.ui-textarea {
  width: 100%;
  padding: 0.62rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink-900);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.ui-input:focus,
.ui-select:focus,
.ui-textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(14, 110, 134, 0.16);
}

.ui-textarea {
  min-height: 88px;
  resize: vertical;
}

.ui-field + .ui-field {
  margin-top: 0.85rem;
}

.ui-field-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ui-help {
  font-size: 0.74rem;
  color: var(--ink-500);
  margin-top: 0.3rem;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  background: var(--teal-700);
  color: var(--cream-100);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease),
    box-shadow 0.16s var(--ease), color 0.16s var(--ease);
}

.ui-btn:hover {
  background: var(--teal-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--cream-100);
}

.ui-btn--accent {
  background: var(--clay-600);
  color: #fff;
}

.ui-btn--accent:hover {
  background: var(--clay-700);
  color: #fff;
}

.ui-btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--teal-700);
}

.ui-btn--ghost:hover {
  background: rgba(11, 74, 87, 0.06);
  color: var(--teal-800);
}

.ui-btn--sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
}

.ui-choice-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ui-choice {
  text-align: left;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-50);
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
}

.ui-choice:hover {
  border-color: var(--teal-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ui-choice strong {
  display: block;
  font-size: 0.88rem;
  color: var(--teal-800);
}

.ui-choice span {
  font-size: 0.76rem;
  color: var(--ink-500);
}

.ui-choice[aria-pressed="true"],
.ui-choice[aria-checked="true"] {
  border-color: var(--teal-600);
  background: var(--teal-100);
  box-shadow: inset 0 0 0 1px var(--teal-600);
}

.ui-metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.ui-metric {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
}

.ui-metric small {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.ui-metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--teal-800);
  margin-top: 0.2rem;
}

.ui-metric.is-good b {
  color: #1F6B49;
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.ui-table th,
.ui-table td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.ui-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  position: sticky;
  top: 0;
  background: var(--cream-100);
}

.ui-table tbody tr:hover {
  background: rgba(11, 74, 87, 0.035);
}

.ui-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-700);
  white-space: nowrap;
}

.ui-status--amber {
  background: #FBEBD3;
  color: #8A5A12;
}
.ui-status--green {
  background: #DCEFE4;
  color: #1F6B49;
}
.ui-status--grey {
  background: #ECEAE5;
  color: var(--ink-500);
}

.ui-progress {
  height: 7px;
  border-radius: 999px;
  background: var(--cream-300);
  overflow: hidden;
}

.ui-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal-600);
  transition: width 0.5s var(--ease);
}

.ui-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 130px;
}

.ui-bar-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--teal-100);
  position: relative;
  transition: height 0.45s var(--ease), background-color 0.2s var(--ease);
  min-height: 3px;
}

.ui-bar-chart i.hi {
  background: var(--clay-500);
}

.ui-bar-labels {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.ui-bar-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.62rem;
  color: var(--ink-500);
  font-weight: 600;
}

.ui-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--cream-300);
  outline-offset: 6px;
}

.ui-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-700);
  border: 3px solid var(--cream-50);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.ui-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-700);
  border: 3px solid var(--cream-50);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.ui-slider-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ui-slider-row output {
  flex: none;
  min-width: 4.6rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-800);
}

.ui-callout {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.ui-callout svg {
  flex: none;
  margin-top: 2px;
}

.ui-callout--win {
  background: #DCEFE4;
  color: #18583B;
  border: 1px solid #B4DCC6;
}

.ui-callout--warn {
  background: #FBEBD3;
  color: #7A4E10;
  border: 1px solid #EFD3A3;
}

.ui-callout--info {
  background: var(--teal-100);
  color: var(--teal-800);
  border: 1px solid #B9D5DA;
}

.ui-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.ui-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.ui-timeline li {
  position: relative;
  padding: 0 0 1.15rem 1.7rem;
  border-left: 2px solid var(--border);
  margin-left: 6px;
}

.ui-timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.ui-timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream-50);
  border: 2px solid var(--border-strong);
}

.ui-timeline li.is-done::before {
  background: var(--teal-600);
  border-color: var(--teal-600);
}

.ui-timeline li.is-active::before {
  background: var(--clay-500);
  border-color: var(--clay-500);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.ui-timeline strong {
  display: block;
  font-size: 0.88rem;
  color: var(--teal-800);
}

.ui-timeline span {
  font-size: 0.78rem;
  color: var(--ink-500);
}

.ui-slot-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.ui-slot {
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-50);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-800);
  text-align: center;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease),
    transform 0.16s var(--ease);
}

.ui-slot:hover:not(:disabled) {
  border-color: var(--teal-500);
  transform: translateY(-2px);
}

.ui-slot[aria-pressed="true"] {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--cream-100);
}

.ui-slot:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.ui-steps-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.ui-steps-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-300);
  transition: background-color 0.2s var(--ease), width 0.2s var(--ease);
}

.ui-steps-dots span.is-active {
  background: var(--clay-500);
  width: 22px;
  border-radius: 999px;
}

.ui-steps-dots span.is-done {
  background: var(--teal-500);
}

.ui-split {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}

.ui-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.ui-search {
  flex: 1 1 180px;
  min-width: 0;
}

.ui-scroll {
  max-height: 300px;
  overflow: auto;
}

.ui-confirm {
  text-align: center;
  padding: 1.5rem 1rem;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.ui-confirm__mark {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #DCEFE4;
  color: #1F6B49;
  display: grid;
  place-items: center;
  animation: pop 0.42s var(--ease) both;
}

@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ui-receipt {
  width: 100%;
  max-width: 340px;
  text-align: left;
  background: var(--cream-50);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.ui-receipt dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.83rem;
  margin: 0;
}

.ui-receipt dt {
  color: var(--ink-500);
}

.ui-receipt dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--teal-800);
}

/* Concept landing page inside demo 01 */
.concept-site {
  --cs-bg: #12232B;
  --cs-fg: #F4EFE6;
  --cs-accent: #E0A26A;
  background: var(--cs-bg);
  color: var(--cs-fg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244, 239, 230, 0.14);
}

.concept-site h2,
.concept-site h3,
.concept-site h4 {
  color: var(--cs-fg);
  font-family: var(--font-display);
}

.concept-site__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.concept-site__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.concept-site__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(244, 239, 230, 0.72);
}

.concept-site__hero {
  padding: clamp(1.35rem, 4vw, 2.6rem) clamp(1.15rem, 3vw, 2rem);
  display: grid;
  gap: 1.5rem;
  background: radial-gradient(
      ellipse at 80% 0%,
      rgba(224, 162, 106, 0.18),
      transparent 62%
    ),
    linear-gradient(170deg, #162C35, #0E1E25);
}

.concept-site__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-accent);
}

.concept-site__title {
  font-size: clamp(1.5rem, 4.4vw, 2.35rem);
  line-height: 1.1;
  margin: 0.6rem 0 0.7rem;
}

.concept-site__sub {
  color: rgba(244, 239, 230, 0.76);
  font-size: 0.9rem;
  max-width: 46ch;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease),
    color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.cs-btn:hover {
  transform: translateY(-2px);
}

.cs-btn--solid {
  background: var(--cs-accent);
  color: #22150B;
}

.cs-btn--solid:hover {
  background: #EFB683;
  color: #22150B;
}

.cs-btn--outline {
  border-color: rgba(244, 239, 230, 0.32);
  color: var(--cs-fg);
}

.cs-btn--outline:hover {
  background: rgba(244, 239, 230, 0.1);
  color: var(--cs-fg);
}

.concept-site__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.9rem;
  padding: 1.15rem clamp(1.15rem, 3vw, 2rem);
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.concept-site__stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cs-accent);
}

.concept-site__stats small {
  font-size: 0.7rem;
  color: rgba(244, 239, 230, 0.66);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.concept-site__body {
  padding: clamp(1.15rem, 3vw, 1.9rem);
  display: grid;
  gap: 1rem;
}

.cs-service-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.cs-service {
  padding: 0.9rem;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(244, 239, 230, 0.04);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.cs-service:hover {
  border-color: rgba(224, 162, 106, 0.5);
  background: rgba(224, 162, 106, 0.08);
  transform: translateY(-3px);
}

.cs-service strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.cs-service span {
  font-size: 0.77rem;
  color: rgba(244, 239, 230, 0.68);
}

.cs-service__price {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cs-accent);
}

.cs-form {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(244, 239, 230, 0.05);
}

.cs-form input,
.cs-form select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 239, 230, 0.22);
  background: rgba(9, 20, 25, 0.6);
  color: var(--cs-fg);
  font-size: 0.86rem;
}

.cs-form input::placeholder {
  color: rgba(244, 239, 230, 0.42);
}

.cs-form input:focus,
.cs-form select:focus {
  outline: none;
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(224, 162, 106, 0.22);
}

.cs-form option {
  color: #14232A;
}

/* ---------- 13. Key figures / stats ---------- */
.facts {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
}

.fact {
  padding-top: 1.15rem;
  border-top: 2px solid var(--clay-500);
}

.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--heading);
  line-height: 1.05;
}

.fact span {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* ---------- 14. Comparison (before / after) ---------- */
.compare__toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.compare__toggle button {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.compare__toggle button[aria-selected="true"] {
  background: var(--teal-700);
  color: var(--cream-100);
}

.compare__panel[hidden] {
  display: none;
}

.compare__panel {
  animation: view-in 0.34s var(--ease) both;
}

.workflow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.workflow-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: var(--step--1);
}

.workflow-list li.is-bad {
  border-left: 3px solid #C4573F;
}

.workflow-list li.is-good {
  border-left: 3px solid #2F7F58;
}

.workflow-list .wf-tag {
  flex: none;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- 15. ROI calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.calc__field + .calc__field {
  margin-top: 1.45rem;
}

.calc__field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.calc__field-head label {
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--heading);
}

.calc__field-head output {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clay-700);
}

.calc__range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--teal-600) 0%,
    var(--teal-600) var(--fill, 40%),
    var(--cream-300) var(--fill, 40%),
    var(--cream-300) 100%
  );
}

.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-700);
  border: 3px solid var(--cream-50);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.calc__range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-700);
  border: 3px solid var(--cream-50);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.calc__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.3rem;
}

.calc__results {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.8vw, 1.85rem);
  box-shadow: var(--shadow);
}

.calc__primary {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.calc__primary b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 1;
  color: var(--teal-800);
  font-variant-numeric: tabular-nums;
}

.calc__primary span {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.calc__breakdown {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--step--1);
}

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

.calc__row dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--heading);
}

.calc__assump {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calc__assump h3 {
  font-size: 0.86rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.55rem;
}

.calc__assump ul {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.1rem;
}

/* ---------- 16. Contact form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.form-fieldset + .form-fieldset {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-legend {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.4rem;
  display: block;
}

.form-label .req {
  color: var(--clay-600);
  margin-left: 2px;
}

.form-label .opt {
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  color: var(--ink-900);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(14, 110, 134, 0.18);
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: #B23A22;
  box-shadow: 0 0 0 3px rgba(178, 58, 34, 0.14);
}

.form-help {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-error {
  font-size: 0.78rem;
  font-weight: 600;
  color: #A6331C;
  margin-top: 0.35rem;
  display: none;
}

.form-error[data-show="true"] {
  display: block;
}

.form-status {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: none;
  gap: 0.75rem;
  font-size: var(--step--1);
}

.form-status[data-state] {
  display: flex;
}

.form-status[data-state="success"] {
  background: #DCEFE4;
  border: 1px solid #B4DCC6;
  color: #18583B;
}

.form-status[data-state="error"] {
  background: #FBE4DE;
  border: 1px solid #EFC3B8;
  color: #8E2F19;
}

.form-status[data-state="sending"] {
  background: var(--teal-100);
  border: 1px solid #B9D5DA;
  color: var(--teal-800);
}

.form-status svg {
  flex: none;
  margin-top: 2px;
}

.form-status__body {
  min-width: 0;
}

.form-status strong {
  display: block;
  margin-bottom: 0.2rem;
}

.form-status a {
  color: inherit;
  font-weight: 600;
}

.contact-aside {
  display: grid;
  gap: 1.15rem;
}

.contact-card {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.6vw, 1.7rem);
}

.contact-card--dark {
  background: linear-gradient(165deg, var(--teal-800), var(--teal-900));
  color: #EAF2F3;
  border-color: rgba(215, 231, 234, 0.18);
}

.contact-card--dark h3,
.contact-card--dark h4 {
  color: var(--cream-100);
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-all;
}

.contact-card--dark .mail-link {
  color: #EAF2F3;
}

.contact-card--dark .mail-link:hover {
  color: #F0A874;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: #A9C2C8;
  padding-block: clamp(2.75rem, 5vw, 4rem) 1.75rem;
  border-top: 1px solid rgba(215, 231, 234, 0.12);
}

.footer-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
}

.footer-brand .wordmark {
  color: var(--cream-100);
}

.footer-brand .wordmark__sub {
  color: #7D9AA2;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: var(--step--1);
  max-width: 34ch;
  color: #9DB6BC;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cream-100);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  font-size: var(--step--1);
}

.footer-col a {
  color: #A9C2C8;
  text-decoration: none;
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}

.footer-col a:hover {
  color: var(--cream-100);
  padding-left: 4px;
}

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.35rem;
  border-top: 1px solid rgba(215, 231, 234, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #A9C2C8;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--cream-100);
  text-decoration: underline;
}

/* ---------- 18. Long-form content (privacy etc.) ---------- */
.prose {
  max-width: 74ch;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin-bottom: 1.05rem;
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.4rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
}

.prose th {
  background: var(--bg-sunken);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--heading);
}

/* ---------- 19. PWA install prompt ---------- */
.install-prompt {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  z-index: 120;
  max-width: 420px;
  margin-inline: auto;
  background: var(--cream-50);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.95rem 1.05rem;
  display: none;
  gap: 0.85rem;
  align-items: flex-start;
  animation: drawer-in 0.3s var(--ease) both;
}

.install-prompt[data-show="true"] {
  display: flex;
}

.install-prompt__icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
}

.install-prompt strong {
  display: block;
  font-size: var(--step--1);
  color: var(--heading);
}

.install-prompt p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.install-prompt__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.install-prompt__close {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.install-prompt__close:hover {
  background: var(--bg-sunken);
  color: var(--heading);
}

/* ---------- 20. Reveal animation ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

html.js [data-reveal][data-reveal-delay="1"] {
  transition-delay: 0.07s;
}
html.js [data-reveal][data-reveal-delay="2"] {
  transition-delay: 0.14s;
}
html.js [data-reveal][data-reveal-delay="3"] {
  transition-delay: 0.21s;
}

/* ---------- 21. Utility ---------- */
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 2.75rem;
}
.center {
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.text-muted {
  color: var(--text-muted);
}
.hide-mobile {
  display: initial;
}

/* ---------- 22. Responsive ---------- */
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

@media (max-width: 1080px) {
  .demo-stage__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .control-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .nav-primary,
  .header-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 64px;
  }
  .wordmark__text {
    font-size: 1.18rem;
  }
  .hero__meta {
    gap: 0.4rem 1.15rem;
  }
  .screen__viewport {
    padding: 0.9rem;
    min-height: 420px;
  }
  .btn-row .btn {
    flex: 1 1 auto;
  }
  .footer-bottom {
    justify-content: flex-start;
  }
  /* The framed concept site carries its own nav; let it wrap onto its own line
     rather than squeezing seven links into one row. */
  .concept-site__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .screen__viewport:has(.concept-site) {
    padding: 0;
  }
}

@media (max-width: 400px) {
  .wordmark__sub {
    display: none;
  }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .chart-bars i {
    transform: none;
    opacity: 1;
  }
}

/* ---------- 24. Forced colours / print ---------- */
@media (prefers-contrast: more) {
  :root {
    --text-muted: var(--ink-700);
    --border: var(--line-strong);
  }
}

/* ---------- 25. Referral partners ---------- */

/* The quiet attribution notice shown to referred visitors. */
.referral-note {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  z-index: 60;
  max-width: min(92vw, 44rem);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.8rem 0.7rem 1.05rem;
  border-radius: 999px;
  background: var(--teal-800);
  color: #EAF2F3;
  font-size: var(--step--1);
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(6, 30, 37, 0.28);
}

.referral-note__close {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 50%;
  background: rgba(234, 242, 243, 0.14);
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.referral-note__close:hover,
.referral-note__close:focus-visible {
  background: rgba(234, 242, 243, 0.28);
}

/* Two-column kit: the form beside the result. */
.kit-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 900px) {
  .kit-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

.kit-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.kit-output:focus {
  outline: none;
}

.kit-step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.kit-step__num {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--clay-500);
  color: #fff;
  font-weight: 700;
  font-size: var(--step--1);
}

.kit-step__title {
  margin: 0;
  font-size: var(--step-2);
}

.kit-subhead {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0.35rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--teal-800);
}

/* Copy-to-clipboard row */
.copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.copy-row .form-input {
  min-width: 0;
}

.copy-row .btn {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .copy-row {
    flex-direction: column;
  }
}

.affiliate-code-line {
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.affiliate-code {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.02em;
  letter-spacing: 0.04em;
  color: var(--teal-800);
}

/* ---- The printable card ---- */
.qr-card {
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #FBF8F3;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.qr-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.qr-card__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-800);
  line-height: 1.15;
}

.qr-card__brand span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78em;
  color: var(--text-muted);
}

.qr-card__tag {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay-600);
}

.qr-card__body {
  display: grid;
  gap: clamp(0.85rem, 2.5vw, 1.4rem);
  padding: 1.1rem 0 1rem;
  align-items: center;
}

@media (min-width: 620px) {
  .qr-card__body {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.qr-card__code {
  flex: none;
}

.qr-holder {
  width: 168px;
  height: 168px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 6px;
}

.qr-holder svg {
  display: block;
  width: 100%;
  height: auto;
}

.qr-holder__pending {
  margin: 0;
  padding: 0.5rem;
  font-size: 0.72rem;
  text-align: center;
  color: var(--text-muted);
}

.qr-card__pitch {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--teal-800);
  line-height: 1.35;
}

.qr-card__name {
  margin: 0;
  font-weight: 600;
  color: var(--clay-700);
}

.qr-card__org {
  margin: 0.1rem 0 0;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.qr-card__ref {
  margin: 0.75rem 0 0;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.qr-card__ref strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--teal-800);
  letter-spacing: 0.04em;
}

.qr-card__foot {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* ---- Terms list ---- */
.terms-list {
  margin: 0;
}

.terms-list dt {
  font-weight: 600;
  color: var(--teal-800);
  margin-top: 1rem;
}

.terms-list dt:first-child {
  margin-top: 0;
}

.terms-list dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

/* ---- Enrolment band ---- */
.enrol-card {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
}

@media (min-width: 780px) {
  .enrol-card {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
  }
}

.enrol-card__side {
  border-left: 3px solid var(--clay-500);
  padding-left: 1.1rem;
}

.enrol-card__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.enrol-card__mail {
  font-size: var(--step-1);
  font-weight: 600;
}

.enrol-card__hint {
  margin: 0.5rem 0 0;
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* ---- Footer partner call-to-action ---- */
.footer-partner-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(234, 242, 243, 0.1);
  border: 1px solid rgba(234, 242, 243, 0.16);
  font-size: var(--step--1);
  color: rgba(234, 242, 243, 0.82);
}

.footer-partner-cta a {
  font-weight: 600;
  color: #F4EFE6;
  white-space: nowrap;
}

@media print {
  .site-header,
  .site-footer,
  .install-prompt,
  .skip-link,
  .demo-stage,
  .referral-note {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }

  /* Printing the affiliate page should produce just the card. */
  .qr-card {
    display: block !important;
    border: 1px solid #999;
    break-inside: avoid;
    page-break-inside: avoid;
    max-width: 22cm;
  }

  .qr-card__tag,
  .qr-card__brand,
  .affiliate-code {
    color: #000 !important;
  }

  body.printing-card .kit-layout > .kit-card:not(.kit-output) {
    display: none !important;
  }

  body.printing-card > *:not(header):not(main) {
    display: none !important;
  }

  body.printing-card main > section:not(#kit),
  body.printing-card .kit-output > *:not(.qr-card):not(.kit-step) {
    display: none !important;
  }
}

