/* ============================================================
   Paripulse Management — public homepage
   Single-screen marketing page: header, hero, trust, footer
   ============================================================ */

:root {
  --navy: #0b1222;
  --ink: #101828;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e7ec;
  --bg: #ffffff;
  --coral: #f65c5c;
  --coral-soft: #fff1f1;
  --brand-red: #e11d2e;
  --brand-red-dark: #c81424;
  --white: #ffffff;
  --font: "Instrument Sans", "Instrument Sans Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Poppins", "Poppins Fallback", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.home-container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(24px, 3.1vw, 50px);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex: none;
  padding: 0 clamp(24px, 3.1vw, 50px);
  background: transparent;
  border: 0;
}

.home-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1700px;
  min-height: 76px;
  margin: 14px auto 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  box-shadow:
    0 2px 5px rgba(15, 23, 42, 0.04),
    0 22px 50px -34px rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.home-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 13px;
  color: var(--navy);
  text-decoration: none;
}

.home-brand img {
  width: clamp(42px, 3.1vw, 52px);
  height: clamp(42px, 3.1vw, 52px);
  border-radius: 13px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.home-brand .brand-name {
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(19px, 1.28vw, 23px);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1;
}

.home-brand .brand-sub {
  margin-top: 5px;
  color: #475467;
  font-size: clamp(7.5px, 0.5vw, 8.5px);
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.3vw, 42px);
  margin-left: auto;
}

.home-nav a {
  position: relative;
  padding: 10px 0;
  color: #344054;
  font-size: clamp(14px, 0.88vw, 16px);
  font-weight: 500;
  text-decoration: none;
}

.home-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.home-nav a:hover {
  color: var(--navy);
}

.home-nav a:hover::after,
.home-nav a.is-active::after {
  opacity: 1;
  transform: none;
}

.home-nav a.is-active {
  color: var(--navy);
}

.home-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.home-btn--primary {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.home-btn--primary:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}

.home-btn--secondary {
  background: #fff;
  border-color: #d0d5dd;
  color: #344054;
}

.home-btn--secondary:hover {
  border-color: #98a2b3;
  color: var(--ink);
}

.home-btn--lg {
  min-height: clamp(48px, 5vh, 56px);
  padding: 0 clamp(22px, 1.7vw, 28px);
  font-size: clamp(14px, 0.9vw, 16px);
}

.home-header__cta {
  min-height: clamp(42px, 4.4vh, 48px);
  padding: 0 clamp(17px, 1.4vw, 22px);
  font-size: clamp(13px, 0.82vw, 14.5px);
}

.home-header__cta svg {
  width: 15px;
  height: 15px;
}

.home-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.16s ease;
}

.home-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.home-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.home-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.home-main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.hero {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  padding: clamp(38px, 5.2vh, 64px) 0 clamp(36px, 4.8vh, 58px);
  background:
    radial-gradient(
      ellipse 40% 80% at 68% 44%,
      rgba(255, 220, 214, 0.55) 0%,
      rgba(255, 235, 232, 0.3) 45%,
      rgba(255, 255, 255, 0) 72%
    ),
    #fff;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  width: 100%;
  gap: clamp(36px, 3.4vw, 64px);
}

.hero__copy {
  min-width: 0;
}

.hero h1 {
  margin: 0 0 clamp(20px, 2.6vh, 30px);
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(54px, 5.8vw, 108px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero__dot {
  color: var(--coral);
}

.hero__lead {
  max-width: 35ch;
  margin: 0 0 clamp(24px, 3.2vh, 34px);
  color: #475467;
  font-size: clamp(16px, 1.18vw, 21px);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.2vw, 18px);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

/* ------------------------------------------------------------
   Dashboard preview
   ------------------------------------------------------------ */

.preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(150px, 9.8vw, 178px) minmax(0, 1fr);
  width: 100%;
  max-width: clamp(620px, 43vw, 760px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  box-shadow:
    0 2px 4px rgba(16, 24, 40, 0.04),
    0 42px 80px -32px rgba(16, 24, 40, 0.32);
}

.preview--snapshot {
  display: block;
  grid-template-columns: none;
}

.preview__snapshot {
  display: block;
  width: 100%;
  height: auto;
}

.preview__side {
  display: flex;
  flex-direction: column;
  padding: 21px 13px;
  background: #0b1222;
  color: #fff;
}

.preview__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1px 5px 18px;
}

.preview__brand img {
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 7px;
}

.preview__brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.preview__brand-copy strong {
  color: #fff;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.preview__brand-copy small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 5.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
}

.preview__label {
  margin: 0 6px 9px;
  color: #7d8798;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.preview__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview__nav span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 9px;
  border-radius: 5px;
  color: #c3cad7;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.preview__nav span.is-active {
  background: var(--brand-red);
  color: #fff;
  font-weight: 500;
}

.preview__nav svg {
  width: 11px;
  height: 11px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  opacity: 0.9;
}

.preview__nav span.is-active svg {
  opacity: 1;
}

.preview__logout {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 16px 9px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #98a2b3;
  font-size: 9.5px;
}

.preview__logout svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.preview__main {
  min-width: 0;
  padding: clamp(17px, 1.4vw, 25px);
  background: #ffffff;
}

.preview__head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 16px;
}

