/*
 * myGP design tokens — source: HOMEPAGE_VISUAL_SPEC.md §2.
 * Never hard-code a colour, radius, shadow or type size outside this file.
 */
:root {
  /* ---------- Colour (§2.1) ---------- */
  --primary-500: #044cc9;
  --primary-hover: #033fa8; /* inferred, §2.6 */
  --primary-pressed: #03358c; /* inferred, §2.6 */
  --primary-50: #e7e9ff;
  --primary-tint-5: rgba(4, 76, 201, 0.05);
  --primary-tint-3: rgba(4, 76, 201, 0.03);
  --primary-tint-10: rgba(4, 76, 201, 0.1); /* inferred: selected/active states in app UI */
  --logo: #0670b2;

  --text: #272727;
  --text-quote: #182023;
  --text-rating: #333333;
  --neutral-800: #3c3c3c;
  --grey-charcoal: #424347;
  --grey-charcoal-hover: #4e5054;
  --grey-charcoal-pressed: #3b3b40;
  --grey: #2f3033;
  --grey-100: #1c1d1f;
  --grey-80: #616368;
  --grey-light-2: #909499; /* decorative only — fails AA for text (§8) */
  --grey-light-1: #6a6d72; /* AA-safe muted text */
  --grey-light-3: #b7b8b9; /* decorative only */
  --neutral-700: #606060;
  --neutral-500: #979797;
  --neutral-300: #dedede;
  --grey-very-light: #ebebeb;
  --header-border: #dddddd;
  --grey-20: #f0f0f1;
  --neutral-200: #e9e9e9;
  --neutral-100: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
  --disabled: #cdcece;
  --error: #eb0037;
  --star: #ffcc26;

  /* Status tints for app UI (inferred — not in Figma; kept as primary/neutral derived) */
  --success: #0a7a45;
  --success-tint: rgba(10, 122, 69, 0.08);
  --error-tint: rgba(235, 0, 55, 0.06);

  /* ---------- Typography (§2.2) ---------- */
  --font-serif: 'Victor Serif Smooth', victorSerif, 'Newsreader', Georgia, serif;
  --font-sans: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Desktop scale */
  --fs-h1: 48px;
  --fs-h2: 40px;
  --fs-h2-blog: 36px;
  --fs-h3: 32px;
  --fs-stat: 54px;
  --fs-lead: 24px;
  --fs-body-l: 20px;
  --fs-body: 18px;
  --fs-eyebrow: 20px;
  --fs-card-title: 24px;
  --fs-blog-title: 20px;
  --fs-ui: 16px;
  --fs-nav: 14px;
  --fs-small: 14px;
  --fs-xs: 12px;
  --lh-head: 1.2;
  --lh-body: 1.5;

  /* ---------- Layout (§2.3) ---------- */
  --container: 1200px;
  --gutter: 48px;
  --gap: 24px;

  /* ---------- Radius & elevation (§2.4) ---------- */
  --r-pill: 999px;
  --r-card-xl: 24px;
  --r-card-l: 20px;
  --r-card-m: 16px;
  --r-menu: 14px;
  --r-media: 12px;
  --r-small: 8px;
  --r-badge: 10px;
  --r-arrow: 12px;

  --shadow-card: 0 2.77px 5.55px rgba(0, 0, 0, 0.06);
  --shadow-menu: 1px 3px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-floating: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  /* ---------- Motion (§8) ---------- */
  --dur-menu: 200ms;
  --dur-slide: 300ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --lift: -4px;
}

/* Tablet: desktop structure, reduced gutters (§3.1) */
@media (max-width: 1279px) {
  :root {
    --gutter: 40px;
  }
}

/* Mobile: type scales down one step (§3.2 rule 4) */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --fs-h1: 36px;
    --fs-h2: 28px;
    --fs-h2-blog: 28px;
    --fs-h3: 24px;
    --fs-stat: 40px;
    --fs-lead: 20px;
    --fs-body-l: 16px;
    --fs-body: 14px;
    --fs-eyebrow: 14px;
    --fs-card-title: 22px;
    --r-card-l: 16px;
    --r-card-xl: 16px;
    --r-arrow: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-menu: 0ms;
    --dur-slide: 0ms;
    --lift: 0px;
  }
}

/* Reset + global primitives. Components live in components.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.scroll-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Focus ring (§8): 2px primary, 2px offset */
:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--primary-500);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.skip-link:focus {
  top: 8px;
}

/* ---------- Icons: Material Symbols Outlined, weight 400, FILL 0 (§2.5) ---------- */
.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  flex-shrink: 0;
  width: 1em;
  overflow: hidden;
}
.icon--filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Layout (§2.3, §3.2 rule 1) ---------- */
.section {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ---------- Typography roles (§2.2) ---------- */
.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: var(--lh-head);
  color: var(--text);
}
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
}
.h2-blog {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h2-blog);
  line-height: var(--lh-head);
}
.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: var(--lh-head);
}
.lead {
  font-weight: 300;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
}
.body-l {
  font-weight: 300;
  font-size: var(--fs-body-l);
  line-height: var(--lh-body);
}
.body {
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.eyebrow {
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-body);
  text-transform: uppercase;
  color: var(--primary-500);
}
.muted {
  color: var(--grey-light-1);
}

/* Entrance animation (§8 motion tokens) */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fade-in-up {
  animation: fade-in-up 400ms var(--ease-out) both;
}

/* Anchor targets clear the sticky mobile header */
@media (max-width: 767px) {
  [id] {
    scroll-margin-top: 72px;
  }
}

/* Core components (§2.6) + app-area primitives built from the same tokens. */

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  font-weight: 400;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  text-align: center;
  position: relative;
}
.btn .icon {
  font-size: 16px;
}
.btn--square {
  border-radius: var(--r-small);
}

/* Sizes */
.btn--l {
  height: 48px;
  padding: 12px 36px;
  font-size: 16px;
  line-height: 24px;
}
.btn--l .icon {
  font-size: 20px;
}
.btn--xl {
  height: 54px;
  padding: 15px 30px;
  font-size: 16px;
  line-height: 24px;
}
.btn--m {
  height: 40px;
  padding: 12px 28px;
  font-size: 14px;
  line-height: 16px;
}
.btn--s {
  height: 26px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 10px;
}
/* 44px hit area for small buttons (§3.2 rule 8) */
.btn--s::after {
  content: '';
  position: absolute;
  inset: -9px -4px;
}
.btn--block {
  width: 100%;
}

/* Variants */
.btn--grey {
  background: var(--grey-charcoal);
  color: var(--white);
}
.btn--primary {
  background: var(--primary-500);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  border-color: var(--grey-100);
  color: var(--grey-100);
}
.btn--outline-primary {
  background: var(--white);
  border-color: var(--primary-500);
  color: var(--primary-500);
}
.btn--ghost {
  background: transparent;
  color: var(--grey-100);
}
.btn--danger {
  background: transparent;
  border-color: var(--error);
  color: var(--error);
}

@media (hover: hover) {
  .btn--grey:hover {
    background: var(--grey-charcoal-hover);
  }
  .btn--primary:hover {
    background: var(--primary-hover);
  }
  .btn--outline:hover,
  .btn--ghost:hover {
    background: rgba(0, 0, 0, 0.04);
  }
  .btn--outline-primary:hover {
    background: var(--primary-tint-5);
  }
  .btn--danger:hover {
    background: var(--error-tint);
  }
}
.btn--grey:active {
  background: var(--grey-charcoal-pressed);
}
.btn--primary:active {
  background: var(--primary-pressed);
}
.btn--outline:active {
  background: rgba(0, 0, 0, 0.02);
  border-color: #595b61;
}
.btn:disabled,
.btn[aria-disabled='true'] {
  cursor: not-allowed;
}
.btn--grey:disabled,
.btn--primary:disabled {
  background: var(--disabled);
  color: var(--white);
}
.btn--outline:disabled,
.btn--outline-primary:disabled {
  border-color: var(--disabled);
  color: var(--disabled);
  background: transparent;
}

/* ---------- Arrow buttons (carousels) ---------- */
.arrow-btn {
  width: 80px;
  height: 54px;
  border-radius: var(--r-arrow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-500);
  transition: background-color 150ms ease, opacity 150ms ease;
}
.arrow-btn--prev {
  background: var(--white);
  color: var(--primary-500);
}
.arrow-btn--next {
  background: var(--primary-500);
  color: var(--white);
}
.arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
@media (hover: hover) {
  .arrow-btn--prev:hover:not(:disabled) {
    background: var(--primary-tint-5);
  }
  .arrow-btn--next:hover:not(:disabled) {
    background: var(--primary-hover);
  }
}
@media (max-width: 767px) {
  .arrow-btn {
    width: 72px;
    height: 40px;
  }
}

/* ---------- Icon button ---------- */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-small);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-charcoal);
  position: relative;
}
.icon-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
}
@media (hover: hover) {
  .icon-btn:hover {
    background: rgba(0, 0, 0, 0.04);
  }
}

