/* ==========================================================================
   Homepage redesign — loaded by index.html only, after styles.css.
   One Stop Tax Filers: American navy hero, crimson actions, warm accent.
   Cards answer the cursor (tilt + spotlight, driven by js/home.js).
   ========================================================================== */

.home {
  --h-ink: #071F40;       /* deep navy: dark sections, headings */
  --h-plum: #0B3162;      /* brand navy */
  --h-orchid: #E0567B;    /* soft crimson accent */
  --h-mist: #F5F7FA;      /* light section paper */
  --h-line: #E2E8F0;
  --h-display: var(--font-head);
}

/* Reveal: keep the staggered entrance on opacity/transform only, so hover
   effects (rotate/translate/scale/colors) respond instantly. */
.home [data-reveal] {
  transition-property: opacity, transform, filter, rotate, translate, scale, box-shadow, border-color, background-color, color;
  transition-duration: .8s, .8s, .8s, .25s, .4s, .4s, .4s, .4s, .4s, .4s;
  transition-timing-function: var(--ease);
  transition-delay: var(--rd, 0s), var(--rd, 0s), var(--rd, 0s), 0s, 0s, 0s, 0s, 0s, 0s, 0s;
}
.home [data-reveal][data-delay="1"] { --rd: .1s; }
.home [data-reveal][data-delay="2"] { --rd: .2s; }
.home [data-reveal][data-delay="3"] { --rd: .3s; }
.home [data-reveal][data-delay="4"] { --rd: .4s; }
.home [data-reveal="pop"] { transition-timing-function: var(--ease), cubic-bezier(.34, 1.56, .64, 1), var(--ease); }

/* ---------- Scroll progress (native scroll-driven animation) ---------- */
.h-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .h-progress {
    display: block; position: fixed; inset: 0 0 auto; height: 4px; z-index: 1000; pointer-events: none;
    background: linear-gradient(90deg, var(--h-orchid), var(--gold));
    transform-origin: left; animation: hGrow linear both; animation-timeline: scroll(root);
  }
  @keyframes hGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Shared heading block ---------- */
.h-head { max-width: 780px; margin: 0 auto clamp(34px, 4vw, 54px); text-align: center; }
.h-head h2 {
  font-family: var(--h-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(2rem, 4.2vw, 3.3rem); color: var(--h-ink); margin: 16px 0 16px;
}
.h-head h2::after { display: none; }
.h-head p { color: var(--muted); font-size: 1.04rem; max-width: 62ch; margin: 0 auto; }

/* Highlighter stroke that sweeps across once the heading is revealed */
.h-head em {
  font-style: normal; padding-inline: .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 60%, rgba(207,26,75,.22) 60%, rgba(207,26,75,.22) 90%, transparent 90%) no-repeat 0 0 / 0% 100%;
  transition: background-size 1.1s var(--ease) .45s;
}
[data-reveal].in em { background-size: 100% 100%; }

/* Folder-tab label (replaces the old caps eyebrow) */
.h-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 12px; border-radius: 12px 12px 12px 3px;
  font-size: .88rem; font-weight: 600; color: var(--blue);
  background: #fff; border: 1px solid var(--h-line);
  box-shadow: 0 6px 16px -10px rgba(13,48,94,.35);
}
.h-tab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242,142,36,.25); }
.h-tab:has(svg)::before { display: none; }
.h-tab svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Buttons ---------- */
.h-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 12px 26px -10px rgba(207,26,75,.6);
  translate: 0 0;
  transition: translate .25s var(--ease), background-color .3s, box-shadow .3s;
}
.h-btn:hover { background: var(--blue-600); box-shadow: 0 18px 36px -10px rgba(207,26,75,.7); }
.h-btn svg { width: 17px; height: 17px; transition: translate .3s var(--ease); }
.h-btn:hover svg { translate: 5px 0; }
.h-center { text-align: center; margin-top: 36px; }

.h-btn:focus-visible, .h-more a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

/* ---------- Services: tax documents ---------- */
.h-svc { position: relative; overflow: hidden; background: var(--h-mist); }
.h-svc::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(20,82,164,.07) 31px 32px);
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
}
.h-svc > .container { position: relative; }

