/* Every colour on the public site resolves from this block. The *-rgb tokens
   hold bare channels so a rule can set its own alpha — rgba(var(--brand-rgb),
   0.18) — without a second hex to keep in sync. Recolouring the site means
   editing here and nowhere else. */
:root {
  /* Surfaces, lightest to deepest — mist #BFC6C4 thinned to page tints */
  --bg-top: #ffffff;
  --bg-alt: #ffffff;
  --bg: #eef1f0;
  --bg-deep: #e4e9e8;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --header-bg: rgba(238, 241, 240, 0.88);
  --drawer-bg: rgba(255, 255, 255, 0.98);
  --tile-wash: rgba(238, 241, 240, 0.92);
  --tile-wash-deep: rgba(238, 241, 240, 0.94);
  --card-wash: rgba(238, 241, 240, 0.7);
  --card-wash-soft: rgba(238, 241, 240, 0.42);

  /* Ink */
  --ink: #12302f;
  --ink-rgb: 18, 48, 47;
  --ink-light: #1a5152;
  --scrim-rgb: 10, 28, 27;
  --muted: #54635f;
  --line: rgba(18, 48, 47, 0.14);

  /* Top bar — a diagonal from the ink into the deep teal */
  --topbar-from: rgba(18, 48, 47, 0.98);
  --topbar-to: rgba(26, 81, 82, 0.96);

  /* The footer is a pale block, not a dark one: the page ends on the same
     family of tints it runs on, with teal text instead of white. */
  --footer-bg: #e4e9e8;
  --footer-rule: rgba(18, 48, 47, 0.12);
  --footer-chip: rgba(18, 48, 47, 0.06);

  /* Brand. --brand carries buttons, links and prices, so it is the deepened
     teal that clears 4.5:1 against white; --brand-light is #359FA0 itself,
     used where the colour is shown rather than read. */
  --brand: #1a5152;
  --brand-rgb: 26, 81, 82;
  --brand-deep: #123a3b;
  --brand-light: #359fa0;
  --brand-pale: #8fd3d4;

  /* Accent and highlight — mist backs the discount pills */
  --accent: #1a5152;
  --accent-rgb: 26, 81, 82;
  --accent-soft: #bfc6c4;
  --accent-soft-rgb: 191, 198, 196;
  --accent-deep: #123a3b;
  --sun: #bfc6c4;
  --sun-rgb: 191, 198, 196;

  /* Elevation */
  --shadow-rgb: 18, 48, 47;
  --shadow: 0 20px 50px rgba(18, 48, 47, 0.12);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(var(--sun-rgb), 0.35), transparent 32%),
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.16), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

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

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

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

main {
  overflow: hidden;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
  margin: 0;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.site-topbar {
  background:
    linear-gradient(135deg, var(--topbar-from), var(--topbar-to)),
    var(--topbar-from);
  color: #fff;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-topbar__inner,
.site-header__inner,
.cta-band__inner,
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-topbar__inner {
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.15rem 0;
}

.site-topbar__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-topbar__mail-icon {
  width: 0.85rem;
  height: 0.85rem;
  /* The bar is deep teal; the brand teal on it was all but invisible. */
  color: rgba(255, 255, 255, 0.96);
  flex-shrink: 0;
}

.site-topbar__mail:hover,
.site-topbar__mail:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-topbar__inner p {
  margin: 0;
}

.site-topbar__message,
.site-topbar__contact a {
  color: rgba(255, 255, 255, 0.96);
}

.site-topbar__message {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-topbar__contact a {
  font-weight: 700;
  transition: color 180ms ease;
}

.site-topbar__contact a:hover,
.site-topbar__contact a:focus-visible {
  color: var(--sun);
  outline: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.06);
}

/* Header and top bar span wider than the page container so the brand and
   nav sit close to the viewport edges instead of floating in the middle. */
.site-topbar__inner,
.site-header__inner {
  width: min(1400px, calc(100% - 2.5rem));
}

.site-header__inner {
  min-height: 88px;
  flex-wrap: nowrap;
  gap: 0.9rem;
  padding: 0.45rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.brand__logo-shell,
.footer-brand__logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), var(--tile-wash)),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  box-shadow: 0 16px 38px rgba(var(--shadow-rgb), 0.12);
}

.brand__logo {
  width: 3.7rem;
  height: auto;
}

.brand__wordmark,
.footer-brand__wordmark {
  display: inline-block;
  font-family: inherit;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
}

/* Two-tone split: FIN (ink) · TAX (brand teal) · PORT (ink) */
.brand__wordmark .wm-fin,
.brand__wordmark .wm-port,
.footer-brand__wordmark .wm-fin,
.footer-brand__wordmark .wm-port {
  color: var(--ink);
  -webkit-text-stroke: 0.7px var(--ink);
}

.brand__wordmark .wm-tax,
.footer-brand__wordmark .wm-tax {
  color: var(--brand);
  -webkit-text-stroke: 0.7px var(--brand);
}

/* Header wordmark carries the brand on its own — no icon beside it — so it
   is sized well above the nav links rather than matching them. */
.brand__wordmark {
  display: inline-flex;
  /* Word-space the three segments: FIN TAX PORT. An em gap keeps the spacing
     proportional when the font-size drops on narrow screens. */
  gap: 0.2em;
  font-size: 2.15rem;
  letter-spacing: -0.012em;
}

.brand__wordmark .wm-fin,
.brand__wordmark .wm-port {
  -webkit-text-stroke: 1.1px var(--ink);
}

.brand__wordmark .wm-tax {
  -webkit-text-stroke: 1.1px var(--brand-light);
}

