/* ==========================================================
   HOME PAGE
========================================================== */

/* --- Hero --- */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  margin-top: calc(-1 * (var(--header-h) + 1.5rem));
  padding: calc(var(--header-h) + clamp(4rem, 9vw, 7.5rem)) 0 clamp(3rem, 6vw, 4.5rem);
}

.home-hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.home-hero__title {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  max-width: 13ch;
  margin: 0 0 1.5rem;
}
.home-hero__lead {
  font-size: var(--fs-lead);
  color: var(--text);
  max-width: 34rem;
  margin: 0 0 2.25rem;
  line-height: 1.6;
}
.home-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* Concentric rings carrying the work we take off your plate */
.home-hero__rings {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: calc(var(--header-h) + 21rem);
  width: 0;
  height: 0;
  pointer-events: none;
}
.ring {
  position: absolute;
  width: var(--d);
  height: var(--d);
  left: calc(var(--d) / -2);
  top: calc(var(--d) / -2);
  border-radius: 50%;
  border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 35%, transparent 78%);
}
.ring--1 { --d: 600px; }
.ring--2 { --d: 860px; }
.ring--3 { --d: 1120px; }
.ring--4 { --d: 1380px; border-color: #edf0f4; }
.ring--2::after, .ring--4::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(45, 91, 227, 0.55);
  transform: rotate(-58deg);
}
.ring--4::after { transform: rotate(70deg); border-top-color: rgba(45, 91, 227, 0.4); }

/* Service pills placed on the rings: rotate out to the radius, then un-rotate and centre */
.orbit {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.5rem 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: 0 1px 2px rgba(11, 26, 51, 0.05), 0 10px 24px -12px rgba(11, 26, 51, 0.22);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))) translate(-50%, -50%);
}
.orbit::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--tick) center / contain no-repeat; }
.orbit--1 { --r: 430px; --a: 214deg; }
.orbit--2 { --r: 560px; --a: 196deg; }
.orbit--3 { --r: 560px; --a: 162deg; }
.orbit--4 { --r: 430px; --a: 146deg; }
.orbit--5 { --r: 430px; --a: -32deg; }
.orbit--6 { --r: 560px; --a: -14deg; }
.orbit--7 { --r: 560px; --a: 20deg; }
.orbit--8 { --r: 430px; --a: 34deg; }

