/* ==========================================================================
   Grow Digital UK — shared stylesheet
   Mobile-first. Colours checked against WCAG AA.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #0F1B2D;
  --navy-2: #172A42;
  --teal: #14B8A6;          /* accent / button backgrounds (navy text on top: 6.9:1) */
  --teal-hover: #2DD4BF;
  --teal-dark: #0F766E;     /* teal for text on light backgrounds (5.4:1 on white) */
  --teal-tint: #E6F7F5;

  /* Neutrals */
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --text: #1E293B;
  --muted: #64748B;         /* small labels: 4.7:1 on white, 4.5:1 on --bg */
  --text-soft: #475569;     /* body paragraphs: 7.6:1 on white */
  --amber: #F59E0B;         /* sparing accent; always navy text on top (7.9:1) */
  --line: #E2E8F0;
  --input-border: #64748B;
  --on-navy: #CBD5E1;       /* body text on navy (11:1) */
  --on-navy-muted: #94A3B8; /* small print on navy (6.7:1) */

  /* Shape */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.05), 0 4px 16px rgba(15, 27, 45, 0.06);
  --shadow-lg: 0 2px 6px rgba(15, 27, 45, 0.06), 0 16px 40px rgba(15, 27, 45, 0.12);

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 3px;
}

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

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

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

.section-navy :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--teal);
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--white);
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 760px;
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-white {
  background: var(--white);
}