.footer-brand__wordmark {
  display: inline-flex;
  /* Same word-spacing as the header wordmark, so the brand reads the same
     way at the top and the bottom of the page. */
  gap: 0.2em;
  font-size: 1.5rem;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 1.15rem;
  position: relative;
}

.footer-brand__logo-shell {
  padding: 0.65rem 0.95rem;
  background: #ffffff;
  border: 1px solid var(--footer-rule);
  box-shadow: 0 8px 22px rgba(var(--shadow-rgb), 0.08);
}

.footer-brand__logo {
  width: 5.2rem;
  height: auto;
}

.site-nav,
.hero__actions,
.quick-links,
.badge-row,
.pill-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}

/* Header-only brand treatment: no tile or box, just the wordmark with the
   tagline beneath. The footer keeps the light pill (.footer-brand__*). */
.brand__logo-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

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

.brand__tagline {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1;
}

.brand__wordmark .wm-fin,
.brand__wordmark .wm-port {
  color: var(--ink);
  -webkit-text-stroke: 1.1px var(--ink);
}

/* TAX picks up the light end of the "Talk to an expert" gradient, so the
   wordmark and the primary button carry the same teal. */
.brand__wordmark .wm-tax {
  color: var(--brand-light);
  -webkit-text-stroke: 1.1px var(--brand-light);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.user-avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.site-nav a,
.text-link {
  color: var(--muted);
  font-weight: 700;
}

.site-nav a {
  white-space: nowrap;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.text-link:hover,
.footer-list a:hover,
.location-chip-list a:hover,
.generic-card a:hover,
.category-card a:hover {
  color: var(--brand-deep);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  box-shadow: var(--shadow);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(var(--ink-rgb), 0.1);
}

.button--login {
  background: linear-gradient(135deg, var(--ink), var(--ink-light));
  color: #fff;
  box-shadow: var(--shadow);
}

.hero,
.page-hero,
.auth-section {
  padding: 5rem 0 3rem;
}

.hero--cover {
  position: relative;
  min-height: min(560px, 62vh);
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(var(--scrim-rgb), 0.9) 0%,
    rgba(var(--scrim-rgb), 0.75) 30%,
    rgba(var(--scrim-rgb), 0.2) 55%,
    rgba(var(--scrim-rgb), 0) 75%
  );
}

.hero--cover .hero__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* Keep the cover hero compact: a smaller heading than the generic hero so
   the whole section fits within a laptop viewport instead of filling it. */
.hero.hero--cover h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  margin-bottom: 0.8rem;
}

.hero--cover .hero__intro {
  font-size: 1rem;
}

.hero--cover .eyebrow {
  color: var(--brand-pale);
}

.hero--cover h1,
.hero--cover .hero__intro {
  color: #fff;
}

.hero--cover .hero__intro {
  color: rgba(255, 255, 255, 0.88);
}

.hero--cover .quick-links span,
.hero--cover .quick-links a {
  color: #fff;
}

.hero--cover .quick-links a {
  border-color: rgba(255, 255, 255, 0.35);
}

.hero--cover .quick-links {
  margin-top: 1.2rem;
  flex-wrap: nowrap;
  max-width: none;
  width: max-content;
}

/* Services listing: compact toolbar so the list starts near the top
   instead of behind a hero banner and feature image. */
.list-toolbar {
  padding: 1.6rem 0 0.4rem;
}

.list-toolbar__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.list-toolbar__title h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0;
}

.list-toolbar__title p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.list-toolbar__form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.list-toolbar__form input[type="text"],
.list-toolbar__form select {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  min-height: 2.6rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  color: var(--ink);
}

.list-toolbar__form input[type="text"] {
  width: 15rem;
  max-width: 100%;
}

.list-toolbar__form select {
  width: 11rem;
}

.list-toolbar__form .button {
  min-height: 2.6rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.section--list {
  padding-top: 1rem;
}

.hero__grid,
.page-hero__grid,
.detail-hero,
.auth-grid,
.two-column,
.faq-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero__grid,
.auth-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
}

.page-hero__grid,
.detail-hero,
.faq-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
}

.page-hero__grid--form {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: start;
}

/* The enquiry hero is the one place a whole form has to clear the fold, so it
   runs tighter than the other heroes: less lead-in above it, and compacter
   fields inside, so "Submit enquiry" is reachable without scrolling. */
.page-hero:has(.page-hero__grid--form) {
  padding-top: 2rem;
  padding-bottom: 2.25rem;
}

.page-hero__grid--form .form-card {
  gap: 0.75rem;
  padding: 1.3rem;
}

.page-hero__grid--form .form-card h2 {
  font-size: 1.25rem;
}

.page-hero__grid--form .form-grid {
  gap: 0.7rem 1rem;
}

.page-hero__grid--form .form-card label {
  gap: 0.3rem;
  font-size: 0.92rem;
}

.page-hero__grid--form .form-card :is(input, select, textarea) {
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
}

.two-column {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.hero h1,
.auth-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  margin-bottom: 1rem;
}

.detail-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  margin-bottom: 1rem;
}