/* ---------- Store badges (§2.6) ---------- */
.store-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--white);
  outline: 1px solid var(--black);
  border-radius: var(--r-badge);
  height: 64px;
  padding: 0 20px 0 16px;
  min-width: 185px;
}
.store-badge svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 400;
}
.store-badge__small {
  font-size: 11px;
  letter-spacing: 0.02em;
}
.store-badge__big {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.store-badges--md .store-badge {
  height: 51px;
  min-width: 0;
  padding: 0 14px;
}
.store-badges--md .store-badge__big {
  font-size: 18px;
}
.store-badges--md svg {
  width: 24px;
  height: 24px;
}
.store-badges--sm {
  gap: 8px;
}
.store-badges--sm .store-badge {
  height: 37px;
  min-width: 0;
  padding: 0 10px;
  border-radius: var(--r-small);
  gap: 6px;
}
.store-badges--sm .store-badge__small {
  font-size: 8px;
}
.store-badges--sm .store-badge__big {
  font-size: 13px;
}
.store-badges--sm svg {
  width: 18px;
  height: 18px;
}
.store-badges--full {
  flex-direction: column;
  gap: 12px;
}
.store-badges--full .store-badge {
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  .store-badges {
    gap: 8px;
  }
  .store-badges:not(.store-badges--sm) .store-badge {
    height: 50px;
    min-width: 143px;
    padding: 0 12px;
    gap: 8px;
  }
  .store-badges:not(.store-badges--sm) .store-badge__big {
    font-size: 17px;
  }
  .store-badges:not(.store-badges--sm) .store-badge__small {
    font-size: 9px;
  }
  .store-badges:not(.store-badges--sm) svg {
    width: 24px;
    height: 24px;
  }
}

/* ---------- Rating block (§2.6) ---------- */
.rating {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 90px;
  color: var(--text-rating);
}
.rating__num {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
}
.rating__caption {
  font-size: 10px;
  font-weight: 400;
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star);
}
.stars .icon {
  font-size: 18px;
}
.stars .icon--off {
  color: var(--neutral-300);
}
@media (max-width: 767px) {
  .rating {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 12px;
  }
  .rating__num {
    font-size: 30px;
  }
  .rating__caption {
    font-size: 12px;
  }
}

/* ---------- Slide indicator (§2.6) ---------- */
.indicator {
  display: flex;
  gap: 8px;
}
.indicator__bar {
  width: 40px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--grey-very-light);
  position: relative;
  transition: background-color var(--dur-slide) ease;
}
.indicator__bar::after {
  content: '';
  position: absolute;
  inset: -21px -2px;
}
.indicator__bar[aria-current='true'] {
  background: var(--grey-light-2);
}

.dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dots__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grey-very-light);
  position: relative;
}
.dots__dot::after {
  content: '';
  position: absolute;
  inset: -8px -2px;
}
.dots__dot[aria-current='true'] {
  background: var(--primary-500);
}

/* ---------- Input (§2.6) ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}
.field__hint {
  font-size: 13px;
  color: var(--grey-light-1);
}
.field__error {
  font-size: 13px;
  color: var(--error);
  min-height: 20px;
  font-weight: 400;
}
.input {
  height: 54px;
  border-radius: var(--r-pill);
  border: 1px solid var(--grey-20);
  background: var(--white);
  padding: 8px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input .icon {
  color: var(--grey-light-1);
  font-size: 20px;
}
.input input,
.input select {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  font-weight: 300;
  font-size: 16px;
  height: 100%;
}
.input input::placeholder {
  color: var(--grey-light-1);
}
@media (hover: hover) {
  .input:hover {
    border-color: var(--neutral-300);
  }
}
.input:focus-within {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-tint-10);
}
.input--error {
  border-color: var(--error);
}
.input--box {
  border-radius: var(--r-media);
  height: 48px;
  padding: 8px 16px;
  border-color: var(--neutral-300);
}
.textarea {
  border-radius: var(--r-media);
  border: 1px solid var(--neutral-300);
  padding: 14px 16px;
  min-height: 120px;
  resize: vertical;
  font-weight: 300;
  font-size: 16px;
  width: 100%;
  line-height: 1.5;
}
.textarea:focus {
  outline: 0;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-tint-10);
}

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-card);
}
.card--outlined {
  border: 1px solid var(--neutral-300);
}
.card--pad {
  padding: 32px;
}
@media (max-width: 767px) {
  .card--pad {
    padding: 20px;
  }
}

/* ---------- Toggle switch ---------- */
.switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.switch__track {
  width: 100%;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--disabled);
  transition: background-color 150ms ease;
  position: relative;
}
.switch__track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 150ms ease;
}
.switch input:checked + .switch__track {
  background: var(--primary-500);
}
.switch input:checked + .switch__track::after {
  transform: translateX(20px);
}
.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}
.switch input:disabled + .switch__track {
  opacity: 0.6;
}

/* ---------- Chip / tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--neutral-100);
  color: var(--grey-charcoal);
  white-space: nowrap;
}
.tag .icon {
  font-size: 14px;
}
.tag--primary {
  background: var(--primary-tint-10);
  color: var(--primary-500);
}
.tag--success {
  background: var(--success-tint);
  color: var(--success);
}
.tag--error {
  background: var(--error-tint);
  color: var(--error);
}

/* ---------- Avatar ---------- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--primary-50);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--neutral-300);
  flex-shrink: 0;
}
.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

/* ---------- Tabs (segmented) ---------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--neutral-100);
  border-radius: var(--r-pill);
  align-self: flex-start;
  max-width: 100%;
}
.tabs__tab {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 14px;
  color: var(--grey-80);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tabs__tab[aria-selected='true'] {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.tabs__count {
  font-size: 12px;
  background: var(--grey-very-light);
  border-radius: var(--r-pill);
  padding: 2px 7px;
}
.tabs__tab[aria-selected='true'] .tabs__count {
  background: var(--primary-tint-10);
  color: var(--primary-500);
}

/* ---------- Dialog ---------- */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 29, 31, 0.5);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fade 150ms ease both;
}
.dialog {
  background: var(--white);
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-floating);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fade-in-up 200ms var(--ease-out) both;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.dialog--wide {
  max-width: 880px;
}
.dialog__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 8px;
}
@media (max-width: 767px) {
  .dialog {
    padding: 24px 20px;
  }
  .dialog__actions .btn {
    flex: 1;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* ---------- Inline alert ---------- */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--r-media);
  background: var(--primary-tint-5);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.alert .icon {
  color: var(--primary-500);
  font-size: 20px;
  margin-top: 1px;
}
.alert strong {
  font-weight: 600;
}
.alert--warning {
  background: var(--error-tint);
}
.alert--warning .icon {
  color: var(--error);
}
.alert--success {
  background: var(--success-tint);
}
.alert--success .icon {
  color: var(--success);
}

/* ---------- Section header (P4) ---------- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-header__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Text link ---------- */
.link {
  color: var(--primary-500);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
}
.link .icon {
  font-size: 18px;
}
@media (hover: hover) {
  .link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--grey);
  color: var(--white);
  border-radius: var(--r-pill);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 14px;
  box-shadow: var(--shadow-floating);
  animation: fade-in-up 200ms var(--ease-out) both;
  max-width: calc(100vw - 32px);
}
.toast .icon {
  font-size: 20px;
}
@media (max-width: 767px) {
  .toast {
    bottom: 96px;
  }
}

/* Global chrome: marquee (§4.0), header (§4.1), mega-menu (§5.1), drawer (§5.2), footer (§4.9). */

/* ---------- Marquee ---------- */
.marquee {
  display: block;
  height: 24px;
  background: var(--grey);
  color: var(--white);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.marquee__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-visible .marquee__track {
  animation-play-state: paused;
}
.marquee:focus-visible {
  outline-offset: -2px;
}
.marquee__run {
  display: flex;
  align-items: center;
  /* each run is at least viewport-wide so the loop never shows a gap */
  min-width: 100vw;
  justify-content: space-around;
}
.marquee__item {
  font-size: 12px;
  line-height: 10px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
}
.site-header__bar {
  height: 80px;
  border-bottom: 1px solid var(--header-border);
  display: flex;
  align-items: center;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__logo {
  display: inline-flex;
  border-radius: 4px;
}
.site-nav {
  display: flex;
  gap: 36px;
  flex: 1;
  margin-left: 24px;
  align-self: stretch;
}
.site-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neutral-800);
  transition: color 150ms ease;
  white-space: nowrap;
}
.site-nav__item .icon {
  transition: transform var(--dur-menu) var(--ease-out);
}
.site-nav__item.is-open {
  color: var(--primary-500);
}
.site-nav__item.is-open .icon {
  transform: rotate(180deg);
}
@media (hover: hover) {
  .site-nav__item:hover {
    color: var(--primary-500);
  }
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header__signin {
  height: 40px;
  padding: 0 4px;
}
.site-header__account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--neutral-800);
  border-radius: var(--r-pill);
  padding: 2px 12px 2px 2px;
}
@media (hover: hover) {
  .site-header__account:hover {
    background: var(--neutral-100);
  }
}
.site-header__hamburger {
  display: none;
}
.rot-180 {
  transform: rotate(180deg);
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 24px;
    margin-left: 8px;
  }
  .site-header__store-label {
    display: none;
  }
  .site-header__store {
    padding: 0 14px;
  }
}

