:root {
      --ink: #0f172a;
      --ink-2: #1e293b;
      --paper: #f6f8fb;
      --white: #ffffff;
      --lime: #2563eb;
      --lime-dark: #1d4ed8;
      --muted: #94a3b8;
      --line: rgba(255, 255, 255, .14);
      --dark-line: rgba(15, 23, 42, .12);
      --red: #ef4444;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 80px; /* offset for sticky navbar */
      overflow-x: hidden;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: Poppins, Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button {
      font: inherit;
    }

    .shell {
      width: min(1180px, calc(100% - 48px));
      margin: auto;
    }

    .nav {
      height: 100px;
      padding-top: 16px;
      position: fixed; /* Changed from absolute so it can be sticky */
      top: 0;
      left: 0;
      right: 0;
      z-index: 50;
      color: var(--white);
      display: flex;
      align-items: center;
      background: rgba(15, 23, 42, 0);
      border-bottom: 1px solid rgba(255, 255, 255, 0);
      transition: height 0.3s ease, padding 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .nav.nav-sticky {
      height: 70px;
      padding-top: 0;
      background: rgba(15, 23, 42, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 17px;
      font-weight: 700;
      letter-spacing: -.4px;
    }

    .brand-mark {
      width: 30px;
      height: 30px;
      border: 1px solid rgba(147, 197, 253, .72);
      border-radius: 9px;
      display: grid;
      place-items: center;
      color: #bfdbfe;
      background: rgba(37, 99, 235, .16);
    }

    .links {
      display: flex;
      list-style: none;
      gap: 28px;
      margin: 0;
      padding: 0;
      color: #d6e1d9;
      font-size: 13px;
    }

    .links a:hover {
      color: var(--lime);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 19px;
      font-size: 13px;
      font-weight: 600;
    }

    .nav-actions .login {
      color: #d6e1d9;
    }

    .nav-actions .login:hover {
      color: white;
    }

    .nav-cta,
    .primary {
      background: var(--lime);
      color: #fff;
      font-weight: 700;
      border-radius: 8px;
      padding: 11px 16px;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      border: 0;
      transition: transform .2s, background .2s;
      box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
    }

    .nav-cta:hover,
    .primary:hover {
      transform: translateY(-2px);
      background: #1d4ed8;
    }

    .menu {
      display: none;
      padding: 8px;
      color: #fff;
      background: none;
      border: 0;
      cursor: pointer;
    }

    .mobile-nav {
      display: none;
    }

    .hero {
      min-height: 760px;
      padding: 148px 0 80px;
      color: var(--white);
      background: var(--ink);
      overflow: hidden;
      position: relative;
    }

    .hero:before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: .14;
      pointer-events: none;
      background-image: linear-gradient(rgba(96, 165, 250, .7) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, .7) 1px, transparent 1px);
      background-size: 64px 64px;
      mask-image: linear-gradient(to bottom, black, transparent 79%);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.02fr .98fr;
      gap: 70px;
      align-items: center;
      position: relative;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 11px;
      border: 1px solid rgba(96, 165, 250, .45);
      color: #93c5fd;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .7px;
      text-transform: uppercase;
    }

    .hero-fampay-mark {
      width: 17px;
      height: 17px;
      fill: #ffad00;
    }

    .pulse {
      width: 7px;
      height: 7px;
      background: #60a5fa;
      border-radius: 50%;
      box-shadow: 0 0 0 4px rgba(96, 165, 250, .12);
    }

    h1 {
      font-size: clamp(46px, 5.7vw, 76px);
      line-height: .99;
      letter-spacing: -3.6px;
      margin: 22px 0;
      max-width: 650px;
    }

    h1 em {
      color: var(--lime);
      font-style: normal;
    }

    .hero-copy {
      max-width: 515px;
      color: #cbd5e1;
      font-size: 17px;
      line-height: 1.7;
      margin: 0 0 31px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 13px;
      align-items: center;
    }

    .secondary {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #e2e8f0;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
    }

    .secondary:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.3);
      color: #fff;
    }

    .proof {
      display: flex;
      align-items: center;
      gap: 18px;
      margin-top: 38px;
      color: #9cad9f;
      font-size: 12px;
      flex-wrap: wrap;
    }

    .proof span {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .proof b {
      color: var(--lime);
      font-size: 15px;
    }

    .product {
      background: #eff6ff;
      border: 1px solid #93c5fd;
      color: var(--ink);
      box-shadow: 18px 19px 0 #60a5fa;
      position: relative;
    }

    .product-head {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 15px 18px;
      border-bottom: 1px solid var(--dark-line);
      font-size: 12px;
      font-weight: 700;
      position: relative;
    }

    .product-head span {
      color: #557060;
      font-weight: 500;
    }

    .product-head span:last-child {
      position: absolute;
      right: 18px;
    }

    .dots {
      display: flex;
      gap: 5px;
      position: absolute;
      left: 18px;
    }

    .dots i {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #a7b6ac;
    }

    .dots i:first-child {
      background: var(--red);
    }

    .product-main {
      padding: 22px;
    }

    .gateway-brand {
      display: flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 19px;
    }

    .gateway-mark {
      width: 27px;
      height: 27px;
      display: grid;
      place-items: center;
      border-radius: 8px;
      background: #ffad00;
      color: #10151d;
    }

    .gateway-mark svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    .gateway-brand b {
      display: block;
      font-size: 14px;
      line-height: 1;
      letter-spacing: -.3px;
    }

    .gateway-brand small {
      display: block;
      margin-top: 3px;
      color: #64748b;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: .35px;
      text-transform: uppercase;
    }

    .product-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .8px;
      text-transform: uppercase;
      color: #687c6d;
    }

    .money {
      margin: 5px 0 22px;
      font-size: 36px;
      letter-spacing: -1.5px;
      font-weight: 700;
    }

    .money small {
      color: #617466;
      font-size: 14px;
      letter-spacing: 0;
      font-weight: 500;
    }

    .pay-card {
      background: var(--white);
      border: 1px solid #d6ded7;
      padding: 16px;
    }

    .pay-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #e5eae5;
      font-size: 12px;
    }

    .pay-row:last-child {
      border: 0;
    }

    .status {
      display: inline-flex;
      gap: 6px;
      align-items: center;
      color: #267247;
      font-weight: 700;
      background: #e6f6e6;
      padding: 5px 8px;
      border-radius: 999px;
      font-size: 10px;
    }

    .status i {
      height: 6px;
      width: 6px;
      background: #36aa60;
      border-radius: 50%;
    }

    .flow {
      margin-top: 18px;
      display: grid;
      grid-template-columns: 1fr 25px 1fr 25px 1fr;
      align-items: center;
      font-size: 10px;
      text-align: center;
    }

    .flow div {
      background: #dbe5dc;
      border-radius: 6px;
      padding: 9px 3px;
      color: #3e5445;
      font-weight: 700;
    }

    .flow div.active {
      background: var(--lime);
      color: #233410;
    }

    .flow span {
      color: #698170;
    }

    .hero-note {
      position: absolute;
      right: -21px;
      bottom: -24px;
      background: var(--lime);
      color: var(--ink);
      padding: 11px 14px;
      font-size: 11px;
      font-weight: 700;
      transform: rotate(-5deg);
    }

    .ticker {
      background: var(--lime);
      overflow: hidden;
      border-bottom: 1px solid #9fc92f;
    }

    .ticker-track {
      display: flex;
      gap: 34px;
      width: max-content;
      padding: 15px 0;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .6px;
    }

    .ticker-track span:after {
      content: "✦";
      margin-left: 34px;
    }

    .section {
      padding: 112px 0;
    }

    .section-dark {
      background: var(--ink);
      color: var(--white);
    }

    .kicker {
      color: #6a7d70;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .section-dark .kicker {
      color: var(--lime);
    }

    .section h2 {
      max-width: 670px;
      margin: 13px 0 0;
      letter-spacing: -2.2px;
      font-size: clamp(35px, 4vw, 54px);
      line-height: 1.08;
    }

    .section-intro {
      max-width: 500px;
      font-size: 15px;
      color: #67786d;
      line-height: 1.75;
      margin: 20px 0 0;
    }

    .section-dark .section-intro {
      color: #aab8af;
    }

    .steps {
      margin-top: 60px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-top: 1px solid var(--dark-line);
    }

    .step {
      padding: 28px 30px 0 0;
      min-height: 230px;
      border-right: 1px solid var(--dark-line);
      margin-right: 25px;
    }

    .step:last-child {
      border: 0;
    }

    .step-no {
      font-size: 13px;
      color: #7e9283;
      font-weight: 700;
    }

    .step h3 {
      font-size: 21px;
      letter-spacing: -.7px;
      margin: 43px 0 10px;
    }

    .step p {
      font-size: 14px;
      line-height: 1.7;
      color: #617367;
      margin: 0;
      max-width: 290px;
    }

    .flow-intro {
      display: grid;
      grid-template-columns: 1fr 390px;
      gap: 55px;
      align-items: end;
    }

    .api-flow-card {
      background: #fff;
      border: 1px solid #dbeafe;
      padding: 18px;
      box-shadow: 8px 8px 0 #dbeafe;
    }

    .api-flow-card>b {
      display: block;
      color: #64748b;
      font: 11px ui-monospace, monospace;
      margin-bottom: 15px;
    }

    .api-flow-line {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .api-flow-node {
      flex: 1;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      padding: 11px 8px;
      text-align: center;
      font-size: 11px;
      font-weight: 700;
      color: #1d4ed8;
    }

    .api-flow-node small {
      display: block;
      color: #64748b;
      font-size: 9px;
      font-weight: 500;
      margin-top: 3px;
    }

    .api-flow-arrow {
      color: #2563eb;
      font-weight: 700;
    }

    .api-flow-result {
      margin-top: 12px;
      padding: 10px;
      background: #0f172a;
      color: #bfdbfe;
      font: 10px/1.5 ui-monospace, monospace;
    }

    .integration {
      display: grid;
      grid-template-columns: .78fr 1.22fr;
      gap: 75px;
      align-items: center;
    }

    .code {
      background: #0f251a;
      border: 1px solid rgba(255, 255, 255, .12);
      margin-top: 38px;
    }

    .code-top {
      border-bottom: 1px solid rgba(255, 255, 255, .1);
      padding: 13px 16px;
      display: flex;
      justify-content: space-between;
      color: #a7b7ad;
      font: 12px ui-monospace, monospace;
    }

    .code pre {
      padding: 22px;
      margin: 0;
      color: #e4eee6;
      overflow: auto;
      font: 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace;
    }

    .code .green {
      color: var(--lime)
    }

    .code .dim {
      color: #819589
    }

    .code .orange {
      color: #ffbd75
    }

    .feature-list {
      border-top: 1px solid var(--line);
      margin-top: 40px;
    }

    .feature {
      display: grid;
      grid-template-columns: 45px 1fr auto;
      align-items: center;
      gap: 15px;
      padding: 18px 0;
      border-bottom: 1px solid var(--line);
    }

    .feature-num {
      font: 12px ui-monospace, monospace;
      color: var(--lime);
    }

    .feature h3 {
      margin: 0;
      font-size: 16px;
      letter-spacing: -.3px;
    }

    .feature p {
      margin: 4px 0 0;
      color: #a9b8ae;
      font-size: 13px;
    }

    .arrow {
      color: var(--lime);
      font-size: 21px;
    }

    .use-cases {
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      gap: 30px;
      margin-top: 56px;
    }

    .case-big {
      background: #e1ebdc;
      padding: 38px;
      min-height: 320px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .case-big .mini {
      background: var(--ink);
      color: var(--lime);
      padding: 10px;
      width: max-content;
      font: 12px ui-monospace, monospace;
    }

    .case-big h3,
    .case-small h3 {
      font-size: 27px;
      line-height: 1.12;
      letter-spacing: -1px;
      margin: 0;
      max-width: 370px;
    }

    .case-small {
      padding: 32px;
      background: var(--ink-2);
      color: var(--white);
      min-height: 145px;
      display: flex;
      justify-content: space-between;
      flex-direction: column;
    }

    .case-small+.case-small {
      margin-top: 30px;
      background: #c8fa49;
      color: var(--ink);
    }

    .case-small h3 {
      font-size: 20px;
    }

    .case-small p {
      margin: 8px 0 0;
      max-width: 390px;
      color: #afc0b4;
      font-size: 13px;
      line-height: 1.65;
    }

    .case-small+.case-small p {
      color: #405027;
    }

    .closing {
      padding: 100px 0;
      background: var(--lime);
    }

    .closing-grid {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
    }

    .closing h2 {
      margin: 0;
      max-width: 670px;
      font-size: clamp(38px, 5vw, 65px);
      line-height: 1;
      letter-spacing: -3px;
    }

    .closing p {
      max-width: 405px;
      line-height: 1.7;
      font-size: 15px;
      margin: 20px 0 0;
      color: #33411f;
    }

    .closing .primary {
      background: var(--ink);
      color: var(--white);
      white-space: nowrap;
    }

    .closing .primary:hover {
      background: #1e382b;
    }

    footer {
      background: var(--ink);
      color: #b4c3b9;
      padding: 55px 0 24px;
    }

    .foot-grid {
      display: grid;
      grid-template-columns: 1.7fr repeat(3, 1fr);
      gap: 30px;
      padding-bottom: 45px;
      border-bottom: 1px solid var(--line);
    }

    .foot-brand p {
      font-size: 13px;
      max-width: 270px;
      line-height: 1.7;
      color: #8fa096;
    }

    .foot-col b {
      color: var(--white);
      font-size: 12px;
      display: block;
      margin-bottom: 15px;
    }

    .foot-col a {
      display: block;
      font-size: 12px;
      margin: 10px 0;
      color: #9aaba0;
    }

    .foot-col a:hover {
      color: var(--lime);
    }

    .legal {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      padding-top: 20px;
      font-size: 11px;
      color: #71847a;
    }

    @media(max-width:850px) {
      .shell {
        width: min(100% - 36px, 650px)
      }

      .links,
      .nav-actions {
        display: none
      }

      .menu {
        display: block
      }

      .mobile-nav.open {
        display: flex;
        position: fixed;
        z-index: 4;
        top: 64px;
        left: 0;
        right: 0;
        background: #10231b;
        color: white;
        padding: 20px calc((100% - min(100% - 36px, 650px))/2);
        flex-direction: column;
        gap: 5px;
        border-bottom: 1px solid var(--line)
      }

      .mobile-nav a {
        padding: 11px 0;
        font-size: 14px;
        border-bottom: 1px solid var(--line)
      }

      .hero {
        padding-top: 120px;
        min-height: auto
      }

      .hero-grid,
      .integration,
      .use-cases,
      .flow-intro,
      .checkout-showcase {
        grid-template-columns: 1fr !important;
        gap: 48px
      }

      .api-flow-card {
        max-width: 500px
      }

      .hero-visual {
        max-width: 540px
      }

      .product {
        box-shadow: 12px 12px 0 rgba(200, 250, 73, .8)
      }

      .steps {
        grid-template-columns: 1fr
      }

      .step {
        border-right: 0;
        border-bottom: 1px solid var(--dark-line);
        margin: 0;
        padding: 27px 0;
        min-height: 0
      }

      .step h3 {
        margin-top: 20px
      }

      .closing-grid {
        align-items: start;
        flex-direction: column
      }

      .foot-grid {
        grid-template-columns: 1fr 1fr
      }

      .foot-brand {
        grid-column: 1/-1
      }
    }

    @media(max-width:500px) {
      .shell {
        width: calc(100% - 32px)
      }

      .nav {
        height: 64px
      }

      .hero {
        padding: 106px 0 63px
      }

      .hero-note {
        right: -6px;
        bottom: -18px;
        transform: rotate(-3deg);
        z-index: 5;
      }

      .product-main {
        padding: 16px
      }

      .money {
        font-size: 30px
      }

      .proof {
        gap: 10px 15px
      }

      .section {
        padding: 75px 0
      }

      .section h2 {
        letter-spacing: -1.5px
      }

      .use-cases {
        margin-top: 36px
      }

      .case-big {
        padding: 25px;
        min-height: 260px
      }

      .case-small {
        padding: 25px
      }

      .foot-grid {
        grid-template-columns: 1fr
      }

      .legal {
        flex-direction: column
      }

      .ticker-track {
        padding: 12px 0
      }

      .flow {
        grid-template-columns: 1fr 16px 1fr 16px 1fr
      }
    }

    /* Lock the marketing-nav container so dashboard CSS cannot make it full width. */
    .nav>.shell {
      width: calc(100% - 48px) !important;
      max-width: 1180px !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    /* Landing-page palette aligned with the shared blue / white app UI. */
    .product-head span {
      color: #64748b;
    }

    .product-label,
    .money small {
      color: #64748b;
    }

    .dots i {
      background: #94a3b8;
    }

    .pay-card {
      border-color: #dbeafe;
    }

    .pay-row {
      border-color: #e2e8f0;
    }

    .status {
      color: #1d4ed8;
      background: #dbeafe;
    }

    .status i {
      background: #2563eb;
    }

    .flow div {
      background: #dbeafe;
      color: #475569;
    }

    .flow div.active {
      background: #2563eb;
      color: #fff;
    }

    .flow span {
      color: #64748b;
    }

    .hero-note {
      background: #a3e635;
      color: #0f172a;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .ticker {
      background: #dbeafe;
      border-color: #bfdbfe;
      color: #1d4ed8;
    }

    .kicker {
      color: #2563eb;
    }

    .section-dark .kicker {
      color: #60a5fa;
    }

    .section-intro,
    .step p {
      color: #64748b;
    }

    .step-no {
      color: #2563eb;
    }

    .code {
      background: #0f172a;
    }

    .code-top {
      color: #94a3b8;
    }

    .code pre {
      color: #e2e8f0;
    }

    .code .dim {
      color: #94a3b8;
    }

    .case-big {
      background: #dbeafe;
    }

    .case-big .mini {
      color: #bfdbfe;
    }

    .case-small+.case-small {
      background: #2563eb;
      color: #fff;
    }

    .case-small+.case-small p {
      color: #dbeafe;
    }

    .closing {
      background: transparent;
      padding: 80px 0 120px;
    }

    .closing-grid {
      background: #fff;
      border: 1px solid #c7d7ff;
      border-radius: 32px;
      padding: 60px 70px;
      box-shadow: 16px 16px 0 #9cc0ff;
    }

    .closing h2 {
      color: #0f172a;
      font-size: clamp(34px, 4vw, 52px);
      letter-spacing: -2px;
    }

    .closing p {
      color: #64748b;
      font-size: 16px;
      margin-top: 16px;
      max-width: 480px;
    }

    .closing .primary {
      background: #2563eb;
      color: #fff;
      border-radius: 12px;
      padding: 16px 32px;
      font-size: 16px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .closing .primary:hover {
      background: #1d4ed8;
    }

    .foot-brand p {
      color: #94a3b8;
    }

    .legal {
      color: #64748b;
    }

    .checkout-preview {
      margin-top: 25px;
      background: #fff;
      border-radius: 18px;
      width: min(100%, 280px);
      min-height: 255px;
      padding: 27px 18px;
      text-align: center;
      align-self: end;
      box-shadow: 0 12px 28px rgba(37, 99, 235, .16);
    }

    .checkout-check {
      width: 48px;
      height: 48px;
      margin: 0 auto 13px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: #10b981;
      color: #fff;
      font-size: 25px;
    }

    .checkout-preview span {
      display: inline-block;
      border: 1px solid #bbf7d0;
      border-radius: 99px;
      padding: 4px 8px;
      color: #16a34a;
      background: #f0fdf4;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .55px;
    }

    .checkout-preview b {
      display: block;
      margin: 15px 0 8px;
      font-size: 22px;
      letter-spacing: -.8px;
    }

    .checkout-preview p {
      margin: 0;
      color: #64748b;
      font-size: 11px;
      line-height: 1.5;
    }

    .checkout-preview small {
      display: block;
      margin-top: 22px;
      color: #94a3b8;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .7px;
    }

    .checkout-preview strong {
      display: block;
      margin-top: 5px;
      font-size: 27px;
      letter-spacing: -1px;
    }

    .checkout-showcase {
      margin-top: 42px;
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(300px, 420px);
      gap: 80px;
      align-items: center;
    }

    .checkout-side {
      display: grid;
      gap: 16px;
      align-content: center;
    }

    .checkout-card {
      background: #fff;
      color: #0f172a;
      border: 1px solid #c7d7ff;
      border-radius: 24px;
      padding: 28px;
      box-shadow: 8px 8px 0 #9cc0ff;
    }

    .checkout-card h3 {
      margin: 0;
      font-size: 24px;
      letter-spacing: -.9px;
      line-height: 1.15;
    }

    .checkout-card p {
      margin: 10px 0 0;
      color: #64748b;
      font-size: 14px;
      line-height: 1.7;
    }

    .checkout-metrics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .checkout-metric {
      background: #fff;
      color: #0f172a;
      border: 1px solid #c7d7ff;
      border-radius: 18px;
      padding: 16px;
      box-shadow: 6px 6px 0 #9cc0ff;
    }

    .checkout-metric b {
      display: block;
      font-size: 13px;
      color: #64748b;
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: .8px;
    }

    .checkout-metric span {
      display: block;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -.7px;
      color: #111b33;
    }

    .checkout-panel {
      background: #fff;
      border: 1px solid #c7d7ff;
      border-radius: 32px;
      padding: 16px;
      box-shadow: 12px 12px 0 #9cc0ff;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .checkout-panel img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 20px;
      border: 1px solid #e2e8f0;
    }

    .footer-end {
      background: var(--ink);
      color: #b4c3b9;
      padding: 22px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-end-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .footer-end .brand {
      display: none;
    }

    .footer-end p {
      margin: 0;
      color: #cbd5e1;
      font-size: 12px;
    }

    .footer-end a {
      color: #60a5fa;
      font-size: 12px;
      font-weight: 700;
    }

    .fampay-wordmark {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #e2e8f0;
      font-size: 14px;
      font-weight: 800;
    }

    .fampay-wordmark svg {
      width: 21px;
      height: 21px;
      fill: #ffad00;
    }

    .footer-end .fampay-wordmark {
      padding-left: 0;
      border-left: 0;
    }

    @media(max-width:850px) {
      .nav>.shell {
        width: calc(100% - 36px) !important;
      }

      .mobile-nav.open {
        background: #0f172a;
      }

      .product {
        box-shadow: 12px 12px 0 #60a5fa;
      }
    }

    @media(max-width:600px) {
      .footer-end-inner {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    @media(max-width:500px) {
      .nav>.shell {
        width: calc(100% - 32px) !important;
      }
    }

    /* Prevent squeezed text and overlapping visuals on laptops/tablets. */
    h1 {
      line-height: 1.06;
    }

    .section h2 {
      line-height: 1.16;
    }

    .case-big h3,
    .case-small h3 {
      line-height: 1.2;
    }

    .hero-copy,
    .section-intro,
    .step p,
    .feature p {
      overflow-wrap: break-word;
    }

    @media(max-width:1080px) {
      .hero-grid {
        grid-template-columns: 1fr;
        gap: 52px;
      }

      .hero-copy {
        max-width: 650px;
      }

      .hero-visual {
        width: min(100%, 620px);
      }

      .product {
        margin-left: 0;
      }

      .flow-intro {
        grid-template-columns: 1fr;
        gap: 38px;
      }

      .api-flow-card {
        max-width: 520px;
      }

      .use-cases {
        grid-template-columns: 1fr;
      }

      .case-big {
        min-height: 0;
      }

      .case-big h3 {
        max-width: 460px;
      }

      .checkout-showcase {
        grid-template-columns: 1fr;
      }

      .checkout-side {
        order: 1;
      }

      .checkout-panel {
        max-width: 560px;
        justify-self: start;
      }
    }

    @media(max-width:700px) {
      .hero {
        padding-top: 112px;
      }

      .hero h1 {
        font-size: clamp(42px, 12vw, 57px);
        letter-spacing: -2.2px;
      }

      .hero-copy {
        font-size: 16px;
        line-height: 1.65;
      }

      .section {
        padding: 74px 0;
      }

      .section h2 {
        font-size: clamp(32px, 9vw, 43px);
        letter-spacing: -1.5px;
      }

      .steps {
        margin-top: 42px;
      }

      .case-big {
        padding: 27px;
      }

      .case-big h3 {
        font-size: 25px;
      }

      .api-flow-line {
        gap: 5px;
      }

      .api-flow-node {
        padding: 10px 4px;
        font-size: 10px;
      }

      .api-flow-node small {
        font-size: 8px;
      }

      .checkout-preview {
        margin-left: auto;
        margin-right: auto;
      }

      .checkout-showcase {
        margin-top: 32px;
      }

      .checkout-card {
        padding: 18px;
      }

      .checkout-card h3 {
        font-size: 20px;
      }

      .checkout-metrics {
        grid-template-columns: 1fr;
      }

      .checkout-panel {
        padding: 14px;
        border-radius: 24px;
        box-shadow: 10px 10px 0 #9cc0ff;
      }
    }

    @media(max-width:850px) {
      .mobile-nav.open {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: min(86vw, 340px);
        padding: 84px 22px 24px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        box-shadow: 16px 0 40px rgba(15, 23, 42, .32);
        overflow-y: auto;
      }

      .mobile-nav a {
        padding: 13px 0;
      }
    }

    .mobile-menu-actions {
      display: none;
    }

    .mobile-overlay {
      display: none;
    }

    @media(max-width:850px) {
      .mobile-nav {
        display: flex;
        position: fixed;
        z-index: 4;
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: min(86vw, 340px);
        padding: 84px 22px 24px;
        flex-direction: column;
        gap: 5px;
        background: #0f172a;
        color: #fff;
        border-right: 1px solid var(--line);
        box-shadow: 16px 0 40px rgba(15, 23, 42, .32);
        overflow-y: auto;
        transform: translateX(-105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .28s ease, visibility 0s linear .28s;
      }

      .mobile-nav.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform .28s ease;
      }

      .mobile-menu-actions {
        display: grid;
        gap: 12px;
        margin-top: auto;
        padding-top: 24px;
      }

      .mobile-nav .mobile-menu-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        border: 1px solid transparent;
      }

      .mobile-nav .mobile-register {
        color: #e2e8f0;
        background: transparent;
        border-color: #334155 !important;
      }

      .mobile-nav .mobile-login {
        color: #fff;
        background: #2563eb;
        border-color: #2563eb !important;
        box-shadow: 0 5px 16px rgba(37, 99, 235, .26);
      }

      .mobile-overlay {
        display: block;
        position: fixed;
        z-index: 3;
        inset: 0;
        opacity: 0;
        pointer-events: none;
        background: rgba(15, 23, 42, .52);
        backdrop-filter: blur(2px);
        transition: opacity .28s ease;
      }

      .mobile-overlay.open {
        opacity: 1;
        pointer-events: auto;
      }
    }

    .flow-intro {
      grid-template-columns: 1fr minmax(480px, 560px);
    }

    .api-flow-card {
      width: 100%;
      padding: 24px;
      box-shadow: 10px 10px 0 #dbeafe;
    }

    .api-flow-card>b {
      font-size: 12px;
      margin-bottom: 19px;
    }

    .api-flow-line {
      gap: 12px;
    }

    .api-flow-node {
      padding: 14px 9px;
      font-size: 12px;
    }

    .api-flow-node small {
      font-size: 10px;
      margin-top: 5px;
    }

    .api-flow-arrow {
      font-size: 18px;
    }

    .api-flow-result {
      margin-top: 16px;
      padding: 13px;
      font-size: 11px;
    }

    .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      background: #2563eb;
      color: #fff;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
      opacity: 0;
      visibility: hidden;
      transition: all .3s ease;
      z-index: 99;
    }

    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
    }

    .back-to-top:hover {
      background: #1d4ed8;
      transform: translateY(-4px);
    }

    @media(max-width:700px) {
      .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
      }
    }

    @media(max-width:1080px) {
      .flow-intro {
        grid-template-columns: 1fr;
      }

      .api-flow-card {
        max-width: 560px;
      }
    }

    @media(max-width:700px) {
      .api-flow-card {
        max-width: none;
        padding: 18px;
      }

      .api-flow-line {
        gap: 6px;
      }

      .api-flow-node {
        padding: 12px 5px;
        font-size: 10px;
      }

      .api-flow-node small {
        font-size: 8px;
      }

      .api-flow-result {
        font-size: 10px;
      }
    }

    @media(max-width:700px) {
      .case-big {
        padding: 28px;
        gap: 0;
      }

      .case-big h3 {
        margin: 18px 0 28px;
        font-size: 23px;
        line-height: 1.22;
        letter-spacing: -.45px;
      }

      .checkout-preview {
        margin-top: 0;
        min-height: 278px;
        padding: 31px 18px;
      }

      .checkout-preview b {
        margin-top: 18px;
      }

      .checkout-preview small {
        margin-top: 26px;
      }
    }

    /* =============================================
       SCROLL ANIMATIONS (IntersectionObserver)
    ============================================= */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(32px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    @keyframes slideInLeft {
      from { opacity: 0; transform: translateX(-40px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes slideInRight {
      from { opacity: 0; transform: translateX(40px); }
      to   { opacity: 1; transform: translateX(0); }
    }

    .anim-fade-up,
    .anim-fade-in,
    .anim-slide-left,
    .anim-slide-right {
      opacity: 0;
      will-change: opacity, transform;
    }
    .anim-fade-up.visible     { animation: fadeUp .65s cubic-bezier(.22,1,.36,1) forwards; }
    .anim-fade-in.visible     { animation: fadeIn .7s ease forwards; }
    .anim-slide-left.visible  { animation: slideInLeft .65s cubic-bezier(.22,1,.36,1) forwards; }
    .anim-slide-right.visible { animation: slideInRight .65s cubic-bezier(.22,1,.36,1) forwards; }

    /* Staggered children */
    .anim-stagger > *       { opacity: 0; will-change: opacity, transform; }
    .anim-stagger.visible > *:nth-child(1) { animation: fadeUp .6s .05s cubic-bezier(.22,1,.36,1) forwards; }
    .anim-stagger.visible > *:nth-child(2) { animation: fadeUp .6s .15s cubic-bezier(.22,1,.36,1) forwards; }
    .anim-stagger.visible > *:nth-child(3) { animation: fadeUp .6s .25s cubic-bezier(.22,1,.36,1) forwards; }
    .anim-stagger.visible > *:nth-child(4) { animation: fadeUp .6s .35s cubic-bezier(.22,1,.36,1) forwards; }
    .anim-stagger.visible > *:nth-child(5) { animation: fadeUp .6s .45s cubic-bezier(.22,1,.36,1) forwards; }
    .anim-stagger.visible > *:nth-child(6) { animation: fadeUp .6s .55s cubic-bezier(.22,1,.36,1) forwards; }

    /* Respect users who prefer no motion */
    @media (prefers-reduced-motion: reduce) {
      .anim-fade-up, .anim-fade-in, .anim-slide-left, .anim-slide-right,
      .anim-stagger > * { opacity: 1 !important; animation: none !important; }
    }

    /* =============================================
       HERO ENTRANCE ANIMATIONS (plays on load)
    ============================================= */
    @keyframes heroSlideUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes heroSlideRight {
      from { opacity: 0; transform: translateX(60px) scale(0.97); }
      to   { opacity: 1; transform: translateX(0) scale(1); }
    }
    @keyframes heroFloat {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      33%       { transform: translateY(-8px) rotate(0.4deg); }
      66%       { transform: translateY(-4px) rotate(-0.3deg); }
    }
    @keyframes heroNoteIn {
      from { opacity: 0; transform: rotate(-5deg) scale(0.7) translateY(12px); }
      to   { opacity: 1; transform: rotate(-5deg) scale(1) translateY(0); }
    }
    @keyframes statusPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
      50%       { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
    }
    @keyframes glowDot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50%       { opacity: 0.5; transform: scale(0.6); }
    }

    /* Left side — staggered text reveal */
    .hero-eyebrow-wrap { opacity: 0; animation: heroSlideUp .6s .1s cubic-bezier(.22,1,.36,1) forwards; }
    .hero-h1-wrap      { opacity: 0; animation: heroSlideUp .7s .22s cubic-bezier(.22,1,.36,1) forwards; }
    .hero-copy-wrap    { opacity: 0; animation: heroSlideUp .65s .36s cubic-bezier(.22,1,.36,1) forwards; }
    .hero-actions-wrap { opacity: 0; animation: heroSlideUp .65s .48s cubic-bezier(.22,1,.36,1) forwards; }
    .hero-proof-wrap   { opacity: 0; animation: heroSlideUp .6s .62s cubic-bezier(.22,1,.36,1) forwards; }

    /* Right side — card slides in then floats */
    .hero-card-wrap {
      opacity: 0;
      animation:
        heroSlideRight .8s .3s cubic-bezier(.22,1,.36,1) forwards,
        heroFloat 6s 1.2s ease-in-out infinite;
    }

    /* Hero note pops in after card */
    .hero-note {
      opacity: 0;
      animation: heroNoteIn .5s .95s cubic-bezier(.34,1.56,.64,1) forwards;
    }

    /* Status badge keeps pulsing */
    .status {
      animation: statusPulse 2.2s 1.4s ease-in-out infinite;
    }

    /* Live indicator dot blinks */
    .status i {
      animation: glowDot 1.5s 1.4s ease-in-out infinite;
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-eyebrow-wrap, .hero-h1-wrap, .hero-copy-wrap,
      .hero-actions-wrap, .hero-proof-wrap, .hero-card-wrap,
      .hero-note { opacity: 1 !important; animation: none !important; }
    }
