/* Homepage + Field Tools enhancements, drawn in the site's own Phosphor system:
   ink and paper sections, square corners, 1px hairlines, one phosphor signal,
   Instrument Sans + Space Mono. This file only adds to app-owned markup:
   section backgrounds and text colors stay exactly as the app ships them.
   Motion is opt-in (html.hpx-on, set by the script) and off for reduced motion. */

.hp, .hpx-toolbox, .hpx-page {
  --hpx-ease: cubic-bezier(.2, .7, .2, 1);
  --hpx-grid: oklch(.88 .26 153 / .12);
  --hpx-glow: oklch(.88 .26 153 / .16);
  --hpx-signal-ink: #005d2f;
  --hpx-signal-ink: oklch(.42 .12 153);
}

/* ---------- Scroll reveal (only once the script has run) ---------- */
.hpx-on [data-hpx-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--hpx-ease), transform .55s var(--hpx-ease);
  transition-delay: calc(var(--hpx-i, 0) * 70ms);
}
.hpx-on [data-hpx-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero: status pulse, handoff player, rates ---------- */
.hp .hp-kicker .status-dot { animation: hpx-pulse 2.4s var(--hpx-ease) infinite; }
@keyframes hpx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(.88 .26 153 / .5); }
  60% { box-shadow: 0 0 0 7px oklch(.88 .26 153 / 0); }
}

.hp .hp-flow { position: relative; }
.hp .hp-flow li { position: relative; transition: background-color .3s var(--hpx-ease); }
.hp .hp-flow li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--hpx-ease);
}
.hp .hp-flow li[data-hpx-active] { background: var(--ink-800); }
.hp .hp-flow li[data-hpx-active]::before { transform: scaleY(1); }
.hp .hp-flow li[data-hpx-active] .hp-flow__no { color: var(--signal); }
.hp .hp-flow li[data-hpx-done] .hp-flow__no { color: var(--paper-200); }

.hpx-player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line-dark);
}
.hpx-player__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.hpx-player__toggle:hover { border-color: var(--signal); background: var(--ink-800); }
.hpx-player__toggle:focus-visible, .hpx-player input:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.hpx-player__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.hpx-player label { display: grid; gap: 4px; min-width: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.hpx-player input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: ew-resize; }
.hpx-player input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--signal) var(--hpx-fill, 0%), var(--line-dark) var(--hpx-fill, 0%)); }
.hpx-player input[type="range"]::-moz-range-track { height: 2px; background: var(--line-dark); }
.hpx-player input[type="range"]::-moz-range-progress { height: 2px; background: var(--signal); }
.hpx-player input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border: 0; border-radius: 0; background: var(--signal); box-shadow: 0 0 0 4px var(--hpx-glow); }
.hpx-player input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 0; background: var(--signal); box-shadow: 0 0 0 4px var(--hpx-glow); }
.hpx-player output { min-width: 11ch; font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-align: right; text-transform: uppercase; letter-spacing: .04em; color: var(--signal); }

.hp .hp-rates > div { position: relative; transition: background-color .25s var(--hpx-ease); }
.hp .hp-rates > div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--hpx-ease);
  transition-delay: calc(var(--hpx-i, 0) * 110ms);
}
.hp .hp-rates > div:hover { background: var(--ink-900); }
.hp .hp-rates > div.is-in::before, .hp .hp-rates > div:hover::before { transform: scaleX(1); }
html:not(.hpx-on) .hp .hp-rates > div::before { display: none; }

/* ---------- Services: illustrated cards on the original 2x2 hairline grid ---------- */
.hp .hp-service { position: relative; isolation: isolate; transition: background-color .3s var(--hpx-ease); }
.hp .hp-service::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: 0;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--hpx-ease);
}
.hp .hp-service:hover, .hp .hp-service:focus-within { background: var(--ink-900); }
.hp .hp-service:hover::after, .hp .hp-service:focus-within::after { transform: scaleX(1); }
.hp .hp-service:hover .hp-service__no { color: var(--signal); }