@media (max-width: 1023px) {
  .site-nav,
  .site-header__signin,
  .site-header__account-label {
    display: none;
  }
  .site-header__inner {
    justify-content: space-between;
  }
  .site-header__hamburger {
    display: inline-flex;
  }
  .site-header__account {
    padding: 2px;
  }
}

/* Mobile header H64, sticky (§3.2 rule 7) */
@media (max-width: 767px) {
  .site-header {
    position: sticky;
    top: 0;
  }
  .site-header__bar {
    height: 64px;
  }
  .site-header__logo svg {
    height: 24px;
    width: auto;
  }
  .site-header__actions {
    gap: 8px;
  }
  .site-header__store,
  .site-header__download {
    height: 26px;
    font-size: 12px;
    line-height: 10px;
    padding: 8px 12px;
  }
  .site-header__store {
    width: 42px;
    padding: 5px 13px;
  }
  .site-header__store .icon {
    font-size: 14px;
  }
  .site-header__store::after,
  .site-header__download::after {
    content: '';
    position: absolute;
    inset: -9px -3px;
  }
  .site-header__account .avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* ---------- Mega-menu ---------- */
.mega-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding-top: 6px;
  display: flex;
  justify-content: center;
}
.mega {
  width: min(1317px, calc(100vw - 32px));
  background: var(--white);
  border-radius: var(--r-menu);
  box-shadow: var(--shadow-menu);
  border: 1px solid var(--grey-very-light);
  padding: 24px;
  display: flex;
  gap: 24px;
  min-height: 368px;
  animation: menu-in var(--dur-menu) var(--ease-out) both;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.mega__links {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mega__col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.mega__cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mega__tag {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--grey-light-1); /* AA-safe replacement for #909499 (§8) */
  letter-spacing: 0.04em;
}
.mega__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 300;
  font-size: 18px;
  line-height: 29px;
  color: var(--grey);
  border-radius: 4px;
}
.mega__link .icon {
  color: var(--grey-charcoal);
  transition: transform 150ms ease;
}
.mega__link--all {
  font-weight: 400;
}
@media (hover: hover) {
  .mega__link:hover {
    color: var(--primary-500);
  }
  .mega__link:hover .icon {
    transform: translateX(3px);
    color: var(--primary-500);
  }
}
.mega__divider {
  width: 1px;
  background: var(--grey-very-light);
}
.mega__promo {
  width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.mega__promo-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--white);
  display: flex;
  flex-direction: column;
  animation: fade 150ms ease both;
}
.drawer__head {
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--header-border);
  flex-shrink: 0;
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer__row {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--grey-charcoal);
  border-bottom: 1px solid var(--grey-very-light);
  text-align: left;
}
.drawer__row .icon {
  transition: transform var(--dur-menu) ease;
}
.drawer__links {
  display: flex;
  flex-direction: column;
  padding: 8px 0 12px;
}
.drawer__links a {
  display: block;
  padding: 10px 4px;
  font-size: 18px;
  font-weight: 300;
  color: var(--grey);
}
.drawer__actions {
  display: flex;
  gap: 12px;
  padding: 24px 16px;
  border-top: 1px solid var(--grey-very-light);
  background: var(--white);
}
.drawer__actions .btn {
  flex: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--grey-very-light);
}
.footer-band + .footer-band {
  border-top: 1px solid var(--grey-very-light);
}
.footer-join {
  padding-top: 40px;
  padding-bottom: 24px;
}
.footer-join__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.footer-join__text {
  max-width: 498px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-join__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}
.footer-join__form {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 498px;
  max-width: 100%;
}
.footer-join__field {
  flex: 1;
  gap: 4px;
}
.footer-join__field .field__error {
  min-height: 20px;
  padding-left: 22px;
}
.footer-links {
  padding-top: 40px;
  padding-bottom: 24px;
}
.footer-links__inner {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  padding: 16px 32px;
}
.footer-links__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 248px));
  gap: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col__title {
  font-weight: 400;
  font-size: 16px;
  color: var(--grey-light-1); /* AA-safe (§8) */
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-weight: 300;
  font-size: 16px;
  line-height: 29px;
  color: var(--grey-80);
}
@media (hover: hover) {
  .footer-col a:hover,
  .footer-legal__links a:hover {
    color: var(--primary-500);
  }
}
.footer-apps {
  width: 256px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-apps__title {
  font-size: 12px;
  font-weight: 400;
  color: var(--grey-light-1);
}
.footer-or {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.footer-or::before,
.footer-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-very-light);
}
.footer-or span {
  font-size: 10px;
  color: var(--grey-light-1);
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-charcoal);
  border-radius: var(--r-small);
  position: relative;
}
.footer-socials a::after {
  content: '';
  position: absolute;
  inset: -6px -2px;
}
.footer-socials svg {
  width: 22px;
  height: 22px;
}
@media (hover: hover) {
  .footer-socials a:hover {
    color: var(--primary-500);
  }
}
.footer-legal {
  padding-top: 24px;
  padding-bottom: 24px;
}
.footer-legal__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal__copy {
  font-size: 14px;
  color: var(--grey-light-1); /* AA-safe replacement for #B7B8B9 (§8) */
}
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.footer-legal__links a {
  font-size: 14px;
  color: var(--grey-80);
}

@media (max-width: 1100px) {
  .footer-links__inner {
    flex-direction: column;
    padding: 16px 0;
    gap: 48px;
  }
  .footer-apps {
    align-self: center;
  }
}

@media (max-width: 767px) {
  .footer-join {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .footer-join__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .footer-join__form {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .footer-join__field {
    width: 100%;
  }
  .footer-join__btn {
    width: 100%;
    height: 40px;
    padding: 12px 28px;
    font-size: 14px;
  }
  .footer-links {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .footer-links__cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-links__cols .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .footer-legal {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .footer-legal__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-legal__links {
    justify-content: center;
    gap: 8px 16px;
  }
}

/* Homepage sections (§4.2–§4.8) + phone mockups (§2.5). */

/* ======================================================================
 * Phone mockup — white bezel, r≈30, soft inner shadow
 * ==================================================================== */
.phone {
  width: 205px;
  height: 444px;
  border-radius: 32px;
  background: var(--white);
  padding: 7px;
  box-shadow: 0 0 0 1px var(--grey-very-light), inset 0 0 6px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(4, 76, 201, 0.08);
  position: relative;
  flex-shrink: 0;
  font-family: var(--font-sans);
  pointer-events: none;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background: var(--neutral-100);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}
.phone__notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 16px;
  border-radius: var(--r-pill);
  background: var(--grey-100);
  z-index: 2;
}
.ph-bar {
  background: var(--white);
  padding: 9px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--grey-very-light);
}
.ph-bar__time {
  font-size: 9px;
  font-weight: 600;
  padding-left: 6px;
}
.ph-bar__title {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.2;
  margin-top: 4px;
}
.ph-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 9px;
  line-height: 1.35;
}
.ph-hello {
  font-family: var(--font-serif);
  font-size: 15px;
  margin: 2px 2px 2px;
}
.ph-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ph-row--between {
  justify-content: space-between;
}
.ph-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ph-card {
  background: var(--white);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-card);
}
.ph-card.ph-row {
  flex-direction: row;
}
.ph-card strong {
  font-weight: 600;
  font-size: 10px;
}
.ph-card span {
  color: var(--grey-80);
}
.ph-card--blue {
  background: var(--primary-500);
  color: var(--white);
}
.ph-card--blue span,
.ph-card--blue .ph-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.ph-eyebrow {
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-500);
  font-weight: 500;
}
.ph-ok {
  color: var(--success) !important;
  font-weight: 500;
}
.ph-big {
  font-family: var(--font-serif);
  font-size: 22px !important;
  font-weight: 400 !important;
}
.ph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ph-tile {
  background: var(--white);
  border-radius: 10px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 500;
  box-shadow: var(--shadow-card);
}
.ph-tile .icon {
  color: var(--primary-500);
}
.ph-tile--product {
  align-items: center;
  padding: 14px 6px;
  text-align: center;
}
.ph-tile--product .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-tint-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ph-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-500);
  font-size: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ph-chips {
  display: flex;
  gap: 4px;
}
.ph-chip {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  border-radius: 8px;
  background: var(--white);
  font-size: 8px;
  font-weight: 500;
}
.ph-chip.is-on,
.ph-slot.is-on {
  background: var(--primary-500);
  color: var(--white);
}
.ph-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.ph-slot {
  text-align: center;
  padding: 6px 0;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--grey-very-light);
  font-size: 8px;
  font-weight: 500;
}
.ph-btn {
  margin-top: 4px;
  background: var(--primary-500);
  color: var(--white);
  border-radius: var(--r-pill);
  text-align: center;
  padding: 8px;
  font-size: 9px;
  font-weight: 500;
}
.ph-btn--outline {
  background: var(--white);
  color: var(--primary-500);
  border: 1px solid var(--primary-500);
}
.ph-check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--neutral-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ph-check.is-on {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--white);
}
.ph-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary-tint-5);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ph-chart {
  width: 100%;
  height: 70px;
  margin: 4px 0;
}

