/* =====================================================================
   BOOSTY: site components on top of the starter (tokens/base/motion).
   Phone + chat, live demo, dashboard charts, calculator, packages,
   enquiry form. Colours always come from tokens.css.
   ===================================================================== */

/* ---- Logo (wordmark as a mask, so it takes any colour) --------------- */
.logo {
  display: inline-block; flex: none;
  height: 26px; aspect-ratio: 3.685;
  background: currentColor;
  -webkit-mask: url(../img/boosty-wordmark.png) center / contain no-repeat;
          mask: url(../img/boosty-wordmark.png) center / contain no-repeat;
}
.logo--lg { height: 40px; }
.logo--brand { background: var(--brand-grad); }
@media (prefers-color-scheme: dark) { .logo--brand:not(.scheme-light *) { background: #fff; } }
.scheme-dark .logo--brand { background: #fff; }
.nav__brand .logo { height: 24px; }

/* ---- Cinematic navy sections ----------------------------------------- */
.navy { background-color: var(--hero-bg) !important; color: var(--text); }
.glow { position: relative; isolation: isolate; overflow: clip; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 60% at 80% 35%, rgb(18 87 224 / 0.42), transparent 70%),
    radial-gradient(45% 45% at 8% 105%, rgb(43 130 250 / 0.2), transparent 70%);
}
.glow--center::before {
  background:
    radial-gradient(60% 70% at 50% 110%, rgb(18 87 224 / 0.5), transparent 70%),
    radial-gradient(40% 40% at 50% -10%, rgb(43 130 250 / 0.16), transparent 70%);
}

/* ---- Hero (split: copy + live phone) ---------------------------------- */
.hero--split {
  text-align: center;
  padding-block: calc(clamp(3rem, 2rem + 4vw, 6rem) + var(--nav-h)) clamp(3.5rem, 2rem + 5vw, 6rem);
}
.hero__grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 4.5rem); align-items: center; }
.hero--split .lead { max-width: 34ch; }
.hero__note { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--text-2); }
.hero__visual { position: relative; justify-self: center; width: min(100%, 22rem); }
@media (min-width: 64rem) {
  .hero--split { text-align: left; }
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; }
  .hero--split .lead { margin-inline: 0; }
  .hero--split .btn-row { justify-content: flex-start; }
}
.hero-title-accent { color: var(--accent-text); }