.hpx-art {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(116px, 12vw, 156px);
  margin: 4px 0 6px;
  border: 1px solid var(--line-dark);
  background-color: var(--ink-900);
  background-image: linear-gradient(var(--hpx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hpx-grid) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: -1px -1px;
  overflow: hidden;
  color: var(--signal);
}
.hpx-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, oklch(.88 .26 153 / .12), transparent);
  transform: translateX(-100%);
}
.hp .hp-service:hover .hpx-art::after { animation: hpx-scan 1.1s var(--hpx-ease); }
@keyframes hpx-scan { to { transform: translateX(100%); } }
.hpx-art__label { position: absolute; top: 8px; left: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--phosphor-700); }
.hpx-art svg { width: min(70%, 240px); height: auto; overflow: visible; }
.hpx-art svg * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.hpx-art svg .hpx-n { fill: var(--ink-950); }
.hpx-art svg .hpx-d { stroke: var(--line-dark); }
.hpx-art svg .hpx-p { fill: currentColor; stroke: none; }
.hpx-on .hpx-art svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--hpx-ease) .15s; }
.hpx-on .is-in .hpx-art svg { clip-path: inset(0 0 0 0); }
.hpx-on .hpx-art .hpx-p { opacity: 0; }
.hpx-on .is-in .hpx-art .hpx-p { animation: hpx-blink 2.8s 1.3s var(--hpx-ease) infinite; }
@keyframes hpx-blink { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* Compare table under the cards */
.hpx-compare { margin-top: clamp(40px, 5vw, 64px); }
.hpx-compare__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 18px; }
.hpx-compare__head h3 { margin: 8px 0 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.hpx-compare__head p { margin: 0; max-width: 420px; color: var(--muted-dark); font-size: 15px; line-height: 1.5; }
.hpx-table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); -webkit-overflow-scrolling: touch; }
.hpx-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.hpx-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hpx-table th, .hpx-table td { padding: 15px 18px; border-bottom: 1px solid var(--line-dark); text-align: left; vertical-align: top; line-height: 1.45; }
.hpx-table thead th { background: var(--ink-900); font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); white-space: nowrap; }
.hpx-table tbody tr { transition: background-color .2s var(--hpx-ease); }
.hpx-table tbody tr:hover { background: var(--ink-900); }
.hpx-table tbody tr:last-child > * { border-bottom: 0; }
.hpx-table tbody th { font-weight: 600; color: var(--paper-100); min-width: 200px; }
.hpx-table tbody th span { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--phosphor-700); }
.hpx-table td { color: var(--paper-200); }
.hpx-table .hpx-table__price { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--signal); }
.hpx-table .hpx-table__note { color: var(--muted-dark); font-size: 14px; }

/* ---------- Demo section (paper): full-app links + free tools ---------- */
.hp .hp-demo__more a svg { transition: transform .2s var(--hpx-ease); }
.hp .hp-demo__more a:hover svg { transform: translate(2px, -2px); }

