/* =========================================================
   Clockwork: page components
   ========================================================= */

/* -------------------- Hero: lime dial face with a slowly turning gear -------------------- */
.hero {
  background: var(--lime);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 3rem 0 3.4rem;
}
.hero::before {
  content: "";
  position: absolute;
  right: -140px; top: -120px;
  width: 560px; height: 560px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M44.44 13.42L44.00 4.39L56.00 4.39L55.56 13.42L63.47 15.54L67.60 7.50L78.00 13.51L73.11 21.10L78.90 26.89L86.49 22.00L92.50 32.40L84.46 36.53L86.58 44.44L95.61 44.00L95.61 56.00L86.58 55.56L84.46 63.47L92.50 67.60L86.49 78.00L78.90 73.11L73.11 78.90L78.00 86.49L67.60 92.50L63.47 84.46L55.56 86.58L56.00 95.61L44.00 95.61L44.44 86.58L36.53 84.46L32.40 92.50L22.00 86.49L26.89 78.90L21.10 73.11L13.51 78.00L7.50 67.60L15.54 63.47L13.42 55.56L4.39 56.00L4.39 44.00L13.42 44.44L15.54 36.53L7.50 32.40L13.51 22.00L21.10 26.89L26.89 21.10L22.00 13.51L32.40 7.50L36.53 15.54Z' fill='none' stroke='%231D1033' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='50' cy='50' r='16' fill='none' stroke='%231D1033' stroke-width='3'/%3E%3Ccircle cx='50' cy='50' r='27' fill='none' stroke='%231D1033' stroke-width='1.5' stroke-dasharray='2 5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.16;
  animation: gear-turn 120s linear infinite;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: 120px; bottom: -150px;
  width: 300px; height: 300px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M44.44 13.42L44.00 4.39L56.00 4.39L55.56 13.42L63.47 15.54L67.60 7.50L78.00 13.51L73.11 21.10L78.90 26.89L86.49 22.00L92.50 32.40L84.46 36.53L86.58 44.44L95.61 44.00L95.61 56.00L86.58 55.56L84.46 63.47L92.50 67.60L86.49 78.00L78.90 73.11L73.11 78.90L78.00 86.49L67.60 92.50L63.47 84.46L55.56 86.58L56.00 95.61L44.00 95.61L44.44 86.58L36.53 84.46L32.40 92.50L22.00 86.49L26.89 78.90L21.10 73.11L13.51 78.00L7.50 67.60L15.54 63.47L13.42 55.56L4.39 56.00L4.39 44.00L13.42 44.44L15.54 36.53L7.50 32.40L13.51 22.00L21.10 26.89L26.89 21.10L22.00 13.51L32.40 7.50L36.53 15.54Z' fill='none' stroke='%231D1033' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='50' cy='50' r='16' fill='none' stroke='%231D1033' stroke-width='3'/%3E%3Ccircle cx='50' cy='50' r='27' fill='none' stroke='%231D1033' stroke-width='1.5' stroke-dasharray='2 5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.1;
  animation: gear-turn 80s linear infinite reverse;
  pointer-events: none;
}
@keyframes gear-turn { to { transform: rotate(360deg); } }
.hero .container { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--violet-900);
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border-radius: var(--pill);
  margin-bottom: 1.2rem;
}
.hero__eyebrow svg { width: 15px; height: 15px; }

/* Page heroes (brand pages): a normal engraved headline */
.hero h1 {
  position: relative;
  margin: 0 0 1.3rem;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 17ch;
}