/* ======================================================================
 * §4.2 Hero
 * ==================================================================== */
.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--white);
}
.hero__track {
  display: flex;
  height: 100%;
  transition: transform var(--dur-slide) var(--ease-out);
}
.hero__slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}
.hero__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__section {
  position: relative;
  z-index: 1;
}
.hero__content {
  width: 624px;
  max-width: 100%;
  padding: 63px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 576px;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.hero__actions {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.hero__web-link {
  font-size: 16px;
}
.hero__controls-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  z-index: 2;
  pointer-events: none;
}
.hero__controls {
  padding-left: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
  width: max-content;
}
.hero__pause {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-charcoal);
  border: 1px solid var(--grey-very-light);
  background: var(--white);
  position: relative;
}
.hero__pause::after {
  content: '';
  position: absolute;
  inset: -8px;
}

/* Slide 1 visual: 4 phones, staggered 2×2, rotated 22°, bleeding off the top */
.hero-cluster {
  position: absolute;
  left: calc(50% - 40px);
  top: -250px;
  width: 760px;
  height: 1100px;
}
.hero-cluster__rot {
  position: absolute;
  left: 180px;
  top: 0;
  width: 434px;
  height: 1032px;
  transform: rotate(22deg);
  transform-origin: 50% 40%;
}
.hero-cluster__phone {
  position: absolute;
}

/* Slide 2 visual: 670 circle rotated −10°, right-aligned, bleeding above */
.store-circle.hero__circle {
  position: absolute;
  right: max(-40px, calc(50% - 720px));
  top: -90px;
  width: 670px;
  height: 670px;
  rotate: -10deg;
}

/* Tablet: keep structure, give text more room */
@media (max-width: 1279px) {
  .hero-cluster {
    left: calc(50% + 20px);
  }
  .hero__content {
    width: 560px;
  }
  .store-circle.hero__circle {
    width: 560px;
    height: 560px;
    right: -120px;
    top: -40px;
  }
}
@media (max-width: 1023px) {
  .hero-cluster {
    left: calc(50% + 40px);
    opacity: 0.9;
  }
  .hero__content {
    width: 480px;
  }
  .hero .h1 {
    font-size: 40px;
  }
  .hero__actions {
    flex-wrap: wrap;
  }
}

/* Mobile hero (§4.2 Mobile) */
@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 666px;
  }
  .hero__track {
    height: auto;
    align-items: stretch;
  }
  .hero__slide {
    height: auto;
    min-height: 666px;
  }
  .hero-cluster {
    left: 50%;
    top: -150px;
    transform: translateX(-50%) scale(0.5);
    transform-origin: top center;
    width: 760px;
  }
  .hero-cluster__rot {
    left: 140px;
  }
  .store-circle.hero__circle {
    width: 392px;
    height: 392px;
    right: 50%;
    translate: 50% 0;
    top: -60px;
    rotate: -3deg;
  }
  .hero__content {
    width: 100%;
    padding: 305px 8px 40px;
    gap: 24px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 270px, var(--white) 300px);
  }
  .hero__slide--store .hero__content {
    padding-top: 345px;
  }
  .hero__slide--store .h1 {
    font-size: 32px;
  }
  .hero__text {
    gap: 16px;
  }
  .hero__actions {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .hero__controls-wrap {
    bottom: auto;
    top: 283px;
  }
  .hero__slide--store ~ .hero__controls-wrap {
    top: 283px;
  }
  .hero__controls {
    padding-left: 8px;
  }
}

/* Floating product tags (§2.5) */
.product-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--r-media);
  padding: 8px 14px 8px 8px;
  box-shadow: var(--shadow-floating);
  z-index: 2;
}
.product-tag__img {
  width: 44px;
  height: 44px;
  border-radius: var(--r-small);
  background: var(--primary-tint-5);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-tag__text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.3;
}
.product-tag__text strong {
  font-weight: 600;
}

.store-circle {
  position: relative;
  aspect-ratio: 1;
}
.store-circle__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, var(--white) 0%, var(--primary-50) 70%);
  color: var(--primary-tint-10);
}
.store-circle__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.store-circle__phone {
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translateX(-50%) rotate(-8deg) scale(1.15);
  transform-origin: top center;
}

/* ======================================================================
 * §4.3 Features
 * ==================================================================== */
.features {
  padding-top: 32px;
  padding-bottom: 80px;
  isolation: isolate;
}
.features__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.features__bg::before {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  top: 60px;
  bottom: -160px;
  background: var(--primary-tint-5);
  border-radius: 50% 50% 0 0 / 220px 220px 0 0;
  filter: blur(80px);
}
.features__bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 176px;
  background: linear-gradient(to bottom, var(--white), rgba(255, 255, 255, 0));
}
.bento {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bento__row {
  display: grid;
  gap: 24px;
}
.bento__row--1 {
  grid-template-columns: minmax(0, 300px) 1fr 1fr;
}
.bento__row--3 {
  grid-template-columns: 1fr 1fr;
}
.bento__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-card);
  padding: 32px;
  display: flex;
  gap: 24px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
@media (hover: hover) {
  .bento .feature-card:hover {
    transform: translateY(var(--lift));
    box-shadow: var(--shadow-md);
  }
}
.feature-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-card__title {
  font-weight: 600;
  font-size: var(--fs-card-title);
  line-height: 1.5;
}
.feature-card--vertical {
  flex-direction: column;
  min-height: 443px;
}
.feature-card--wide {
  align-items: center;
  gap: 32px;
}
.feature-card--wide .feature-visual {
  width: 302px;
  height: 151px;
  flex-shrink: 0;
}
.feature-card--split {
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}
.feature-card--split .feature-card__text {
  max-width: 320px;
}
.feature-visual {
  position: relative;
  border-radius: var(--r-media);
  border: 1px solid var(--primary-50);
  background: var(--primary-tint-5);
  overflow: hidden;
  flex-shrink: 0;
}
.feature-visual--wide {
  width: 100%;
  height: 181px;
}
.feature-visual--square {
  width: 180px;
  height: 180px;
}
.feature-visual__phone {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%) scale(0.82);
  transform-origin: top center;
}
.feature-visual--square .feature-visual__phone {
  top: 16px;
  transform: translateX(-50%) scale(0.72);
}
.feature-card--wide .feature-visual__phone {
  transform: translateX(-50%) scale(0.72);
}

.features-m {
  display: none;
}

@media (max-width: 1023px) {
  .bento__row--1 {
    grid-template-columns: 1fr 1fr;
  }
  .bento__intro {
    grid-column: 1 / -1;
  }
  .feature-card--split {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .feature-card--split .feature-visual {
    width: 100%;
    height: 181px;
  }
  .feature-card--split .feature-visual__phone {
    transform: translateX(-50%) scale(0.82);
  }
}

@media (max-width: 767px) {
  .bento__row,
  .bento__row--1 .feature-card {
    display: none;
  }
  .bento__row--1 {
    display: block;
  }
  .bento__intro {
    padding: 16px 0;
  }
  .bento__intro .eyebrow {
    font-size: 14px;
  }
  .features-m {
    display: block;
  }
  .features-m__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scroll-padding: 0 16px;
  }
  .features-m__track::-webkit-scrollbar {
    display: none;
  }
  .features-m__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
  }
  .features-m .feature-card {
    padding: 20px;
    gap: 16px;
    min-height: 0;
    border-radius: 20px;
    width: 100%;
  }
  .features-m .feature-visual {
    height: 161px;
  }
  .features-m__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
  }
  .features-m__controls .arrow-btn {
    border-radius: var(--r-small);
  }
}

/* ======================================================================
 * §4.4 NHS strip
 * ==================================================================== */