.hpx-toolbox { margin-top: clamp(40px, 5vw, 64px); }
.hpx-toolbox__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 18px; }
.hpx-toolbox__head h2 { margin: 8px 0 0; font-size: clamp(26px, 2.8vw, 38px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; color: inherit; }
.hpx-toolbox__head p { margin: 0; max-width: 380px; font-size: 15px; line-height: 1.5; color: var(--hpx-muted); }
.hpx-toolbox__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hpx-line); border-left: 1px solid var(--hpx-line); }
.hpx-toolbox__grid li { border-right: 1px solid var(--hpx-line); border-bottom: 1px solid var(--hpx-line); }
.hpx-toolbox__grid a { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: clamp(18px, 2vw, 26px); color: inherit; text-decoration: none; transition: background-color .25s var(--hpx-ease), color .25s var(--hpx-ease); }
.hpx-toolbox__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.hpx-toolbox__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; color: var(--hpx-accent); transition: color .25s; }
.hpx-toolbox__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.hpx-toolbox__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--hpx-accent); }
.hpx-toolbox__grid strong { font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.hpx-toolbox__desc { font-size: 14px; line-height: 1.5; color: var(--hpx-muted); }
.hpx-toolbox__go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.hpx-toolbox__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s var(--hpx-ease); }
.hpx-toolbox__grid a:hover, .hpx-toolbox__grid a:focus-visible { background: var(--ink-950); color: var(--paper-100); }
.hpx-toolbox__grid a:hover .hpx-toolbox__icon, .hpx-toolbox__grid a:focus-visible .hpx-toolbox__icon,
.hpx-toolbox__grid a:hover .hpx-toolbox__no, .hpx-toolbox__grid a:focus-visible .hpx-toolbox__no { color: var(--signal); }
.hpx-toolbox__grid a:hover .hpx-toolbox__desc, .hpx-toolbox__grid a:focus-visible .hpx-toolbox__desc { color: var(--muted-dark); }
.hpx-toolbox__grid a:hover .hpx-toolbox__go svg { transform: translateX(3px); }
.hpx-toolbox__grid a:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
/* On paper (homepage demo section) */
.hpx-toolbox--paper { --hpx-line: var(--line-light); --hpx-accent: var(--hpx-signal-ink); --hpx-muted: var(--muted-light); color: var(--ink-950); }
.hpx-toolbox--paper .mono-label { color: var(--hpx-signal-ink); }
/* On ink (/tools page) */
.hpx-toolbox--ink { --hpx-line: var(--line-dark); --hpx-accent: var(--signal); --hpx-muted: var(--muted-dark); margin: 0; color: var(--paper-100); background: var(--ink-950); border-bottom: 1px solid var(--line-dark); }
.hpx-toolbox--ink .hpx-toolbox__grid a:hover, .hpx-toolbox--ink .hpx-toolbox__grid a:focus-visible { background: var(--ink-900); }
.hpx-toolbox--ink .mono-label { color: var(--phosphor-700); }

/* ---------- Process: a rail that fills step by step ---------- */
.hp .hp-steps li { position: relative; transition: background-color .25s var(--hpx-ease); }
.hp .hp-steps li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--hpx-ease);
  transition-delay: calc(var(--hpx-i, 0) * 220ms + 200ms);
}
.hp .hp-steps li.is-in::before { transform: scaleX(1); }
.hp .hp-steps li .mono-label { display: inline-flex; align-items: center; gap: 10px; }
.hp .hp-steps li .mono-label::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid var(--signal);
  background: var(--ink-900);
  transition: background-color .3s;
  transition-delay: calc(var(--hpx-i, 0) * 220ms + 500ms);
}
.hp .hp-steps li.is-in .mono-label::before { background: var(--signal); }
html:not(.hpx-on) .hp .hp-steps li::before { display: none; }
html:not(.hpx-on) .hp .hp-steps li .mono-label::before { background: var(--signal); }

/* ---------- Free tools grid (paper) ---------- */
.hp .hp-tool-grid a { position: relative; }
.hp .hp-tool-grid a::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: 0;
  height: 2px;
  background: var(--hpx-signal-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--hpx-ease);
}
.hp .hp-tool-grid a:hover::before, .hp .hp-tool-grid a:focus-visible::before { transform: scaleX(1); }
.hp .hp-tool__go svg { transition: transform .2s var(--hpx-ease); }
.hp .hp-tool-grid a:hover .hp-tool__go svg { transform: translate(3px, -3px); }
.hp .hp-tool-grid a:hover h3 { color: var(--hpx-signal-ink); }

@media (min-width: 1101px) { .hp .hp-tool-grid > li:last-child:nth-child(3n+2) { grid-column: span 2; } }
@media (min-width: 641px) and (max-width: 1100px) { .hp .hp-tool-grid > li:last-child:nth-child(odd) { grid-column: span 2; } }