/* Home hero: H1 = the brand, one huge engraved word with a minute track under it */
.hero--brand h1 {
  margin: 0 0 1.5rem;
  padding-bottom: 1.1rem;
  font-size: min(12.5rem, calc((100vw - 4rem) / 4.75));
  line-height: 0.82;
  letter-spacing: -0.005em;
  max-width: none;
}
.hero--brand h1::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 10px) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 50px) top / 100% 14px no-repeat;
}
.hero__tagline {
  display: inline-block;
  margin: 0 0 1.3rem;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.9vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--pill);
  padding: 0.4rem 1rem;
}
.hero__lede { color: #2A1C47; font-size: 1.08rem; max-width: 62ch; margin-top: 0; }
.hero__lede + .hero__lede { margin-top: 1rem; }
.hero__lede a { color: var(--violet-800); text-decoration: underline; text-decoration-color: rgba(29, 16, 51, 0.4); text-underline-offset: 3px; font-weight: 700; }
.hero__lede a:hover { color: var(--ink); }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero .btn-ghost-dark { color: var(--ink); border-color: var(--ink); }
.hero .btn-ghost-dark:hover { background: var(--ink); color: var(--lime); border-color: var(--ink); }

/* -------------------- Stat strip: round sub-dials -------------------- */
.stat-strip { background: var(--mist); }
.stat-strip__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1rem;
  padding: 2.4rem 0 1.4rem;
}
@media (min-width: 700px) { .stat-strip__row { grid-template-columns: repeat(4, 1fr); } }
.stat-strip__item {
  position: relative;
  width: min(100%, 11.5rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-strip__item::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--violet-600) 0 1.2deg, transparent 1.2deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 0 74%, #000 75%);
          mask: radial-gradient(circle, transparent 0 74%, #000 75%);
  opacity: 0.55;
}
.stat-strip__value {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1;
  color: var(--ink);
}
.stat-strip__label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.35rem;
}

/* -------------------- Section rhythm -------------------- */
.section { padding: 3.6rem 0; }
.section--tight { padding: 2.2rem 0; }
.section--alt { background: var(--mist-dim); }
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-700);
  background: var(--violet-100);
  padding: 0.3rem 0.8rem;
  border-radius: var(--pill);
  margin: 0 0 0.9rem;
}
.section--alt .section__eyebrow { background: #fff; }
.section__intro { max-width: 72ch; margin-bottom: 1.6rem; }
.section h2 { max-width: 20ch; }
@media (min-width: 900px) { .section { padding: 5rem 0; } }

/* -------------------- Tables: lime header strip -------------------- */
.table-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: #fff;
}
table.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
table.data-table caption { text-align: left; font-size: 0.85rem; color: var(--ink-faint); padding: 0.7rem 1.1rem 0; }
table.data-table th, table.data-table td { padding: 0.85rem 1.15rem; text-align: left; border-bottom: 1px dashed rgba(29, 16, 51, 0.22); vertical-align: top; }
table.data-table thead th {
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody td:first-child { font-weight: 800; color: var(--violet-700); white-space: nowrap; }
table.data-table tbody tr:hover td { background: var(--lime-soft); }

/* Phones: every row becomes a rounded card with a lime label chip per value */
@media (max-width: 640px) {
  .table-scroll { overflow: visible; border: 0; background: none; margin: 1.2rem 0; }
  table.data-table { min-width: 0; }
  table.data-table, table.data-table tbody, table.data-table tr { display: block; width: 100%; }
  table.data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data-table caption { display: none; }
  table.data-table tr {
    margin-bottom: 1rem;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  table.data-table td, table.data-table tbody tr:hover td {
    display: block;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px dashed rgba(29, 16, 51, 0.22);
    background: none;
    white-space: normal;
  }
  table.data-table tr td:last-child { border-bottom: none; }
  table.data-table td::before {
    content: attr(data-label);
    display: block;
    width: fit-content;
    margin-bottom: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--lime);
    padding: 0.12rem 0.6rem;
    border-radius: var(--pill);
  }
  table.data-table tbody td:first-child { white-space: normal; }
}

/* -------------------- Icon checklist -------------------- */
.icon-list { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 0.85rem; }
.icon-list li { display: flex; align-items: flex-start; gap: 0.8rem; color: var(--ink-soft); }
.icon-list .icon-check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--violet-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}
.icon-list .icon-check svg { width: 13px; height: 13px; stroke: var(--lime); }