.nhs {
  padding-top: 64px;
  padding-bottom: 64px;
}
.nhs__inner {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 48px;
}
.nhs__text {
  max-width: 536px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nhs__badge {
  padding: 24px 0 0 24px;
  flex-shrink: 0;
}
@media (max-width: 1023px) {
  .nhs__inner {
    padding: 0;
  }
  .nhs__badge svg {
    width: 220px;
    height: auto;
  }
}
@media (max-width: 767px) {
  .nhs {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .nhs__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0 28px;
  }
  .nhs__badge {
    align-self: flex-end;
    padding: 0;
  }
  .nhs__badge svg {
    width: 169px;
  }
}

/* ======================================================================
 * §4.5 Store promo
 * ==================================================================== */
.store {
  padding-top: 96px;
  padding-bottom: 64px;
  overflow: hidden;
}
.store__wave {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 120px;
  color: var(--primary-tint-5);
  pointer-events: none;
}
.store__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.store__row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.store__content {
  max-width: 769px;
  padding: 64px 72px 64px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}
.store__text {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.store__circle {
  width: 411px;
  flex-shrink: 0;
}
.store__circle .store-circle__phone {
  transform: translateX(-50%) rotate(-8deg) scale(0.85);
  top: 12%;
}
.store__circle .product-tag {
  transform: scale(0.85);
}
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--neutral-300);
  border-radius: var(--r-card-l);
  padding: 20px 24px;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-weight: 500;
  font-size: 16px;
  color: var(--neutral-700);
  text-align: center;
  position: relative;
}
.trust-bar__item .icon {
  font-size: 32px;
  color: var(--neutral-500);
}
.trust-bar__item + .trust-bar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 32px;
  transform: translateY(-50%);
  background: var(--neutral-100);
}
@media (max-width: 1023px) {
  .store__content {
    padding-right: 24px;
  }
  .store__circle {
    width: 340px;
  }
  .trust-bar__item {
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .store__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .store__content {
    padding: 32px 12px;
    gap: 32px;
  }
  .store__circle {
    width: 100%;
    max-width: 361px;
    align-self: center;
    margin-top: -32px;
  }
  .trust-bar {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--r-card-m);
    padding: 16px;
    row-gap: 32px;
  }
  .trust-bar__item {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .trust-bar__item .icon {
    font-size: 24px;
  }
  .trust-bar__item:nth-child(3)::before {
    display: none;
  }
  .trust-bar__item:nth-child(n + 3)::after {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neutral-100);
  }
}

/* ======================================================================
 * §4.6 User comments
 * ==================================================================== */
.reviews {
  padding-top: 104px;
  padding-bottom: 104px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.reviews__doodle {
  position: absolute;
  right: 4%;
  top: -40px;
  width: 320px;
  color: var(--primary-tint-5);
  pointer-events: none;
}
.reviews__head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reviews__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 400;
}
.reviews__stat {
  font-family: var(--font-serif);
  font-size: var(--fs-stat);
  line-height: 1.2;
  color: var(--primary-500);
}
.reviews__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}
.reviews__lead {
  max-width: 831px;
}
.reviews__arrows {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}
.reviews__arrows-mobile {
  display: none;
}
.reviews__viewport {
  position: relative;
}
.reviews__viewport::before,
.reviews__viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(360px, 25vw);
  z-index: 1;
  pointer-events: none;
}
.reviews__viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 15%, rgba(255, 255, 255, 0));
}
.reviews__viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 15%, rgba(255, 255, 255, 0));
}
.reviews__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px calc(50% - 300px) 8px;
}
.reviews__track::-webkit-scrollbar {
  display: none;
}
.reviews__track:focus-visible {
  outline-offset: -2px;
}
.review-card {
  flex: 0 0 600px;
  min-height: 283px;
  scroll-snap-align: center;
  background: var(--primary-tint-5);
  border-radius: var(--r-card-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.review-card__quote {
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-quote);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card__mark {
  color: var(--primary-500);
  font-size: 28px;
  vertical-align: -6px;
  margin-right: 4px;
  rotate: 180deg;
}
.review-card__foot {
  display: flex;
  align-items: center;
  gap: 16px;
}
.review-card__who {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-card__who strong {
  font-weight: 700;
  font-size: 16px;
}
.review-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.review-card__meta .stars .icon {
  font-size: 20px;
}

@media (max-width: 767px) {
  .reviews {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 24px;
  }
  .reviews__doodle {
    width: 180px;
    top: -20px;
    right: -20px;
  }
  .reviews__arrows-desktop,
  .reviews__viewport::before,
  .reviews__viewport::after {
    display: none;
  }
  .reviews__arrows-mobile {
    display: block;
  }
  .reviews__arrows-mobile .reviews__arrows {
    justify-content: flex-end;
  }
  .reviews__lead {
    font-size: 16px;
  }
  .reviews__track {
    padding: 4px 16px 8px;
    scroll-padding: 0 16px;
    gap: 16px;
  }
  .review-card {
    flex: 0 0 min(330px, 88vw);
    min-height: 276px;
    padding: 32px 20px 24px;
    gap: 20px;
    scroll-snap-align: start;
  }
  .review-card__quote {
    font-size: 18px;
  }
}

/* ======================================================================
 * §4.7 Blogs
 * ==================================================================== */
.blogs {
  padding-top: 64px;
  padding-bottom: 64px;
}
.blogs__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blogs__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  height: 100%;
  background: var(--white);
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.blog-card__media {
  border-radius: var(--r-media);
  overflow: hidden;
}
.blog-card__img {
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(4, 76, 201, 0.12);
  transition: transform 300ms var(--ease-out);
}
.blog-card__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.blog-card__icon {
  font-size: 88px;
  color: var(--primary-500);
  position: relative;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  justify-content: space-between;
}
.blog-card__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.blog-card__date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 300;
  font-size: 16px;
}
.blog-card__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neutral-200);
}
.blog-card__chip {
  width: 58px;
  height: 32px;
  border-radius: var(--r-pill);
  border: 1px solid var(--grey-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-100);
  transition: background-color 150ms ease;
  flex-shrink: 0;
}
@media (hover: hover) {
  .blog-card:hover {
    transform: translateY(var(--lift));
    box-shadow: var(--shadow-md);
  }
  .blog-card:hover .blog-card__img {
    transform: scale(1.05);
  }
  .blog-card:hover .blog-card__chip {
    background: rgba(0, 0, 0, 0.04);
  }
}
.blogs__more {
  align-self: center;
  margin-top: 24px;
}
@media (max-width: 1023px) {
  .blog-card__date {
    font-size: 14px;
    gap: 8px;
  }
}
@media (max-width: 767px) {
  .blogs__row {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .blogs__row::-webkit-scrollbar {
    display: none;
  }
  .blogs__row li {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
  .blog-card {
    padding: 0;
    border-radius: var(--r-card-m);
    gap: 0;
    min-height: 328px;
    overflow: hidden;
  }
  .blog-card__media {
    border-radius: 0;
  }
  .blog-card__img {
    aspect-ratio: auto;
    height: 180px;
  }
  .blog-card__icon {
    font-size: 64px;
  }
  .blog-card__body {
    padding: 16px;
  }
  .blog-card__title {
    font-size: 16px;
  }
  .blogs__more {
    width: 100%;
    margin-top: 8px;
  }
  .blogs .eyebrow {
    font-size: 16px;
  }
}

/* ======================================================================
 * §4.8 Download promotion — Install banner
 * ==================================================================== */
.download {
  padding-top: 64px;
  padding-bottom: 64px;
}
.install-banner {
  position: relative;
  min-height: 300px;
  border-radius: var(--r-card-l);
  border: 1px solid var(--neutral-300);
  box-shadow: var(--shadow-card);
  background: linear-gradient(100deg, rgba(4, 76, 201, 0) 18%, rgba(4, 76, 201, 0.08) 100%), var(--white);
  overflow: hidden;
  display: flex;
  justify-content: space-between;
}
.install-banner__content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.install-banner__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.install-banner__visual {
  position: relative;
  flex: 1;
  min-width: 360px;
  max-width: 520px;
}
.install-banner__phone {
  position: absolute;
}
.install-banner__phone--a {
  left: 40px;
  top: 48px;
  rotate: -8deg;
}
.install-banner__phone--b {
  left: 250px;
  top: 96px;
  rotate: 6deg;
}

@media (max-width: 1023px) {
  .install-banner__visual {
    min-width: 260px;
  }
  .install-banner__phone--b {
    display: none;
  }
}
@media (max-width: 767px) {
  .download {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .install-banner {
    flex-direction: column;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(4, 76, 201, 0) 18%, rgba(4, 76, 201, 0.08) 100%), var(--white);
  }
  .install-banner__content {
    padding: 24px;
    gap: 16px;
  }
  .install-banner__text .lead {
    font-size: 16px;
  }
  .install-banner__badges {
    gap: 8px;
  }
  .install-banner__badges .store-badge {
    height: 37px !important;
    min-width: 0 !important;
    padding: 0 10px !important;
    border-radius: var(--r-small);
    gap: 6px !important;
  }
  .install-banner__badges .store-badge__small {
    font-size: 8px !important;
  }
  .install-banner__badges .store-badge__big {
    font-size: 13px !important;
  }
  .install-banner__badges svg {
    width: 18px !important;
    height: 18px !important;
  }
  .install-banner__visual {
    min-width: 0;
    height: 238px;
    margin-top: -42px;
  }
  .install-banner__phone--a {
    left: 50%;
    top: 60px;
    translate: -50% 0;
    rotate: -6deg;
  }
}

/*
 * Services site: patterns built on top of the homepage spec (tokens, cards,
 * pills, serif headings). Nothing here hard-codes a colour, radius or shadow.
 */

/* ======================================================================
 * Static hero (P2b, single slide, no indicator)
 * ==================================================================== */
.hero--static .hero__slide {
  height: 100%;
}
.hero--static .hero__content {
  padding-top: 72px;
}
.service-hero .hero__content {
  padding-top: 40px;
  gap: 32px;
}
.service-hero__from {
  font-size: 16px;
  color: var(--grey-80);
}
.service-hero__from strong {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 767px) {
  .hero--static .hero__content,
  .service-hero .hero__content {
    padding-top: 345px;
  }
  .hero--static .h1 {
    font-size: var(--fs-h1);
  }
  .hero--static .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Phone UI inside the tinted circle keeps normal text colour */
.store-circle__phone,
.confirm__phone {
  color: var(--text);
}

/* ---------- Breadcrumb (P3) ---------- */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 14px;
  color: var(--grey-light-1);
}
.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crumbs li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.crumbs a {
  color: var(--grey-80);
  border-radius: 4px;
}
@media (hover: hover) {
  .crumbs a:hover {
    color: var(--primary-500);
  }
}
.crumbs [aria-current='page'] {
  color: var(--text);
}

/* ---------- Page title header (P3) ---------- */
.page-title {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

/* ======================================================================
 * Services grid (tinted section on Home)
 * ==================================================================== */
.services-band {
  padding-top: 64px;
  padding-bottom: 80px;
}
.services-band__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.services-band__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.services-band__head .section-header {
  max-width: 640px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.service-grid > li {
  display: flex;
}
.service-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.service-card__media {
  position: relative;
  height: 160px;
  border-radius: var(--r-media);
  border: 1px solid var(--primary-50);
  background: var(--primary-tint-5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-tint-10);
}
.service-card__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.service-card__icon {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 300ms var(--ease-out);
}
.service-card__icon .icon {
  font-size: 44px;
}
.service-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.service-card__badge {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--primary-500);
  box-shadow: var(--shadow-card);
}
.service-card__badge--sale {
  color: var(--error);
}
.service-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.service-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.service-card__title {
  font-weight: 700;
  font-size: var(--fs-blog-title);
  line-height: 1.5;
}
.service-card__line {
  font-size: 16px;
  color: var(--grey-80);
}
.service-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.service-card__price {
  font-size: 16px;
  color: var(--grey-80);
}
.service-card__price strong {
  font-weight: 600;
  color: var(--text);
}
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(var(--lift));
    box-shadow: var(--shadow-md);
  }
  .service-card:hover .service-card__icon {
    transform: scale(1.05);
  }
  .service-card:hover .blog-card__chip {
    background: rgba(0, 0, 0, 0.04);
  }
}

@media (max-width: 1023px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Mobile: row of cards → horizontal scroller with a peek (§3.2 rule 3) */
@media (max-width: 767px) {
  .services-band {
    padding-top: 40px;
    padding-bottom: 64px;
  }
  /* "All services" drops below the scroller on phones */
  .services-band__head {
    display: contents;
  }
  .services-band__all {
    order: 3;
  }
  .service-grid {
    order: 2;
  }
  .services-band__inner {
    gap: 24px;
  }
  .service-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scroll-padding: 0 16px;
  }
  .service-grid::-webkit-scrollbar {
    display: none;
  }
  .service-grid > li {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }
  .service-card {
    padding: 0;
    border-radius: var(--r-card-m);
    overflow: hidden;
    gap: 0;
  }
  .service-card__media {
    border-radius: 0;
    border: 0;
    height: 150px;
  }
  .service-card__body {
    padding: 16px;
  }
  .service-card__title {
    font-size: 18px;
  }
  .service-card__line,
  .service-card__price {
    font-size: 14px;
  }
}

/* ======================================================================
 * How it works (web steps → app step)
 * ==================================================================== */
.how {
  padding-top: 64px;
  padding-bottom: 64px;
}
.how__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.how__inner .section-header {
  max-width: 720px;
}
.how__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  counter-reset: how;
}
.how-step {
  position: relative;
  border-radius: var(--r-card-l);
  border: 1px solid var(--neutral-300);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
}
.how-step--app {
  border-color: var(--primary-50);
  background: var(--primary-tint-5);
}
/* Connector between steps */
.how-step + .how-step::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--gap));
  top: 51px;
  width: var(--gap);
  height: 1px;
  background: var(--neutral-300);
}
.how-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.how-step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--grey-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
}
.how-step--app .how-step__num {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--white);
}
.how-step__where {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-light-1);
}
.how-step__where--app {
  color: var(--primary-500);
}
.how-step__title {
  font-weight: 600;
  font-size: var(--fs-card-title);
  line-height: 1.5;
}
@media (max-width: 1023px) {
  .how-step {
    padding: 24px;
  }
  .how-step__title {
    font-size: 20px;
  }
}
@media (max-width: 767px) {
  .how {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .how__inner {
    gap: 24px;
  }
  .how__steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .how-step {
    border-radius: var(--r-card-m);
    padding: 20px;
  }
  .how-step + .how-step::before {
    left: 39px;
    top: -16px;
    width: 1px;
    height: 16px;
  }
}

/* ======================================================================
 * In-app grid (app-only capabilities)
 * ==================================================================== */
.in-app {
  padding-top: 64px;
  padding-bottom: 64px;
}
.in-app__inner {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 48px;
  align-items: start;
}
.in-app__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px var(--gap);
}
.in-app__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.in-app__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-media);
  background: var(--primary-tint-5);
  border: 1px solid var(--primary-50);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.in-app__title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 2px;
}
.in-app__item .body {
  color: var(--grey-80);
  font-size: 16px;
}
@media (max-width: 1023px) {
  .in-app__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .in-app {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .in-app__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .in-app__icon {
    width: 40px;
    height: 40px;
  }
  .in-app__title {
    font-size: 16px;
  }
  .in-app__item .body {
    font-size: 14px;
  }
}

/* ======================================================================
 * Service landing: highlights, options, FAQ, related
 * ==================================================================== */
.highlights {
  padding-top: 8px;
  padding-bottom: 24px;
}
.trust-bar--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 767px) {
  .trust-bar--3 {
    grid-template-columns: repeat(3, 1fr);
    padding: 16px 8px;
    row-gap: 0;
  }
  .trust-bar--3 .trust-bar__item {
    padding: 0 4px;
  }
  .trust-bar--3 .trust-bar__item:nth-child(3)::before {
    display: block;
  }
  .trust-bar--3 .trust-bar__item:nth-child(n + 3)::after {
    display: none;
  }
}