.hero__intro,
.page-hero__intro {
  max-width: 62ch;
  font-size: 1.08rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual__panel,
.hero-visual__cards article,
.filter-card,
.form-card,
.price-panel,
.stat-card,
.category-card,
.service-card,
.process-card,
.industry-card,
.testimonial-card,
.info-card,
.pricing-card,
.category-card,
.generic-card,
.legal-card,
.empty-state,
.timeline-card {
  background: var(--panel);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.category-card,
.service-card,
.process-card,
.industry-card,
.testimonial-card,
.info-card,
.pricing-card,
.generic-card,
.legal-card,
.timeline-card,
.empty-state {
  height: 100%;
}

.category-card,
.service-card,
.process-card,
.industry-card,
.testimonial-card,
.info-card,
.pricing-card,
.generic-card,
.legal-card,
.timeline-card {
  display: flex;
  flex-direction: column;
}

.category-card,
.process-card,
.industry-card,
.testimonial-card,
.info-card,
.pricing-card,
.generic-card,
.legal-card,
.timeline-card {
  gap: 0.9rem;
}

.category-card p,
.service-card p,
.process-card p,
.industry-card p,
.testimonial-card p,
.info-card p,
.pricing-card p,
.generic-card p,
.legal-card p,
.timeline-card p,
.empty-state p {
  margin: 0;
}

.hero-visual__panel {
  padding: 1rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.85), var(--card-wash)),
    var(--panel);
}

.hero-visual__panel--overlay {
  margin-top: -5.5rem;
  margin-left: auto;
  width: min(88%, 470px);
  position: relative;
  padding: 1.55rem;
}

.hero-visual__image {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 5 / 4;
  min-height: 380px;
}

.media-card img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.hero-visual__panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0.7rem 0 1rem;
}

.hero-visual__panel ul,
.bullet-list,
.trust-list,
.footer-list,
.service-card__meta {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-visual__cards {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-visual__cards article,
.process-card,
.industry-card,
.generic-card,
.pricing-card,
.timeline-card {
  padding: 1.35rem;
}

.hero-visual__cards span,
.process-card span,
.timeline-card span,
.pricing-card p:first-child {
  color: var(--brand-deep);
  font-weight: 800;
}

.hero-visual__cards strong {
  display: block;
  margin: 0.5rem 0;
  font-size: 1.25rem;
  font-family: "Space Grotesk", sans-serif;
}

.quick-links span {
  color: var(--muted);
  font-weight: 700;
}

.quick-links a,
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav__mobile-actions {
  display: none;
}

.pill--active,
.pill--static,
.badge--accent {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: rgba(var(--accent-rgb), 0.24);
}

.section {
  padding: 1.5rem 0 4.5rem;
}

.section--tinted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), var(--card-wash-soft));
}

.section--accent {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.stats-grid,
.category-grid,
.service-grid,
.process-grid,
.industry-grid,
.pricing-grid,
.card-grid,
.detail-grid,
.timeline-grid,
.site-footer__grid {
  display: grid;
  gap: 1.2rem;
  align-items: stretch;
}

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

/* Two or three figures share the row evenly instead of leaving the
   right of it empty. */
.stats-grid.stats-grid--few {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  max-width: 44rem;
  margin-inline: auto;
}

.category-grid,
.pricing-grid,
.card-grid,
.detail-grid,
.timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.process-grid,
.industry-grid,
.site-footer__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer__grid {
  grid-template-columns: 1.3fr repeat(3, 1fr);
}

.stat-card {
  padding: 1.6rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 2.1rem;
  font-family: "Space Grotesk", sans-serif;
}

.service-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card__head,
.service-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.service-card__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.18), rgba(var(--sun-rgb), 0.35));
  color: var(--brand-deep);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.service-card__category,
.service-card__fee,
.service-card__strike,
.service-card__timing small {
  margin: 0;
  color: var(--muted);
}

.service-card__head-copy {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
  justify-items: end;
  text-align: right;
}

.service-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.service-card__category {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.service-card__body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.85rem;
  align-content: start;
  flex: 1;
}

.service-card h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.4em;
}

/* Card titles carry the brand teal, so a service name reads as the way into
   the catalogue. Everything else on the card stays ink and muted. */
.service-card h3 a {
  display: block;
  color: var(--brand-light);
  transition: color 160ms ease;
}

.service-card h3 a:hover,
.service-card h3 a:focus-visible {
  color: var(--brand);
}

.service-card__tagline {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3.5em;
}

.service-card__meta,
.trust-list {
  display: grid;
  gap: 0.45rem;
}

.service-card__meta {
  flex: 1;
}

.service-card__meta li {
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.service-card__price {
  margin: 0;
  font-size: 1.85rem;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.service-card__strike,
.price-panel__strike {
  text-decoration: line-through;
}

.service-card__footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  min-height: 4.5rem;
}

.service-card__footer > div:first-child {
  display: grid;
  gap: 0.18rem;
}

.service-card__timing {
  text-align: right;
  display: grid;
  gap: 0.18rem;
  justify-items: end;
}

.process-card,
.industry-card,
.testimonial-card,
.category-card,
.info-card,
.generic-card,
.legal-card,
.pricing-card,
.timeline-card,
.empty-state,
.filter-card,
.form-card,
.price-panel,
.media-card {
  padding: 1.6rem;
}

.category-card h3,
.generic-card h2,
.generic-card h3,
.pricing-card h3,
.process-card h3,
.industry-card h3,
.timeline-card h3,
.info-card h2 {
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.category-card__count,
.pricing-card__label {
  color: var(--brand-deep);
  font-weight: 800;
}

.category-card__description,
.generic-card__description,
.pricing-card__description {
  color: var(--muted);
}

.category-card__description,
.generic-card__description,
.pricing-card__description,
.industry-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.category-card__link,
.generic-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  font-weight: 800;
  color: var(--brand-deep);
}

.pricing-card__meta {
  margin-top: auto;
  color: var(--muted);
}

.process-card span {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(var(--brand-rgb), 0.16);
  margin-bottom: 0.85rem;
}

.testimonial-stack,
.legal-stack {
  display: grid;
  gap: 1rem;
}

/* Long policy text reads better at a line length a person can follow. */
.legal-stack {
  max-width: 52rem;
}

.legal-card p {
  margin: 0;
}

.testimonial-card p {
  font-size: 1.1rem;
  color: var(--ink);
}

.testimonial-card footer {
  color: var(--brand-deep);
  font-weight: 800;
}

.filter-card,
.form-card {
  display: grid;
  gap: 1rem;
}

.filter-card label,
.form-card label {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.media-card {
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  overflow: hidden;
}

.page-hero__media {
  height: 100%;
  align-self: stretch;
}

.page-hero__media img {
  aspect-ratio: 5 / 4;
  min-height: 320px;
}

.page-feature-media {
  max-width: 980px;
  margin: 0 auto;
}

.page-feature-media img {
  aspect-ratio: 16 / 9;
  min-height: 300px;
}

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

input,
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.86);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(var(--brand-rgb), 0.25);
  border-color: rgba(var(--brand-rgb), 0.6);
}