.preview__head strong {
  color: var(--navy);
  font-size: clamp(13px, 0.88vw, 15px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.preview__head span {
  color: var(--muted-2);
  font-size: 8.5px;
}

.preview__date {
  margin-left: auto;
  white-space: nowrap;
}

.preview__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 12px;
}

.preview__kpi {
  min-width: 0;
  padding: 15px 14px 14px;
  background: #fff;
  border: 1px solid #e9ecf1;
  border-radius: 8px;
}

.preview__kpi > span {
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  color: #667085;
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview__kpi strong {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: clamp(14.5px, 0.93vw, 18px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview__kpi small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1;
}

.preview__kpi small svg {
  width: 8px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.preview__kpi small.is-up {
  color: #067647;
}

.preview__kpi small.is-down {
  color: #d92d20;
}

.preview__panel {
  padding: 17px 16px 15px;
  background: #fff;
  border: 1px solid #e9ecf1;
  border-radius: 8px;
}

.preview__panel-head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(10.5px, 0.68vw, 12px);
  font-weight: 600;
}

.preview__panel-head span {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 7.5px;
  font-weight: 400;
}

.preview__balance-body {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.1vw, 20px);
}

.preview__donut {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(104px, 7.1vw, 138px);
  height: clamp(104px, 7.1vw, 138px);
  flex: none;
  border-radius: 50%;
  background: conic-gradient(
    #1d4ed8 0 68%,
    #f65c5c 68% 88%,
    #dfe3ea 88% 100%
  );
}

.preview__donut::after {
  content: "";
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: #fff;
}

.preview__donut span {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-size: clamp(10.5px, 0.7vw, 12.5px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}

.preview__donut small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 6.5px;
  font-weight: 400;
  letter-spacing: 0;
}

.preview__legend {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  color: #475467;
  font-size: clamp(8.5px, 0.57vw, 10px);
}

.preview__legend div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.preview__legend i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #1d4ed8;
}

.preview__legend i.is-pending {
  background: #f65c5c;
}

.preview__legend i.is-restricted {
  background: #dfe3ea;
}

.preview__legend b {
  margin-left: auto;
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.preview__recent {
  padding: 13px 15px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e9ecf1;
  border-radius: 8px;
}

.preview__recent-head {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: clamp(9.5px, 0.6vw, 10.5px);
  font-weight: 600;
}

.preview__recent-head span {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 7.5px;
  font-weight: 400;
}

.preview__recent-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid #f2f4f7;
  color: #475467;
  font-size: 9px;
}

.preview__recent-head + .preview__recent-row {
  border-top: 0;
}

.preview__recent-row b {
  margin-left: auto;
  color: var(--navy);
  font-size: 8.5px;
  font-weight: 600;
}

/* ------------------------------------------------------------
   Trust strip
   ------------------------------------------------------------ */

.home-trust {
  flex: none;
  padding: clamp(20px, 2.7vh, 30px) 0 clamp(24px, 3.2vh, 36px);
  background: transparent;
}

.home-trust__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0 0 clamp(16px, 2.2vh, 24px);
  color: #344054;
  font-size: clamp(13px, 0.94vw, 17px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.home-trust__title::before,
.home-trust__title::after {
  content: "";
  width: clamp(50px, 8vw, 150px);
  height: 1px;
  flex: none;
  background: #e4e7ec;
}

.home-trust__title svg {
  width: clamp(20px, 1.4vw, 24px);
  height: clamp(20px, 1.4vw, 24px);
  fill: none;
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.home-trust__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(30px, 4.8vw, 84px);
}

.home-trust__items span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #344054;
  font-size: clamp(12.5px, 0.88vw, 15.5px);
}

.home-trust__items svg {
  width: clamp(18px, 1.25vw, 22px);
  height: clamp(18px, 1.25vw, 22px);
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.home-footer {
  flex: none;
  margin-top: auto;
  background: #fff;
}

.home-footer__wave {
  line-height: 0;
  background: #fff;
}

.home-footer__wave svg {
  display: block;
  width: 100%;
  height: clamp(52px, 5.2vw, 100px);
  /* Overlap the body by 1px so the SVG's anti-aliased bottom edge
     never shows as a light seam above the footer brand. */
  margin-bottom: -1px;
}

.home-footer__body {
  background: #0f1a2c;
}

.home-footer__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 1.7vw, 30px);
  width: 100%;
  max-width: 2000px;
  min-height: clamp(94px, 10.5vh, 114px);
  margin: 0 auto;
  padding: 0 clamp(24px, 3.1vw, 60px);
}

