/* ============================================================
   Aqaris · Homepage redesign (Figma "Homepage v1")
   Loaded only by index.html, after style.css. Every rule is
   scoped to body.home or to hp-* classes so the shared
   stylesheet and the other pages are unaffected.
   Breakpoints: desktop > 1024 · tablet 641–1024 · mobile ≤ 640
   ============================================================ */

.home {
  --hp-indigo:      #4F46E5;
  --hp-indigo-deep: #4338CA;
  --hp-accent:      #5E5CE6;
  --hp-ink:         #0F172A;
  --hp-body:        #334155;
  --hp-muted:       #64748B;
  --hp-line:        #E2E8F0;
  --hp-line-strong: #CBD5E1;
  --hp-slate:       #F8FAFC;
  --hp-lav:         #F3EDFF;
  --hp-night:       #241C42;
  --hp-night-deep:  #16142E;
  --hp-smooth:      cubic-bezier(.16,1,.3,1);
  --hp-gutter:      24px;
  --hp-section:     112px;

  background: #FFFFFF;
  color: var(--hp-body);
}

/* ---------- Base type ---------- */
.home h1, .home h2, .home h3, .home h4 {
  color: var(--hp-ink);
  font-weight: 700;
  margin: 0;
}
.home h2 {
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.home p { margin: 0; color: var(--hp-body); }
.hp-lead { font-size: 20px; line-height: 1.5; }

.hp-grad, .hp-grad-light {
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  /* Extend the painted area below the baseline so descenders (g, y, p) are not
     clipped when the run is inline-block with a tight line-height; the negative
     margin keeps the layout unchanged. */
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.hp-grad       { background-image: linear-gradient(90deg, #6C6AF0 0%, var(--hp-indigo-deep) 100%); }
.hp-grad-light { background-image: linear-gradient(90deg, #C4C0FF 0%, #8E8BFF 100%); }

/* ---------- Layout ---------- */
.hp-wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--hp-gutter));
  margin: 0 auto;
  padding: 0 var(--hp-gutter);
}
.hp-section { padding: var(--hp-section) 0; }
.hp-bg-slate { background: var(--hp-slate); }
.hp-bg-lav   { background: var(--hp-lav); }

.hp-head { max-width: 760px; }
.hp-head .hp-lead { margin-top: 18px; }
.hp-head-narrow { max-width: 720px; }
.hp-head-narrow .hp-lead { margin-top: 16px; }

.hp-head-split {
  display: grid;
  grid-template-columns: 640fr 480fr;
  gap: 80px;
  align-items: end;
}
.hp-head-split-int { grid-template-columns: 620fr 500fr; }
.hp-head-split p { font-size: 18px; line-height: 1.55; }

/* ---------- Buttons & links ---------- */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 17px; font-weight: 600; line-height: 1;
  white-space: nowrap; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn-sm { height: 44px; padding: 0 20px; font-size: 16px; }
.hp-btn-primary { background: var(--hp-indigo); color: #FFFFFF; }
.hp-btn-primary:hover { background: var(--hp-indigo-deep); color: #FFFFFF; }
.hp-btn-outline { border-color: var(--hp-line-strong); color: var(--hp-ink); background: transparent; }
.hp-btn-outline:hover { border-color: var(--hp-indigo); color: var(--hp-indigo); }
.hp-btn-white { background: #FFFFFF; color: var(--hp-indigo); }
.hp-btn-white:hover { background: #EEF0FF; color: var(--hp-indigo-deep); }
.hp-btn-outline-light { border-color: rgba(255,255,255,.5); color: #FFFFFF; }
.hp-btn-outline-light:hover { border-color: #FFFFFF; background: rgba(255,255,255,.08); color: #FFFFFF; }

.hp-link {
  display: inline-block;
  font-size: 17px; font-weight: 600; line-height: 26px;
  color: var(--hp-indigo);
  border-bottom: 2px solid rgba(79,70,229,.3);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.hp-link:hover { color: var(--hp-indigo-deep); border-bottom-color: var(--hp-indigo); }
.hp-link-light { color: #FFFFFF; border-bottom-color: rgba(255,255,255,.45); }
.hp-link-light:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }

/* Check list (operators, solutions, compliance band) */
.hp-checks {
  list-style: none; margin: 0; padding: 32px 0 36px;
  display: grid; gap: 14px;
}
.hp-checks li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 18px; line-height: 1.55; color: var(--hp-ink);
}
.hp-checks img { flex: 0 0 auto; margin-top: 5px; }

/* ---------- Header ---------- */
.home .hp-header {
  background: #FFFFFF;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--hp-line);
}
.home .hp-header .nav { height: 84px; padding-top: 0; padding-bottom: 0; gap: 40px; }
.home .brand { gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--hp-ink); }
.home .nav-links { flex: 1; gap: 30px; margin: 0; }
.home .nav-links a,
.home .nav-dropdown-toggle {
  padding: 4px 0;
  font-size: 16px; font-weight: 500;
  color: var(--hp-body);
  background: none;
  border-radius: 0;
}
.home .nav-links a:hover,
.home .nav-dropdown-toggle:hover,
.home .nav-dropdown-toggle[aria-expanded="true"] { color: var(--hp-indigo); background: none; }
.home .nav-dropdown-menu a { padding: 10px 12px; border-radius: var(--r-md); font-size: 15px; }
.home .nav-dropdown-menu a:hover { background: var(--c-surface-100); }
.home .nav-actions { gap: 40px; }
.hp-lang { font-size: 16px; font-weight: 500; color: var(--hp-body); }
.hp-lang:hover { color: var(--hp-indigo); }
.hp-nav-lang { display: none; }

/* ---------- Hero ---------- */
.hp-hero {
  position: relative;
  min-height: 760px;
  background: var(--hp-slate);
  overflow: hidden;
  isolation: isolate;
}
.hp-hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 70% center;
}
.hp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #F8FAFC 0%, #F8FAFC 36%, rgba(248,250,252,.82) 48%, rgba(248,250,252,0) 66%);
}
.hp-hero-inner { padding-top: 132px; padding-bottom: 96px; }
.hp-hero-copy { max-width: 560px; }
.hp-hero h1 {
  font-size: clamp(52px, 4.72vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.hp-hero-lead { max-width: 520px; margin-top: 28px !important; font-size: 20px; line-height: 1.5; }
.hp-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hp-hero-meta {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.hp-hero-meta li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--hp-body);
}

/* ---------- Systems bar ---------- */
.hp-systems { background: #FFFFFF; border-bottom: 1px solid var(--hp-line); }
.hp-systems-inner { display: flex; align-items: center; gap: 48px; min-height: 96px; }
.hp-systems-label { flex: 0 0 250px; font-size: 15px; line-height: 1.4; color: var(--hp-muted) !important; }
.hp-systems-list {
  flex: 1; list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
}
.hp-systems-list li { font-size: 17px; font-weight: 700; line-height: 26px; letter-spacing: .04em; color: var(--hp-body); transition: color .2s var(--ease); }

/* Marquee (wrapped around the list by home.js) */
.hp-marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.hp-marquee-track {
  display: flex; width: max-content;
  animation: hp-marquee 40s linear infinite;
}
.hp-marquee:hover .hp-marquee-track { animation-play-state: paused; }
.hp-marquee .hp-systems-list {
  flex: none; flex-wrap: nowrap; justify-content: flex-start;
  gap: 0 56px; padding-right: 56px;
}
.hp-marquee .hp-systems-list li { white-space: nowrap; cursor: default; }
.hp-marquee .hp-systems-list li:hover { color: var(--hp-accent); }
/* style.css collapses every animation to .01ms under reduced motion, which would make the
   marquee flicker at light speed. Keep it a slow, steady drift instead. */
@media (prefers-reduced-motion: reduce) {
  .hp-marquee .hp-marquee-track { animation-duration: 40s !important; }
}
@keyframes hp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

/* ---------- Stats ---------- */
.hp-stats { background: var(--hp-night); padding: 104px 0; }
.hp-stats-inner { display: flex; gap: 96px; align-items: flex-start; }
.hp-stats h2 { flex: 0 0 460px; max-width: 460px; color: #FFFFFF; }
.hp-stats-grid { flex: 1; margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hp-stat { border-top: 1px solid rgba(255,255,255,.2); padding: 26px 40px 30px 0; }
.hp-stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.2); padding: 26px 0 30px 40px; }
.hp-stat dt { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.hp-stat dd { margin: 12px 0 0; font-size: 17px; line-height: 1.45; color: rgba(255,255,255,.72); }

/* ---------- Before and after ---------- */
.hp-compare { margin-top: 56px; }
.hp-compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.hp-compare-head span {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--hp-ink);
  font-size: 15px; font-weight: 600; color: var(--hp-muted);
}
.hp-compare-head span + span { padding-left: 43px; color: var(--hp-indigo); }
.hp-compare-row:not(.hp-compare-head) p {
  padding: 32px 64px 32px 0;
  border-bottom: 1px solid var(--hp-line);
  font-size: 19px; line-height: 1.5; color: var(--hp-muted);
}
.hp-compare-row:not(.hp-compare-head) p + p {
  padding: 32px 0 32px 40px;
  border-left: 3px solid var(--hp-accent);
  border-bottom-color: var(--hp-accent);
  font-weight: 500; color: var(--hp-ink);
}

/* ---------- Built for operators ---------- */
.hp-operators {
  display: grid; grid-template-columns: 560fr 552fr; gap: 88px; align-items: center;
}
.hp-operators-img { margin: 0; border-radius: 20px; overflow: hidden; background: var(--hp-line-strong); }
.hp-operators-img img { display: block; width: 100%; height: 520px; object-fit: cover; }
.hp-operators-copy .hp-lead { margin-top: 24px; }

/* ---------- Roles ---------- */
.hp-roles {
  margin-top: 56px;
  border-top: 2px solid var(--hp-ink);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hp-role {
  position: relative; isolation: isolate;
  padding: 28px 28px 8px; display: flex; flex-direction: column; align-items: flex-start;
}
.hp-role:first-child { padding-left: 0; }
.hp-role + .hp-role { border-left: 1px solid rgba(15,23,42,.14); }
/* Hover card: soft panel kept inside its own column (never spills onto a neighbour);
   only the outer edges of the row bleed into the page gutter. */
.hp-role::before {
  content: ""; position: absolute; z-index: -1;
  inset: 8px 0 0 0;
  border-radius: 14px;
  background: rgba(94,92,230,.1);
  opacity: 0; transform: translateY(6px);
  transition: opacity .6s var(--hp-smooth), transform .6s var(--hp-smooth);
}
.hp-role:first-child::before { left: -20px; }
.hp-role:last-child::before { right: -20px; }
.hp-role::after {
  content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px;
  background: var(--hp-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--hp-smooth);
}
@media (hover: hover) {
  .hp-role:hover::before { opacity: 1; transform: none; }
  .hp-role:hover::after { transform: scaleX(1); }
  .hp-role:hover h3 { color: var(--hp-accent); }
}
.hp-role-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
}
.hp-role h3 { transition: color .5s var(--hp-smooth); }
/* style.css zeroes every transition under reduced motion; keep this hover gentle. */
@media (prefers-reduced-motion: reduce) {
  .hp-role::before { transition-duration: .6s !important; }
  .hp-role::after  { transition-duration: .7s !important; }
  .hp-role h3      { transition-duration: .5s !important; }
}
.hp-role-label { margin-top: 18px; font-size: 15px; font-weight: 600; line-height: 1.55; color: var(--hp-indigo); }
.hp-role h3 { margin-top: 10px; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.hp-role p { margin-top: 12px; font-size: 17px; line-height: 1.55; }

/* ---------- Modules ---------- */
.hp-modules { display: flex; gap: 80px; align-items: flex-start; }
.hp-modules-head { flex: 0 0 360px; }
.hp-modules-head p { padding: 20px 0 28px; font-size: 18px; line-height: 1.55; }
.hp-modules-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.hp-module { border-top: 1px solid var(--hp-line); padding: 26px 0 34px; }
.hp-module h3 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.hp-module p { margin-top: 10px; font-size: 17px; line-height: 1.55; }

/* ---------- Solutions (persona switcher) ---------- */
.hp-tabs.persona-tabs {
  margin: 40px 0 0; padding: 0;
  display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 36px;
  background: none; border-radius: 0;
  border-bottom: 1px solid var(--hp-line);
  overflow-x: auto; scrollbar-width: none;
}
.hp-tabs.persona-tabs::-webkit-scrollbar { display: none; }
.hp-tabs .persona-tab {
  flex: 0 0 auto;
  padding: 0 0 16px;
  margin-bottom: -1px;
  border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  background: none; box-shadow: none;
  font-size: 17px; font-weight: 500; line-height: 26px; white-space: nowrap;
  color: var(--hp-muted);
}
.hp-tabs .persona-tab:hover { color: var(--hp-ink); }
.hp-tabs .persona-tab.is-active {
  background: none; box-shadow: none;
  border-bottom-color: var(--hp-indigo);
  font-weight: 600; color: var(--hp-ink);
}
.hp-panel { display: flex; gap: 72px; align-items: stretch; padding-top: 56px; }
.hp-panel-copy { flex: 1 1 628px; min-width: 0; }
.hp-panel-copy h3 { font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.hp-panel-copy .hp-lead { margin-top: 16px; }
.hp-panel-copy .hp-checks { padding: 28px 0 36px; }
.hp-outcome {
  flex: 0 0 500px;
  background: var(--hp-night);
  border-radius: 20px;
  padding: 44px;
}
.hp-outcome-label { display: block; font-size: 15px; font-weight: 600; line-height: 1.55; color: #B9B4FF; }
.hp-outcome h3 { margin-top: 14px; font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; color: #FFFFFF; }
.hp-outcome p { margin-top: 18px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.76); }

/* ---------- Compliance band ---------- */
.hp-band {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 640px;
  padding: 104px 0;
  background: var(--hp-night-deep);
}
.hp-band-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
}
.hp-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22,20,46,.94) 0%, rgba(22,20,46,.82) 46%, rgba(26,22,52,.585) 73%, rgba(36,28,66,.35) 100%);
}
.hp-band-copy { max-width: 600px; }
.hp-band h2 { color: #FFFFFF; }
.hp-band .hp-lead { margin-top: 22px; color: rgba(255,255,255,.8); }
.hp-band .hp-checks { padding: 28px 0 36px; gap: 12px; }
.hp-band .hp-checks li { color: #FFFFFF; }

/* ---------- Integrations ---------- */
.hp-integrations {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hp-line);
  border-left: 1px solid var(--hp-line);
}
.hp-integrations li {
  height: 104px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border-right: 1px solid var(--hp-line);
  border-bottom: 1px solid var(--hp-line);
  font-size: 20px; font-weight: 600; line-height: 1.55; letter-spacing: -0.01em;
  color: var(--hp-body);
  white-space: nowrap;
  position: relative;
  cursor: default;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.hp-integrations li:hover {
  background: var(--hp-lav);
  color: var(--hp-accent);
  box-shadow: inset 0 -3px 0 var(--hp-accent);
}
.hp-integrations img { flex: 0 0 auto; transition: transform .25s var(--ease); }
.hp-integrations li:hover img { transform: scale(1.15); }

/* ---------- Pricing ---------- */
.hp-pricing { display: flex; gap: 80px; align-items: flex-start; }
.hp-pricing-head { flex: 0 0 400px; }
.hp-pricing-head p { padding: 20px 0 30px; font-size: 18px; line-height: 1.55; }
.hp-plans { flex: 1; min-width: 0; }
.hp-plan {
  display: grid;
  grid-template-columns: 302fr 152fr 266fr;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--hp-line);
}
.hp-plan-price { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--hp-ink); white-space: nowrap; }
.hp-plan-price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--hp-muted); }
.hp-plan-name { padding-top: 11px; font-size: 18px; font-weight: 600; line-height: 1.55; color: var(--hp-ink); }
.hp-plan p { padding-top: 12px; font-size: 17px; line-height: 1.55; }
.hp-promo {
  margin-top: 24px !important;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--hp-lav);
  font-size: 17px; line-height: 1.55; color: var(--hp-ink) !important;
}

/* ---------- Resources ---------- */
.hp-resources { margin-top: 44px; }
.hp-resource {
  display: grid;
  grid-template-columns: 120px 380fr 454fr 126px;
  grid-template-areas: "type title text pill";
  gap: 0 40px;
  align-items: start;
  padding: 26px 0 27px;
  border-top: 1px solid var(--hp-line);
}
.hp-resource:last-child { border-bottom: 1px solid var(--hp-line); }
.hp-resource-type { grid-area: type; font-size: 15px; font-weight: 600; line-height: 24px; color: var(--hp-indigo); }
.hp-resource h3 { grid-area: title; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.hp-resource p { grid-area: text; font-size: 17px; line-height: 1.55; }
.hp-pill {
  grid-area: pill;
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 15px;
  border: 1px solid var(--hp-line-strong); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--hp-muted);
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.hp-faq { display: flex; gap: 80px; align-items: flex-start; }
.hp-faq-head { flex: 0 0 380px; }
.hp-faq-head p { padding-top: 18px; font-size: 18px; line-height: 1.55; }
.hp-faq-head a { color: var(--hp-indigo); font-weight: 600; }
.hp-faq-list { flex: 1; min-width: 0; border-top: 2px solid var(--hp-ink); }
.hp-faq-list details { border-bottom: 1px solid var(--hp-line); }
.hp-faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  list-style: none; cursor: pointer;
  font-size: 20px; font-weight: 600; line-height: 1.55; letter-spacing: -0.01em;
  color: var(--hp-ink);
}
.hp-faq-list summary::-webkit-details-marker { display: none; }
.hp-faq-list summary::after {
  content: "+";
  flex: 0 0 18px; text-align: center;
  font-size: 24px; font-weight: 400; line-height: 26px;
  color: var(--hp-indigo);
}
.hp-faq-list details[open] summary { padding-bottom: 11px; }
.hp-faq-list details[open] summary::after { content: "\2212"; }
.hp-faq-list details p { max-width: 620px; padding-bottom: 24px; font-size: 17px; line-height: 1.55; }

/* ---------- Final CTA ---------- */
.hp-cta { background: var(--hp-indigo); padding: 104px 0; }
.hp-cta-inner { display: flex; gap: 64px; align-items: center; }
.hp-cta h2 { flex: 0 0 640px; font-size: 54px; line-height: 1.08; color: #FFFFFF; }
.hp-cta-copy { flex: 1; min-width: 0; }
.hp-cta-copy p { font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.86); }
.hp-cta-btns { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 28px; }

/* ---------- Footer ---------- */
.hp-footer { background: var(--hp-night-deep); padding: 80px 0 36px; color: rgba(255,255,255,.64); }
.hp-footer-top { display: flex; gap: 64px; align-items: flex-start; }
.hp-footer-brand { flex: 0 0 300px; }
.hp-footer .brand { color: #FFFFFF; }
.hp-footer .brand:hover { color: #FFFFFF; }
.hp-footer-brand p { padding-top: 16px; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.64); }
.hp-footer-cols { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.hp-footer h4 { font-size: 15px; font-weight: 600; line-height: 24px; color: #FFFFFF; }
.hp-footer ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.hp-footer li a { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.64); }
.hp-footer li a:hover { color: #FFFFFF; }
.hp-footer-bottom {
  margin-top: 64px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  font-size: 15px;
}
.hp-footer-social { display: flex; gap: 24px; }
.hp-footer-social a { color: rgba(255,255,255,.64); }
.hp-footer-social a:hover { color: #FFFFFF; }

/* ============================================================
   Small desktop (1025–1240): let fixed Figma columns flex
   ============================================================ */
@media (max-width: 1240px) {
  .home .hp-header .nav, .home .nav-actions { gap: 28px; }
  .home .nav-links { gap: 22px; }
  .hp-stats-inner, .hp-operators, .hp-modules, .hp-pricing, .hp-faq, .hp-head-split { gap: 56px; }
  .hp-stats h2 { flex-basis: 38%; }
  .hp-modules-head { flex-basis: 30%; }
  .hp-pricing-head { flex-basis: 32%; }
  .hp-faq-head { flex-basis: 32%; }
  .hp-outcome { flex-basis: 42%; }
  .hp-cta h2 { flex-basis: 52%; font-size: 48px; }
  .hp-footer-brand { flex-basis: 240px; }
  .hp-resource { grid-template-columns: 100px 1fr 1.2fr auto; gap: 0 28px; }
}

/* ============================================================
   Tablet (≤ 1024) — "Homepage - tablet", 768 frame, 32px gutter
   ============================================================ */
@media (max-width: 1024px) {
  .home { --hp-gutter: 32px; --hp-section: 80px; }
  .home h2 { font-size: 38px; }
  .hp-lead { font-size: 18px; }

  /* Header: brand · CTA · menu */
  .home .nav-toggle { display: inline-flex; order: 3; width: 44px; height: 44px; }
  .home .nav-actions { margin-left: auto; }
  .hp-lang { display: none; }
  .hp-nav-lang { display: block; }
  .home .nav-links {
    position: absolute; top: 84px; left: 0; right: 0;
    background: #FFFFFF;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--hp-gutter) 20px;
    border-bottom: 1px solid var(--hp-line);
    box-shadow: var(--sh-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .home .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .home .nav-links a, .home .nav-dropdown-toggle { padding: 12px 0; min-height: 44px; display: flex; align-items: center; width: 100%; justify-content: space-between; }
  .home .nav-dropdown-menu {
    position: static; min-width: 0; box-shadow: none; border: 0;
    padding: 0 0 0 12px; grid-template-columns: 1fr 1fr;
    opacity: 1; transform: none; pointer-events: auto; display: none;
  }
  .home .nav-dropdown.open .nav-dropdown-menu { display: grid; }

  /* Hero: copy, then the photo underneath */
  .hp-hero { display: flex; flex-direction: column; min-height: 0; }
  .hp-hero::after { display: none; }
  .hp-hero-img { position: static; order: 2; height: 440px; object-position: center; }
  .hp-hero-inner { padding-top: 63px; padding-bottom: 48px; }
  .hp-hero-copy { max-width: none; }
  .hp-hero h1 { font-size: 52px; line-height: 1.06; }
  .hp-hero-lead { max-width: none; margin-top: 22px !important; font-size: 18px; }
  .hp-hero-cta { margin-top: 22px; }
  .hp-hero-meta li img { width: 16px; height: 16px; }

  .hp-systems-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 24px; padding-bottom: 24px; }
  .hp-systems-label { flex: none; }
  .hp-systems-list { justify-content: flex-start; }
  .hp-marquee { flex: none; width: 100%; }

  .hp-stats { padding: 79px 0; }
  .hp-stats-inner { display: block; }
  .hp-stats h2 { max-width: none; margin-bottom: 40px; }
  .hp-stat dd { margin-top: 11px; }

  .hp-head-split, .hp-head-split-int { grid-template-columns: 1fr; gap: 18px; }
  .hp-compare-row:not(.hp-compare-head) p { padding: 32px 34px 32px 0; font-size: 17px; }
  .hp-compare-row:not(.hp-compare-head) p + p { padding: 32px 0 32px 20px; }
  .hp-compare-head span + span { padding-left: 23px; }

  .hp-operators { grid-template-columns: 1fr; gap: 39px; }
  .hp-operators-img img { height: auto; aspect-ratio: 704 / 578; }
  .hp-operators-copy .hp-checks { padding: 24px 0 24px; }

  .hp-roles { grid-template-columns: 1fr 1fr; }
  .hp-role { padding: 28px 24px 28px 0; }
  .hp-role + .hp-role { border-left: 0; }
  .hp-role:nth-child(even) { border-left: 1px solid rgba(15,23,42,.14); padding-left: 24px; padding-right: 20px; }
  .hp-role:nth-child(odd)::before { left: -20px; right: 0; }
  .hp-role:nth-child(even)::before { left: 0; right: -20px; }
  .hp-role:nth-child(n+3) { border-top: 1px solid rgba(15,23,42,.14); }

  .hp-modules { display: block; }
  .hp-modules-head p { padding: 20px 0 20px; }
  .hp-modules-grid { margin-top: 40px; }

  .hp-tabs.persona-tabs { margin-top: 32px; gap: 28px; }
  .hp-panel {
    flex-direction: column; gap: 40px;
    margin-top: 32px; padding: 39px 32px 32px;
    background: #FFFFFF; border: 1px solid var(--hp-line); border-radius: 20px;
  }
  .hp-panel-copy { flex: none; }
  .hp-panel-copy h3 { font-size: 26px; }
  .hp-panel-copy .hp-checks { padding: 16px 0 16px; }
  .hp-outcome { flex: none; }

  .hp-band { min-height: 0; padding: 79px 0; }
  .hp-band::after { background: linear-gradient(180deg, rgba(22,20,46,.88) 0%, rgba(22,20,46,.78) 100%); }
  .hp-band-copy { max-width: none; }
  .hp-band .hp-lead { font-size: 18px; }

  .hp-integrations { margin-top: 48px; grid-template-columns: 1fr 1fr; }

  .hp-pricing { display: block; }
  .hp-pricing-head p { padding: 20px 0 20px; }
  .hp-plans { margin-top: 40px; }
  .hp-plan { grid-template-columns: 224fr 144fr 336fr; }

  .hp-resources { margin-top: 44px; }
  .hp-resource {
    grid-template-columns: 1fr auto;
    grid-template-areas: "type type" "title pill" "text text";
    gap: 14px 24px;
    align-items: center;
  }
  .hp-resource p { margin-top: 1px; }

  .hp-faq { display: block; }
  .hp-faq-list { margin-top: 40px; }

  .hp-cta { padding: 80px 0; }
  .hp-cta-inner { flex-direction: column; align-items: stretch; gap: 40px; }
  .hp-cta h2 { flex: none; font-size: 40px; }

  .hp-footer-top { flex-direction: column; gap: 40px; }
  .hp-footer-brand { flex: none; }
  .hp-footer-brand p { padding-top: 15px; font-size: 15px; }
  .hp-footer-cols { grid-template-columns: repeat(3, 1fr); gap: 37px 24px; width: 100%; }
  .hp-footer ul { margin-top: 10px; gap: 10px; }
  .hp-footer li a { font-size: 15px; }
}

/* ============================================================
   Mobile (≤ 640) — "Homepage - mobile", 390 frame, 20px gutter
   ============================================================ */
@media (max-width: 640px) {
  .home { --hp-gutter: 20px; --hp-section: 63px; }
  .home h2 { font-size: 30px; line-height: 1.13; }
  .hp-lead { font-size: 17px; }

  /* Header: brand · menu (the CTA moves into the hero) */
  .home .nav-actions { display: none; }
  .home .nav-toggle { margin-left: auto; }
  .home .nav-dropdown-menu { grid-template-columns: 1fr; }

  .hp-hero-inner { padding-top: 43px; padding-bottom: 32px; }
  .hp-hero h1 { font-size: 36px; line-height: 1.08; }
  .hp-hero-lead { font-size: 17px; }
  .hp-hero-cta { flex-wrap: nowrap; }
  .hp-hero-cta .hp-btn { flex: 1 1 auto; height: 48px; padding: 0 18px; font-size: 16px; }
  .hp-hero-meta { flex-direction: column; gap: 23px; }
  .hp-hero-img { height: 300px; object-position: 72% center; }

  .hp-systems-label { max-width: 280px; }
  .hp-systems-list { gap: 10px 28px; }

  .hp-stats { padding: 63px 0; }
  .hp-stats-grid { grid-template-columns: 1fr; }
  .hp-stat, .hp-stat:nth-child(even) { border-left: 0; padding: 23px 0 22px; }
  .hp-stat dt { font-size: 44px; }

  /* Compare: each row stacks today → Aqaris */
  .hp-compare-head { display: none; }
  .hp-compare-row:not(.hp-compare-head) { grid-template-columns: 1fr; border-bottom: 1px solid var(--hp-line); }
  .hp-compare-row:not(.hp-compare-head) p { padding: 24px 0 10px; border-bottom: 0; }
  .hp-compare-row:not(.hp-compare-head) p + p { padding: 0 0 0 16px; margin-bottom: 24px; border-bottom: 0; }

  .hp-operators-img img { aspect-ratio: 1 / 1; }
  .hp-operators-copy .hp-lead { margin-top: 23px; }
  .hp-checks li { font-size: 17px; }

  .hp-roles { grid-template-columns: 1fr; }
  .hp-role, .hp-role:nth-child(even) { border-left: 0; padding: 24px 0; }
  .hp-role::before, .hp-role:nth-child(odd)::before, .hp-role:nth-child(even)::before { left: -12px; right: -12px; top: 0; }
  .hp-role + .hp-role { border-top: 1px solid rgba(15,23,42,.14); }
  .hp-role h3, .hp-module h3, .hp-resource h3 { font-size: 20px; }

  .hp-modules-grid { grid-template-columns: 1fr; }
  .hp-module { padding: 24px 0 28px; }

  .hp-panel { padding: 29px 22px 22px; }
  .hp-panel-copy h3 { font-size: 26px; }
  .hp-panel-copy .hp-btn { height: 48px; font-size: 16px; }
  .hp-outcome { padding: 28px; }
  .hp-outcome h3 { font-size: 26px; }
  .hp-outcome p { font-size: 17px; }

  .hp-band { padding: 63px 0; }
  .hp-band .hp-lead { font-size: 17px; }

  .hp-integrations li { height: 84px; gap: 10px; font-size: 17px; }

  .hp-pricing-head .hp-btn { height: 48px; font-size: 16px; }
  .hp-plan {
    grid-template-columns: 120px 1fr;
    grid-template-areas: "price price" "name text";
    column-gap: 24px;
    padding: 27px 0 24px;
  }
  .hp-plan-price { grid-area: price; font-size: 30px; }
  .hp-plan-name { grid-area: name; padding-top: 6px; }
  .hp-plan p { grid-area: text; padding-top: 7px; }

  .hp-resource {
    grid-template-columns: 1fr;
    grid-template-areas: "type" "title" "pill" "text";
    gap: 12px;
    justify-items: start;
  }

  .hp-faq-head p { font-size: 17px; }
  .hp-faq-list summary { padding: 24px 0; font-size: 17px; }
  .hp-faq-list details p { font-size: 17px; }

  .hp-cta { padding: 63px 0; }
  .hp-cta h2 { font-size: 32px; line-height: 1.12; }
  .hp-cta-copy p { font-size: 18px; }
  .hp-cta-btns .hp-btn { flex: 1 1 auto; }

  .hp-footer { padding-bottom: 36px; }
  .hp-footer-cols { grid-template-columns: 1fr 1fr; }
  .hp-footer-bottom { flex-direction: column; align-items: flex-start; }
}