/* Monthly deliverables stack */
.close-stack {
  position: relative;
  width: min(440px, 100%);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.close-stack::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30% -35% -45%;
  background:
    radial-gradient(45% 45% at 40% 55%, rgba(45, 91, 227, 0.22), transparent 70%),
    radial-gradient(40% 40% at 65% 60%, rgba(56, 196, 238, 0.22), transparent 70%);
  filter: blur(20px);
}
.close-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11, 26, 51, 0.04), 0 16px 32px -18px rgba(11, 26, 51, 0.28);
  text-align: left;
}
.close-card--1 { z-index: 3; }
.close-card--2 { z-index: 2; width: 92%; margin-top: -4px; }
.close-card--3 { z-index: 1; width: 84%; margin-top: -4px; }
.close-card__mark { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tick) center / 30px no-repeat; }
.close-card__mark--blue {
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2.5h5l3 3v8H4z' fill='none' stroke='%232D5BE3' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M6 8.5h4M6 10.8h4' stroke='%232D5BE3' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.close-card__avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.close-card__body { flex: 1; min-width: 0; }
.close-card__title { margin: 0; font-size: 0.9375rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.close-card__meta { margin: 0.15rem 0 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.close-card--2 .close-card__title, .close-card--3 .close-card__title { font-size: 0.875rem; }

/* Single page-load moment */
@media (prefers-reduced-motion: no-preference) {
  .home-hero__title, .home-hero__lead, .home-hero__actions, .announce { animation: heroIn 0.7s var(--ease) both; }
  .home-hero__lead { animation-delay: 0.06s; }
  .home-hero__actions { animation-delay: 0.12s; }
  .close-card { animation: cardIn 0.7s var(--ease) both; }
  .close-card--1 { animation-delay: 0.35s; }
  .close-card--2 { animation-delay: 0.47s; }
  .close-card--3 { animation-delay: 0.59s; }
  .orbit { animation: orbitIn 0.9s var(--ease) 0.2s both; }
  .orbit--2, .orbit--6 { animation-delay: 0.3s; }
  .orbit--3, .orbit--7 { animation-delay: 0.4s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes orbitIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1180px) {
  .home-hero__rings { transform: scale(0.82); }
}
@media (max-width: 960px) {
  .orbit { display: none; }
  .home-hero__rings { transform: scale(0.7); top: calc(var(--header-h) + 17rem); }
}
@media (max-width: 640px) {
  .home-hero__rings { transform: scale(0.5); top: calc(var(--header-h) + 15rem); }
  .home-hero__actions { width: 100%; flex-direction: column; }
  .home-hero__actions .btn { width: 100%; }
}

/* --- Services --- */
.service-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--paper);
  color: inherit;
  transition: background-color var(--transition);
}
.service:hover { background: #fafbfc; color: inherit; }
.service--highlight { background: linear-gradient(180deg, #f3f6fe 0%, var(--paper) 70%); }
.service--highlight:hover { background: linear-gradient(180deg, #edf2fd 0%, #fafbfc 70%); }
.service__top { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.service__top .service__title { margin: 0; }
.service__title { font-size: 1.125rem; margin: 0 0 0.6rem; }
.service__text { font-size: var(--fs-sm); color: var(--text); margin: 0 0 1.5rem; }
.service .ticks { margin-bottom: 2rem; }
.service .ticks li { font-size: 0.875rem; }
.service__more {
  margin-top: auto;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--transition);
}
.service:hover .service__more { text-decoration-color: var(--ink); }

/* --- Benefits --- */
.benefits { display: grid; gap: 2rem 1.75rem; }
@media (min-width: 560px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefit { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.benefit h3 { font-size: 1.0625rem; margin: 0 0 0.5rem; }
.benefit p { font-size: var(--fs-sm); margin: 0; color: var(--text); }

/* --- About + founder --- */
.about { align-items: center; }
.about .section__title { text-align: left; max-width: 16ch; }
.about__ticks { margin: 1.75rem 0 2.25rem; }

.founder {
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--tint);
  border-radius: var(--r-lg);
}
.founder__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.founder__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); }
.founder__name { margin: 0; font-weight: 600; color: var(--ink); font-size: 1.0625rem; }
.founder__role { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.founder__quote { margin: 0 0 1.75rem; font-size: 1.125rem; line-height: 1.55; color: var(--ink); letter-spacing: -0.01em; }
.founder__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.founder__facts dt { font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.founder__facts dd { margin: 0.25rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
.founder__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.founder__actions .btn--soft { background: var(--paper); }

/* --- Versus table --- */
.versus { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; max-width: 960px; margin-inline: auto; }
.versus__table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.versus__table th, .versus__table td { padding: 1.15rem 1.5rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.versus__table tbody tr:last-child > * { border-bottom: 0; }
.versus__table thead th { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); background: var(--paper); }
.versus__table thead th.versus__us { display: table-cell; }
.versus__table thead th.versus__us img { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; margin-right: 0.4rem; }
.versus__table tbody th { font-weight: 500; color: var(--muted); width: 18%; }
.versus__table td { color: var(--muted); width: 41%; }
.versus__table .versus__us { background: #f6f8fe; color: var(--ink); }
.versus__table td::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.6rem;
  vertical-align: -4px;
  background: var(--cross) center / contain no-repeat;
}
.versus__table td.versus__us::before { background-image: var(--tick); }

@media (max-width: 680px) {
  .versus__table thead { display: none; }
  .versus__table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .versus__table tbody tr:last-child { border-bottom: 0; }
  .versus__table tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0.25rem; border: 0; color: var(--ink); }
  .versus__table td { width: auto; border: 0; padding: 0.5rem 1rem 1rem; font-size: 0.875rem; }
  .versus__table td::before { display: block; margin-bottom: 0.4rem; }
}

/* --- Pricing extras --- */
.pricing-foot { text-align: center; margin: 2.5rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.pricing-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* --- Regions --- */
.regions { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.region {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.region:hover { border-color: var(--line-strong); box-shadow: var(--shadow-float); color: inherit; }
.region__std { font-size: var(--fs-xs); font-weight: 500; color: var(--blue); margin-bottom: 2.5rem; }
.region__name { font-size: 1.375rem; letter-spacing: -0.03em; margin: 0 0 0.4rem; }
.region__cities { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* --- FAQ / contact splits --- */
.faq-split .section__head { margin-bottom: 0; }
.faq-split .section__intro a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.contact-split { align-items: start; }
.contact-split .section__title { text-align: left; }
.contact-facts { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.contact-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.contact-facts dt { color: var(--muted); }
.contact-facts dd { margin: 0; color: var(--ink); text-align: right; font-weight: 500; }
.contact-facts a { color: var(--ink); }
.contact-facts a:hover { color: var(--blue); }

.form-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-float);
}

/* Plain footer links shown before components.js renders the real footer
   (and to crawlers and agents that don't run JavaScript). */
.footer-fallback {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 32px 16px;
  font-size: 14px;
}
.footer-fallback a { color: var(--ink-2, inherit); }