.field-help {
  color: var(--muted);
  font-size: 0.85rem;
}

/* An error has to look like one, not like the hint it replaces: a deep red
   that keeps 6:1 on white. */
.form-error {
  color: #b42318;
  font-size: 0.85rem;
  font-weight: 600;
}

.field-help ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.messages {
  padding-top: 1rem;
}

.message {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.message--success {
  background: rgba(var(--accent-soft-rgb), 0.92);
}

.floating-whatsapp {
  position: fixed;
  right: clamp(1rem, 2.8vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 26;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 39, 34, 0.96), rgba(18, 110, 90, 0.96)),
    linear-gradient(135deg, #11a571, #25d366);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 55px rgba(10, 57, 47, 0.28);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 48%);
  pointer-events: none;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 30px 62px rgba(10, 57, 47, 0.34);
  outline: none;
}

.floating-whatsapp__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.floating-whatsapp__icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.floating-whatsapp__copy {
  position: relative;
  display: grid;
  gap: 0.1rem;
  z-index: 1;
}

.floating-whatsapp__copy strong,
.floating-whatsapp__copy small {
  display: block;
  color: #fff;
  line-height: 1.1;
}

.floating-whatsapp__copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.floating-whatsapp__copy small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}

.price-panel__facts,
.site-footer__locations {
  display: grid;
  gap: 1rem;
}

.price-panel h2 {
  font-size: 3rem;
  margin: 0.25rem 0;
}

.detail-about {
  max-width: 65ch;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.trust-list,
.bullet-list {
  color: var(--muted);
}

.info-grid {
  display: grid;
  gap: 1.2rem;
}

.cta-band {
  padding: 0 0 4.5rem;
}

.cta-band__inner {
  padding: 1.8rem 2rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(var(--ink-rgb), 0.96), rgba(var(--accent-rgb), 0.88));
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-band__inner p,
.cta-band__inner .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.location-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.location-chip-list a {
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  background: var(--footer-chip);
}

.site-footer {
  padding: 4rem 0 2rem;
  color: var(--muted);
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-rule);
}

.site-footer h3,
.site-footer h4 {
  color: var(--ink);
  margin-bottom: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand);
}

.site-footer__locations {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--footer-rule);
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-rule);
}

.site-header__actions .text-link,
.site-nav__mobile-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: var(--ink);
  margin: 0.32rem auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: rgba(var(--accent-rgb), 0.08);
  font-family: "Space Grotesk", sans-serif;
}

.auth-footnote {
  margin: 0;
}

@media (max-width: 1240px) {
  .hero__grid,
  .page-hero__grid,
  .detail-hero,
  .auth-grid,
  .two-column,
  .faq-grid,
  .page-hero__grid--form {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .service-grid,
  .process-grid,
  .industry-grid,
  .site-footer__grid,
  .category-grid,
  .pricing-grid,
  .card-grid,
  .detail-grid,
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header__actions {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: calc(88px + 0.55rem);
    right: 1rem;
    left: auto;
    width: min(420px, calc(100% - 2rem));
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--drawer-bg);
    border: 1px solid rgba(var(--ink-rgb), 0.08);
    padding: 1rem;
    border-radius: 22px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    gap: 0.3rem;
  }

  .site-nav a {
    width: 100%;
  }

  .site-nav__mobile-actions {
    display: grid;
    gap: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(var(--ink-rgb), 0.08);
    margin-top: 0.4rem;
  }

  .site-nav__mobile-actions .button {
    width: 100%;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }
}