.section-navy {
  background: var(--navy);
  color: var(--on-navy);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

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

.section-head p:not(.eyebrow) {
  color: var(--text-soft);
  font-size: 1.075rem;
}

.section-navy .section-head p:not(.eyebrow) {
  color: var(--on-navy);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-navy .eyebrow,
.cta-band .eyebrow {
  color: var(--teal);
}

.lead {
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

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

.note {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.after-grid {
  margin-top: 24px;
}

.h3-size {
  font-size: 1.2rem;
}

.pricing-group-head p {
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stack > * + * {
  margin-top: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--teal-hover);
  color: var(--navy);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-outline-light:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 479.98px) {
  .btn-row .btn {
    width: 100%;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.js .site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom-color: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.js .site-header.is-scrolled,
.js .site-header.nav-open {
  background: var(--white);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(15, 27, 45, 0.08);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--navy);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
}

.site-nav {
  width: 100%;
  padding-bottom: 12px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--bg);
  color: var(--teal-dark);
}

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

.site-nav .nav-cta a {
  background: var(--teal);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 0 18px;
}

.site-nav .nav-cta a:hover {
  background: var(--teal-hover);
  color: var(--navy);
}

/* Mobile and tablet: hamburger (only when JS is running; without JS the links show as a wrapped list) */
@media (max-width: 1079.98px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
  }

  .nav-toggle-bars {
    position: relative;
    width: 20px;
    height: 14px;
  }

  .nav-toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }

  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 6px; }
  .nav-toggle-bars span:nth-child(3) { top: 12px; }

  .nav-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .js .nav-open .site-nav {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav li:not(.nav-cta) a {
    min-height: 52px;
    padding: 0 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .js .site-nav li:not(.nav-cta) a:hover {
    background: transparent;
  }

  .js .site-nav .nav-cta a {
    justify-content: center;
    min-height: 52px;
    margin-top: 16px;
  }
}

@media (min-width: 1080px) {
  .site-nav {
    width: auto;
    padding-bottom: 0;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-nav .nav-cta {
    margin-left: 8px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
}

.hero h1 .accent {
  display: block;
  color: var(--teal-dark);
}

.hero .lead {
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-weight: 500;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-points li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1B2D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Browser-window mockup (pure CSS) ---------- */

.browser {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #EEF2F7;
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  display: flex;
  flex: none;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}

.browser-dots span:nth-child(1) { background: #F87171; }
.browser-dots span:nth-child(2) { background: #FBBF24; }
.browser-dots span:nth-child(3) { background: #34D399; }

.browser-url {
  flex: 1;
  min-width: 0;
  padding: 3px 10px;
  overflow: hidden;
  background: var(--white);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-url::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 8px;
  margin-right: 6px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  vertical-align: -1px;
  opacity: 0.7;
}

/* ---------- Site mockups inside the browser frame ----------
   Everything scales with the mockup's own width (container query units),
   so it reads like a real homepage screenshot at any size. */

.sm {
  --sm-bg: #FFFFFF;
  --sm-ink: #111827;
  --sm-muted: #6B7280;
  --sm-accent: #111827;
  --sm-accent-ink: #FFFFFF;
  --sm-head: var(--font-head);
  --sm-panel: #F3F4F6;
  container-type: inline-size;
  background: var(--sm-bg);
  color: var(--sm-ink);
  font-family: var(--font-body);
  line-height: 1.3;
}

.sm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
  padding: 2.6cqw 4.5cqw;
  font-size: 1.9cqw;
}

.sm-logo {
  font-family: var(--sm-head);
  font-size: 3cqw;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sm-links {
  display: flex;
  gap: 3.2cqw;
  margin-left: auto;
  color: var(--sm-muted);
  white-space: nowrap;
}

.sm-cta,
.sm-btn {
  display: inline-block;
  border-radius: 0.8cqw;
  background: var(--sm-accent);
  color: var(--sm-accent-ink);
  font-weight: 600;
  white-space: nowrap;
}

.sm-cta {
  padding: 1.1cqw 2.4cqw;
}

.sm-btn {
  padding: 1.5cqw 3.2cqw;
  font-size: 1.9cqw;
}

.sm-hero {
  position: relative;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  background: var(--sm-panel);
}

.sm-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay hero: darken the photo (not the text) so white text stays readable */
.sm-overlay .sm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.05) 100%);
}

.sm-hero-text {
  position: absolute;
  z-index: 1;
  left: 5cqw;
  bottom: 6.5cqw;
  max-width: 58%;
  color: #FFFFFF;
}

.sm-kicker {
  display: block;
  margin-bottom: 1.4cqw;
  font-size: 1.55cqw;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.sm-title {
  display: block;
  margin-bottom: 2.6cqw;
  font-family: var(--sm-head);
  font-size: 5.4cqw;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

/* Split hero: text panel on the left, photo on the right */
.sm-split .sm-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.sm-split .sm-hero img {
  position: static;
  grid-column: 2;
  grid-row: 1;
}

.sm-split .sm-hero-text {
  position: static;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  max-width: none;
  padding: 0 4cqw 0 5cqw;
  color: var(--sm-ink);
}

.sm-split .sm-kicker {
  color: var(--sm-accent);
  opacity: 1;
}

.sm-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  width: 46cqw;
  padding: 0.9cqw 0.9cqw 0.9cqw 2.2cqw;
  border-radius: 1cqw;
  background: #FFFFFF;
  color: #6B7280;
  font-size: 1.8cqw;
}

.sm-search .sm-btn {
  padding: 1.2cqw 2.4cqw;
}

.sm-tags {
  display: flex;
  gap: 1.4cqw;
  margin-top: 2.4cqw;
  font-size: 1.6cqw;
  color: var(--sm-muted);
}

.sm-tags span {
  padding: 0.6cqw 1.6cqw;
  border: 1px solid currentColor;
  border-radius: 99px;
}

.sm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.6cqw;
  padding: 3.4cqw 4.5cqw 4.5cqw;
}

.sm-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.8cqw;
}

.sm-card-title {
  display: block;
  margin-top: 1.5cqw;
  font-family: var(--sm-head);
  font-size: 2.2cqw;
  font-weight: 600;
}

.sm-card-sub {
  display: block;
  margin-top: 0.4cqw;
  color: var(--sm-muted);
  font-size: 1.65cqw;
}

/* Text-only cards (home page mockup) */
.sm-card.text {
  padding: 2.4cqw;
  border: 1px solid var(--line);
  border-radius: 1cqw;
  background: var(--bg);
}

.sm-card.text .sm-card-title {
  margin-top: 0;
}

/* Small mockups (phones): drop the nav links and enlarge the type a little */
@container (max-width: 480px) {
  .sm-links { display: none; }
  .sm-nav { font-size: 2.6cqw; }
  .sm-logo { font-size: 3.8cqw; }
  .sm-title { font-size: 6.4cqw; }
  .sm-btn { font-size: 2.6cqw; }
  .sm-kicker { font-size: 2.1cqw; }
  .sm-card-title { font-size: 2.9cqw; }
  .sm-card-sub { font-size: 2.3cqw; }
  .sm-search { width: 100%; font-size: 2.4cqw; }
  .sm-tags { display: none; }
  .sm-split .sm-hero { grid-template-columns: 1.1fr 0.9fr; }
}

/* Very small mockups (the phone frame): stack and enlarge */
@container (max-width: 260px) {
  .sm-nav { padding: 4.5cqw 6cqw; }
  .sm-logo { font-size: 6.5cqw; }
  .sm-cta { display: none; }
  .sm-hero { aspect-ratio: 3 / 4; }
  .sm-hero-text { left: 7cqw; right: 7cqw; bottom: 9cqw; max-width: none; }
  .sm-kicker { font-size: 3.6cqw; }
  .sm-title { font-size: 9.5cqw; }
  .sm-btn { padding: 2.6cqw 5cqw; font-size: 3.8cqw; }
  .sm-split .sm-hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .sm-split .sm-hero img { grid-column: 1; grid-row: 2; height: 100%; }
  .sm-split .sm-hero-text { grid-row: 1; padding: 7cqw 7cqw 5cqw; }
  .sm-search { font-size: 3.6cqw; }
  .sm-search .sm-btn { display: none; }
  .sm-cards { grid-template-columns: 1fr 1fr; gap: 3.5cqw; padding: 6cqw; }
  .sm-cards > :nth-child(3) { display: none; }
  .sm-card-title { font-size: 4.6cqw; }
  .sm-card-sub { font-size: 3.8cqw; }
}

/* Concept themes */
.sm-restaurant {
  --sm-bg: #0E0D0C;
  --sm-ink: #F4EEE6;
  --sm-muted: #A8A096;
  --sm-accent: #C9A46A;
  --sm-accent-ink: #0E0D0C;
  --sm-head: Georgia, "Times New Roman", serif;
}

.sm-trades {
  --sm-bg: #FFFFFF;
  --sm-ink: #0F2A43;
  --sm-muted: #5B6B7B;
  --sm-accent: #F2A900;
  --sm-accent-ink: #0F2A43;
  --sm-panel: #F1F5F9;
}

.sm-trades .sm-nav {
  border-bottom: 1px solid #E5E9EF;
}

.sm-property {
  --sm-bg: #FAF8F4;
  --sm-ink: #22302A;
  --sm-muted: #6D746F;
  --sm-accent: #24493A;
  --sm-accent-ink: #FFFFFF;
  --sm-head: Georgia, "Times New Roman", serif;
}

.sm-salon {
  --sm-bg: #FBF5F2;
  --sm-ink: #3B2A2C;
  --sm-muted: #8A7471;
  --sm-accent: #B98378;
  --sm-accent-ink: #FFFFFF;
  --sm-head: Georgia, "Times New Roman", serif;
  --sm-panel: #F5E9E4;
}

.sm-home {
  --sm-ink: var(--navy);
  --sm-muted: var(--muted);
  --sm-accent: var(--teal);
  --sm-accent-ink: var(--navy);
}

/* ---------- Cards ---------- */

.card {
  padding: clamp(22px, 3vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card > :last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text);
}

.section-white .card {
  background: var(--bg);
  box-shadow: none;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .text-link {
  margin-top: auto;
}

.card-tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal-dark);
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

.check-list {
  margin: 0 0 1.25em;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 2px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--teal-dark);
  border-bottom: 2.5px solid var(--teal-dark);
  transform: rotate(-45deg);
}

.section-navy .check-list li::before {
  border-color: var(--teal);
}

/* ---------- Steps ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  color: var(--text-soft);
}

/* ---------- Pricing ---------- */

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card h3 {
  margin-bottom: 4px;
}

.price-card .summary {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.price {
  margin: 8px 0 18px;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.price .from,
.price .per {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.price-card .check-list {
  flex: 1;
}

.price-card .btn {
  margin-top: 8px;
}

.price-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.price-list li:last-child {
  border-bottom: 0;
}

.price-list strong {
  color: var(--navy);
  white-space: nowrap;
}

.price-card.featured {
  border: 2px solid var(--teal);
}

.pricing-group + .pricing-group {
  margin-top: clamp(56px, 8vw, 80px);
}

.pricing-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.pricing-group-head h2 {
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
}

.faq details {
  margin-bottom: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-white .faq details {
  background: var(--bg);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq-body {
  padding: 0 20px 18px;
}

.faq-body > :last-child {
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--on-navy);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  max-width: 600px;
  margin-inline: auto;
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 80px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  max-width: 680px;
}

.page-hero .btn-row {
  margin-top: 24px;
}

/* ---------- Image placeholders ---------- */

.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 24px;
  background: repeating-linear-gradient(45deg, #EEF2F7, #EEF2F7 12px, #F5F7FA 12px, #F5F7FA 24px);
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.placeholder.portrait {
  aspect-ratio: 4 / 5;
}

/* ---------- About: founder photo and at-a-glance card ---------- */

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facts-card {
  padding: clamp(24px, 3vw, 32px);
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--on-navy);
}

.facts-card h2 {
  margin-bottom: 8px;
  color: var(--white);
}

.facts {
  margin: 0 0 24px;
}

.facts div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.facts dt {
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.facts dd {
  margin: 2px 0 0;
  color: var(--white);
}

/* ---------- Work page ---------- */

.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 6vw, 64px) 40px;
}

@media (min-width: 900px) {
  .concept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.concept .browser {
  max-width: none;
}

.concept-body {
  padding-top: 20px;
}

.concept-body h3 {
  margin-bottom: 6px;
}

.concept-body p {
  margin: 0;
  color: var(--text-soft);
}

.concept-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid var(--muted);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.photo-credit {
  margin-top: clamp(40px, 6vw, 56px);
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }

  .split.wide-left {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

/* ---------- Pills / tag lists ---------- */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Callout ---------- */

.callout {
  padding: 20px 22px;
  background: var(--teal-tint);
  border-left: 4px solid var(--teal-dark);
  border-radius: var(--radius-sm);
}

.callout > :last-child {
  margin-bottom: 0;
}

/* ---------- Forms ---------- */

.form-card {
  padding: clamp(22px, 4vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-weight: 600;
}

.field .optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px; /* 16px stops iOS zooming into fields */
  line-height: 1.4;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E293B' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.35);
}

.hp-field {
  display: none;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
}

.form-status.success {
  color: var(--teal-dark);
}

.form-status.error {
  color: #B91C1C;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list .label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Prose (legal pages) ---------- */

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
}

.prose h3 {
  margin-top: 1.5em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 32px;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 15px;
}

.site-footer * {
  font-size: inherit;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

.site-footer .logo {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 15px;
}

.site-footer .logo-mark {
  font-size: 15px;
}

.footer-heading {
  margin: 0 0 8px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-navy);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.site-footer p {
  margin: 0 0 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-navy-muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

/* Leave room so the WhatsApp button never sits on top of the last footer links */
@media (max-width: 1279.98px) {
  .js .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* ---------- WhatsApp floating button ---------- */

.wa-float {
  display: none;
}

.js .wa-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1DA851;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(15, 27, 45, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.js .wa-float:hover {
  color: var(--white);
  background: #178A43;
}

.js .wa-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85);
  pointer-events: none;
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

/* Small phones: a slightly smaller button tucked into the corner, and extra room at the
   bottom of each section so the last lines of text can always scroll clear of it */
@media (max-width: 479.98px) {
  .js .wa-float {
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }

  .wa-float svg {
    width: 24px;
    height: 24px;
  }

  .js main > section {
    padding-bottom: calc(clamp(56px, 8vw, 96px) + 24px);
  }
}

/* ---------- Scroll reveal (only switched on by JS; never hides content without it) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-on .reveal {
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal-on .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ---------- Home hero: laptop and phone showing the concepts ---------- */

.devices {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  padding-bottom: 4%;
}

.laptop {
  width: 84%;
  margin-left: 5%;
}

.laptop-screen {
  padding: 2.2% 2.2% 2.8%;
  background: #0B0F17;
  border-radius: 16px 16px 6px 6px;
  box-shadow: inset 0 0 0 1px #2A3140, var(--shadow-lg);
}

.laptop-display {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: #FFFFFF;
}

.laptop-base {
  position: relative;
  height: 14px;
  margin: 0 -6%;
  background: linear-gradient(#E8ECF1, #C5CDD8);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 20px rgba(15, 27, 45, 0.12);
}

.laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 5px;
  transform: translateX(-50%);
  background: #B3BCC9;
  border-radius: 0 0 8px 8px;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  padding: 1.5%;
  background: #0B0F17;
  border-radius: clamp(12px, 3.4vw, 24px);
  box-shadow: inset 0 0 0 1px #2A3140, 0 20px 40px rgba(15, 27, 45, 0.3);
}

.phone-display {
  position: relative;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border-radius: clamp(9px, 2.6vw, 18px);
  background: #FFFFFF;
}

.phone-display::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 2.5%;
  left: 50%;
  width: 30%;
  height: 3%;
  transform: translateX(-50%);
  background: #0B0F17;
  border-radius: 99px;
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(4%);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: none;
}

.slide.is-leaving {
  opacity: 0;
  transform: translateX(-4%);
}

.phone .sm-nav {
  padding-top: 13cqw;
}

.devices-note {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Home: recent concept work strip ---------- */

.marquee {
  overflow-x: auto;
  padding: 8px 2px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.marquee::-webkit-scrollbar {
  display: none;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.concept-tile {
  display: block;
  flex: none;
  width: min(80vw, 400px);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}

.concept-tile:hover {
  color: inherit;
}

.concept-tile .browser {
  max-width: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-tile:hover .browser,
.concept-tile:focus-visible .browser {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(15, 27, 45, 0.08), 0 24px 48px rgba(15, 27, 45, 0.18);
}

.concept-tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 16px;
}

.concept-tile-title {
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}

.concept-tile .concept-label {
  margin: 0;
}

.marquee-dup {
  display: none;
}

.strip-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.swipe-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 900px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .marquee {
    overflow: hidden;
    scroll-snap-type: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }

  .marquee-dup {
    display: block;
  }

  .marquee-track {
    animation: marquee 55s linear infinite;
  }

  .marquee:hover .marquee-track,
  .marquee:focus-within .marquee-track {
    animation-play-state: paused;
  }

  .concept-tile {
    width: 420px;
  }

  .swipe-hint {
    display: none;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 10px)); }
}

/* ---------- Richer cards ---------- */

.card.card-rich {
  --card-bg: var(--white);
  border: 1px solid transparent;
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
              linear-gradient(var(--line), var(--line)) border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-white .card.card-rich {
  --card-bg: var(--white);
  box-shadow: var(--shadow);
}

.card.card-rich:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
              linear-gradient(135deg, var(--teal), var(--teal-dark) 45%, var(--navy)) border-box;
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.35);
}

.icon-circle svg {
  width: 26px;
  height: 26px;
}

.icon-circle.small {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.icon-circle.small svg {
  width: 22px;
  height: 22px;
}

.price-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Service page heroes with a photo, and photo sections ---------- */

.page-hero.has-photo .container,
.page-hero.has-media .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero.has-photo .container,
  .page-hero.has-media .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
}

.hero-photo,
.media-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #E2E8F0;
  box-shadow: var(--shadow-lg);
}

.hero-photo img,
.media-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    animation: slow-zoom 22s ease-in-out infinite alternate;
  }
}

@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .media-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

/* ---------- Animated AI assistant demo ---------- */

.ai-demo {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.ai-demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.ai-demo-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
}

.ai-demo-icon svg {
  width: 20px;
  height: 20px;
}

.ai-demo-titles {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.ai-demo-title {
  display: block;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
}

.ai-demo-sub {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.ai-demo-chip {
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Every example sits in the same grid cell, so the window keeps one height */
.ai-demo-screens {
  display: grid;
  padding: 18px 16px 8px;
}

.ai-ex {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.ai-ex.is-active {
  visibility: visible;
  opacity: 1;
}

.ai-bubble {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-text {
  display: block;
  white-space: pre-line;
}

.ai-in {
  align-self: flex-start;
  max-width: 92%;
  background: #F1F5F9;
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.ai-in .ai-label {
  color: var(--muted);
}

.ai-out {
  align-self: flex-end;
  max-width: 96%;
  background: var(--navy);
  border-bottom-right-radius: 4px;
  color: #E2E8F0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ai-out .ai-label {
  color: var(--teal);
}

.ai-out .ai-text:empty::before {
  content: "Writing…";
  opacity: 0.6;
}

.ai-tag {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--amber);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ai-tag svg {
  width: 13px;
  height: 13px;
}

/* Only once the script is running: hide the reply and tag until they are "written" */
.ai-demo.is-animated .ai-ex:not(.is-typing):not(.is-done) .ai-out,
.ai-demo.is-animated .ai-ex:not(.is-done) .ai-tag {
  opacity: 0;
  transform: translateY(6px);
}

.ai-ex.is-typing .ai-out .ai-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--teal);
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.ai-demo-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 16px;
}

.ai-demo-steps span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color 0.3s ease, width 0.3s ease;
}

.ai-demo-steps span.is-active {
  width: 20px;
  border-radius: 99px;
  background: var(--teal);
}

/* ---------- Home: featured AI service card ---------- */

.services-grid > .service-feature {
  grid-column: 1 / -1;
}

.card.service-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  border: 2px solid var(--teal);
  background: linear-gradient(var(--white), var(--white));
  box-shadow: var(--shadow-lg);
}

@media (min-width: 960px) {
  .card.service-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    padding: 40px;
  }
}

.service-feature .card-tag {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
}

.service-feature h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
}

.service-feature .btn-row {
  margin-top: 8px;
}

/* ---------- AI page: sourced facts ---------- */

.stat-card .stat {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-card .stat.small {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  line-height: 1.15;
}

.stat-source {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-source a {
  overflow-wrap: anywhere;
}

/* ---------- AI page: "Is this for you?" checklist ---------- */

.tick-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.tick-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
}

.tick-list li:last-child {
  border-bottom: 0;
}

.tick-list li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--teal-dark);
  border-radius: 6px;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- AI page: before and after table ---------- */

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-table caption {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
}

.compare-table tbody th {
  color: var(--navy);
  font-family: var(--font-head);
}

.compare-table .after {
  color: var(--teal-dark);
  font-weight: 700;
}

/* On phones each row becomes its own small card */
@media (max-width: 639.98px) {
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
  }

  .compare-table {
    border: 0;
    background: none;
    box-shadow: none;
  }

  .compare-table caption {
    display: block;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody tr {
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .compare-table tbody th {
    background: var(--navy);
    color: var(--white);
  }

  .compare-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .compare-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 500;
  }

  .compare-table tbody tr td:last-child {
    border-bottom: 0;
  }
}

/* ---------- Five-step process ---------- */

@media (min-width: 640px) {
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------- "Recommended" package badge ---------- */

.price-card.has-badge {
  position: relative;
}

.card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 99px;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-extra {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* AI page "Benefits": small amber highlight icons */
[aria-labelledby="benefits-title"] .icon-circle {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
}

/* ---------- Home hero slides: AI assistant and social media screens ----------
   These sit inside the existing laptop and phone frames; sizes scale with each screen. */

.hs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.4;
}

.hs-bg {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  filter: blur(4px) saturate(1.05);
}

.hs-ai::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 45, 0.28);
}

.hs-window {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 66cqw;
  overflow: hidden;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  border-radius: 1.6cqw;
  box-shadow: 0 2cqw 6cqw rgba(15, 27, 45, 0.4);
}

.hs-bar {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.8cqw 2.4cqw;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hs-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 4.4cqw;
  height: 4.4cqw;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
}

.hs-icon svg {
  width: 2.6cqw;
  height: 2.6cqw;
}

.hs-title {
  flex: 1;
  min-width: 0;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 2.3cqw;
  font-weight: 700;
  white-space: nowrap;
}

.hs-chip {
  flex: none;
  padding: 0.3cqw 1.3cqw;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #FFFFFF;
  color: var(--muted);
  font-size: 1.5cqw;
  font-weight: 600;
}

.hs-body {
  display: flex;
  flex-direction: column;
  gap: 1.6cqw;
  padding: 2.4cqw;
}

.hs-msg {
  padding: 1.6cqw 2cqw;
  border-radius: 1.4cqw;
  font-size: 1.8cqw;
  line-height: 1.45;
}

.hs-label {
  display: block;
  margin-bottom: 0.5cqw;
  font-size: 1.3cqw;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hs-text {
  display: block;
}

.hs-in {
  align-self: flex-start;
  max-width: 88%;
  background: #F1F5F9;
  border-bottom-left-radius: 0.4cqw;
}

.hs-in .hs-label {
  color: var(--muted);
}

.hs-out {
  align-self: flex-end;
  max-width: 94%;
  background: var(--navy);
  border-bottom-right-radius: 0.4cqw;
  color: #E2E8F0;
  transition: opacity 0.4s ease;
}

.hs-out .hs-label {
  color: var(--teal);
}

.hs-tag {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  gap: 0.6cqw;
  padding: 0.5cqw 1.5cqw;
  border-radius: 99px;
  background: var(--amber);
  color: var(--navy);
  font-size: 1.5cqw;
  font-weight: 700;
  transition: opacity 0.4s ease;
}

.hs-tag svg {
  width: 1.4cqw;
  height: 1.4cqw;
}

/* Only while the script is animating the AI slide */
.hs-ai.is-waiting .hs-out,
.hs-ai.is-waiting .hs-tag,
.hs-ai.is-typing .hs-tag {
  opacity: 0;
}

.hs-ai.is-typing .hs-out .hs-text::after {
  content: "";
  display: inline-block;
  width: 0.25cqw;
  min-width: 1px;
  height: 1em;
  margin-left: 0.3cqw;
  vertical-align: -0.15em;
  background: var(--teal);
  animation: caret 0.9s steps(1) infinite;
}

/* Phone: the same assistant as a full-screen mobile chat */
.hs-phone.hs-ai {
  background: var(--bg);
}

.hs-phone.hs-ai::after,
.hs-phone .hs-bg {
  display: none;
}

.hs-phone .hs-window {
  position: static;
  width: auto;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--bg);
}

.hs-phone .hs-bar {
  gap: 4cqw;
  padding: 14cqw 5cqw 4cqw;
  background: #FFFFFF;
}

.hs-phone .hs-icon {
  width: 11cqw;
  height: 11cqw;
}

.hs-phone .hs-icon svg {
  width: 6.5cqw;
  height: 6.5cqw;
}

.hs-phone .hs-title {
  font-size: 5.6cqw;
  white-space: normal;
  line-height: 1.2;
}

.hs-phone .hs-chip {
  display: none;
}

.hs-phone .hs-body {
  gap: 4cqw;
  padding: 5cqw;
}

.hs-phone .hs-msg {
  padding: 4cqw 4.5cqw;
  border-radius: 4cqw;
  font-size: 4.6cqw;
}

.hs-phone .hs-label {
  margin-bottom: 1cqw;
  font-size: 3.3cqw;
}

.hs-phone .hs-tag {
  gap: 1.5cqw;
  padding: 1.4cqw 3.6cqw;
  font-size: 3.8cqw;
}

.hs-phone .hs-tag svg {
  width: 3.6cqw;
  height: 3.6cqw;
}

/* Website slide: one concept at a time, rotating each cycle */
.concept-cycle > .cc {
  display: none;
}

.concept-cycle > .cc.is-current {
  display: block;
}

/* Social slide (laptop): a month content calendar */
.hs-cal {
  display: flex;
  flex-direction: column;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  padding: 2.2cqw 3cqw;
  border-bottom: 1px solid var(--line);
}

.cal-brand {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 2.1cqw;
  font-weight: 700;
}

.cal-brand small {
  display: block;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.4cqw;
  font-weight: 500;
}

.cal-avatar,
.feed-avatar {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #8B5E34;
  color: #FFFFFF;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.cal-avatar {
  width: 4.4cqw;
  height: 4.4cqw;
  font-size: 2.2cqw;
}

.cal-month {
  padding: 0.6cqw 1.6cqw;
  border: 1px solid var(--line);
  border-radius: 0.8cqw;
  color: var(--navy);
  font-size: 1.7cqw;
  font-weight: 600;
}

.cal-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto repeat(5, minmax(0, 1fr));
  gap: 0.7cqw;
  padding: 1.6cqw 3cqw 2.6cqw;
}

.cal-wd {
  color: var(--muted);
  font-size: 1.3cqw;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cal-day {
  position: relative;
  overflow: hidden;
  padding: 0.5cqw 0.7cqw;
  background: #FBFCFE;
  border: 1px solid #E5E9EF;
  border-radius: 0.8cqw;
  color: var(--muted);
  font-size: 1.3cqw;
  font-weight: 600;
}

.cal-day.other {
  opacity: 0.45;
}

.cal-day img {
  position: absolute;
  top: 2.4cqw;
  left: 0.6cqw;
  width: calc(100% - 1.2cqw);
  height: calc(100% - 3cqw);
  object-fit: cover;
  border-radius: 0.5cqw;
}

.cal-tag {
  position: absolute;
  z-index: 1;
  left: 1cqw;
  bottom: 1cqw;
  padding: 0.2cqw 0.8cqw;
  border-radius: 99px;
  background: var(--teal);
  color: var(--navy);
  font-size: 1.05cqw;
  font-weight: 700;
}

/* Social slide (phone): an Instagram-style feed for a made-up bakery */
.hs-feed {
  overflow: hidden;
}

.feed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14cqw 5cqw 3.5cqw;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 6cqw;
  font-weight: 800;
}

.feed-bar svg,
.feed-actions svg {
  width: 7cqw;
  height: 7cqw;
}

.feed-icons {
  display: flex;
  gap: 4cqw;
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 3.5cqw 5cqw;
  color: var(--navy);
  font-size: 4.6cqw;
  font-weight: 700;
}

.feed-avatar {
  width: 9cqw;
  height: 9cqw;
  font-size: 4.6cqw;
  box-shadow: 0 0 0 0.8cqw #FFFFFF, 0 0 0 1.5cqw var(--teal);
}

.feed-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.feed-actions {
  display: flex;
  gap: 4cqw;
  padding: 3.5cqw 5cqw 1.5cqw;
  color: var(--navy);
}

.feed-caption {
  margin: 0;
  padding: 0 5cqw;
  color: var(--text);
  font-size: 4.3cqw;
  line-height: 1.4;
}

.feed-time {
  display: block;
  padding: 1.5cqw 5cqw 4cqw;
  color: var(--muted);
  font-size: 3.5cqw;
}

/* Pills under the devices: show which slide is on screen, and jump to one */
.hero-pills {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.js .hero-pills {
  display: flex;
}

.hero-pill {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-pill:hover {
  border-color: var(--navy);
}

.hero-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ---------- Reduced motion: everything static ---------- */

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

  .card.card-rich:hover,
  .price-card:hover,
  .concept-tile:hover .browser {
    transform: none;
  }
}

/* ---------- 404 ---------- */

.error-page {
  padding-block: clamp(72px, 12vw, 140px);
  text-align: center;
}

.error-code {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-size: clamp(3rem, 2rem + 6vw, 6rem);
  font-weight: 800;
  line-height: 1;
}

.error-page .btn-row {
  justify-content: center;
}