/* ---------- About ---------- */
.hp .hp-about__mark {
  overflow: hidden;
  background-color: var(--ink-950);
  background-image: linear-gradient(var(--hpx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hpx-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hp .hp-about__mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, oklch(.88 .26 153 / .1));
  border-bottom: 1px solid oklch(.88 .26 153 / .35);
  animation: hpx-sweep 6s linear infinite;
  pointer-events: none;
}
@keyframes hpx-sweep { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.hp .hp-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 640px; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.hp .hp-values li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); font-size: 12px; color: var(--paper-100); transition: background-color .25s var(--hpx-ease); }
.hp .hp-values li::before { content: ""; flex: none; width: 12px; height: 7px; margin-top: -4px; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg); }
.hp .hp-values li:hover { background: var(--ink-900); }

/* ---------- FAQ ---------- */
.hp .hp-faq__list details { position: relative; transition: background-color .25s var(--hpx-ease); }
.hp .hp-faq__list details::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--signal); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--hpx-ease); }
.hp .hp-faq__list details[open]::before { transform: scaleY(1); }
.hp .hp-faq__list summary { padding-inline: 16px; transition: color .2s; }
.hp .hp-faq__list summary:hover { color: var(--signal); }
.hp .hp-faq__list details p { padding-inline: 16px; }
.hp .hp-faq__list details[open] { background: var(--ink-950); }
.hp .hp-faq__list details[open] p { animation: hpx-fade .35s var(--hpx-ease); }
@keyframes hpx-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.hpx-ask { margin-top: clamp(32px, 4vw, 56px); max-width: 360px; padding: 22px 22px 18px; border: 1px solid var(--line-dark); background: var(--ink-950); }
.hpx-ask p { margin: 10px 0 16px; color: var(--paper-200); font-size: 16px; line-height: 1.5; }
.hpx-ask__links { display: grid; border-top: 1px solid var(--line-dark); }
.hpx-ask__links a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 12px; color: var(--signal); overflow-wrap: anywhere; transition: color .2s, padding .2s var(--hpx-ease); }
.hpx-ask__links a::after { content: "→"; margin-left: 12px; }
.hpx-ask__links a:hover { color: var(--paper-100); padding-left: 6px; }
.hpx-ask__links a:last-child { border-bottom: 0; }

/* ---------- Contact form panel ---------- */
.hp .contact-section .contact-form { position: relative; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line-dark); background: var(--ink-950); }
.hp .contact-section .contact-form::before { content: ""; position: absolute; top: -1px; left: -1px; width: 72px; height: 2px; background: var(--signal); }
.hp .contact-section .contact-direct a svg { transition: transform .2s var(--hpx-ease); }
.hp .contact-section .contact-direct a:hover svg { transform: translate(2px, -2px); }

/* ---------- Ambient motion: hero backdrop, section sweeps, packets ----------
   Loops pause off screen (.hpx-live is set only while an element is visible)
   and use transform/opacity only, so phones stay smooth and nothing shifts. */
.hp .hp-hero { position: relative; isolation: isolate; }
.hpx-hero-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: linear-gradient(var(--hpx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hpx-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0;
  transition: opacity 1.2s var(--hpx-ease);
}
.hpx-on .hpx-hero-fx { opacity: .7; }
.hpx-hero-fx__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, oklch(.88 .26 153 / .07));
  border-bottom: 1px solid oklch(.88 .26 153 / .22);
  transform: translateY(-100%);
  will-change: transform;
}
.hpx-live .hpx-hero-fx__scan { animation: hpx-hero-scan 7s linear infinite; }
@keyframes hpx-hero-scan { from { transform: translateY(-100%); } to { transform: translateY(460%); } }
/* Signal dots run along three grid lines. Each dot sits at the left edge of a
   full-width track and the track slides across, so only transform animates. */