.home-footer .home-brand img {
  width: clamp(46px, 2.95vw, 56px);
  height: clamp(46px, 2.95vw, 56px);
}

.home-footer .brand-name {
  color: #fff;
  font-size: clamp(21px, 1.6vw, 30px);
}

.home-footer .brand-sub {
  color: #98a2b3;
  font-size: clamp(7.5px, 0.52vw, 9.5px);
}

.home-footer__divider {
  width: 1px;
  height: 44px;
  flex: none;
  background: rgba(255, 255, 255, 0.16);
}

.home-footer__tagline {
  margin: 0;
  color: #c3cad7;
  font-size: clamp(14px, 0.88vw, 17px);
}

.home-footer__copyright {
  margin: 0 0 0 auto;
  color: #8b95a8;
  font-size: clamp(12px, 0.78vw, 15px);
}

.home-demo-note {
  max-width: 52ch;
  margin: 16px 0 0;
  padding: 9px 11px;
  border: 1px solid #f1d4d7;
  border-radius: 8px;
  background: #fff7f7;
  color: #7a271a;
  font-size: 11.5px;
  line-height: 1.55;
}

.home-demo-note strong {
  color: #7a271a;
  font-weight: 600;
}

.home-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 16px clamp(24px, 3.1vw, 60px) 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-footer__legal p {
  max-width: 74ch;
  margin: 0;
  color: #8b95a8;
  font-size: 11.5px;
  line-height: 1.55;
}

.home-footer__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-left: auto;
}

.home-footer__legal a {
  color: #c3cad7;
  font-size: 11.5px;
  text-decoration: none;
  white-space: nowrap;
}

.home-footer__legal a:hover {
  color: #ffffff;
}

/* ------------------------------------------------------------
   Focus
   ------------------------------------------------------------ */

.home-btn:focus-visible,
.home-nav a:focus-visible,
.home-nav-toggle:focus-visible,
.home-brand:focus-visible,
.home-footer a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Responsive — tablet
   ------------------------------------------------------------ */

@media (max-width: 1180px) {
  .hero h1 {
    font-size: clamp(52px, 5.6vw, 76px);
  }

  .hero__inner {
    gap: 36px;
  }

  .preview {
    max-width: 590px;
    grid-template-columns: 138px minmax(0, 1fr);
  }

  .preview__side {
    padding: 15px 10px;
  }

  .preview__nav span {
    font-size: 8.8px;
    padding: 6px 8px;
  }

  .preview__kpi {
    padding: 9px 10px;
  }

  .preview__kpi strong {
    font-size: 13.5px;
  }
}