.h-group { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.h-group--spaced { margin-top: clamp(42px, 5vw, 66px); }
.h-group::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.h-group h3 { font-family: var(--h-display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--h-ink); margin: 0; }
.h-group__ic { width: 50px; height: 50px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--blue); color: #fff; rotate: -8deg; transition: rotate .45s var(--ease), background-color .3s; }
.h-group:hover .h-group__ic { rotate: 8deg; background: var(--h-orchid); }
.h-group__ic svg { width: 23px; height: 23px; }

.h-docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; perspective: 1000px; }
.h-doc {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; padding: 30px 24px 22px;
  background: #fff; border: 1px solid var(--h-line); border-radius: 18px 0 18px 18px;
  box-shadow: 0 1px 0 var(--h-line), 0 12px 30px -16px rgba(13,48,94,.25);
}
.h-doc:hover { translate: 0 -8px; border-color: #BDD3F0; box-shadow: 0 34px 56px -24px rgba(13,48,94,.45); }
/* folded corner — grows and turns gold on hover */
.h-doc::before {
  content: ""; position: absolute; top: 0; right: 0; z-index: 2; width: 42px; height: 42px;
  background: linear-gradient(225deg, var(--h-mist) 50%, #D0DFF3 50%);
  border-bottom-left-radius: 10px; box-shadow: -3px 3px 8px rgba(13,48,94,.12);
  transition: width .45s var(--ease), height .45s var(--ease);
}
.h-doc:hover::before { width: 66px; height: 66px; background: linear-gradient(225deg, var(--h-mist) 50%, var(--gold) 50%); }
/* cursor spotlight */
.h-doc::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(68,138,229,.16), transparent 70%);
}
.h-doc:hover::after { opacity: 1; }
.h-doc__ic {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  color: var(--blue); background: var(--h-mist); border: 2px dashed rgba(20,82,164,.35);
  transition: background-color .4s, color .4s, border-color .4s, rotate .7s var(--ease);
}
.h-doc__ic svg { width: 26px; height: 26px; }
.h-doc:hover .h-doc__ic { background: var(--blue); color: #fff; border-color: var(--gold); rotate: 360deg; }
.h-doc h3 { font-family: var(--h-display); font-weight: 700; font-size: 1.16rem; line-height: 1.22; letter-spacing: -.01em; color: var(--h-ink); margin: 0 0 10px; }
.h-doc p { flex: 1; font-size: .92rem; color: var(--muted); margin: 0 0 20px; }
.h-doc__link {
  align-self: stretch; display: flex; align-items: center; gap: 8px; padding-top: 14px;
  border-top: 1px dashed #CBDAEE; color: var(--blue); font-weight: 600; font-size: .9rem;
}
.h-doc__link::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* whole card is the link */
.h-doc__link svg { width: 16px; height: 16px; transition: translate .3s var(--ease); }
.h-doc:hover .h-doc__link svg { translate: 6px 0; }
.h-doc:focus-within { outline: 3px solid rgba(20,82,164,.5); outline-offset: 3px; }

.h-docs--dark .h-doc { background: linear-gradient(165deg, var(--h-plum), var(--h-ink)); border-color: rgba(255,255,255,.08); box-shadow: 0 16px 34px -18px rgba(7,29,58,.7); }
.h-docs--dark .h-doc:hover { border-color: rgba(242,142,36,.5); box-shadow: 0 34px 60px -24px rgba(7,29,58,.85); }
.h-docs--dark .h-doc::before { background: linear-gradient(225deg, var(--h-mist) 50%, #2C5488 50%); }
.h-docs--dark .h-doc:hover::before { background: linear-gradient(225deg, var(--h-mist) 50%, var(--gold) 50%); }
.h-docs--dark .h-doc::after { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(242,142,36,.17), transparent 70%); }
.h-docs--dark .h-doc h3 { color: #fff; }
.h-docs--dark .h-doc p { color: rgba(255,255,255,.72); }
.h-docs--dark .h-doc__ic { background: rgba(255,255,255,.06); color: var(--gold); border-color: rgba(242,142,36,.5); }
.h-docs--dark .h-doc:hover .h-doc__ic { background: var(--gold); color: var(--h-ink); border-color: #fff; }
.h-docs--dark .h-doc__link { color: var(--gold); border-top-color: rgba(255,255,255,.16); }

/* CTA strip with a light sweep on hover */
.h-strip {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-top: clamp(36px, 4vw, 54px); padding: 22px 26px; border-radius: 24px;
  background: linear-gradient(110deg, var(--blue), #2B6DC4); color: #fff;
}
.h-strip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; translate: -110% 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%);
  transition: translate 1s var(--ease);
}
.h-strip:hover::before { translate: 110% 0; }
.h-strip__ic { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: var(--gold); }
.h-strip__ic svg { width: 26px; height: 26px; }
.h-strip__txt { flex: 1; min-width: 210px; }
.h-strip__txt strong { display: block; font-family: var(--h-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.h-strip__txt span { display: block; font-size: .95rem; color: rgba(255,255,255,.78); }

.h-more { text-align: center; margin-top: 24px; }
.h-more a {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; font-weight: 600; color: var(--blue);
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 2px; transition: background-size .35s var(--ease);
}
.h-more a:hover { background-size: 100% 2px; }
.h-more svg { width: 16px; height: 16px; }

/* ---------- Why One Stop: navy band, photo with floating proof, six reasons ---------- */
.h-why { position: relative; overflow: hidden; isolation: isolate; background: var(--h-ink); color: #fff; }
.h-why::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 460px at 100% 0%, rgba(207,26,75,.22), transparent 70%),
    radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.4px) 0 0 / 24px 24px;
}
.h-why__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }

.h-why__media { position: relative; padding: 0 0 40px 0; }
.h-why__photo { overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.h-why__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.h-why__years {
  position: absolute; right: -18px; bottom: 0; display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-radius: 18px; background: var(--blue); box-shadow: 0 24px 48px -20px rgba(207,26,75,.7);
}
.h-why__years strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; }
.h-why__years span { font-size: .85rem; line-height: 1.35; color: rgba(255,255,255,.9); }
.h-why__seal {
  position: absolute; left: -18px; top: 36px; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 16px; background: #fff; color: var(--navy);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.6); font-size: .82rem; line-height: 1.3;
}
.h-why__seal img { width: 52px; height: 52px; object-fit: contain; }
.h-why__seal strong { display: block; font-size: .95rem; font-weight: 800; }

.h-why h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: #fff; margin: 16px 0 16px; max-width: 18ch; }
.h-why h2 em { font-style: normal; padding-inline: .04em; background: linear-gradient(transparent 62%, var(--blue) 62%, var(--blue) 92%, transparent 92%); }
.h-why .h-tab { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: none; }
.h-why__lead { font-size: 1.04rem; line-height: 1.7; color: rgba(226,234,245,.75); max-width: 56ch; margin: 0 0 30px; }

.h-why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.h-why__list li {
  display: flex; gap: 14px; padding: 18px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
}
.h-why__list li:hover { background: rgba(255,255,255,.07); border-color: rgba(207,26,75,.55); }
.h-why__ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(207,26,75,.16); color: #FF8FAB; transition: background-color .3s, color .3s; }
.h-why__list li:hover .h-why__ic { background: var(--blue); color: #fff; }
.h-why__ic svg { width: 20px; height: 20px; }
.h-why__list h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.h-why__list p { font-size: .87rem; line-height: 1.55; color: rgba(226,234,245,.66); margin: 0; }

.h-why__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.h-why__call { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.h-why__call svg { width: 18px; height: 18px; color: var(--gold); }
.h-why__call:hover { color: var(--gold); }

@media (max-width: 1080px) {
  .h-why__grid { grid-template-columns: 1fr; }
  .h-why__media { max-width: 520px; width: 100%; margin: 0 auto; }
  .h-why__photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .h-why__list { grid-template-columns: 1fr; }
  .h-why__years { right: 0; padding: 14px 16px; }
  .h-why__years strong { font-size: 2rem; }
  .h-why__seal { left: 0; top: 14px; }
  .h-why__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Process: timeline that draws itself ---------- */
.h-proc { background: #fff; }
.h-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.h-steps::before, .h-steps::after { content: ""; position: absolute; top: 44px; left: 10%; right: 10%; height: 3px; border-radius: 3px; }
.h-steps::before { background: repeating-linear-gradient(90deg, #D3E0F1 0 10px, transparent 10px 18px); }
.h-steps::after {
  background: linear-gradient(90deg, var(--blue), var(--h-orchid), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--ease) .3s;
}
.h-steps.in::after { transform: scaleX(1); }
.h-step { position: relative; z-index: 1; text-align: center; }
.h-step__dot {
  position: relative; width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--blue);
  border: 2px solid #D3E0F1; box-shadow: 0 0 0 10px #fff;
  transition: background-color .4s, color .4s, border-color .4s, scale .45s var(--ease);
}
.h-step__dot svg { width: 32px; height: 32px; transition: rotate .6s var(--ease); }
.h-step:hover .h-step__dot { background: var(--blue); color: #fff; border-color: var(--blue); scale: 1.1; }
.h-step:hover .h-step__dot svg { rotate: 360deg; }
.h-step__n {
  position: absolute; top: -4px; right: -4px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--h-ink); border: 3px solid #fff;
  font-family: var(--h-display); font-weight: 800; font-size: .92rem; transition: scale .45s var(--ease);
}
.h-step:hover .h-step__n { scale: 1.3; }
.h-step h3 { font-family: var(--h-display); font-weight: 700; font-size: 1.08rem; color: var(--h-ink); margin: 0 0 6px; }
.h-step p { font-size: .87rem; color: var(--muted); max-width: 22ch; margin: 0 auto; }

/* Trust chips (process + stats) */
.h-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: clamp(36px, 4vw, 54px) 0 0; padding: 0; list-style: none; }
.h-chips li {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 18px;
  background: var(--h-mist); border: 1px solid var(--h-line);
  transition: translate .35s var(--ease), background-color .3s, border-color .3s, box-shadow .3s;
}
.h-chips li:hover { translate: 0 -5px; background: #fff; border-color: var(--gold); box-shadow: 0 18px 32px -18px rgba(13,48,94,.4); }
.h-chips__ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--blue); transition: rotate .45s var(--ease); }
.h-chips li:hover .h-chips__ic { rotate: -12deg; }
.h-chips__ic svg { width: 21px; height: 21px; }
.h-chips strong { display: block; font-size: .94rem; font-weight: 700; color: var(--h-ink); }
.h-chips small { display: block; font-size: .83rem; line-height: 1.4; color: var(--muted); }

/* ---------- Logos ---------- */
.home .h-logos { background: var(--h-mist); }
.home .h-logos .logo-item img { transition: scale .35s var(--ease); }
.home .h-logos .logo-item:hover img { scale: 1.08; }

/* ---------- Testimonials: pinned notes ---------- */
.h-tst { background: var(--h-mist); }
.home .h-tst .tst-track { padding-block: 28px 20px; }
.home .h-tst .tst-card {
  position: relative; padding: 30px 26px 24px; border-radius: 22px;
  background: #fff; border: 1px solid var(--h-line);
  box-shadow: 0 16px 34px -20px rgba(13,48,94,.35);
  transition: opacity .8s var(--ease), transform .8s var(--ease), rotate .45s var(--ease), translate .45s var(--ease), box-shadow .4s, border-color .4s;
}
.home .h-tst .tst-card::before {
  content: "\201C"; position: absolute; top: -6px; right: 20px;
  font-family: var(--h-display); font-weight: 800; font-size: 6.5rem; line-height: 1; color: var(--gold);
}
.home .h-tst .tst-track .tst-card:nth-child(odd) { rotate: -1.6deg; }
.home .h-tst .tst-track .tst-card:nth-child(even) { rotate: 1.4deg; translate: 0 10px; }
.home .h-tst .tst-track .tst-card:hover { rotate: 0deg; translate: 0 -6px; border-color: var(--gold); box-shadow: 0 30px 54px -22px rgba(13,48,94,.5); }
.home .h-tst .stars { color: var(--gold); }
.home .h-tst .tst-card blockquote { font-size: 1rem; }
.home .h-tst .tst-author strong { font-family: var(--h-display); color: var(--h-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .h-docs { grid-template-columns: repeat(2, 1fr); }
  .h-chips { grid-template-columns: repeat(2, 1fr); }
  .h-steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .h-steps::before, .h-steps::after { display: none; }
}
@media (max-width: 640px) {
  .h-docs, .h-chips { grid-template-columns: 1fr; }
  /* Compact rows instead of tall centred cards */
  .h-docs { gap: 14px; }
  .h-doc { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 20px 18px 16px; }
  .h-doc__ic { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .h-doc__ic svg { width: 22px; height: 22px; }
  .h-doc h3 { font-size: 1.05rem; margin: 2px 0 6px; padding-right: 22px; }
  .h-doc p { margin-bottom: 12px; }
  .h-doc__link { grid-column: 2; padding-top: 10px; }
  .h-doc::before { width: 30px; height: 30px; }
  .h-strip { padding: 22px; }
  .h-strip .h-btn { width: 100%; justify-content: center; }
  /* vertical timeline */
  .h-steps { grid-template-columns: 1fr; row-gap: 22px; }
  .h-steps::before, .h-steps::after { display: block; top: 0; bottom: 0; left: 43px; right: auto; width: 3px; height: auto; }
  .h-steps::before { background: repeating-linear-gradient(180deg, #D3E0F1 0 10px, transparent 10px 18px); }
  .h-steps::after { background: linear-gradient(180deg, var(--blue), var(--h-orchid), var(--gold)); transform: scaleY(0); transform-origin: top; }
  .h-steps.in::after { transform: scaleY(1); }
  .h-step { display: grid; grid-template-columns: 88px 1fr; column-gap: 18px; align-items: center; text-align: left; }
  .h-step__dot { grid-row: span 2; margin: 0; }
  .h-step h3 { align-self: end; }
  .h-step p { align-self: start; margin: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .h-progress { display: none; }
}

/* ==========================================================================
   One Stop Tax Filers sections
   ========================================================================== */

/* ---------- Hero: American navy — soft stars, crimson stripes, arch portrait ---------- */
.hx {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--h-ink); color: #fff; padding-top: clamp(40px, 6vw, 72px);
}
.hx::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.1) 1.2px, transparent 1.4px); background-size: 24px 24px;
}
.hx::after {
  content: ""; position: absolute; z-index: -1; right: -14%; top: -40%; width: 62%; height: 180%;
  transform: rotate(18deg); opacity: .2;
  background: repeating-linear-gradient(90deg, var(--blue) 0 38px, transparent 38px 76px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.hx__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.hx__copy { padding-bottom: clamp(44px, 6vw, 84px); }
.hx__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); font-size: .85rem; font-weight: 600;
}
.hx__pill svg { width: 14px; height: 14px; color: var(--gold); }
.hx__title {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em; line-height: 1.04;
  font-size: clamp(2.5rem, 5.6vw, 4.2rem); color: #fff; margin: 22px 0 18px;
}
.hx__title mark { color: inherit; padding-inline: .04em; background: linear-gradient(transparent 62%, var(--blue) 62%, var(--blue) 92%, transparent 92%); }
.hx__lead { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7; color: rgba(226,234,245,.82); max-width: 50ch; margin: 0 0 30px; }
.hx__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hx__ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); box-shadow: none; }
.hx__ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.hx__stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 40px 0 0; padding: 0; list-style: none; }
.hx__stats strong { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.hx__stats span { font-size: .86rem; color: rgba(226,234,245,.7); }

.hx__media { position: relative; align-self: stretch; min-height: 480px; }
/* The arch starts lower to leave room for the deadline card above the advisor's head. */
.hx__arch {
  position: absolute; inset: 76px 4% 0 12%; overflow: hidden;
  border-radius: 999px 999px 0 0; border: 6px solid rgba(255,255,255,.1); border-bottom: 0;
}
.hx__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hx__card { position: absolute; z-index: 2; padding: 14px 18px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 50px -18px rgba(0,0,0,.55); }
.hx__deadline { left: 0; top: 0; min-width: 210px; }
.hx__card-k { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.hx__deadline strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--navy); }
.hx__deadline small { font-size: .8rem; color: var(--muted); }
.hx__badges { right: 0; bottom: 32px; display: grid; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--navy); }
.hx__badges span { display: flex; align-items: center; gap: 8px; }
.hx__badges svg { width: 16px; height: 16px; color: #16a34a; }

/* ---------- Who we help: pick your situation (tabs; every panel shows without JS) ---------- */
.h-who { background: #fff; }
.h-aud { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.h-aud__tabs { position: sticky; top: 110px; display: grid; gap: 8px; }
.h-aud__tab {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--h-line); background: #fff;
  font: inherit; color: var(--h-ink); text-align: left; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.h-aud__tab:hover { border-color: var(--silver); }
/* Auto-slide: the active tab's bar fills, and home.js opens the next tab when it ends.
   Pausing the bar pauses the slider: hover, keyboard focus, touch, or off screen. */
.h-aud.is-auto .h-aud__tab { position: relative; overflow: hidden; }
.h-aud.is-auto .h-aud__tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue);
  transform-origin: left;
  /* longhands: the `animation` shorthand would also reset play-state and beat the pause rules */
  animation-name: h-aud-prog; animation-duration: 6s; animation-timing-function: linear; animation-fill-mode: forwards;
}
.h-aud.is-off .h-aud__tab::after, .h-aud.is-touch .h-aud__tab::after,
.h-aud:has(.h-aud__tab:focus-visible) .h-aud__tab::after { animation-play-state: paused; }
@media (hover: hover) { .h-aud:hover .h-aud__tab::after { animation-play-state: paused; } }
@keyframes h-aud-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.h-aud__tab[aria-selected="true"] { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--blue), 0 16px 34px -20px rgba(207,26,75,.45); }
.h-aud__tab:focus-visible { outline: 3px solid rgba(207,26,75,.4); outline-offset: 2px; }
.h-aud__tic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue-050); color: var(--blue); transition: background-color .2s, color .2s; }
.h-aud__tab[aria-selected="true"] .h-aud__tic { background: var(--blue); color: #fff; }
.h-aud__tic svg { width: 21px; height: 21px; }
.h-aud__tab strong { display: block; font-size: .98rem; font-weight: 700; }
.h-aud__tab small { display: block; font-size: .78rem; color: var(--muted); }
.h-aud__chev { width: 18px; height: 18px; flex: none; margin-left: auto; color: var(--muted-2); }
.h-aud__tab[aria-selected="true"] .h-aud__chev { color: var(--blue); }

.h-aud__panels { display: grid; gap: 24px; }
.h-aud__panel {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); overflow: hidden;
  border-radius: 24px; background: var(--h-mist); border: 1px solid var(--h-line);
  animation: hAudIn .45s var(--ease);
}
.h-aud__panel[hidden] { display: none; }
@keyframes hAudIn { from { opacity: 0; transform: translateY(8px); } }
.h-aud__img { position: relative; min-height: 260px; }
.h-aud__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-aud__body { padding: clamp(24px, 3vw, 40px); }
.h-aud__body h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--h-ink); margin: 0 0 10px; }
.h-aud__body > p { color: var(--muted); margin: 0 0 20px; }
.h-aud__list { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.h-aud__list li { display: flex; gap: 10px; font-size: .94rem; color: var(--ink); }
.h-aud__list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 3px; border-radius: 50%; background: #16a34a; color: #fff; }
.h-aud__body .h-aud__due {
  display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 10px 14px; border-radius: 12px;
  background: #fff; border: 1px dashed #F3B6C7; font-size: .86rem; font-weight: 600; color: var(--navy);
}
.h-aud__due svg { width: 17px; height: 17px; flex: none; color: var(--blue); }
.h-aud__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.h-aud__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.h-aud__more svg { width: 16px; height: 16px; transition: translate .3s var(--ease); }
.h-aud__more:hover { color: var(--blue); }
.h-aud__more:hover svg { translate: 4px 0; }

@media (max-width: 1080px) {
  .h-aud { grid-template-columns: minmax(0, 1fr); }
  .h-aud__tabs {
    position: static; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 32px 6px 2px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .h-aud__tabs::-webkit-scrollbar { display: none; }
  .h-aud__tab { flex: none; width: auto; scroll-snap-align: start; }
  .h-aud__chev { display: none; }
}
@media (max-width: 760px) {
  .h-aud__panel { grid-template-columns: minmax(0, 1fr); }
  .h-aud__img { min-height: 0; aspect-ratio: 16 / 9; }
  .h-aud__tab { padding: 10px 14px; }
  .h-aud__tab small { display: none; }
  .h-aud__tic { width: 36px; height: 36px; }
  .h-aud__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Quick tools band ---------- */
.h-tools { padding: clamp(28px, 4vw, 48px) 0; background: #fff; }
.h-tools__card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 32px; align-items: center;
  padding: 28px 32px; border-radius: 22px; background: var(--h-plum); color: #fff;
}
.h-tools__txt h2 { font-size: 1.45rem; font-weight: 800; color: #fff; margin: 0 0 4px; }
.h-tools__txt p { font-size: .92rem; color: rgba(226,234,245,.75); margin: 0; }
.h-tools__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.h-tools__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px;
  border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-weight: 700; font-size: .9rem; color: #fff; transition: background-color .2s, border-color .2s;
}
.h-tools__links a:hover, .h-tools__links a:focus-visible { background: var(--blue); border-color: var(--blue); }
.h-tools__links svg { width: 15px; height: 15px; flex: none; }

/* ---------- Pricing ---------- */
.h-price { background: #fff; }
.h-price__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1060px; margin: 0 auto; }
.h-plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 20px;
  background: #fff; border: 1px solid var(--h-line); box-shadow: 0 14px 34px -24px rgba(11,49,98,.35);
}
.h-plan--pop { border: 2px solid var(--blue); box-shadow: 0 26px 50px -26px rgba(207,26,75,.45); }
.h-plan__tag { position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; }
.h-plan h3 { font-size: 1.2rem; font-weight: 800; color: var(--h-ink); margin: 0 0 4px; }
.h-plan__for { font-size: .86rem; color: var(--muted); margin: 0 0 18px; }
.h-plan__price { margin-bottom: 18px; padding: 14px 0; border-block: 1px dashed var(--h-line); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.h-plan ul { flex: 1; display: grid; align-content: start; gap: 10px; margin: 0 0 24px; }
.h-plan li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink); }
.h-plan li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #16a34a; }
.h-plan__btn { display: block; padding: 13px; border-radius: 12px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700; text-align: center; transition: background-color .2s, color .2s, border-color .2s; }
.h-plan__btn:hover, .h-plan--pop .h-plan__btn { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- FAQ + latest articles ---------- */
.h-faq { background: #fff; }
.h-faq__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.h-faq__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; color: var(--h-ink); margin: 14px 0 22px; }
.h-faq__more { margin: 20px 0 0; }
.h-faq__more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); }
.h-faq__more svg { width: 16px; height: 16px; }
.h-post {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px; padding: 18px; border-radius: 16px;
  background: var(--h-mist); border: 1px solid var(--h-line); transition: border-color .2s, background-color .2s, translate .3s var(--ease);
}
.h-post:hover { translate: 4px 0; background: #fff; border-color: var(--blue); }
.h-post__ic { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--h-plum); color: #fff; }
.h-post__ic svg { width: 22px; height: 22px; }
.h-post strong { display: block; font-size: 1rem; line-height: 1.35; color: var(--h-ink); }
.h-post small { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .84rem; font-weight: 700; color: var(--blue); }
.h-post small svg { width: 14px; height: 14px; }

/* ---------- Final call to action: crimson card sitting on the footer edge ---------- */
.h-final { background: linear-gradient(#fff 50%, #071F40 50%); }
.h-final__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); border-radius: 24px;
  background: var(--blue); color: #fff; box-shadow: 0 30px 60px -30px rgba(207,26,75,.6);
}
.h-final__card::before {
  content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 340px; height: 300px; transform: rotate(18deg);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 26px, transparent 26px 52px);
}
.h-final__txt h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #fff; margin: 0 0 6px; max-width: 26ch; }
.h-final__txt p { margin: 0; color: rgba(255,255,255,.85); }
.h-final__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h-final__btn, .h-final__call { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 12px; font-weight: 800; transition: background-color .2s, translate .25s var(--ease); }
.h-final__btn { background: #fff; color: var(--blue); }
.h-final__btn:hover { translate: 0 -2px; }
.h-final__call { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.h-final__call:hover { background: rgba(255,255,255,.12); }
.h-final svg { width: 18px; height: 18px; }

@media (max-width: 1080px) {
  .h-tools__card { grid-template-columns: 1fr; }
  .h-price__grid { grid-template-columns: 1fr; max-width: 520px; gap: 30px; }
  .h-faq__grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hx__grid { grid-template-columns: 1fr; }
  .hx__copy { padding-bottom: 0; }
  .hx__media { min-height: 476px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hx__arch { inset: 76px 6% 0; }
}
@media (max-width: 640px) {
  .hx__title { font-size: clamp(2.2rem, 10vw, 2.6rem); }
  .hx__actions .btn { width: 100%; justify-content: center; }
  .hx__stats { gap: 12px 28px; }
  .hx__stats strong { font-size: 1.5rem; }
  .hx__media { min-height: 404px; }
  .hx__arch { top: 64px; }
  .hx__deadline { min-width: 0; top: 0; padding: 10px 14px; }
  .hx__deadline strong { font-size: 1.5rem; }
  .hx__badges { bottom: 18px; font-size: .78rem; }
  .h-tools__card { padding: 22px; }
  .h-tools__links { grid-template-columns: 1fr 1fr; }
  .h-final__actions, .h-final__btn, .h-final__call { width: 100%; justify-content: center; }
}