@media (max-width: 820px) {
  .stats-grid,
  .service-grid,
  .process-grid,
  .industry-grid,
  .site-footer__grid,
  .category-grid,
  .pricing-grid,
  .card-grid,
  .detail-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 720px) {
  .site-topbar__inner,
  .cta-band__inner,
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__inner {
    min-height: 74px;
  }

  .brand__logo {
    width: 3.7rem;
  }

  /* Still the loudest thing in the header, but it has to share the row
     with the menu toggle on a phone. */
  .brand__wordmark {
    font-size: 1.75rem;
  }

  .footer-brand__logo {
    width: 4.5rem;
  }

  .page-hero__media img,
  .page-feature-media img,
  .hero-visual__image {
    min-height: 240px;
  }

  .hero,
  .page-hero,
  .auth-section {
    padding-top: 3.5rem;
  }

  .hero__actions,
  .hero__actions--stack {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-visual__cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card__head,
  .service-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-card__footer {
    grid-template-columns: 1fr;
  }

  .service-card__head-copy,
  .service-card__timing {
    justify-items: start;
    text-align: left;
  }

  .service-card__badges {
    justify-content: flex-start;
  }

  .hero-visual__panel--overlay {
    margin-top: 1rem;
    width: 100%;
  }

  .section {
    padding: 1rem 0 3rem;
  }

  .container {
    width: min(1160px, calc(100% - 1.4rem));
  }

  .floating-whatsapp {
    right: 0.8rem;
    bottom: calc(0.8rem + env(safe-area-inset-bottom));
    padding: 0.8rem;
  }

  .floating-whatsapp__copy {
    display: none;
  }

  .floating-whatsapp__icon {
    width: 3.15rem;
    height: 3.15rem;
  }
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .floating-whatsapp {
  opacity: 0;
  pointer-events: none;
}

/* ===================== Mega navigation ===================== */
.site-header__inner {
  position: relative;
}

.mega-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.05rem;
  flex-wrap: nowrap;
}

.mega-nav__item {
  position: static;
}

.mega-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.55rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.mega-nav__trigger:hover,
.mega-nav__item.is-open > .mega-nav__trigger {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
}

.mega-nav__chev {
  width: 0.72rem;
  height: 0.72rem;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.mega-nav__item.is-open .mega-nav__chev {
  transform: rotate(180deg);
}

.mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 60;
  width: min(940px, calc(100vw - 3rem));
  padding: 1.25rem 1.6rem;
  background: var(--panel-strong);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  max-height: calc(100vh - 150px);
  overflow: hidden auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.mega-nav__item.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-panel__heading {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
}

.mega-panel__empty,
.mega-panel__blurb {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted, #6b7280);
  font-size: 0.95rem;
}

.mega-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.05rem 1.25rem;
}

.mega-service {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  transition: background 160ms ease;
}

.mega-service:hover {
  background: rgba(var(--brand-rgb), 0.08);
}

.mega-service__name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.2;
}

.mega-service__price {
  font-size: 0.76rem;
  color: var(--muted);
}

.mega-panel__featured {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(var(--ink-rgb), 0.1);
}

.mega-featured {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  border-radius: 16px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mega-featured__name,
.mega-featured__desc,
.mega-service__name {
  overflow-wrap: anywhere;
}

.mega-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.12);
}

.mega-featured__tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--muted);
}

.mega-featured__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.mega-featured__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.mega-featured__price {
  font-weight: 800;
  color: var(--brand-deep);
}

.mega-panel__browse {
  width: 100%;
  padding: 0.75rem 1rem;
}

.mega-panel__compare {
  width: 100%;
  padding: 0.72rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  color: var(--ink);
}

.mega-panel__compare:hover {
  background: #fff;
}

/* More panel */
.mega-panel--more {
  grid-template-columns: 1fr;
}

.mega-more {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
}

.mega-more > .mega-panel__heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.mega-more__cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  align-content: start;
}

.mega-more__cat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  transition: background 160ms ease;
}

.mega-more__cat:hover {
  background: rgba(var(--brand-rgb), 0.08);
}

.mega-more__cat-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.mega-more__cat-blurb {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}

.mega-more__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(var(--ink-rgb), 0.1);
}

.mega-more__links {
  display: grid;
  gap: 0.15rem;
}

.mega-more__links a,
.mega-more__calc-link {
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease;
}

.mega-more__links a:hover,
.mega-more__calc-link:hover {
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand-deep);
}

.mega-more__calc {
  display: grid;
  gap: 0.1rem;
}

.mega-more__calc-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--muted);
  padding: 0 0.5rem 0.25rem;
}

.mega-more__calc-link {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Override generic `.site-nav a` (nowrap + pill padding) which otherwise wins
   on specificity and breaks wrapping/spacing inside the mega panels. */
.mega-nav .mega-service {
  padding: 0.34rem 0.55rem;
  border-radius: 10px;
  white-space: normal;
  font-weight: 400;
}

.mega-nav .mega-more__cat {
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  white-space: normal;
  font-weight: 400;
}

.mega-nav .mega-featured {
  padding: 1rem;
  border-radius: 16px;
  white-space: normal;
  font-weight: 400;
}

.mega-nav .mega-more__links a,
.mega-nav .mega-more__calc-link {
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  white-space: normal;
}

.mega-nav .mega-panel__browse,
.mega-nav .mega-panel__compare {
  padding: 0.78rem 1rem;
  border-radius: 999px;
  white-space: normal;
}

@media (max-width: 1240px) {
  .mega-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.15rem;
  }

  .mega-nav__item {
    width: 100%;
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.06);
  }

  .mega-nav__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.6rem;
  }

  .mega-panel {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    padding: 0.4rem 0.6rem 0.9rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .mega-nav__item.is-open .mega-panel {
    display: grid;
    transform: none;
  }

  .mega-panel__grid,
  .mega-more,
  .mega-more__cats {
    grid-template-columns: 1fr;
  }

  .mega-panel__featured,
  .mega-more__side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(var(--ink-rgb), 0.1);
    padding-top: 0.9rem;
  }
}

/* Hint under a form field -- the attach box needs to say what it accepts
   before someone picks a 40 MB video. */
.form-card .field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.form-card input[type="file"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 0.88rem;
  cursor: pointer;
}

.form-card input[type="file"]:hover { border-color: var(--brand); }

/* ---- Polish pass ----------------------------------------------------------
   Readability over the hero photo, a stats strip that tucks under the hero,
   cards that answer "what is this, and where does it go" at a glance, and a
   phone layout that never scrolls sideways. Colours still resolve from :root.
   The dashboard loads this file too, so every rule here is scoped to a
   public-site parent; a bare .stat-card rule would restyle its tiles. */