@media (max-width: 1120px) and (min-width: 981px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero__lead {
    max-width: 620px;
  }

  .preview {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 980px) {
  .home-header {
    padding: 0 14px;
  }

  .home-header__inner {
    gap: 16px;
    min-height: 70px;
    margin: 10px auto 6px;
    padding: 0 12px 0 14px;
  }

  .home-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 8px;
    left: 8px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px 14px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 40px -26px rgba(16, 24, 40, 0.38);
  }

  .home-nav.is-open {
    display: flex;
  }

  .home-nav a {
    padding: 13px 0;
    border-bottom: 1px solid #f2f4f7;
    font-size: 15px;
  }

  .home-nav a:last-child {
    border-bottom: 0;
  }

  .home-nav a::after {
    display: none;
  }

  .home-header__actions {
    margin-left: auto;
  }

  .home-nav-toggle {
    display: flex;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero__lead {
    max-width: 600px;
  }

  .preview {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .home-trust {
    padding: 30px 0 36px;
  }
}

/* ------------------------------------------------------------
   Responsive — phone
   ------------------------------------------------------------ */

@media (max-width: 640px) {
  .home-container {
    padding: 0 20px;
  }

  .home-header__inner {
    min-height: 66px;
  }

  .home-brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .home-brand .brand-name {
    font-size: 17px;
  }

  .home-brand .brand-sub {
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .home-header__cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .home-header__cta svg {
    display: none;
  }

  .home-nav-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 42px 0 44px;
  }

  .hero::before {
    top: 42%;
    right: -34%;
    width: 540px;
    height: 540px;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 56px);
    letter-spacing: -0.045em;
  }

  .hero__lead {
    font-size: 15.5px;
    line-height: 1.6;
  }

  .hero__actions {
    gap: 10px;
  }

  .hero__actions .home-btn {
    flex: 1 1 auto;
    min-height: 46px;
    padding: 0 16px;
    font-size: 13.5px;
  }

  .home-trust__title {
    gap: 10px;
    font-size: 13px;
  }

  .home-trust__title::before,
  .home-trust__title::after {
    width: 26px;
  }

  .home-trust__title svg {
    width: 18px;
    height: 18px;
  }

  .home-trust__items {
    gap: 10px 22px;
  }

  .home-trust__items span {
    font-size: 11.5px;
  }

  .home-trust__items svg {
    width: 17px;
    height: 17px;
  }

  .home-footer__inner {
    flex-wrap: wrap;
    gap: 12px 16px;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .home-footer__divider {
    display: none;
  }

  .home-footer__tagline {
    width: 100%;
    font-size: 13px;
  }

  .home-footer__copyright {
    width: 100%;
    margin-left: 0;
    font-size: 11.5px;
  }

  .home-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 24px;
  }

  .home-footer__legal nav {
    margin-left: 0;
  }

  /* Compact preview: drop the sidebar so the data stays readable */
  .preview {
    display: block;
    max-width: 100%;
  }

  .preview__side {
    display: none;
  }

  .preview__main {
    padding: 14px;
  }

  .preview__head strong {
    font-size: 13px;
  }

  .preview__kpis {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .preview__kpi {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 11px;
  }

  .preview__kpi > span {
    margin: 0;
    font-size: 8px;
  }

  .preview__kpi strong {
    margin-left: auto;
    font-size: 15px;
  }

  .preview__kpi small {
    margin: 0 0 0 6px;
    font-size: 7.5px;
  }

  .preview__panel {
    padding: 12px;
  }

  .preview__donut {
    width: 96px;
    height: 96px;
  }

  .preview__donut::after {
    inset: 18px;
  }

  .preview__legend {
    font-size: 9px;
    gap: 8px;
  }

  .preview__recent {
    padding: 9px 12px;
  }
}

@media (max-width: 400px) {
  .preview__balance-body {
    gap: 12px;
  }

  .preview__donut {
    width: 88px;
    height: 88px;
  }

  .preview__donut::after {
    inset: 16px;
  }

  .preview__legend {
    font-size: 8.5px;
    gap: 7px;
  }
}

/* ------------------------------------------------------------
   Short desktop screens — keep the page on one screen
   ------------------------------------------------------------ */

@media (min-width: 981px) and (max-height: 940px) {
  .hero {
    padding: 28px 0 26px;
  }

  .hero h1 {
    font-size: clamp(50px, 5.35vw, 84px);
  }

  .hero__lead {
    margin-bottom: 24px;
  }

  .preview {
    max-width: 640px;
  }

  .preview__main {
    padding: 14px 16px;
  }

  .preview__donut {
    width: 100px;
    height: 100px;
  }

  .preview__donut::after {
    inset: 19px;
  }

  .home-trust {
    padding: 18px 0 22px;
  }

  .home-trust__title {
    margin-bottom: 13px;
  }

  .home-footer__inner {
    min-height: 92px;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero {
    padding: 22px 0 20px;
  }

  .hero h1 {
    font-size: clamp(46px, 5vw, 72px);
    margin-bottom: 18px;
  }

  .hero__lead {
    margin-bottom: 20px;
    font-size: 15.5px;
  }

  .preview {
    max-width: 580px;
  }

  .preview__recent {
    display: none;
  }

  .preview__donut {
    width: 92px;
    height: 92px;
  }

  .preview__donut::after {
    inset: 18px;
  }

  .home-trust {
    padding: 14px 0 18px;
  }

  .home-trust__title {
    margin-bottom: 10px;
  }

  .home-footer__wave svg {
    height: 44px;
  }

  .home-footer__inner {
    min-height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Minimal entrance motion ---------- */
.hero__copy {
  animation: home-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__visual {
  animation: home-rise 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Logo links should never show hover/click underlines or tap highlights. */
.home-brand,
.home-brand:hover,
.home-brand:focus,
.home-brand:active {
  border-bottom: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.home-brand:focus:not(:focus-visible) {
  outline: none;
}