.hpx-hero-fx__dot { position: absolute; left: 0; width: 100%; height: 1px; transform: translateX(-100%); will-change: transform; }
.hpx-hero-fx__dot::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px oklch(.88 .26 153 / .7); }
.hpx-hero-fx__dot::before { content: ""; position: absolute; right: 4px; top: 0; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, oklch(.88 .26 153 / .55)); }
.hpx-hero-fx__dot--1 { top: 25%; }
.hpx-hero-fx__dot--2 { top: 50%; }
.hpx-hero-fx__dot--3 { top: 75%; }
.hpx-live .hpx-hero-fx__dot--1 { animation: hpx-hero-dot 9s 1s linear infinite; }
.hpx-live .hpx-hero-fx__dot--2 { animation: hpx-hero-dot 12s 4s linear infinite; }
.hpx-live .hpx-hero-fx__dot--3 { animation: hpx-hero-dot 10s 7s linear infinite; }
@keyframes hpx-hero-dot { 0% { transform: translateX(-100%); opacity: 0; } 8% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }

/* ---------- Inner-page heroes ---------- */
.hpx-page-hero { isolation: isolate; }
.hpx-page-hero .page-hero-copy > .mono-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s .3s var(--hpx-ease, ease);
}
.hpx-page-hero.is-in .page-hero-copy > .mono-label::after { transform: scaleX(1); }
.hpx-page-hero h1 { position: relative; }
.hpx-page-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: min(160px, 40%);
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s .45s var(--hpx-ease, ease);
  pointer-events: none;
}
.hpx-page-hero.is-in h1::after { transform: scaleX(1); }
.hpx-orbit { position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; will-change: transform; }
.hpx-orbit__dot { position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px oklch(.88 .26 153 / .8); }
.hpx-orbit__dot--b { top: auto; bottom: -3px; width: 4px; height: 4px; margin-left: -2px; opacity: .6; }
.hpx-live .hpx-orbit { animation: hpx-orbit 14s linear infinite; }
@keyframes hpx-orbit { to { transform: rotate(360deg); } }
.hpx-orbit__ping { position: absolute; inset: 30%; border: 1px solid var(--signal); border-radius: 50%; opacity: 0; pointer-events: none; }
.hpx-live .hpx-orbit__ping { animation: hpx-ping 3.4s 1s var(--hpx-ease, ease) infinite; }
/* "do the work." gets a signal underline that draws once on load. */
.hp .hp-hero h1 span { position: relative; display: inline-block; }
.hp .hp-hero h1 span::after {
  content: "";
  position: absolute;
  left: .02em;
  right: .08em;
  bottom: -.06em;
  height: .055em;
  min-height: 3px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  animation: hpx-underline .9s .35s var(--hpx-ease) forwards;
}
@keyframes hpx-underline { to { transform: scaleX(1); } }