/* ---- Badges, pills, chips ------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.3em 0.75em; border-radius: var(--r-pill);
  font-size: 0.8125rem; font-weight: var(--fw-semibold); line-height: 1.2;
  background: color-mix(in oklch, var(--accent-fill) 14%, transparent); color: var(--accent-text);
}
.badge--muted { background: color-mix(in oklch, var(--text) 8%, transparent); color: var(--text-2); }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in oklch, var(--success) 25%, transparent); }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; list-style: none; padding: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.65em 1.1em; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--hairline);
  font-size: 0.9375rem; font-weight: var(--fw-semibold); color: var(--text);
}
.section--alt .pill { background: var(--surface); }
.pill svg { width: 20px; height: 20px; color: var(--accent-text); }

/* ---- Phone + chat ------------------------------------------------------ */
.phone {
  position: relative;
  width: 100%; aspect-ratio: 9 / 18.6;
  padding: 10px; border-radius: 48px;
  background: linear-gradient(160deg, #2a2d34, #0d0e11 40%, #1b1d22);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 40px 80px -30px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(0 0 0 / 0.5);
  color-scheme: light;
}
.phone::before {   /* speaker island */
  content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; z-index: 3;
  width: 30%; height: 22px; border-radius: 20px; background: #000;
}
.phone__screen {
  position: relative; height: 100%;
  border-radius: 38px; overflow: clip;
  display: flex; flex-direction: column;
  background: #eef1f6;
  background-image: radial-gradient(rgb(18 87 224 / 0.06) 1px, transparent 1.2px);
  background-size: 18px 18px;
  color: #1d1d1f; text-align: left;
}
.chat__head {
  display: flex; align-items: center; gap: 10px;
  padding: 46px 14px 12px; flex: none;
  background: #0b1a3d; color: #fff;
}
.chat__head img { width: 34px; height: 34px; border-radius: 10px; }
.chat__name { font-size: 0.9375rem; font-weight: 600; line-height: 1.2; }
.chat__status { font-size: 0.75rem; opacity: 0.75; display: flex; align-items: center; gap: 5px; }
.chat__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4cd07d; }
.chat__log {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 12px 12px 14px; overflow: hidden;
}
.chat__log--scroll { overflow-y: auto; justify-content: flex-start; scrollbar-width: thin; }
.chat__log--scroll > :first-child { margin-top: auto; }
.msg {
  max-width: 84%; padding: 8px 11px 6px;
  border-radius: 16px; font-size: 0.875rem; line-height: 1.38;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.08);
  overflow-wrap: anywhere;
}
.msg--in  { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.msg--out { align-self: flex-end; background: #d9e6ff; border-bottom-right-radius: 5px; }
.msg__who { display: block; font-size: 0.6875rem; font-weight: 700; color: #1257e0; margin-bottom: 2px; }
.msg--in .msg__who { color: #6e6e73; }
.msg__time { display: block; text-align: right; font-size: 0.625rem; color: #6e6e73; margin-top: 2px; }
.msg--out .msg__time::after { content: " ✓✓"; color: #1257e0; letter-spacing: -2px; }
.msg p + p { margin-top: 4px; }

.product {
  display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center;
  padding: 6px; margin: 2px 0 6px; border-radius: 12px; background: rgb(255 255 255 / 0.7);
}
.product__art {
  width: 52px; height: 52px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: var(--brand-icon-grad);
}
.product__art svg { width: 28px; height: 28px; }
.product__name { font-weight: 600; font-size: 0.8125rem; line-height: 1.25; }
.product__price { font-size: 0.8125rem; color: #0a7d3b; font-weight: 700; }

.order {
  border-radius: 12px; background: #fff; padding: 9px 10px; margin: 2px 0 4px;
  border-left: 3px solid #0a7d3b;
}
.order__title { font-weight: 700; font-size: 0.8125rem; display: flex; align-items: center; gap: 6px; color: #0a7d3b; }
.order dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; margin-top: 4px; font-size: 0.75rem; }
.order dt { color: #6e6e73; }
.order dd { margin: 0; font-weight: 600; }

.typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 16px; border-bottom-right-radius: 5px; background: #d9e6ff; }
.typing--in { align-self: flex-start; background: #fff; border-radius: 16px; border-bottom-left-radius: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #1257e0; opacity: 0.35; }
.typing--in i { background: #6e6e73; }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: typing-dot 1.1s infinite ease-in-out; }
  .typing i:nth-child(2) { animation-delay: 0.15s; }
  .typing i:nth-child(3) { animation-delay: 0.3s; }
  .msg.is-new, .typing { animation: msg-in 380ms var(--ease-out) both; }
}
@keyframes typing-dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Floating cards around the hero phone */
.float-card {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px;
  background: rgb(255 255 255 / 0.96); color: #1d1d1f;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.55);
  font-size: 0.8125rem; line-height: 1.25; text-align: left;
  color-scheme: light;
}
.float-card strong { display: block; font-size: 0.875rem; }
.float-card__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card__icon svg { width: 18px; height: 18px; }
.float-card--order { left: -16%; bottom: 2.5%; }
.float-card--order .float-card__icon { background: #0a7d3b; }
.float-card--reply { right: -10%; top: 22%; }
.float-card--reply .float-card__icon { background: var(--accent-fill); }
@media (max-width: 30rem) {
  .float-card--order { left: -4%; bottom: 2%; }
  .float-card--reply { right: -4%; top: 16%; }
}
.chat__bar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 14px; background: #f7f8fb; border-top: 1px solid rgb(0 0 0 / 0.06);
}
.chat__bar span { flex: 1; padding: 8px 12px; border-radius: 20px; background: #fff; font-size: 0.8125rem; color: #8e8e93; }
.chat__bar i { width: 32px; height: 32px; border-radius: 50%; background: #1257e0; display: grid; place-items: center; }
.chat__bar i::before { content: ""; width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.hero--split .headline-hero { font-size: clamp(3rem, 1.5rem + 5vw, 5.75rem); }
@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: float-bob 6s ease-in-out infinite; }
  .float-card--reply { animation-delay: -3s; }
}
@keyframes float-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.demo-pause {
  position: absolute; z-index: 5; left: 50%; bottom: -3.25rem; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0.4em 1em; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); background: transparent; color: var(--text-2);
  font-size: 0.8125rem;
}
.demo-pause:hover { color: var(--text); }
.demo-pause[hidden] { display: none; }

/* ---- Story frames (mini screens) -------------------------------------- */
.screen {
  height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: clamp(1.25rem, 4%, 2rem);
  background: #eef1f6;
  background-image: radial-gradient(rgb(18 87 224 / 0.06) 1px, transparent 1.2px);
  background-size: 18px 18px;
  color: #1d1d1f; color-scheme: light; text-align: left;
}
.screen .msg { font-size: 0.9375rem; max-width: 88%; }
.screen__label {
  align-self: center; margin-bottom: 4px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: #6e6e73;
  padding: 4px 10px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.8);
}
.notif {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  padding: 14px; border-radius: 18px; background: #fff;
  box-shadow: 0 16px 40px -20px rgb(0 0 0 / 0.35);
}
.notif img { width: 44px; height: 44px; border-radius: 12px; }
.notif strong { display: block; font-size: 0.9375rem; }
.notif span { font-size: 0.8125rem; color: #6e6e73; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { background: #fff; border-radius: 14px; padding: 10px 12px; }
.mini-stats b { display: block; font-size: 1.25rem; letter-spacing: -0.01em; }
.mini-stats span { font-size: 0.6875rem; color: #6e6e73; }

/* ---- Try-it demo ------------------------------------------------------ */
.demo {
  display: grid; gap: var(--space-6);
  grid-template-areas: "tabs" "phone" "ask";
}
.demo__tabs { grid-area: tabs; }
.demo__phone { grid-area: phone; justify-self: center; width: min(100%, 22rem); }
.demo__ask { grid-area: ask; }
@media (min-width: 46rem) {
  .demo { grid-template-columns: 1fr minmax(16rem, 22rem); grid-template-rows: auto 1fr; grid-template-areas: "tabs phone" "ask phone"; align-items: start; column-gap: clamp(2rem, 6vw, 6rem); row-gap: var(--space-6); }
  .demo__tabs { padding-top: var(--space-7); }
  .demo__ask { align-self: start; }
}
.seg {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 5px; border-radius: var(--r-pill);
  background: color-mix(in oklch, var(--text) 6%, transparent);
  width: fit-content; max-width: 100%;
}
.seg--scroll { position: relative; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.seg--scroll::-webkit-scrollbar { display: none; }
.seg--scroll.fade-end { mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); }
.seg--scroll.fade-start { mask-image: linear-gradient(to left, #000 calc(100% - 3rem), transparent); }
.seg--scroll.fade-start.fade-end { mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); }
.seg button, .seg [role="tab"] {
  flex: none; min-height: 40px; padding: 0.45em 1.05em;
  border: 0; border-radius: var(--r-pill); background: transparent;
  font-size: 0.9375rem; font-weight: var(--fw-semibold); color: var(--text-2);
  white-space: nowrap;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.seg button:hover { color: var(--text); }
.seg [aria-selected="true"], .seg [aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.demo__intro { margin-top: var(--space-5); }
.demo__product { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--r-md); background: var(--surface); }
.demo__product .product__art { width: 56px; height: 56px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.chip {
  min-height: 44px; padding: 0.55em 1.05em; border-radius: var(--r-pill);
  border: 1px solid color-mix(in oklch, var(--accent-text) 45%, transparent);
  background: var(--surface); color: var(--accent-text);
  font-size: 0.9375rem; text-align: left;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease, opacity var(--dur-1) ease;
}
.chip:hover:not(:disabled) { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.chip:disabled { opacity: 0.45; cursor: default; }
.chip--go { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); font-weight: var(--fw-semibold); }
.chip--go:hover:not(:disabled) { background: var(--accent-fill-hover); }
@media (max-width: 45.99rem) { .demo__phone .phone { aspect-ratio: 9 / 13.5; } }
.demo__reset { margin-top: var(--space-5); background: none; border: 0; padding: 0; color: var(--accent-text); font-size: 0.9375rem; min-height: 44px; }
.demo__note { margin-top: var(--space-5); font-size: var(--fs-small); color: var(--text-2); }

/* ---- Dashboard + charts ------------------------------------------------ */
.dash {
  border-radius: var(--r-xl); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  background: var(--surface); border: 1px solid var(--hairline);
  text-align: left;
}
.dash__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.dash__title { font-size: 1.125rem; font-weight: var(--fw-semibold); display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.dash__filters { margin-top: var(--space-5); }
.dash__filters .seg { background: color-mix(in oklch, var(--text) 8%, transparent); }
.tiles { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-5); }
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { padding: var(--space-4) var(--space-5); border-radius: var(--r-md); background: color-mix(in oklch, var(--text) 4%, transparent); }
.tile__label { font-size: var(--fs-small); color: var(--text-2); }
.tile__value { display: block; margin-top: 2px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: var(--fw-semibold); letter-spacing: -0.02em; line-height: 1.15; }
.tile__sub { font-size: 0.8125rem; color: var(--text-2); }
.charts { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
@media (min-width: 64rem) { .charts { grid-template-columns: 1.35fr 1fr; } }
.chart { padding: var(--space-5); border-radius: var(--r-md); background: color-mix(in oklch, var(--text) 4%, transparent); position: relative; }
.chart__title { font-size: 1rem; font-weight: var(--fw-semibold); }
.chart__sub { font-size: var(--fs-small); color: var(--text-2); margin-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-3); font-size: 0.8125rem; color: var(--text-2); list-style: none; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--chart-1); }
.legend i.is-muted { background: var(--chart-muted); }

/* Column chart: orders by hour */
.cols { position: relative; margin-top: var(--space-5); padding-left: 1.75rem; outline-offset: 6px; }
.cols__plot { position: relative; height: 180px; display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 2px; border-bottom: 1px solid var(--chart-grid); }
.cols__grid { position: absolute; inset: 0 0 0 1.75rem; height: 180px; pointer-events: none; }
.cols__grid span { position: absolute; left: 0; right: 0; border-top: 1px solid var(--chart-grid); }
.cols__grid b { position: absolute; left: -1.75rem; width: 1.4rem; text-align: right; transform: translateY(-50%); font-size: 0.6875rem; font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cols__col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.cols__bar { width: 100%; max-width: 24px; min-height: 0; height: calc(var(--v, 0) * 1%); border-radius: 4px 4px 0 0; background: var(--chart-muted); transition: height 600ms var(--ease-out), opacity var(--dur-1) ease; }
.cols__col.is-after .cols__bar { background: var(--chart-1); }
.cols.has-focus .cols__col:not(.is-active) .cols__bar { opacity: 0.45; }
.cols__x { display: grid; grid-template-columns: repeat(24, 1fr); margin-top: 6px; font-size: 0.6875rem; color: var(--text-2); }
.cols__x span { grid-column: span 6; }
.chart-tip {
  position: absolute; z-index: 3; pointer-events: none;
  padding: 6px 10px; border-radius: 10px;
  background: var(--text); color: var(--bg);
  font-size: 0.75rem; line-height: 1.3; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 8px));
  box-shadow: var(--shadow-soft);
}
.chart-tip[hidden] { display: none; }
.chart-tip b { font-weight: 600; }

/* Horizontal bars: funnel / calculator */
.hbars { display: grid; gap: var(--space-4); margin-top: var(--space-5); list-style: none; padding: 0; }
.hbar__label { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-small); color: var(--text-2); }
.hbar__label b { color: var(--text); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.hbar__track { margin-top: 6px; height: 20px; }
.hbar__fill { height: 100%; width: calc(var(--v, 0) * 1%); min-width: 4px; border-radius: 0 4px 4px 0; background: var(--chart-1); transition: width 600ms var(--ease-out); }
.hbar__fill.is-muted { background: var(--chart-muted); }
.table-view { margin-top: var(--space-5); font-size: var(--fs-small); }
.table-view summary { cursor: pointer; color: var(--accent-text); min-height: 44px; display: inline-flex; align-items: center; }
.data-table { width: 100%; border-collapse: collapse; margin-top: var(--space-3); font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--hairline); }
.data-table td:not(:first-child), .data-table th:not(:first-child) { text-align: right; }
.data-table caption { text-align: left; color: var(--text-2); padding-bottom: 4px; }
.example-note { margin-top: var(--space-5); font-size: 0.8125rem; color: var(--text-2); }

/* ---- Calculator ------------------------------------------------------- */
.calc { display: grid; gap: var(--space-7); align-items: start; text-align: left; }
@media (min-width: 60rem) { .calc { grid-template-columns: 1fr 1fr; } }
.calc__inputs { display: grid; gap: var(--space-5); }
.range { display: grid; gap: var(--space-2); }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.range label { font-weight: var(--fw-semibold); font-size: 0.9375rem; }
.range output { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; color: var(--accent-text); }
.range input[type="range"] { width: 100%; accent-color: var(--accent-fill); min-height: 32px; }
.range__hint { font-size: 0.8125rem; color: var(--text-2); }
.calc__out { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-lg); background: var(--surface); }
.calc__big { display: block; margin-top: var(--space-2); font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 1.05; }
.calc__line { margin-top: var(--space-4); color: var(--text-2); }
.calc__line strong { color: var(--text); }

/* ---- Feature grid ----------------------------------------------------- */
.features { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.feature { display: flex; flex-direction: column; gap: var(--space-3); padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); border-radius: var(--r-lg); background: var(--surface); }
.section:not(.section--alt) .feature { background: var(--bg-alt); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--brand-icon-grad); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.3125rem; letter-spacing: var(--tracking-snug); }
.feature p { color: var(--text-2); }
.feature--wide { grid-column: 1 / -1; }
@media (min-width: 60rem) {
  .feature--wide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-7); }
}
.feature__visual { border-radius: var(--r-md); overflow: clip; }

/* Steps (numbered, horizontal on wide screens) */
.steps { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); list-style: none; padding: 0; counter-reset: step; text-align: left; }
.steps li { counter-increment: step; padding: var(--space-5); border-radius: var(--r-lg); background: var(--surface); }
.section:not(.section--alt) .steps li { background: var(--bg-alt); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 0.875rem; font-weight: var(--fw-semibold); color: var(--accent-text); margin-bottom: var(--space-3); }
.steps h3 { font-size: 1.1875rem; margin-bottom: var(--space-2); }
.steps p { color: var(--text-2); font-size: 0.9688rem; }

/* ---- Packages ------------------------------------------------------- */
.plans { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); align-items: stretch; text-align: left; }
/* Tablet: two columns, and an odd last card spans the row with its list beside it */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plans > .plan:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-7); align-content: start; }
  .plans > .plan:last-child:nth-child(odd) > * { grid-column: 1; }
  .plans > .plan:last-child:nth-child(odd) > .plan__list { grid-column: 2; grid-row: 1 / span 4; align-self: start; border-top: 0; padding-top: 0; border-left: 1px solid var(--hairline); padding-left: var(--space-6); }
}
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4);
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--hairline);
}
.section:not(.section--alt) .plan { background: var(--bg-alt); border-color: transparent; }
.plan--featured { border: 2px solid var(--accent-fill) !important; box-shadow: 0 30px 60px -36px color-mix(in oklch, var(--accent-fill) 70%, transparent); }
.plan__flag { position: absolute; top: -0.85rem; left: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); padding: 0.3em 0.8em; border-radius: var(--r-pill); background: var(--accent-fill); color: var(--on-accent); font-size: 0.75rem; font-weight: var(--fw-semibold); }
.plan__name { font-size: 1.375rem; letter-spacing: var(--tracking-snug); }
.plan__for { color: var(--text-2); font-size: 0.9688rem; min-height: 2.9em; }
.plan__price { display: flex; align-items: baseline; gap: 0.35em; flex-wrap: wrap; }
.plan__amount { font-size: clamp(2rem, 1.7rem + 1.2vw, 2.625rem); font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 1; }
.plan__cur { font-size: 1rem; font-weight: var(--fw-semibold); color: var(--text-2); }
.plan__per { color: var(--text-2); font-size: 0.9375rem; }
.plan .btn { width: 100%; }
.plan__list { list-style: none; padding: 0; display: grid; gap: var(--space-3); font-size: 0.9688rem; border-top: 1px solid var(--hairline); padding-top: var(--space-4); }
.plan__list li, .ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.plan__list li::before, .ticks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan__list li.is-note::before { background: color-mix(in oklch, var(--text) 18%, transparent); background-image: none; }
.plan__list li.is-note { color: var(--text-2); }
.plan__list strong { font-weight: var(--fw-semibold); }
.ticks { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.enterprise {
  display: grid; gap: var(--space-5); align-items: center; margin-top: var(--space-5);
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); border-radius: var(--r-lg);
  background: var(--hero-bg); color: #f5f5f7; text-align: left; color-scheme: dark;
}
@media (min-width: 48rem) { .enterprise { grid-template-columns: 1fr auto; } }
.enterprise p { color: #a1a1a6; }

/* Comparison table */
.compare-wrap { position: relative; overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hairline); }
.compare-wrap:focus-visible { outline-offset: 2px; }
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.9375rem; text-align: left; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.compare thead th { font-size: 1rem; position: sticky; top: 0; background: var(--surface); }
.compare tbody th { font-weight: var(--fw-regular); color: var(--text); position: sticky; left: 0; background: var(--surface); min-width: 12rem; }
.compare td { text-align: center; color: var(--text-2); }
.compare .is-group th { font-weight: var(--fw-semibold); background: var(--bg-alt); color: var(--text); }
.compare tr:last-child > * { border-bottom: 0; }
.yes { display: inline-block; width: 20px; height: 20px; border-radius: 50%; vertical-align: middle;
  background: var(--accent-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.no { display: inline-block; width: 14px; height: 2px; vertical-align: middle; background: var(--text-2); opacity: 0.5; }

/* ---- Inner page hero -------------------------------------------------- */
.page-hero { text-align: center; padding-block: calc(clamp(4rem, 3rem + 5vw, 7.5rem) + var(--nav-h)) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.page-hero .lead { max-width: 40ch; margin: var(--space-5) auto 0; }
.page-hero .btn-row { justify-content: center; margin-top: var(--space-6); }

/* ---- Letter (about) --------------------------------------------------- */
.letter { font-size: 1.1875rem; line-height: 1.6; }
.letter p + p { margin-top: 1.1em; }
.letter .sign { margin-top: var(--space-6); font-weight: var(--fw-semibold); }
.pullquote { font-size: var(--fs-h3); line-height: 1.25; font-weight: var(--fw-semibold); letter-spacing: var(--tracking-snug); text-wrap: balance; padding-left: var(--space-5); border-left: 3px solid var(--accent-fill); margin-block: var(--space-7); }

/* ---- Enquiry form ----------------------------------------------------- */
.contact-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1.5fr 1fr; } }
.form-card { padding: clamp(1.5rem, 1rem + 2.4vw, 3rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-soft); }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
@media (min-width: 40rem) { .form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.form > *, .form fieldset { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; }
.form .field--full, .form .form__actions, .form fieldset, .form .form-status { grid-column: 1 / -1; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .opt { color: var(--text-2); font-weight: var(--fw-regular); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 2.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9em center; background-size: 18px;
}
.section--alt .field input, .section--alt .field textarea, .section--alt .field select { background-color: var(--surface); }
.form-card .field input, .form-card .field textarea, .form-card .field select { background-color: var(--bg-alt); border-color: transparent; }
.form-card .field input:focus-visible, .form-card .field textarea:focus-visible, .form-card .field select:focus-visible { background-color: var(--surface); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: color-mix(in oklch, var(--text) 25%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; background-color: color-mix(in oklch, var(--danger) 6%, var(--surface)) !important; }
.field__hint { font-size: 0.8125rem; color: var(--text-2); }
.field__error { font-size: 0.8125rem; color: var(--danger); font-weight: var(--fw-semibold); display: flex; gap: 6px; align-items: center; }
.field__error:empty { display: none; }
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 0.6875rem; flex: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { font-size: var(--fs-small); font-weight: var(--fw-semibold); margin-bottom: var(--space-2); padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5em 1.1em; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--bg-alt); font-size: 0.9375rem; transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease; }
.choice input:checked + span { background: color-mix(in oklch, var(--accent-fill) 14%, var(--surface)); border-color: var(--accent-fill); color: var(--accent-text); font-weight: var(--fw-semibold); }
.choice input:focus-visible + span { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.9375rem; color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-fill); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form__actions .btn { min-width: 12rem; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.85; }
.btn[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { padding: var(--space-4) var(--space-5); border-radius: var(--r-md); font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status.is-error { background: color-mix(in oklch, var(--danger) 10%, var(--surface)); color: var(--danger); }
.success { text-align: center; padding-block: var(--space-6); }
.success__icon { width: 64px; height: 64px; margin: 0 auto var(--space-5); border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklch, var(--success) 15%, transparent); color: var(--success); }
.success__icon svg { width: 32px; height: 32px; }
.success__ref { display: inline-block; margin-top: var(--space-4); padding: 0.5em 1em; border-radius: var(--r-md); background: var(--bg-alt); font-family: var(--font-mono); font-size: 1.0625rem; letter-spacing: 0.04em; }
.success[hidden], .form[hidden] { display: none; }
.contact-aside { display: grid; gap: var(--space-5); }
.contact-aside .card { padding: var(--space-6); }
.contact-line { display: flex; gap: var(--space-3); align-items: center; font-weight: var(--fw-semibold); }
.contact-line svg { width: 22px; height: 22px; color: var(--accent-text); flex: none; }

/* ---- Footer additions ------------------------------------------------- */
.footer__brand p { margin-top: var(--space-3); max-width: 30ch; }
.footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
@media (min-width: 60rem) { .footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }

/* ---- Fixes on top of the starter -------------------------------------- */
/* Grid items may shrink below their content (stops the scrolling tab row and phone from widening the page) */
.demo > *, .charts > *, .calc > *, .contact-grid > *, .hero__grid > *, .split > *, .tiles > *, .plans > *, .features > *, .steps > * { min-width: 0; }
.story > .sr-only + .story__stage { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .intro > :nth-child(6) { --i: 5; } }
.eyebrow--season {
  display: inline-block; padding: 0.35em 0.9em; border-radius: var(--r-pill);
  font-size: 0.875rem; border: 1px solid color-mix(in oklch, var(--holiday-gold, #d9b65c) 55%, transparent);
  margin-bottom: var(--space-4);
}
@media (max-width: 40rem) { .hero__visual { width: min(100%, 19rem); } }
.story .story__visual { width: min(100%, 64svh, 32rem); }
.story__frame { box-shadow: 0 30px 70px -40px rgb(3 8 23 / 0.45); border: 1px solid var(--hairline); }
.story .screen { justify-content: flex-start; padding: 0; gap: 0; }
.screen__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #0b1a3d; color: #fff; font-size: 0.9375rem; font-weight: 600; }
.screen__head img { width: 30px; height: 30px; border-radius: 9px; }
.screen__head small { display: block; font-size: 0.75rem; font-weight: 400; opacity: 0.75; }
.screen__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(1rem, 4%, 1.75rem); }
.story .screen .msg { font-size: clamp(0.875rem, 0.7rem + 0.45vw, 1.0625rem); max-width: 86%; }
.story .screen .product__art { width: 56px; height: 56px; }
.story .screen .product { grid-template-columns: 56px 1fr; }

/* ---- Inner pages ------------------------------------------------------ */
.page-hero--compact { padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
.page-hero--tall { min-height: 88svh; display: grid; align-content: center; }
.hero-pills .pill { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.14); font-weight: 500; }
.split .feature__visual { width: min(100%, 30rem); justify-self: center; box-shadow: 0 30px 70px -40px rgb(3 8 23 / 0.45); border: 1px solid var(--hairline); }
.feature__visual .screen { justify-content: flex-start; padding: 0; gap: 0; }
.feature__visual .screen .msg { font-size: clamp(0.875rem, 0.75rem + 0.35vw, 1rem); }
.feature__visual .screen__body { justify-content: center; }

/* Orders list mock (features page) */
.orders { list-style: none; padding: 0; margin-top: var(--space-5); display: grid; gap: var(--space-2); }
.orders li {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "id who status" "id amt status";
  gap: 2px var(--space-4); align-items: center;
  padding: var(--space-3) var(--space-4); border-radius: var(--r-md);
  background: color-mix(in oklch, var(--text) 5%, transparent);
}
.orders__id { grid-area: id; font-size: 0.8125rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.orders li > span:nth-child(2) { grid-area: who; }
.orders b { display: block; font-weight: var(--fw-semibold); font-size: 0.9375rem; }
.orders small { display: block; color: var(--text-2); font-size: 0.8125rem; }
.orders__amt { grid-area: amt; font-size: 0.875rem; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.status { grid-area: status; padding: 0.25em 0.7em; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: var(--fw-semibold); }
.status--new { background: rgb(91 155 255 / 0.2); color: #8db9ff; }
.status--packed { background: rgb(255 196 87 / 0.18); color: #ffd27f; }
.status--shipped { background: rgb(175 140 255 / 0.18); color: #c9b3ff; }
.status--done { background: rgb(76 208 125 / 0.18); color: #7fe0a4; }
@media (min-width: 40rem) {
  .orders li { grid-template-columns: 4rem 1fr auto auto; grid-template-areas: "id who amt status"; }
}
.stock-alert { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--r-md); font-size: 0.875rem; background: rgb(255 196 87 / 0.12); color: #ffd27f; }

/* Credits meter (pricing page) */
.credit-card { box-shadow: var(--shadow-soft); }
.credit-figure { display: flex; align-items: baseline; gap: var(--space-3); margin-top: var(--space-5); }
.credit-figure .calc__big { margin: 0; }
.meter { height: 12px; margin-top: var(--space-4); border-radius: var(--r-pill); background: color-mix(in oklch, var(--accent-fill) 18%, transparent); overflow: hidden; }
.meter span { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--accent-fill); }
.credit-rows { list-style: none; padding: 0; margin-top: var(--space-5); display: grid; gap: var(--space-2); font-size: 0.9375rem; }
.credit-rows li { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); border-bottom: 1px solid var(--hairline); }
.credit-rows li:last-child { border-bottom: 0; }
.credit-rows span { color: var(--text-2); }
.credit-rows b { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }

/* Contact page */
.next-steps { list-style: none; padding: 0; margin-top: var(--space-4); display: grid; gap: var(--space-4); counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; column-gap: var(--space-3); }
.next-steps li::before { content: counter(n); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklch, var(--accent-fill) 14%, transparent); color: var(--accent-text); font-weight: var(--fw-semibold); font-size: 0.875rem; }
.next-steps b { font-weight: var(--fw-semibold); }
.next-steps span { color: var(--text-2); font-size: 0.9375rem; }
.contact-aside .card { background: var(--surface) !important; }

/* ---- Small helpers ---------------------------------------------------- */
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }
.maxw-text { max-width: 42rem; margin-inline: auto; }
.legal h2 { font-size: 1.375rem; margin-top: var(--space-7); margin-bottom: var(--space-3); }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 1.2em; display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.legal p + p { margin-top: var(--space-3); }

@media (forced-colors: active) {
  .cols__bar, .hbar__fill, .legend i { background: CanvasText; forced-color-adjust: none; }
  .cols__col.is-after .cols__bar, .legend i:not(.is-muted) { background: Highlight; }
}
@media print {
  .nav, .nav-menu, .snow-toggle, .demo-pause, canvas.snow { display: none !important; }
}