.options {
  padding-top: 64px;
  padding-bottom: 64px;
}
.options__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.options__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--grey-80);
  margin-top: -16px;
}
.offer-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
.offer-grid--2 {
  --cols: 2;
}
.offer-grid--3 {
  --cols: 3;
}
.offer-grid--4 {
  --cols: 4;
}
.offer-grid > li {
  display: flex;
}
.offer-card {
  position: relative;
  width: 100%;
  background: var(--white);
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-very-light);
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, border-color 150ms ease;
}
.offer-card__flag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary-500);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.offer-card__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.offer-card__title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
}
.offer-card__text .body {
  font-size: 16px;
  color: var(--grey-80);
}
.offer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.offer-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-very-light);
}
.offer-card__price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.offer-card__price strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
}
.offer-card__price s {
  color: var(--grey-light-1);
  font-size: 14px;
}
.offer-card__price span {
  font-size: 14px;
  color: var(--grey-80);
}
.offer-card__go {
  padding: 12px 20px;
}
@media (hover: hover) {
  a.offer-card:hover {
    transform: translateY(var(--lift));
    box-shadow: var(--shadow-md);
    border-color: var(--primary-50);
  }
  a.offer-card:hover .offer-card__go {
    background: rgba(0, 0, 0, 0.04);
  }
}
.offer-card--product {
  padding-top: 24px;
}
.product-card__img {
  height: 120px;
  border-radius: var(--r-media);
  background: var(--primary-tint-5);
  border: 1px solid var(--primary-50);
  color: var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__img .icon {
  font-size: 56px;
}

@media (max-width: 1100px) {
  .offer-grid--4 {
    --cols: 2;
  }
}
@media (max-width: 1023px) {
  .offer-grid--3 {
    --cols: 2;
  }
}
@media (max-width: 767px) {
  .options {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .options__inner {
    gap: 32px;
  }
  .offer-grid {
    --cols: 1 !important;
    gap: 24px;
  }
  .offer-card {
    border-radius: var(--r-card-m);
    padding: 28px 20px 20px;
  }
  .offer-card__title {
    font-size: 18px;
  }
  .offer-card__text .body {
    font-size: 14px;
  }
  .offer-card__price strong {
    font-size: 28px;
  }
  /* Products: compact row cards so six of them don't become a long scroll */
  .offer-card--product {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 12px 16px;
    padding: 16px;
  }
  .offer-card--product .product-card__img {
    height: 72px;
  }
  .offer-card--product .product-card__img .icon {
    font-size: 36px;
  }
  .offer-card--product .offer-card__foot {
    grid-column: 1 / -1;
    padding-top: 12px;
  }
  .offer-card--product .offer-card__price strong {
    font-size: 24px;
  }
  .offer-grid:has(.offer-card--product) {
    gap: 12px;
  }
}
/* Keep the footer clear of the floating basket bar */
body:has(.basket-bar) .site-footer {
  padding-bottom: 96px;
}

/* ---------- Quantity stepper ---------- */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--grey-100);
  border-radius: var(--r-pill);
  height: 40px;
}
.stepper__btn {
  width: 40px;
  height: 38px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-100);
}
.stepper__btn:disabled {
  color: var(--disabled);
  cursor: not-allowed;
}
@media (hover: hover) {
  .stepper__btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.04);
  }
}
.stepper__n {
  min-width: 20px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
}