.hp section.section-pad { position: relative; }
.hpx-sweep {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal) 18%, var(--signal) 82%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}
.hpx-on .is-in > .hpx-sweep { animation: hpx-sweep-line 1.6s var(--hpx-ease) forwards; }
@keyframes hpx-sweep-line {
  0% { transform: scaleX(0); opacity: 1; }
  60% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: .18; }
}
/* Section kickers get a short signal tick that draws in beside them. */
.hp .hp-head .mono-label::after,
.hp .hp-about__copy > .mono-label::after,
.hp .contact-section .mono-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s .2s var(--hpx-ease);
}
.hp .is-in.mono-label::after { transform: scaleX(1); }
/* Packets travel the service drawings while the card is on screen. */
.hpx-art svg .hpx-run { fill: var(--signal); stroke: none; opacity: 0; }
.hpx-on .is-in.hpx-live .hpx-art .hpx-run { animation: hpx-run 3.2s 1.4s var(--hpx-ease) infinite; }
@keyframes hpx-run {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 1; }
  50% { transform: translate(var(--mx, 0), var(--my, 0)); }
  85% { opacity: 1; transform: translate(var(--dx, 0), var(--dy, 0)); }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)); }
}
.hpx-art svg .hpx-type { stroke: var(--signal); transform-box: fill-box; transform-origin: left; transform: scaleX(0); }
.hpx-on .is-in.hpx-live .hpx-art .hpx-type { animation: hpx-type 3.6s 1.4s steps(12, end) infinite; }
@keyframes hpx-type { 0% { transform: scaleX(0); } 55%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
/* The Asbury mark: its sweep pauses off screen, and a signal ring pings out. */
.hp .hp-about__mark:not(.hpx-live)::before { animation-play-state: paused; }
.hp .hp-about__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  margin: -23% 0 0 -23%;
  border: 1px solid var(--signal);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.hp .hp-about__mark.hpx-live::after { animation: hpx-ping 3.4s var(--hpx-ease) infinite; }
@keyframes hpx-ping { 0% { transform: scale(.7); opacity: .55; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
/* Contact: a terminal cursor blinks after the heading while it is on screen. */
.hp .contact-section h2::after {
  content: "";
  display: inline-block;
  width: .42em;
  height: .09em;
  margin-left: .12em;
  vertical-align: baseline;
  background: var(--signal);
  opacity: 0;
}
.hp .contact-section.hpx-live h2::after { animation: hpx-caret 1.1s steps(1, end) infinite; }
@keyframes hpx-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* Primary buttons: a light sheen crosses on hover (pointer devices only). */
@media (hover: hover) {
  .hp .button-primary { position: relative; overflow: hidden; }
  .hp .button-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
    transform: translateX(-120%);
    pointer-events: none;
  }
  .hp .button-primary:hover::after { transform: translateX(120%); transition: transform .7s var(--hpx-ease); }
}

/* ---------- Every app page: progress bar, section sweeps, kicker ticks ---------- */
.hpx-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 2px;
  background: var(--signal, #4dff9a);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  will-change: transform;
}
.hpx-page section.section-pad { position: relative; }
.hpx-page .section-heading .mono-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s .2s var(--hpx-ease, ease);
}
.hpx-page .section-heading .is-in.mono-label::after { transform: scaleX(1); }
.hpx-page { --hpx-ease: cubic-bezier(.2, .7, .2, 1); }
/* Services directory rows: a signal bar and a nudged arrow on hover. */
.hpx-page .directory-row { position: relative; }
.hpx-page .directory-row::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--hpx-ease);
  pointer-events: none;
}
.hpx-page .directory-row > svg { transition: transform .25s var(--hpx-ease); }
@media (hover: hover) {
  .hpx-page .directory-row:hover::before { transform: scaleX(1); }
  .hpx-page .directory-row:hover > svg { transform: translate(3px, -3px); }
}