/* -------------------- Process: gear-badge steps on a tick track -------------------- */
.process { display: grid; gap: 1.8rem; margin: 2rem 0 0.5rem; counter-reset: step; }
@media (min-width: 860px) {
  .process { grid-template-columns: repeat(4, 1fr); position: relative; }
  .process::before {
    content: "";
    position: absolute;
    top: 27px; left: 8%; right: 8%;
    height: 8px;
    color: var(--violet-600);
    background: var(--ticks);
    opacity: 0.5;
  }
}
.process__step { position: relative; }
.process__node {
  width: 60px; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M44.44 13.42L44.00 4.39L56.00 4.39L55.56 13.42L63.47 15.54L67.60 7.50L78.00 13.51L73.11 21.10L78.90 26.89L86.49 22.00L92.50 32.40L84.46 36.53L86.58 44.44L95.61 44.00L95.61 56.00L86.58 55.56L84.46 63.47L92.50 67.60L86.49 78.00L78.90 73.11L73.11 78.90L78.00 86.49L67.60 92.50L63.47 84.46L55.56 86.58L56.00 95.61L44.00 95.61L44.44 86.58L36.53 84.46L32.40 92.50L22.00 86.49L26.89 78.90L21.10 73.11L13.51 78.00L7.50 67.60L15.54 63.47L13.42 55.56L4.39 56.00L4.39 44.00L13.42 44.44L15.54 36.53L7.50 32.40L13.51 22.00L21.10 26.89L26.89 21.10L22.00 13.51L32.40 7.50L36.53 15.54Z' fill='%232A1750'/%3E%3Ccircle cx='50' cy='50' r='33' fill='none' stroke='%235B3BB0' stroke-width='1.5' stroke-dasharray='2 4'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 8px rgba(29, 16, 51, 0.25));
}
.process__step h3 { margin: 0.9rem 0 0.35rem; font-size: 1.08rem; }
.process__step p { font-size: 0.93rem; }
.process + p { margin-top: 2rem; }