/* ---------- Floating basket bar (store landing) ---------- */
.basket-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0 var(--gutter) 16px;
  pointer-events: none;
  animation: fade-in-up 200ms var(--ease-out) both;
}
.basket-bar__inner {
  pointer-events: auto;
  max-width: var(--container);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-floating);
  padding: 16px 16px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.basket-bar__sum {
  display: flex;
  align-items: center;
  gap: 12px;
}
.basket-bar__sum > span {
  display: flex;
  flex-direction: column;
}
.basket-bar__sum .icon {
  color: var(--primary-500);
}
.basket-bar__sum strong {
  font-weight: 600;
}
.basket-bar__note {
  font-size: 13px;
  color: var(--grey-80);
}
@media (max-width: 767px) {
  .basket-bar {
    padding-bottom: 12px;
  }
  .basket-bar__inner {
    padding: 12px 12px 12px 16px;
    border-radius: var(--r-card-m);
  }
  .basket-bar__sum .icon {
    display: none;
  }
  .basket-bar .btn {
    padding: 12px 20px;
  }
}

/* ---------- FAQ (accordion) ---------- */
.faq {
  padding-top: 64px;
  padding-bottom: 64px;
}
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 48px;
  align-items: start;
}
.faqs {
  border-top: 1px solid var(--grey-very-light);
}
.faqs__item {
  border-bottom: 1px solid var(--grey-very-light);
}
.faqs__item h3 {
  font: inherit;
}
.faqs__q {
  width: 100%;
  min-height: 64px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
}
.faqs__q .icon {
  color: var(--grey-charcoal);
  transition: transform var(--dur-menu) var(--ease-out);
}
@media (hover: hover) {
  .faqs__q:hover {
    color: var(--primary-500);
  }
}
.faqs__a {
  padding: 0 40px 24px 0;
}
.faqs__a .body-l {
  font-size: 18px;
  color: var(--grey-80);
}
@media (max-width: 1023px) {
  .faq__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 767px) {
  .faq {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .faqs__q {
    font-size: 16px;
    min-height: 56px;
  }
  .faqs__a {
    padding-right: 0;
  }
  .faqs__a .body-l {
    font-size: 14px;
  }
}

.related {
  padding-top: 64px;
  padding-bottom: 32px;
}
.related__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width: 767px) {
  .related {
    padding-top: 40px;
    padding-bottom: 16px;
  }
  .related__inner {
    gap: 24px;
  }
}

/* ======================================================================
 * App handoff card (QR + steps + badges)
 * ==================================================================== */
.handoff {
  border-radius: var(--r-card-l);
  border: 1px solid var(--neutral-300);
  box-shadow: var(--shadow-card);
  background: linear-gradient(100deg, rgba(4, 76, 201, 0) 40%, rgba(4, 76, 201, 0.08) 100%), var(--white);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}
.handoff__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 620px;
}
.handoff__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 18px;
}
.handoff__steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.handoff__steps strong {
  font-weight: 600;
}
.handoff__n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-tint-10);
  color: var(--primary-500);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.handoff__help {
  font-size: 14px;
  color: var(--grey-80);
  border-top: 1px solid var(--grey-very-light);
  padding-top: 16px;
}
.handoff__qr {
  width: 212px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--grey-80);
}
.qr {
  border-radius: var(--r-media);
  border: 1px solid var(--neutral-300);
  padding: 12px;
  background: var(--white);
  width: 180px;
  height: 180px;
}
@media (max-width: 1023px) {
  .handoff {
    padding: 32px;
  }
}
/* No QR on phones: you're already on the device that needs the app */
@media (max-width: 767px) {
  .handoff {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    border-radius: var(--r-card-m);
    gap: 24px;
  }
  .handoff__steps {
    font-size: 16px;
  }
  .handoff__qr {
    display: none;
  }
}

/* ======================================================================
 * Booking flow
 * ==================================================================== */
.flow-header__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-80);
  margin-left: auto;
}
.flow-header__secure .icon {
  color: var(--success);
}
.flow-header .site-header__bar {
  height: 72px;
}
@media (max-width: 767px) {
  .flow-header .site-header__bar {
    height: 64px;
  }
  .flow-header__exit span:not(.icon) {
    display: none;
  }
  .flow-header__exit {
    padding: 0 10px;
  }
}

.flow {
  padding-top: 32px;
  padding-bottom: 80px;
  min-height: calc(100vh - 72px - 80px);
  background: linear-gradient(to bottom, var(--white) 0, var(--primary-tint-3) 360px, var(--primary-tint-3));
}
.flow__title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Progress steps */
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  counter-reset: s;
}
.steps__item {
  flex: 1;
  min-width: 0;
  border-top: 3px solid var(--grey-very-light);
  padding-top: 12px;
}
.steps__item--done,
.steps__item--current {
  border-top-color: var(--primary-500);
}
.steps__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-light-1);
  border-radius: 4px;
  max-width: 100%;
}
.steps__item--current .steps__btn {
  color: var(--text);
}
.steps__item--done .steps__btn {
  color: var(--primary-500);
}
@media (hover: hover) {
  button.steps__btn:hover .steps__label {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.steps__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.steps__item--current .steps__dot {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--white);
}
.steps__item--done .steps__dot {
  background: var(--primary-tint-10);
  border-color: transparent;
}
.steps__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.flow__card {
  background: var(--white);
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-very-light);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.flow__count {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-light-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: -16px;
}
.flow__h:focus {
  outline: none;
}
.flow__aside {
  position: sticky;
  top: 24px;
}
.flow__summary-m {
  display: none;
}
.flow-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.flow-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  background: var(--primary-tint-5);
  border-radius: var(--r-media);
  padding: 14px 16px;
}
.flow-note .icon {
  color: var(--primary-500);
  font-size: 20px;
}
.flow-note strong {
  font-weight: 600;
}
.flow-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-very-light);
}
.flow-actions__next {
  min-width: 200px;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  animation: spin 700ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Summary card */
.summary {
  background: var(--white);
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-very-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.summary__head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.summary__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-media);
  background: var(--primary-tint-5);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.summary__title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}
.summary__sub {
  font-size: 14px;
  color: var(--grey-80);
}
.summary__lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-very-light);
}
.summary__lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.summary__lines dt {
  color: var(--grey-80);
  flex-shrink: 0;
}
.summary__lines dd {
  text-align: right;
  font-weight: 400;
}
.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--grey-very-light);
  font-weight: 500;
}
.summary__total strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
}
.summary__app {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--grey-80);
  background: var(--neutral-100);
  border-radius: var(--r-small);
  padding: 10px 12px;
}
.summary__app .icon {
  color: var(--primary-500);
}

/* Review list (pay step, confirmation) */
.review {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--grey-very-light);
}
.review > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-very-light);
  font-size: 16px;
}
.review dt {
  color: var(--grey-80);
}
.review dd {
  font-weight: 400;
}
.review__total dd strong {
  font-weight: 600;
}

/* Radio cards */
.choice-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.choice-group__legend {
  font-weight: 500;
  font-size: 16px;
  padding: 0;
  margin-bottom: 12px;
}
.choice-group__list {
  display: grid;
  gap: 12px;
}
.choice-group__list--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice-group__list--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--r-media);
  background: var(--white);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}
@media (hover: hover) {
  .choice:hover {
    border-color: var(--grey-light-2);
  }
}
.choice.is-on {
  border-color: var(--primary-500);
  background: var(--primary-tint-3);
  box-shadow: inset 0 0 0 1px var(--primary-500);
}
.choice.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.choice__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-small);
  background: var(--primary-tint-5);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.choice__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.choice__title {
  font-weight: 500;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.choice__detail {
  font-size: 14px;
  color: var(--grey-80);
}
.choice__aside {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-80);
  white-space: nowrap;
}
.choice__price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.choice__price s {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--grey-light-1);
}
.choice__radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--grey-light-2);
  flex-shrink: 0;
  position: relative;
}
.choice.is-on .choice__radio {
  border-color: var(--primary-500);
}
.choice.is-on .choice__radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--primary-500);
}
.choice-group[aria-invalid='true'] .choice {
  border-color: var(--error);
}
.choice-group__list--2 .choice,
.choice-group__list--3 .choice {
  padding: 14px 16px;
}