/* Hero: a scrim that keeps white text legible wherever the photo is busy. */
.hero--cover::before {
  background:
    linear-gradient(
      100deg,
      rgba(var(--scrim-rgb), 0.92) 0%,
      rgba(var(--scrim-rgb), 0.8) 34%,
      rgba(var(--scrim-rgb), 0.35) 60%,
      rgba(var(--scrim-rgb), 0.05) 80%
    );
}

.hero--cover {
  /* A little shorter than the old cover, so the stats strip and the first
     section start higher on a laptop. */
  min-height: min(470px, 56vh);
  padding-top: 2.75rem;
  padding-bottom: 5rem;
}

.hero--cover .hero__actions {
  margin-top: 1.5rem;
}

.hero--cover .button--secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero--cover .button--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero--cover .quick-links {
  flex-wrap: wrap;
  width: auto;
  gap: 0.5rem;
}

/* On a wide screen the popular links stay on one line under the buttons. */
@media (min-width: 721px) {
  .hero--cover .quick-links {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

.hero--cover .quick-links span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero--cover .quick-links a {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  transition: background 160ms ease;
}

.hero--cover .quick-links a:hover,
.hero--cover .quick-links a:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

/* Stats: one strip that overlaps the bottom of the hero. */
.stats-section {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  margin-bottom: 2.5rem;
}

.stats-grid {
  gap: 0;
  background: var(--panel-strong);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stats-grid .stat-card {
  padding: 1.3rem 1rem;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.stats-grid .stat-card + .stat-card {
  border-left: 1px solid rgba(var(--ink-rgb), 0.08);
}

.stats-grid .stat-card strong {
  color: var(--brand);
  font-size: 2rem;
  line-height: 1.1;
}

.stats-grid .stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Section headings: the "view all" link stays on one line and reads as a link. */
.section-heading .text-link {
  white-space: nowrap;
  color: var(--brand);
}

.text-link--arrow::after {
  content: " →";
  transition: margin 160ms ease;
}

.text-link--arrow:hover::after {
  margin-left: 0.2rem;
}

.section-heading h2 {
  max-width: 22ch;
  line-height: 1.12;
}

/* Cards lift a little under the pointer, so it is clear they lead somewhere. */
.category-card,
.service-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover,
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), 0.28);
  box-shadow: 0 24px 54px rgba(var(--shadow-rgb), 0.16);
}

/* Category cards: three across, count as a pill, the whole card is the link. */
.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  position: relative;
  gap: 0.6rem;
  padding: 1.4rem;
}

.category-card h3 {
  font-size: 1.3rem;
}

.category-card__count {
  align-self: flex-start;
  margin: 0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand);
  font-size: 0.78rem;
}

.category-card__link {
  color: var(--brand);
  padding-top: 0.4rem;
}

.category-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.category-card__link::before {
  content: "→";
  order: 1;
  margin-left: 0.35rem;
  transition: transform 160ms ease;
}

.category-card:hover .category-card__link::before {
  transform: translateX(3px);
}

/* Service cards: category and badges share one line, so the title starts higher. */
.service-card__head {
  align-items: center;
}

.service-card__head-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.service-card__category {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-card .badge {
  padding: 0.22rem 0.6rem;
  font-size: 0.75rem;
}

.service-card h3 {
  font-size: 1.22rem;
}

.service-card__meta li::marker {
  color: var(--brand-light);
}

.service-card__price {
  color: var(--brand-deep);
}

/* Step numbers pick up the brand teal. */
.process-card span {
  color: var(--brand);
}

/* Filter pills on the services list need air before the first row of cards. */
.section--list .pill-row {
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section--list .pill {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  transition: background 160ms ease, border-color 160ms ease;
}

.section--list .pill:hover {
  border-color: rgba(var(--brand-rgb), 0.35);
}

.section--list .pill--active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Ten categories leave one card alone on the last row of three; let it take
   the whole row instead of sitting beside two empty slots. */
@media (min-width: 1241px) {
  .category-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1240px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  /* Four stats as a 2 × 2 block rather than four full-width cards. */
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid .stat-card:nth-child(3) {
    border-left: 0;
  }

  .stats-grid .stat-card:nth-child(n + 3) {
    border-top: 1px solid rgba(var(--ink-rgb), 0.08);
  }
}

@media (max-width: 720px) {
  .hero--cover {
    min-height: 0;
    padding: 2.75rem 0 4.5rem;
    background-position: 70% center;
  }

  .hero--cover::before {
    background: linear-gradient(
      180deg,
      rgba(var(--scrim-rgb), 0.78) 0%,
      rgba(var(--scrim-rgb), 0.88) 100%
    );
  }

  .hero.hero--cover h1 {
    font-size: 2rem;
  }

  .hero--cover .hero__intro {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero--cover .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .stats-section {
    margin-top: -2.5rem;
    margin-bottom: 1.5rem;
  }

  .stats-grid .stat-card {
    padding: 1rem 0.5rem;
  }

  .stats-grid .stat-card strong {
    font-size: 1.6rem;
  }

  .section-heading h2 {
    font-size: 1.7rem;
  }

  .service-card__head {
    flex-direction: row;
    align-items: center;
  }

  .service-card__head-copy {
    justify-content: flex-end;
  }

  /* Services toolbar: search and sort take the full width on a phone. */
  .list-toolbar__form,
  .list-toolbar__title {
    width: 100%;
  }

  .list-toolbar__form input[type="text"] {
    flex: 1 1 100%;
    width: 100%;
  }

  .list-toolbar__form select {
    flex: 1 1 0;
    width: auto;
  }

  .list-toolbar__form .button {
    flex: 0 0 auto;
    width: auto;
  }
}

/* ---- Service detail ------------------------------------------------------ */
.detail-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.04;
}

.page-hero .badge-row {
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.page-hero .badge-row .badge {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

/* Price panel: price, the small print, then the two ways in at full width,
   then what the client can count on, ticked. */
.price-panel {
  display: grid;
  gap: 0.35rem;
  padding: 1.6rem;
  background: var(--panel-strong);
}

.price-panel p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.92rem;
}

.price-panel .eyebrow {
  margin-bottom: 0.2rem;
}

.price-panel h2 {
  font-size: 2.6rem;
  color: var(--brand-deep);
}

.price-panel__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0 0.4rem;
}

.price-panel__facts span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.price-panel .hero__actions--stack {
  display: grid;
  gap: 0.55rem;
  margin: 0.6rem 0 0.4rem;
}

.price-panel .hero__actions--stack .button {
  width: 100%;
}

.price-panel .trust-list,
.info-card .bullet-list {
  list-style: none;
  padding: 0;
}

.price-panel .trust-list {
  gap: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.price-panel .trust-list li,
.info-card .bullet-list li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.5;
}

.price-panel .trust-list li::before,
.info-card .bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
}

/* The four info cards: a little more presence for the headings and lists. */
.info-card {
  gap: 0.9rem;
}

.info-card h2 {
  font-size: 1.3rem;
}

.info-card .bullet-list {
  display: grid;
  gap: 0.5rem;
}

/* "Not included" is the one list of things the client does not get. */
.detail-grid .info-card:nth-child(3) .bullet-list li::before {
  content: "–";
  background: rgba(var(--ink-rgb), 0.06);
  color: var(--muted);
}

/* Steps: the step number reads as a marker, not as body text. */
.timeline-card {
  gap: 0.5rem;
}

.timeline-card span {
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--brand);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-card h3 {
  font-size: 1.15rem;
}

/* ---- Call-to-action band ------------------------------------------------- */
.cta-band__inner h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  max-width: 30ch;
}

