/* Legalway.io visual refresh: dark heroes, richer surfaces and the problem section flow.
   Loaded after site.css and motion.css. */

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  background: linear-gradient(135deg, #5687f5 0%, #376bdc 45%, #2649a8 100%);
  background-size: 180% 100%; background-position: 0 0;
  transition: background-position .5s ease, transform .3s ease, box-shadow .3s ease;
}
.btn-primary:hover { background: linear-gradient(135deg, #5687f5 0%, #376bdc 45%, #2649a8 100%); background-size: 180% 100%; background-position: 100% 0; }

/* ==========================================================================
   Dark hero on every page
   ========================================================================== */
.hero {
  color: #c9d4f2;
  background:
    radial-gradient(55% 75% at 88% 8%, rgba(55, 107, 220, .55), transparent 62%),
    radial-gradient(45% 60% at 4% 96%, rgba(229, 180, 49, .22), transparent 62%),
    radial-gradient(40% 50% at 50% 60%, rgba(98, 84, 230, .18), transparent 70%),
    linear-gradient(160deg, #0f1d3d 0%, #122449 48%, #0a152d 100%);
}
.hero::before { background: radial-gradient(circle, rgba(86, 135, 245, .5), rgba(86, 135, 245, 0) 70%); }
.hero::after { background: radial-gradient(circle, rgba(229, 180, 49, .35), rgba(229, 180, 49, 0) 70%); }
.hero .container::before { background: radial-gradient(rgba(255, 255, 255, .13) 1.1px, transparent 1.3px) 0 0 / 26px 26px; }
.hero h1 { color: #fff; }
.hero h1 .hl { background-image: linear-gradient(90deg, #ffd25e 0%, #e5b431 28%, #8fb0ff 62%, #ffd25e 100%); }
.hero .lead { color: #c9d4f2; }
.hero .eyebrow { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.hero .plan-note { color: #dbe4fb; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .plan-note svg { color: var(--brand-gold); }
.hero .cta-row .login-link { color: #fff; }
.hero .cta-row .login-link:hover { color: var(--brand-gold); }
.hero .shot figcaption { color: #9fb0dc; }
.hero .shot-frame {
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .04), 0 40px 100px rgba(0, 0, 0, .45), 0 0 140px rgba(55, 107, 220, .35);
}

/* Category ticker at the foot of the homepage hero */
.ticker {
  position: relative; margin-top: 64px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track { display: flex; gap: 14px; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  font-weight: 650; font-size: .95rem; color: #e3e9fb;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.ticker-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gold); box-shadow: 0 0 10px rgba(229, 180, 49, .8); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Surfaces
   ========================================================================== */
.section-alt {
  background:
    radial-gradient(45% 55% at 0% 0%, rgba(55, 107, 220, .10), transparent 62%),
    radial-gradient(40% 50% at 100% 100%, rgba(229, 180, 49, .12), transparent 62%),
    linear-gradient(180deg, #f3f5ff 0%, #e8edff 100%);
}

.card-icon {
  color: #fff; background: linear-gradient(135deg, #5687f5, var(--navy));
  box-shadow: 0 10px 22px rgba(55, 107, 220, .30); border: 0;
}
.grid > :nth-child(3n+2) .card-icon { color: var(--navy-deep); background: linear-gradient(135deg, #ffd25e, var(--brand-gold)); box-shadow: 0 10px 22px rgba(229, 180, 49, .35); }
.card:hover .card-icon { color: #fff; background: linear-gradient(135deg, var(--accent), var(--navy-deep)); }

/* Homepage feature cards: gradient borders */
.features .card {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(160deg, rgba(55, 107, 220, .45), rgba(229, 180, 49, .45) 60%, rgba(55, 107, 220, .15)) border-box;
}
.features .card-icon { width: 56px; height: 56px; border-radius: 16px; }

/* Audience cards: tinted tops */
.audience .card { background: linear-gradient(180deg, #eef2ff 0%, #fff 42%); }
.audience .card:nth-child(2) { background: linear-gradient(180deg, #fff6dd 0%, #fff 42%); }
.audience .card:nth-child(3) { background: linear-gradient(180deg, #eeeaff 0%, #fff 42%); }

/* Homepage plan summary: Pro card in navy */
.plans-summary .card:nth-child(3) {
  color: #dbe4fb; border-color: transparent;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(229, 180, 49, .25), transparent 60%),
    linear-gradient(160deg, #2649a8, var(--navy-deep));
}
.plans-summary .card:nth-child(3) h3 { color: #fff; }
.plans-summary .card:nth-child(3) .feature-list li { color: #dbe4fb; }
.plans-summary .card:nth-child(3) .feature-list li::before { background-color: rgba(255, 255, 255, .14); }
.plans-summary h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0; }

/* Information panels in navy */
.info-panel {
  position: relative; overflow: hidden; isolation: isolate; color: #c9d4f2; border: 0;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(229, 180, 49, .22), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(86, 135, 245, .35), transparent 60%),
    linear-gradient(135deg, #1e3976, #0f1d3d);
  box-shadow: 0 30px 70px rgba(18, 36, 73, .28);
}
.info-panel::after {
  content: ""; position: absolute; z-index: -1; right: -80px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03);
}
.info-panel h2 { color: #fff; }
.info-panel p { color: #c9d4f2; }
.info-panel a:not(.btn) { color: var(--brand-gold); }
.info-panel a:not(.btn):hover { color: #ffd25e; }
.info-panel .card-icon { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }

/* FAQ */
.faq details { transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.faq details:hover { border-color: #c9d5fb; transform: translateY(-2px); }
.faq summary::after {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; padding-bottom: 2px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.25rem; transition: background-color .3s ease, color .3s ease, rotate .3s ease;
}
.faq details[open] summary::after { background: var(--accent); color: #fff; rotate: 180deg; }
.faq details[open] { border-left: 4px solid var(--accent); }

/* ==========================================================================
   Homepage problem section: scattered work flows into Legalway
   ========================================================================== */
.problem {
  position: relative; overflow: hidden;
  background:
    radial-gradient(40% 60% at 100% 50%, rgba(55, 107, 220, .10), transparent 65%),
    radial-gradient(30% 45% at 0% 100%, rgba(229, 180, 49, .10), transparent 65%),
    #fff;
}
.problem-layout { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .problem-layout { grid-template-columns: 5fr 7fr; gap: 56px; } }
.problem-copy h2 { margin-bottom: .55em; }
.problem-copy .lead { color: var(--ink-soft); }

.flow { position: relative; display: grid; grid-template-columns: 1.08fr 56px 1fr; align-items: stretch; min-height: 330px; }
.flow-sources { display: grid; grid-template-rows: repeat(3, 1fr); gap: 14px; }
.flow-src {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1.5px dashed #c3cde6; border-radius: 16px; color: var(--ink-soft);
  transition: translate .9s cubic-bezier(.2, .8, .2, 1), rotate .9s cubic-bezier(.2, .8, .2, 1), border-color .5s ease, box-shadow .5s ease;
}
.flow-src:nth-child(1) { --n: 0; }
.flow-src:nth-child(2) { --n: 1; }
.flow-src:nth-child(3) { --n: 2; }
.flow-src { transition-delay: calc(.15s + var(--n) * .12s); }
.flow-src strong { display: block; font-size: .95rem; color: var(--ink); line-height: 1.3; }
.flow-src span { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.flow-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #f1f3f9; color: var(--muted); transition: background-color .5s ease, color .5s ease; }
.js .flow:not(.is-in) .flow-src:nth-child(1) { translate: -22px 10px; rotate: -5deg; }
.js .flow:not(.is-in) .flow-src:nth-child(2) { translate: 26px -4px; rotate: 4deg; }
.js .flow:not(.is-in) .flow-src:nth-child(3) { translate: -12px 12px; rotate: -3deg; }
.flow.is-in .flow-src { border-style: solid; border-color: var(--line); box-shadow: var(--shadow); }
.flow.is-in .flow-ico { background: var(--accent-soft); color: var(--accent); }

.flow-lines { width: 100%; height: 100%; overflow: visible; }
.flow-lines path {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 5 7; opacity: 0; transition: opacity .6s ease .9s;
  animation: dashFlow 1.1s linear infinite;
}
.flow.is-in .flow-lines path { opacity: .85; }
@keyframes dashFlow { to { stroke-dashoffset: -24; } }

.flow-hub {
  position: relative; z-index: 1; align-self: center; padding: 22px; border-radius: 22px; background: #fff;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--angle), var(--accent), var(--brand-gold), var(--navy), var(--accent)) border-box;
  box-shadow: 0 2px 6px rgba(30, 57, 118, .06), 0 30px 70px rgba(55, 107, 220, .22);
  opacity: 0; scale: .92; transition: opacity .6s ease 1s, scale .6s cubic-bezier(.2, 1.4, .4, 1) 1s;
  animation: spinAngle 6s linear infinite;
}
.flow.is-in .flow-hub { opacity: 1; scale: 1; }
.flow-hub::before {
  content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 34px; filter: blur(24px);
  background: linear-gradient(135deg, rgba(55, 107, 220, .25), rgba(229, 180, 49, .25));
}
.hub-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.hub-head img { height: 30px; width: auto; }
.hub-dot { width: 10px; height: 10px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34, 160, 107, .18); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 8px rgba(34, 160, 107, .06); } }
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hub-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f7f9ff; border: 1px solid #edf0fa;
  opacity: 0; translate: 16px 0; transition: opacity .5s ease, translate .5s cubic-bezier(.2, .8, .2, 1);
}
.hub-list li:nth-child(1) { transition-delay: 1.35s; }
.hub-list li:nth-child(2) { transition-delay: 1.6s; }
.hub-list li:nth-child(3) { transition-delay: 1.85s; }
.flow.is-in .hub-list li { opacity: 1; translate: 0 0; }
.hub-check { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22a06b, #0f7f52); }
.hub-name { flex: 1; min-width: 0; font-size: .9rem; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-chip { font-style: normal; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.hub-chip.is-pending { color: #a86400; background: #fff3d9; }
.hub-chip.is-done { color: #0f7f52; background: #e0f5ea; }
.hub-chip.is-progress { color: var(--accent); background: var(--accent-soft); }
.hub-bar { height: 6px; margin-top: 16px; border-radius: 6px; background: var(--line); overflow: hidden; }
.hub-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--brand-gold)); transition: width 1.4s cubic-bezier(.2, .8, .2, 1) 2.1s; }
.flow.is-in .hub-bar i { width: 66%; }

@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; grid-template-rows: auto 48px auto; min-height: 0; }
  .flow-lines { display: none; }
  .flow-sources { grid-template-rows: none; }
  .flow-sources::after { content: none; }
  .flow-hub { grid-row: 3; }
  .flow::after {
    content: ""; grid-row: 2; justify-self: center; align-self: center; width: 3px; height: 32px; border-radius: 3px;
    background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 11px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-chip:nth-child(n+9) { display: none; }
}

/* Contact page quick cards sit on the dark hero */
.contact-hero .quick-card { background: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }

/* ==========================================================================
   Distinct hero compositions per page
   ========================================================================== */

/* Shared hero tilt driven by the mouse (motion.js sets --tx and --ty) */
.hero .shot-frame { transform: perspective(1200px) rotateY(calc(var(--tx, 0) * 6deg)) rotateX(calc(var(--ty, 0) * -5deg)); }

/* Home: 3D product stage with pop out cards, rings and a perspective floor */
.hero--home { padding: 72px 0 36px; }
.hero--home .hero-grid { gap: 40px; }
@media (min-width: 1000px) { .hero--home .hero-grid { grid-template-columns: .9fr 1.1fr; } }
.hero--home h1 { font-size: clamp(2.5rem, 4.4vw, 3.75rem); line-height: 1.06; }
.hero--home .lead { font-size: 1.12rem; }
.hero--home .cta-row .btn { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.hero--home .cta-row .login-link {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .3s ease, border-color .3s ease;
}
.hero--home .cta-row .login-link:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); }
.hero--home .float-card { display: none; }

.hero-stage { position: relative; padding: 48px 36px 36px; perspective: 1600px; }
.hero-stage::before {
  content: ""; position: absolute; z-index: -2; inset: 4% 2%; border-radius: 50%; filter: blur(60px); opacity: .75;
  background: conic-gradient(from var(--angle), #376bdc, #7c5cff, #e5b431, #376bdc);
  animation: spinAngle 14s linear infinite;
}
.hero--home .shot { position: relative; }
.hero--home .shot-frame {
  transform: rotateY(calc(-14deg + var(--tx, 0) * 10deg)) rotateX(calc(7deg - var(--ty, 0) * 8deg)) rotateZ(1deg);
  transform-style: preserve-3d;
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .04), -30px 50px 100px rgba(0, 0, 0, .5), 0 0 140px rgba(86, 135, 245, .45);
}
.hero--home .shot-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%);
}
.hero--home .shot figcaption { margin-top: 26px; text-align: center; }

/* Glowing orbit rings behind the dashboard */
.stage-rings { position: absolute; z-index: -1; inset: 0; display: grid; place-items: center; pointer-events: none; }
.stage-rings i { position: absolute; border-radius: 50%; border: 1px solid rgba(143, 176, 255, .22); }
.stage-rings i:nth-child(1) { width: 112%; aspect-ratio: 1; animation: orbit 40s linear infinite; }
.stage-rings i:nth-child(2) { width: 84%; aspect-ratio: 1; border-style: dashed; border-color: rgba(229, 180, 49, .3); animation: orbit 28s linear infinite reverse; }
.stage-rings i:nth-child(3) { width: 58%; aspect-ratio: 1; border-color: rgba(255, 255, 255, .12); animation: orbit 20s linear infinite; }
.stage-rings i::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: #8fb0ff; box-shadow: 0 0 16px 4px rgba(143, 176, 255, .8);
}
.stage-rings i:nth-child(2)::before { background: var(--brand-gold); box-shadow: 0 0 16px 4px rgba(229, 180, 49, .8); }
.stage-rings i:nth-child(3)::before { top: auto; bottom: -5px; width: 10px; height: 10px; background: #c4b5ff; box-shadow: 0 0 14px 4px rgba(196, 181, 255, .8); }
@keyframes orbit { to { rotate: 360deg; } }

/* Pop out cards with depth based parallax */
.pop {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .97); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(30, 57, 118, .05);
  translate: calc(var(--tx, 0) * var(--depth, 30) * -1px) calc(var(--ty, 0) * var(--depth, 30) * -1px);
  transition: translate .25s ease-out;
}
.pop-cal { top: 4%; left: -2%; animation: floatIn .7s 1s both, popBob 6s 1.7s ease-in-out infinite; }
.pop-chat { top: 40%; right: -4%; animation: floatIn .7s 1.25s both, popBob 7s 2s ease-in-out infinite; }
.pop-doc { bottom: 14%; left: 2%; animation: floatIn .7s 1.5s both, popBob 6.5s 2.3s ease-in-out infinite; }
@keyframes popBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pop-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #5687f5, var(--navy)); }
.pop-ico.is-violet { background: linear-gradient(135deg, #9b85ff, #5b3fd6); }
.pop-word { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, #2b579a, #1a3f75); }
.pop-body { display: grid; gap: 6px; min-width: 86px; }
.pop-body b { font-size: .92rem; color: var(--ink); line-height: 1.1; }
.pop-body .sk { width: 86px; height: 8px; }
.pop-body .sk-short { width: 60px; }
.pop-chat .pop-body { min-width: 120px; }
.pop-chat .pop-body .sk { width: 130px; }
.pop-src { display: flex; gap: 5px; margin-top: 2px; }
.pop-src i { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; }

/* Animated perspective floor */
.hero-floor {
  position: absolute; z-index: -1; left: -30%; right: -30%; bottom: -8%; height: 46%; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(68deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%);
          mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  animation: floorMove 3.5s linear infinite;
}
@keyframes floorMove { to { background-position: 0 64px, 0 0; } }

@media (max-width: 999px) {
  .hero-stage { padding: 40px 12px 24px; }
  .hero--home .shot-frame { transform: rotateY(-8deg) rotateX(5deg); }
}
@media (max-width: 600px) {
  .pop { padding: 9px 12px; gap: 9px; border-radius: 14px; }
  .pop-ico, .pop-word { width: 30px; height: 30px; border-radius: 9px; }
  .pop-chat { display: none; }
  .pop-cal { top: 0; left: 0; }
  .pop-doc { bottom: 18%; left: auto; right: 0; }
  .pop-body .sk { width: 60px; }
}

/* Compliance: calendar collage with reminder and extension cards */
.hero--compliance {
  background:
    radial-gradient(50% 70% at 92% 20%, rgba(229, 180, 49, .30), transparent 62%),
    radial-gradient(50% 60% at 0% 100%, rgba(55, 107, 220, .45), transparent 62%),
    linear-gradient(150deg, #0d1a38 0%, #142a57 55%, #0a152d 100%);
}
.hero--compliance .float-card { display: none; }
.hero--compliance .shot { margin: 30px 30px 40px; }
.hero--compliance .shot-frame { rotate: -2deg; }
.collage-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.collage-reminder { left: -34px; bottom: 30px; animation: floatIn .7s 1s both, bob 6s 1.7s ease-in-out infinite; }
.collage-extended { right: -30px; top: -22px; animation: floatIn .7s 1.25s both, bob 7s 2s ease-in-out infinite; }
.collage-bell { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--navy-deep); background: linear-gradient(135deg, #ffd25e, var(--brand-gold)); }
.collage-bell svg { animation: ring 3s 2s ease-in-out infinite; transform-origin: 50% 10%; }
.collage-days { display: flex; gap: 6px; }
.collage-days b {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; color: var(--navy); border: 2px solid var(--line);
  animation: dayOn 4s ease-in-out infinite;
}
.collage-days b:nth-child(2) { animation-delay: .5s; }
.collage-days b:nth-child(3) { animation-delay: 1s; }
.collage-days b:nth-child(4) { animation-delay: 1.5s; }
.collage-days b.is-due { color: #fff; background: var(--navy); border-color: var(--navy); animation-delay: 2s; }
.collage-tag { font-size: .78rem; font-weight: 700; color: var(--navy); background: var(--accent-soft); padding: 4px 8px; border-radius: 8px; }
.collage-extended .sk { width: 70px; height: 9px; }
.collage-badge { font-size: .8rem; font-weight: 700; color: var(--gold); background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px #f3dc8a; }
@media (max-width: 700px) {
  .hero--compliance .shot { margin: 20px 0 50px; }
  .collage-reminder { left: 8px; bottom: -10px; }
  .collage-extended { right: 8px; top: -26px; }
  .collage-days b { width: 28px; height: 28px; font-size: .85rem; }
}

/* Assistant: reversed, violet, with a glowing orb behind the chat */
.hero--assistant {
  background:
    radial-gradient(50% 70% at 12% 20%, rgba(124, 92, 255, .50), transparent 62%),
    radial-gradient(45% 60% at 100% 100%, rgba(55, 107, 220, .45), transparent 62%),
    linear-gradient(160deg, #150f3d 0%, #1b2257 50%, #0b1230 100%);
}
.hero--assistant h1 .hl { background-image: linear-gradient(90deg, #c4b5ff 0%, #8fb0ff 35%, #ffd25e 70%, #c4b5ff 100%); }
@media (min-width: 980px) {
  .hero--assistant .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .hero--assistant .hero-grid > div:first-child { order: 2; }
}
.hero--assistant .shot::before {
  content: ""; position: absolute; z-index: -1; inset: -12% 8%; border-radius: 50%; filter: blur(50px); opacity: .85;
  background: conic-gradient(from var(--angle), #7c5cff, #376bdc, #e5b431, #7c5cff);
  animation: spinAngle 10s linear infinite;
}
.hero--assistant .float-icon { background: rgba(124, 92, 255, .14); color: #6b4fe6; }
.hero--assistant .float-icon.is-gold { background: var(--gold-soft); color: #a07000; }

/* Documents: the one light hero, with a fan of document pages */
.hero--documents {
  color: var(--ink-soft);
  background:
    radial-gradient(50% 70% at 95% 10%, rgba(229, 180, 49, .22), transparent 62%),
    radial-gradient(50% 60% at 0% 100%, rgba(55, 107, 220, .16), transparent 62%),
    linear-gradient(180deg, #f4f6ff 0%, #ffffff 100%);
}
.hero--documents::before { background: radial-gradient(circle, rgba(55, 107, 220, .25), rgba(55, 107, 220, 0) 70%); }
.hero--documents::after { background: radial-gradient(circle, rgba(229, 180, 49, .3), rgba(229, 180, 49, 0) 70%); }
.hero--documents .container::before { background: radial-gradient(rgba(30, 57, 118, .14) 1.1px, transparent 1.3px) 0 0 / 26px 26px; }
.hero--documents h1 { color: var(--ink); }
.hero--documents h1 .hl { background-image: linear-gradient(90deg, #376bdc 0%, #1e3976 40%, #c98f12 75%, #376bdc 100%); }
.hero--documents .lead { color: var(--ink-soft); }
.hero--documents .eyebrow { color: var(--navy); background: #fff; border-color: var(--line); }
.hero--documents .plan-note { color: var(--ink-soft); background: #fff; border-color: var(--line); }
.hero--documents .cta-row .login-link { color: var(--ink); }
.hero--documents .cta-row .login-link:hover { color: var(--accent); }
.hero--documents .shot { margin: 30px 20px 30px 40px; }
.hero--documents .shot-frame { border-color: #d6e0fb; box-shadow: 0 2px 6px rgba(30, 57, 118, .08), 0 40px 90px rgba(55, 107, 220, .25); }
.hero--documents .shot::before, .hero--documents .shot::after {
  content: ""; position: absolute; z-index: -1; inset: 4% 6%; border-radius: 16px; background-color: #fff;
  border: 1px solid #d6e0fb; box-shadow: 0 20px 50px rgba(30, 57, 118, .14);
  background-image:
    linear-gradient(#cbd5f2, #cbd5f2), linear-gradient(#e1e7f7, #e1e7f7), linear-gradient(#e1e7f7, #e1e7f7),
    linear-gradient(#e1e7f7, #e1e7f7), linear-gradient(#e1e7f7, #e1e7f7);
  background-repeat: no-repeat;
  background-size: 40% 10px, 80% 7px, 72% 7px, 78% 7px, 50% 7px;
  background-position: 28px 30px, 28px 60px, 28px 80px, 28px 100px, 28px 120px;
  transition: rotate .6s cubic-bezier(.2, .8, .2, 1), translate .6s cubic-bezier(.2, .8, .2, 1);
}
.hero--documents .shot::before { rotate: -9deg; translate: -34px 10px; }
.hero--documents .shot::after { rotate: 6deg; translate: 30px -16px; }
.hero--documents .shot:hover::before { rotate: -13deg; translate: -48px 14px; }
.hero--documents .shot:hover::after { rotate: 10deg; translate: 44px -22px; }
.hero--documents .float-card { display: none; }
.doc-badge {
  position: absolute; z-index: 3; left: -26px; bottom: -18px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: floatIn .7s 1s both, bob 6s 1.7s ease-in-out infinite;
}
.doc-badge span {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, #2b579a, #1a3f75);
}
.doc-badge .sk { width: 80px; height: 9px; }
@media (max-width: 700px) {
  .hero--documents .shot { margin: 24px 10px 34px; }
  .doc-badge { left: 8px; }
}

/* ==========================================================================
   Full original logo (not split) in header, footer and hub card
   ========================================================================== */
.header-inner { min-height: 80px; }
.site-header.is-scrolled .header-inner { min-height: 66px; }
.brand img { height: 60px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .brand img { height: 50px; }
@media (max-width: 480px) { .brand img { height: 52px; } }
.brand-tile { padding: 12px 18px; border-radius: 16px; }
.brand-tile img { height: 86px; width: auto; }
.hub-head img { height: 44px; width: auto; }

/* ==========================================================================
   Home hero: light background from the first draft, dark text
   ========================================================================== */
.hero--home {
  color: var(--ink-soft);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(55, 107, 220, .16) 0%, transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(229, 180, 49, .12) 0%, transparent 70%),
    linear-gradient(180deg, #e8edff 0%, #f6f8ff 60%, #ffffff 100%);
}
.hero--home::before { background: radial-gradient(circle, rgba(55, 107, 220, .32), rgba(55, 107, 220, 0) 70%); }
.hero--home::after { background: radial-gradient(circle, rgba(229, 180, 49, .30), rgba(229, 180, 49, 0) 70%); }
.hero--home .container::before { background: radial-gradient(rgba(30, 57, 118, .16) 1.2px, transparent 1.4px) 0 0 / 24px 24px; }
.hero--home h1 { color: var(--ink); }
.hero--home h1 .hl { background-image: linear-gradient(90deg, #376bdc 0%, #6a93ff 25%, #1e3976 55%, #376bdc 100%); }
.hero--home .lead { color: var(--ink-soft); }
.hero--home .cta-row .login-link { color: var(--ink); border-color: rgba(30, 57, 118, .22); background: rgba(255, 255, 255, .7); }
.hero--home .cta-row .login-link:hover { color: var(--accent); background: #fff; border-color: var(--accent); }
.hero--home .shot figcaption { color: var(--muted); }
.hero--home .shot-frame {
  border-color: #d6e0fb;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .6), -30px 50px 100px rgba(30, 57, 118, .22), 0 0 120px rgba(86, 135, 245, .25);
}
.hero--home .hero-stage::before { opacity: .32; }
.hero--home .stage-rings i:nth-child(1) { border-color: rgba(55, 107, 220, .22); }
.hero--home .stage-rings i:nth-child(3) { border-color: rgba(30, 57, 118, .14); }
.hero--home .hero-floor {
  background-image:
    linear-gradient(rgba(55, 107, 220, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 107, 220, .16) 1px, transparent 1px);
}
.hero--home .ticker-chip { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: 0 6px 16px rgba(30, 57, 118, .06); }

/* Plan note now sits in "Know what is included before you choose" */
.plans-summary .plan-note { margin: 22px 0 0; max-width: 720px; }

/* Plan notes moved out of the heroes into page sections */
.plan-note-inline { margin: 20px 0 0; max-width: 640px; background: #fff; }
.card .plan-note-inline { background: var(--surface); }

/* ==========================================================================
   Homepage problem section: left column
   ========================================================================== */
.problem-copy h2 { font-size: clamp(1.9rem, 3.1vw, 2.6rem); }
.hl-swoosh { position: relative; display: inline-block; white-space: nowrap; }
.hl-text {
  background: linear-gradient(90deg, #376bdc 0%, #6a93ff 45%, #1e3976 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.swoosh { position: absolute; left: -2%; bottom: -12px; width: 104%; height: 16px; overflow: visible; }
.swoosh path {
  fill: none; stroke: var(--brand-gold); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.1s cubic-bezier(.6, .1, .2, 1) .3s;
}
.problem-copy.is-in .swoosh path { stroke-dashoffset: 0; }

.problem-callout {
  position: relative; overflow: hidden; display: flex; gap: 18px; align-items: flex-start;
  margin: 30px 0 26px; padding: 24px 26px 24px 28px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(30, 57, 118, .05), 0 20px 44px rgba(55, 107, 220, .12);
}
.problem-callout::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--brand-gold));
}
.problem-callout::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 180, 49, .16), transparent 70%); pointer-events: none;
}
.callout-badge {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center;
  color: var(--navy-deep); background: linear-gradient(135deg, #ffd25e, var(--brand-gold));
  box-shadow: 0 10px 22px rgba(229, 180, 49, .35);
}
.problem-copy.is-in .callout-badge svg { animation: badgeWiggle 1.2s .5s ease-in-out both; }
@keyframes badgeWiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -12deg; } 60% { rotate: 8deg; } }
.problem-callout .lead { position: relative; margin: 0; font-size: 1.08rem; color: var(--ink); }

.problem-tools { font-size: 1.04rem; line-height: 2.15; color: var(--ink-soft); }
.kw {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 11px 0 9px; border-radius: 999px; white-space: nowrap;
  font-weight: 650; color: var(--navy); line-height: 1.9;
  background-image: linear-gradient(90deg, rgba(55, 107, 220, .16), rgba(229, 180, 49, .26));
  background-repeat: no-repeat; background-size: 0% 100%;
  box-shadow: inset 0 0 0 1px rgba(55, 107, 220, .14);
  transition: background-size .8s cubic-bezier(.2, .8, .2, 1);
}
.kw svg { color: var(--accent); flex-shrink: 0; }
.problem-copy.is-in .kw { background-size: 100% 100%; }
.problem-copy.is-in .kw:nth-of-type(1) { transition-delay: .9s; }
.problem-copy.is-in .kw:nth-of-type(2) { transition-delay: 1.15s; }
.problem-copy.is-in .kw:nth-of-type(3) { transition-delay: 1.4s; }
@media (max-width: 600px) {
  .problem-callout { flex-direction: column; gap: 14px; padding: 22px; }
}

/* Larger logo inside the same header height */
.brand img { height: 72px; }
.site-header.is-scrolled .brand img { height: 58px; }
@media (max-width: 480px) { .brand img { height: 60px; } }

/* Documents hero: keep the Word badge clear of the real screenshot */
.doc-badge { bottom: -52px; left: -18px; }
@media (max-width: 700px) { .doc-badge { bottom: -40px; left: 8px; } }