/* -------------------- Compare block -------------------- */
.compare { display: grid; gap: 1rem; margin: 1.8rem 0; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { padding: 1.9rem; border-radius: var(--radius-lg); }
.compare__col--us { background: var(--violet-900); color: var(--on-dark); box-shadow: var(--shadow-lift); }
.compare__col--them { background: #fff; color: var(--ink); border: 2px solid var(--border-soft); }
.compare__col h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.compare__col--us h3 { color: var(--lime); }
.compare__col--them h3 { color: var(--ink-faint); }
.compare__row { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.7rem 0; border-top: 1px dashed var(--border-on-dark); font-size: 0.95rem; }
.compare__col--them .compare__row { border-top: 1px dashed var(--border-soft); color: var(--ink-soft); }
.compare__col--us .compare__row:first-child,
.compare__col--them .compare__row:first-child { border-top: none; padding-top: 0; }
.compare__mark { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.1rem; }
.compare__mark--yes svg { stroke: var(--lime); }
.compare__mark--no svg { stroke: var(--ink-faint); }

/* -------------------- CTA callout banner -------------------- */
.callout-cta {
  position: relative;
  overflow: hidden;
  background: var(--violet-900);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  margin: 2.2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
}
.callout-cta::after {
  content: "";
  position: absolute;
  right: -50px; bottom: -70px;
  width: 240px; height: 240px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M44.44 13.42L44.00 4.39L56.00 4.39L55.56 13.42L63.47 15.54L67.60 7.50L78.00 13.51L73.11 21.10L78.90 26.89L86.49 22.00L92.50 32.40L84.46 36.53L86.58 44.44L95.61 44.00L95.61 56.00L86.58 55.56L84.46 63.47L92.50 67.60L86.49 78.00L78.90 73.11L73.11 78.90L78.00 86.49L67.60 92.50L63.47 84.46L55.56 86.58L56.00 95.61L44.00 95.61L44.44 86.58L36.53 84.46L32.40 92.50L22.00 86.49L26.89 78.90L21.10 73.11L13.51 78.00L7.50 67.60L15.54 63.47L13.42 55.56L4.39 56.00L4.39 44.00L13.42 44.44L15.54 36.53L7.50 32.40L13.51 22.00L21.10 26.89L26.89 21.10L22.00 13.51L32.40 7.50L36.53 15.54Z M50 34a16 16 0 1 0 0.01 0Z' fill='%23C9F23A'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.callout-cta > * { position: relative; z-index: 1; }
.callout-cta__text h3 { color: #fff; margin-bottom: 0.3rem; font-size: 1.3rem; }
.callout-cta__text p { color: var(--on-dark-dim); margin: 0; font-size: 0.95rem; }
.callout-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.callout-cta .btn-primary { background: var(--lime); color: var(--ink); }
.callout-cta .btn-primary:hover { background: #fff; color: var(--ink); }
.callout-cta .btn-ghost-dark { color: #fff; }

/* -------------------- FAQ: round-cornered rows with a turning hand -------------------- */
.faq { display: grid; gap: 0.7rem; margin-top: 1.6rem; max-width: 900px; }
.faq details {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 0 1.5rem;
  transition: background-color 0.15s ease;
}
.faq details[open] { background: var(--lime-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 0;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) 50% 14% / 2.5px 9px no-repeat, #fff;
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(150deg); background-color: var(--lime); }
.faq p { padding-bottom: 1.2rem; margin: 0; }

/* -------------------- Service area -------------------- */
.area-list { list-style: none; margin: 1.2rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.area-list li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; color: var(--ink-soft);
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  background: #fff;
  border: 2px solid var(--border-soft);
  border-radius: var(--pill);
}
.area-list li svg { flex-shrink: 0; width: 16px; height: 16px; stroke: var(--violet-600); }
.area-list li.is-primary { font-weight: 800; color: var(--ink); border-color: var(--ink); background: var(--lime-soft); }

/* -------------------- Breadcrumb -------------------- */
.breadcrumb { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); padding-top: 0.4rem; }
.breadcrumb a { color: var(--ink-faint); text-decoration: underline; text-decoration-color: var(--border-soft); display: inline-block; padding: 0.75rem 0.5rem 0.75rem 0; }
.breadcrumb a:hover { color: var(--violet-600); }
.breadcrumb span[aria-current] { color: var(--ink-soft); }

/* -------------------- Related brand cards -------------------- */
.related-grid { display: grid; gap: 1rem; margin-top: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card {
  background: #fff;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.related-card h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.related-card h3 a { color: var(--ink); }
.related-card p { font-size: 0.92rem; margin: 0; }

/* -------------------- Final CTA: dark face with a minute track -------------------- */
.final-cta {
  position: relative;
  background: var(--violet-900);
  color: var(--on-dark);
  padding: 4rem 0 3.4rem;
  text-align: center;
}
.final-cta::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  color: rgba(201, 242, 58, 0.7);
  background: var(--ticks);
}
.final-cta h2 { color: var(--lime); margin: 0 auto 0.6rem; max-width: 18ch; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.final-cta p { color: var(--on-dark); max-width: 60ch; margin: 0 auto 1.1rem; }
.final-cta .hero__cta-row { justify-content: center; margin-top: 1.6rem; }
.final-cta .btn-primary { background: var(--lime); color: var(--ink); }
.final-cta .btn-primary:hover { background: #fff; }
.final-cta .btn-ghost-dark { color: #fff; border-color: rgba(243, 241, 248, 0.5); }
.final-cta .btn-ghost-dark:hover { color: var(--lime); border-color: var(--lime); background: transparent; }

/* -------------------- Photo block -------------------- */
.photo-block { margin: 2rem 0; }
.photo-block img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid var(--ink);
}
@media (max-width: 640px) { .photo-block img { aspect-ratio: 4 / 3; border-radius: 22px; } }

/* -------------------- Legal / simple pages -------------------- */
.simple-page h2 { margin-top: 2.2rem; font-size: clamp(1.9rem, 4vw, 2.5rem); }
.simple-page .container { max-width: 820px; }
.simple-page .callout-cta h3 { font-family: var(--font-body); }