.cta-band .button--secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.cta-band .button--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer .footer-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.site-footer .footer-list li {
  line-height: 1.45;
}

.site-footer a {
  transition: color 160ms ease;
}

.site-footer h3 {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.site-footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.site-footer__locations {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.site-footer .location-chip-list {
  gap: 0.4rem;
}

.site-footer .location-chip-list a {
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  background: var(--panel-strong);
  border: 1px solid var(--footer-rule);
  transition: border-color 160ms ease, color 160ms ease;
}

.site-footer .location-chip-list a:hover {
  border-color: rgba(var(--brand-rgb), 0.4);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .site-footer__grid > section:first-child {
    grid-column: 1 / -1;
  }

  .site-footer__locations {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding: 2.75rem 0 5.5rem;
  }

  .cta-band__inner {
    padding: 1.5rem 1.25rem;
    border-radius: 24px;
  }

  .price-panel h2 {
    font-size: 2.2rem;
  }
}

/* ---- Home: tiles, deadlines, portal, reviews ----------------------------- */
.section--tight {
  padding-bottom: 2.5rem;
}

/* Category tiles: one compact block to jump in by, not ten cards. */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.category-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  box-shadow: 0 6px 18px rgba(var(--shadow-rgb), 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-tile:hover,
.category-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.12);
  outline: none;
}

.category-tile__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.category-tile__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* Upcoming due dates. */
.deadlines {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: center;
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--topbar-from), var(--topbar-to));
  color: #fff;
  box-shadow: var(--shadow);
}

.deadlines .eyebrow {
  color: var(--brand-pale);
}

.deadlines h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: #fff;
}