/* Day strip + time slots */
.slot-picker {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.day-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  margin: -2px;
}
.day-strip::-webkit-scrollbar {
  display: none;
}
.day-chip {
  flex: 0 0 72px;
  height: 64px;
  border-radius: var(--r-media);
  border: 1px solid var(--neutral-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--white);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.day-chip__dow {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-80);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.day-chip__date {
  font-size: 15px;
  font-weight: 500;
}
.day-chip[aria-checked='true'] {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--white);
}
.day-chip[aria-checked='true'] .day-chip__dow {
  color: var(--white);
}
.day-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@media (hover: hover) {
  .day-chip:not(:disabled):not([aria-checked='true']):hover,
  .slot:not([aria-checked='true']):hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
  }
}
.slot-part {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slot-part + .slot-part {
  margin-top: 8px;
}
.slot-part__label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-light-1);
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.slot {
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--neutral-300);
  background: var(--white);
  font-weight: 500;
  font-size: 14px;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.slot[aria-checked='true'] {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--white);
}

/* Basket step */
.basket {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--grey-very-light);
}
.basket__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-very-light);
}
.basket__img {
  width: 48px;
  height: 48px;
  border-radius: var(--r-small);
  background: var(--primary-tint-5);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.basket__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--grey-80);
}
.basket__text strong {
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
}
.basket__row:not(.is-on) .basket__img {
  background: var(--neutral-100);
  color: var(--grey-light-1);
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}
.form-grid__full {
  grid-column: 1 / -1;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--primary-500);
  flex-shrink: 0;
}
.check--error input {
  outline: 2px solid var(--error);
  outline-offset: 1px;
}

@media (max-width: 1023px) {
  .flow__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }
  .flow__card {
    padding: 32px;
  }
  .steps__label {
    font-size: 13px;
  }
}

/* Mobile flow: summary collapses on top, actions stick to the bottom */
@media (max-width: 767px) {
  .flow {
    padding-top: 20px;
    padding-bottom: 0;
  }
  .flow__title {
    margin-bottom: 16px;
  }
  .steps {
    gap: 4px;
    margin-bottom: 16px;
  }
  .steps__label {
    display: none;
  }
  .steps__item--current .steps__label {
    display: inline;
  }
  .steps__item--current {
    flex: 2.5;
  }
  .flow__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .flow__aside {
    display: none;
  }
  .flow__summary-m {
    display: block;
    background: var(--white);
    border: 1px solid var(--grey-very-light);
    border-radius: var(--r-card-m);
    box-shadow: var(--shadow-card);
  }
  .flow__summary-m summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    min-height: 52px;
    font-weight: 500;
    cursor: pointer;
  }
  .flow__summary-m summary::-webkit-details-marker {
    display: none;
  }
  .flow__summary-m summary > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .flow__summary-m summary .icon {
    color: var(--primary-500);
    font-size: 20px;
  }
  .flow__summary-m .summary {
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--grey-very-light);
    border-radius: 0 0 var(--r-card-m) var(--r-card-m);
    padding: 16px;
  }
  .flow__card {
    padding: 24px 16px 0;
    border-radius: var(--r-card-m);
    margin: 0 -16px;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    gap: 20px;
  }
  .flow-stack {
    gap: 24px;
  }
  .flow-actions {
    position: sticky;
    bottom: 0;
    margin: 0 -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--grey-very-light);
    z-index: 5;
  }
  .flow-actions__back {
    padding: 12px 18px;
  }
  .flow-actions__next {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
  }
  .choice-group__list--3 {
    grid-template-columns: 1fr;
  }
  .choice {
    padding: 14px 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .review > div {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 14px;
  }
}

/* ======================================================================
 * Confirmation
 * ==================================================================== */
.confirm {
  padding-top: 48px;
  padding-bottom: 64px;
}
.confirm__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.confirm__hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.confirm__tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 8px;
  animation: fade-in-up 400ms var(--ease-out) both;
}
.confirm__tick .icon {
  font-size: 36px;
}
.confirm__ref {
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.confirm__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: var(--gap);
  align-items: stretch;
}
.confirm__summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.confirm__h {
  font-weight: 600;
  font-size: 18px;
}
.confirm__h + .review {
  margin-top: -8px;
}
.confirm__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}
.next-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: -6px;
}
.next-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
}
.next-steps__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-small);
  background: var(--primary-tint-5);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.next-steps__icon .icon {
  font-size: 18px;
}
.confirm__preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--grey-80);
}
.confirm__preview-bg {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 420px;
  border-radius: var(--r-card-l);
  background: radial-gradient(circle at 30% 25%, var(--white) 0%, var(--primary-50) 75%);
  overflow: hidden;
}
.confirm__phone {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%) rotate(-4deg) scale(1.05);
  transform-origin: top center;
}
.confirm__more {
  display: flex;
  justify-content: center;
}
@media (max-width: 1023px) {
  .confirm__grid {
    grid-template-columns: 1fr;
  }
  .confirm__preview-bg {
    min-height: 360px;
  }
}
@media (max-width: 767px) {
  .confirm {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .confirm__inner {
    gap: 24px;
  }
  .confirm__hero {
    flex-direction: column;
    gap: 16px;
  }
  .confirm__tick {
    width: 48px;
    height: 48px;
    margin-top: 0;
  }
  .confirm__tick .icon {
    font-size: 28px;
  }
  .confirm__preview {
    display: none;
  }
  .next-steps li {
    font-size: 14px;
  }
  .confirm__actions .btn {
    flex: 1;
  }
}

/* ======================================================================
 * Manage page + services index
 * ==================================================================== */
.manage {
  padding-top: 48px;
  padding-bottom: 24px;
}
.manage__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact {
  padding-top: 24px;
  padding-bottom: 80px;
}
.contact__card {
  display: flex;
  gap: 24px;
  align-items: center;
  border-radius: var(--r-card-l);
  background: var(--primary-tint-5);
  padding: 32px;
}
.contact__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}
.contact__icon .icon {
  font-size: 32px;
}
.contact__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 767px) {
  .manage {
    padding-top: 24px;
  }
  .manage__inner {
    gap: 24px;
  }
  .contact {
    padding-bottom: 40px;
  }
  .contact__card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    border-radius: var(--r-card-m);
    gap: 16px;
  }
  .contact__icon {
    width: 48px;
    height: 48px;
  }
}

.services-index {
  padding-top: 48px;
  padding-bottom: 32px;
}
.services-index__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.services-index__group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.services-index__tag {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-light-1);
}
@media (max-width: 767px) {
  .services-index {
    padding-top: 24px;
  }
  .services-index__inner {
    gap: 32px;
  }
}

/* ======================================================================
 * Print: confirmation only
 * ==================================================================== */
@media print {
  .marquee,
  .site-header,
  .site-footer,
  .handoff,
  .confirm__preview,
  .confirm__actions,
  .confirm__more,
  .toast {
    display: none !important;
  }
  .confirm__grid {
    grid-template-columns: 1fr;
  }
  .card {
    box-shadow: none;
    border: 1px solid var(--neutral-300);
  }
}

/* ======================================================================
 * Directory: every service with every option
 * ==================================================================== */
.dir-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -16px;
}
.dir-jump__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--neutral-300);
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-charcoal);
}
.dir-jump__count {
  min-width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--neutral-100);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (hover: hover) {
  .dir-jump__chip:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
  }
}
.dir-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.dir-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  background: var(--white);
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-very-light);
  padding: 32px;
}
.dir-row__main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.dir-row__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-media);
  background: var(--primary-tint-5);
  border: 1px solid var(--primary-50);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dir-row__icon .icon {
  font-size: 32px;
}
.dir-row__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.dir-row__title {
  font-weight: 600;
  font-size: var(--fs-card-title);
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dir-row__line {
  font-size: 16px;
  color: var(--grey-80);
}
.dir-row__from {
  font-size: 16px;
  color: var(--grey-80);
}
.dir-row__from strong {
  color: var(--text);
  font-weight: 600;
}
.dir-row__more {
  margin-top: 8px;
}
.dir-row__options {
  border-top: 1px solid var(--grey-very-light);
  align-self: start;
}
.dir-option {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--grey-very-light);
  font-size: 16px;
}
.dir-option__title {
  flex: 1;
  min-width: 0;
  font-weight: 400;
}
.dir-option__price {
  font-weight: 600;
  white-space: nowrap;
}
.dir-option .icon {
  color: var(--grey-charcoal);
  transition: transform 150ms ease;
}
.dir-option--all .dir-option__title {
  color: var(--primary-500);
}
@media (hover: hover) {
  .dir-option:hover .dir-option__title {
    color: var(--primary-500);
  }
  .dir-option:hover .icon {
    transform: translateX(3px);
    color: var(--primary-500);
  }
}
@media (max-width: 1023px) {
  .dir-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 767px) {
  .dir-jump {
    margin-top: -8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
  }
  .dir-jump::-webkit-scrollbar {
    display: none;
  }
  .dir-jump__chip {
    flex-shrink: 0;
  }
  .dir-row {
    padding: 20px;
    border-radius: var(--r-card-m);
    gap: 16px;
  }
  .dir-row__icon {
    width: 48px;
    height: 48px;
  }
  .dir-row__icon .icon {
    font-size: 24px;
  }
  .dir-option {
    font-size: 14px;
  }
}