/* ---------- Responsive + motion preferences ---------- */
@media (max-width: 1100px) { .hpx-toolbox__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hpx-toolbox__grid, .hp .hp-values { grid-template-columns: minmax(0, 1fr); }
  .hpx-player { grid-template-columns: auto 1fr; }
  .hpx-player output { grid-column: 1 / -1; text-align: left; }
  .hpx-art { height: 108px; }
}
/* Phones: the compare table becomes four stacked service cards, no sideways scroll. */
@media (max-width: 640px) {
  .hpx-table-wrap { overflow: visible; border: 0; }
  .hpx-table { display: block; min-width: 0; }
  .hpx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hpx-table tbody { display: grid; gap: 10px; }
  .hpx-table tbody tr {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 14px;
    border: 1px solid var(--line-dark);
    background: var(--ink-900);
  }
  .hpx-table tbody tr::before { content: ""; position: absolute; top: -1px; left: -1px; width: 48px; height: 2px; background: var(--signal); }
  .hpx-table tbody tr:hover { background: var(--ink-900); }
  .hpx-table th, .hpx-table td, .hpx-table tbody tr:last-child > * { display: block; padding: 0; border: 0; }
  .hpx-table tbody th { min-width: 0; font-size: 17px; line-height: 1.25; }
  .hpx-table .hpx-table__price { order: -1; margin-top: 6px; font-size: 13.5px; line-height: 1.45; }
  .hpx-table tbody th { order: -2; }
  .hpx-table td:not(.hpx-table__price)::before {
    content: attr(data-label);
    display: block;
    margin: 10px 0 3px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-dark);
  }
  .hpx-table .hpx-table__note { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hpx-on [data-hpx-reveal] { opacity: 1; transform: none; transition: none; }
  .hp .hp-kicker .status-dot, .hp .hp-about__mark::before, .hpx-art::after, .hpx-on .is-in .hpx-art .hpx-p { animation: none; }
  .hpx-live .hpx-hero-fx__scan, .hpx-live .hpx-hero-fx__dot, .hpx-live .hpx-orbit, .hpx-live .hpx-orbit__ping, .hpx-on .is-in.hpx-live .hpx-art .hpx-run, .hpx-on .is-in.hpx-live .hpx-art .hpx-type,
  .hp .hp-about__mark.hpx-live::after, .hp .contact-section.hpx-live h2::after { animation: none; }
  .hp .hp-hero h1 span::after { animation: none; transform: scaleX(1); }
  .hpx-on .is-in > .hpx-sweep { animation: none; transform: scaleX(1); opacity: .18; }
  .hp .is-in.mono-label::after, .hp .hp-head .mono-label::after { transition: none; transform: scaleX(1); }
  .hpx-on .hpx-art .hpx-type { transform: scaleX(1); }
  .hp .button-primary:hover::after { transition: none; }
  .hpx-page .section-heading .mono-label::after { transition: none; transform: scaleX(1); }
  .hpx-hero-fx__dot { display: none; }
  .hpx-page-hero .page-hero-copy > .mono-label::after, .hpx-page-hero h1::after { transition: none; transform: scaleX(1); }
  .hpx-page .directory-row::before, .hpx-page .directory-row > svg { transition: none; }
  .hpx-on .hpx-art svg { clip-path: none; transition: none; }
  .hpx-on .hpx-art .hpx-p { opacity: 1; }
  .hp .hp-steps li::before, .hp .hp-rates > div::before, .hp .hp-steps li .mono-label::before { transition: none; }
}

/* ---------- Two ways in: done for you / free Academy (homepage) ---------- */
.hp .hp-academy { background: var(--ink-950); border-top: 1px solid var(--line-dark); }
.hp-academy__ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.hp-academy__ways li { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 36px); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.hp-academy__ways li.is-free { background: var(--ink-900); }
.hp-academy__ways .mono-label { color: var(--phosphor-700); }
.hp-academy__ways li.is-free .mono-label { color: var(--signal); }
.hp-academy__ways h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.hp-academy__ways p { max-width: 520px; margin: 0; color: var(--paper-200); line-height: 1.55; }
.hp-academy__ways a { margin-top: auto; padding-top: 12px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--signal); }
.hp-academy__ways a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s var(--hpx-ease); }
.hp-academy__ways a:hover { color: var(--paper-100); }
.hp-academy__ways a:hover svg { transform: translateX(3px); }
.hp-academy__ways a:focus-visible, .hpx-dfy a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
@media (max-width: 900px) { .hp-academy__ways { grid-template-columns: 1fr; } }

/* ---------- /academy: pointer back to the done-for-you offer ---------- */
.hpx-dfy { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0; padding: 6px var(--page-x); border-bottom: 1px solid var(--line-dark); background: var(--ink-900); color: var(--muted-dark); font-family: var(--font-mono); font-size: 11px; animation: hpx-fade .4s var(--hpx-ease) both; }
.hpx-dfy__lead { color: var(--paper-200); }
.hpx-dfy a { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; color: var(--signal); }
.hpx-dfy a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hpx-dfy a:hover { color: var(--paper-100); }
@media (prefers-reduced-motion: reduce) {
  .hpx-dfy { animation: none; }
  .hp-academy__ways a svg { transition: none; }
}
@media print { .hpx-dfy { display: none; } }