.deadlines__note {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

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

.deadline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.deadline__date {
  display: grid;
  place-items: center;
  width: 3rem;
  padding: 0.25rem 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  line-height: 1.1;
}

.deadline__date strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.deadline__date small {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.deadline__body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.deadline__body small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.deadline--soon .deadline__body small {
  color: #ffd28a;
  font-weight: 700;
}

.deadline__help {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease;
}

.deadline__help:hover,
.deadline__help:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

/* Client portal. */
.portal-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.portal-feature h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 0.8rem;
}

.portal-feature__copy > p {
  margin: 0 0 1.2rem;
}

.portal-feature__points {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.portal-feature__points li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.portal-feature__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.portal-feature__points strong {
  display: block;
  color: var(--ink);
}

.portal-mock {
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  box-shadow: 0 30px 70px rgba(var(--shadow-rgb), 0.18);
  overflow: hidden;
  transform: rotate(1deg);
}

.portal-mock__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
}

.portal-mock__bar span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.portal-mock__bar em {
  margin-left: 0.6rem;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.portal-mock__body {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem;
}

.portal-mock__label {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-mock__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--bg-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.portal-mock__row b {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.portal-mock__row .is-done { background: #dbf1e4; color: #1c7a45; }
.portal-mock__row .is-review { background: #e0e7ff; color: #3730a3; }
.portal-mock__row .is-pending { background: #fdeccb; color: #9a6b00; }

.portal-mock__files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.portal-mock__files span {
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px dashed rgba(var(--ink-rgb), 0.2);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Review slider: a scroll-snap row that works with no script at all (swipe
   or scroll); site.js adds the arrows, dots and the slow auto-advance. */
.review-slider {
  position: relative;
}

.review-slider__track {
  display: grid;
  grid-auto-flow: column;
  /* Two at a time: wide enough for a review to read as a quote, and with
     three or more there is always a next one for the slider to move to. */
  grid-auto-columns: calc((100% - 1.2rem) / 2);
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.4rem 0.2rem 1.4rem;
}

.review-slider__track::-webkit-scrollbar {
  display: none;
}

.review-slider__track:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.review-card {
  scroll-snap-align: start;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  /* Kept close to the card: the track scrolls, so it clips anything wider,
     and a big soft shadow would show as a grey box around the row. */
  box-shadow: 0 6px 18px rgba(var(--shadow-rgb), 0.08);
}

.review-card__stars {
  margin: 0;
  letter-spacing: 0.1em;
  color: rgba(var(--ink-rgb), 0.15);
  line-height: 1;
}

.review-card__stars .is-on {
  color: #f5a524;
}

.review-card blockquote {
  margin: 0;
  flex: 1;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.6;
}

.review-card blockquote::before {
  content: "“";
  display: block;
  height: 1.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand-light);
}

.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.review-card figcaption strong {
  display: block;
  color: var(--ink);
}

.review-card figcaption small {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-card__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-weight: 800;
}

.review-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.review-slider__controls[hidden] {
  display: none;
}

.review-slider__btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.review-slider__btn:hover,
.review-slider__btn:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.review-slider__dots {
  display: flex;
  gap: 0.4rem;
}

.review-slider__dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.2);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.review-slider__dots button[aria-current="true"] {
  width: 1.4rem;
  background: var(--brand);
}

/* Review form. */
.review-notes {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.review-notes li {
  position: relative;
  padding-left: 1.5rem;
}

.review-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

.star-input {
  margin: 0;
  padding: 0;
  border: 0;
}

.star-input legend {
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--ink);
}

/* Five down to one in the markup, shown one to five: a checked star then
   lights itself and everything after it in the markup, which is every
   star to its left on screen. */
.star-input__row {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.15rem;
}

/* The form card styles every label as a stacked field; a star is not one. */
.page-hero__grid--form .review-form label.star-input__star {
  display: inline-block;
  font-size: 2rem;
  font-weight: 400;
}

.star-input__star {
  position: relative;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  color: rgba(var(--ink-rgb), 0.18);
  transition: color 120ms ease, transform 120ms ease;
}

.star-input__star input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.star-input__star:has(input:checked),
.star-input__star:has(input:checked) ~ .star-input__star,
.star-input__row:hover .star-input__star:hover,
.star-input__row:hover .star-input__star:hover ~ .star-input__star {
  color: #f5a524;
}

.star-input__row:hover .star-input__star:not(:hover):not(:hover ~ .star-input__star) {
  color: rgba(var(--ink-rgb), 0.18);
}

.star-input__star:has(input:focus-visible) {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 6px;
}

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

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

@media (max-width: 1240px) {
  .category-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .deadlines,
  .portal-feature {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .category-tile {
    padding: 0.75rem 0.85rem;
  }

  .deadlines {
    padding: 1.3rem 1rem;
    gap: 1.2rem;
  }

  .deadline {
    gap: 0.7rem;
    padding: 0.55rem 0.65rem;
  }

  .deadline__help {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }

  .portal-feature {
    gap: 2rem;
  }

  .portal-mock {
    transform: none;
  }

  .review-slider__track {
    grid-auto-columns: 88%;
  }

  .review-slider__btn {
    width: 2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-slider__track {
    scroll-behavior: auto;
  }
}

/* ---- FAQ ----------------------------------------------------------------- */
.faq-grid {
  align-items: start;
}

.faq-grid h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  max-width: 16ch;
}

.faq-grid > div:last-child {
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.faq-item[open] {
  border-color: rgba(var(--brand-rgb), 0.3);
  box-shadow: 0 12px 30px rgba(var(--shadow-rgb), 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--ink);
}

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

.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
}

/* ---- Header on a laptop -------------------------------------------------- */
/* Between the tablet menu and a wide screen, the eight menu items, the
   wordmark and the two buttons did not fit: at 1280px the menu ran under
   the logo and behind Login. Everything steps down a size here instead. */
@media (min-width: 1241px) and (max-width: 1399px) {
  .site-header__inner {
    gap: 0.6rem;
  }

  .brand__wordmark {
    font-size: 1.7rem;
  }

  .brand__tagline {
    font-size: 0.6rem;
  }

  .mega-nav__trigger {
    padding: 0.55rem 0.38rem;
    font-size: 0.86rem;
  }

  .site-header__actions {
    gap: 0.5rem;
  }

  .site-header__actions .button {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

/* A sign-out is a post, drawn as the link it always looked like. */
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Keyboard focus. Several rules above clear the outline on hover or when a
   menu is open; for a keyboard user there has to be a ring regardless.
   --brand-light reads on both the white page and the dark hero. */
.mega-nav .mega-nav__item .mega-nav__trigger:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 3px;
}

/* Hidden until a keyboard reaches it, then the first thing on screen. */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  outline: 3px solid var(--brand-light);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

/* Contact page: the asterisk on a required field, the line under the
   button, and the other ways to reach the office. */
.field-required {
  color: #b42318;
  text-decoration: none;
}

.form-card__consent {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-card__consent a,
.contact-details a {
  color: var(--brand);
  font-weight: 700;
}

.contact-details {
  display: grid;
  gap: 0.55rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--ink);
}

.contact-details span {
  min-width: 5.5rem;
  color: var(--muted);
  font-weight: 700;
}

/* Sign-in card: the wordmark where an "FTP" badge used to be, and the
   note on what to do about a forgotten password. */
.auth-card__wordmark {
  display: inline-flex;
  gap: 0.2em;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.auth-card__wordmark .wm-fin,
.auth-card__wordmark .wm-port {
  color: var(--ink);
}

.auth-card__wordmark .wm-tax {
  color: var(--brand);
}

.auth-help {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-help a {
  color: var(--brand);
  font-weight: 700;
}
