      /* ============================================================
         diapr.ai: Founding Partner page. Self-contained, on-brand.
         Tokens mirror website/styles.css so it matches the main site.
         ============================================================ */
      :root {
        --coral: #ff6b57;
        --coral-ink: #c43a28;
        --orange: #ff9a4d;
        --amber: #ffb15e;
        --amber-ink: #b4651a;
        --sky-500: #3dbaf5;
        --sky-ink: #176a98;

        --bg: #fff8f4;
        --surface: #ffffff;
        --surface-soft: #fff1e8;
        --surface-warm: #ffe7d6;
        --border-soft: #f6d8c8;
        --border-strong: #e9c2aa;

        --t-strong: #3a261e;
        --t-body: #6b4b3e;
        --t-muted: #7d5d50;

        --success: #5bcb8a;

        --grad-warm: linear-gradient(135deg, #ff6b57 0%, #ff9a4d 100%);
        --grad-warm-soft: linear-gradient(135deg, #ffb15e 0%, #ff6b57 100%);
        --grad-btn: linear-gradient(135deg, #f0573f 0%, #d9772a 100%);
        --grad-text: linear-gradient(135deg, #ee5a44 0%, #d9772a 100%);
        --grad-sky: linear-gradient(135deg, #69d6ff 0%, #3dbaf5 100%);

        --sh-sm: 0 2px 8px rgba(58, 38, 30, 0.06);
        --sh-md: 0 14px 34px -12px rgba(255, 107, 87, 0.22), 0 6px 14px -8px rgba(58, 38, 30, 0.12);
        --sh-lg: 0 40px 80px -30px rgba(255, 107, 87, 0.34), 0 18px 40px -22px rgba(58, 38, 30, 0.18);

        --r-sm: 12px;
        --r-md: 18px;
        --r-lg: 26px;
        --r-xl: 36px;
        --r-pill: 999px;

        --maxw: 1160px;
        --ease: cubic-bezier(0.22, 1, 0.36, 1);
        --font-display: "Baloo 2", system-ui, sans-serif;
        --font-body: "Nunito", system-ui, -apple-system, sans-serif;
      }

      * { box-sizing: border-box; }
      html { scroll-behavior: smooth; }
      @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
      body {
        margin: 0;
        font-family: var(--font-body);
        color: var(--t-body);
        background:
          radial-gradient(120% 60% at 84% -6%, rgba(105, 214, 255, 0.14), transparent 55%),
          radial-gradient(120% 55% at 8% 2%, rgba(255, 177, 94, 0.28), transparent 55%),
          var(--bg);
        -webkit-font-smoothing: antialiased;
        line-height: 1.55;
      }
      h1, h2, h3, h4 { font-family: var(--font-display); color: var(--t-strong); letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
      a { color: var(--coral-ink); }
      img { max-width: 100%; display: block; }
      .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
      .grad-text {
        background: var(--grad-text);
        -webkit-background-clip: text; background-clip: text; color: transparent;
      }

      /* buttons */
      .btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 9px;
        font-family: var(--font-display); font-weight: 700; font-size: 1rem;
        border: 0; border-radius: var(--r-pill); padding: 15px 26px; cursor: pointer;
        text-decoration: none; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s var(--ease);
      }
      .btn-primary {
        background: var(--grad-btn); color: #fff;
        box-shadow: 0 14px 28px -10px rgba(240, 87, 63, 0.55);
      }
      .btn-primary:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 20px 36px -12px rgba(240, 87, 63, 0.6); }
      .btn-ghost {
        background: var(--surface); color: var(--t-strong);
        border: 1.5px solid var(--border-soft); box-shadow: var(--sh-sm);
      }
      .btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); }
      .btn-sm { padding: 11px 18px; font-size: 0.94rem; }

      /* header: minimal topbar, identical to the gift page */
      .topbar {
        display: flex; align-items: center; justify-content: space-between;
        max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
      }
      .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
      .brand img { height: 30px; width: auto; }
      .topbar .back {
        font-weight: 700; text-decoration: none; font-size: 0.9rem; color: var(--coral-ink);
      }

      /* section rhythm */
      section { position: relative; }
      .sec-pad { padding: 92px 0; }
      .eyebrow {
        display: inline-flex; align-items: center; gap: 9px;
        font-family: var(--font-display); font-weight: 800; font-size: 0.82rem;
        text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral-ink);
        background: var(--surface); border: 1px solid var(--border-soft);
        border-radius: var(--r-pill); padding: 7px 15px; box-shadow: var(--sh-sm);
      }
      .eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-warm); }
      .sec-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
      .sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 16px 0 12px; }
      .sec-head p { font-size: 1.1rem; color: var(--t-body); margin: 0; }

      /* ---------- HERO ---------- */
      .hero { padding: 46px 0 20px; overflow: hidden; }
      .hero-grid {
        display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center;
      }
      .hero-title { font-size: clamp(2.35rem, 5vw, 3.6rem); margin: 20px 0 18px; }
      .hero-lede { font-size: 1.18rem; color: var(--t-body); max-width: 33ch; margin: 0 0 14px; }
      .hero-lede strong { color: var(--t-strong); }
      .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 20px; }
      .hero-proof { display: flex; align-items: center; gap: 11px; color: var(--t-muted); font-size: 0.95rem; }
      .hero-proof .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(91, 203, 138, 0.18); }

      /* hero visual */
      .hero-stage { position: relative; }
      .hero-photo {
        position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl);
        /* Layered so a missing photo still looks intentional (gradient shows through). */
        background-image: url("/assets/partners/hero.jpg"),
          linear-gradient(150deg, #ffd9c4 0%, #ffb99b 42%, #ff9a7d 100%);
        background-size: cover; background-position: center;
        box-shadow: var(--sh-lg); border: 5px solid #fff;
      }
      .hero-photo::after {
        content: ""; position: absolute; inset: 0; border-radius: inherit;
        background: linear-gradient(180deg, transparent 55%, rgba(58, 38, 30, 0.16) 100%);
      }
      .stage-glow {
        position: absolute; inset: -14% -12% -8% -10%; z-index: -1; border-radius: 50%;
        background: radial-gradient(closest-side, rgba(255, 154, 77, 0.4), transparent 72%);
        filter: blur(10px);
      }
      .float-card {
        position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px;
        background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px);
        border: 1px solid var(--border-soft); border-radius: 18px;
        padding: 13px 16px; box-shadow: var(--sh-md);
      }
      .float-card .big { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--coral-ink); }
      .float-card small { display: block; font-size: 0.72rem; color: var(--t-muted); font-weight: 700; }
      .float-card strong { font-family: var(--font-display); color: var(--t-strong); font-size: 0.95rem; }
      .float-commission { top: 24px; left: -26px; }
      .float-free { bottom: 30px; right: -22px; }
      .float-free .ic {
        width: 38px; height: 38px; border-radius: 12px; background: var(--surface-soft);
        display: grid; place-items: center; font-size: 1.2rem;
      }

      /* ---------- trust strip ---------- */
      .trust { padding: 30px 0 8px; }
      .trust p { text-align: center; color: var(--t-muted); font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; }
      .pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
      .pill {
        font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--t-strong);
        background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-pill);
        padding: 9px 16px; box-shadow: var(--sh-sm);
      }

      /* ---------- 40% band ---------- */
      .offer { padding: 70px 0; }
      .offer-card {
        position: relative; overflow: hidden; border-radius: var(--r-xl);
        background: linear-gradient(135deg, #2a1a13 0%, #43261c 100%);
        color: #fff; padding: 54px 44px; box-shadow: var(--sh-lg);
      }
      .offer-card::before {
        content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
        background: radial-gradient(closest-side, rgba(255, 122, 89, 0.55), transparent 70%);
      }
      .offer-grid { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
      .offer-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(4.2rem, 11vw, 7rem); line-height: 0.9;
        background: linear-gradient(135deg, #ffd9a0 0%, #ff8f6e 100%);
        -webkit-background-clip: text; background-clip: text; color: transparent; }
      .offer-num span { display: block; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ffcbb8; -webkit-text-fill-color: #ffcbb8; margin-top: 6px; }
      .offer-body h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
      .offer-body p { color: #f3ddd2; font-size: 1.08rem; margin: 0 0 18px; max-width: 52ch; }
      .offer-meta { display: flex; flex-wrap: wrap; gap: 12px; }
      .offer-chip {
        display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.92rem;
        background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: var(--r-pill); padding: 8px 15px; color: #fff;
      }
      .offer-chip .tick { color: #8fe3b0; font-weight: 800; }

      /* ---------- how it works ---------- */
      .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
      .step {
        background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
        padding: 30px 26px; box-shadow: var(--sh-sm); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
      }
      .step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
      .step-num {
        width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
        font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: #fff;
        background: var(--grad-warm); box-shadow: 0 10px 20px -8px rgba(255, 107, 87, 0.5); margin-bottom: 18px;
      }
      .step h3 { font-size: 1.25rem; margin-bottom: 9px; }
      .step p { margin: 0; color: var(--t-body); font-size: 1rem; }

      /* ---------- why partner ---------- */
      .why { background: linear-gradient(180deg, transparent, rgba(255, 241, 232, 0.55)); }
      .why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
      .why-card {
        display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border-soft);
        border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-sm);
      }
      .why-ic {
        flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem;
        background: var(--surface-soft);
      }
      .why-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
      .why-card p { margin: 0; font-size: 0.99rem; color: var(--t-body); }

      /* ---------- apply / form ---------- */
      .apply { padding-bottom: 96px; }
      .form-card {
        max-width: 720px; margin: 0 auto; background: var(--surface);
        border: 1px solid var(--border-soft); border-radius: var(--r-xl);
        box-shadow: var(--sh-lg); padding: 12px; overflow: hidden;
      }
      .form-card iframe { width: 100%; min-height: 760px; border: 0; border-radius: var(--r-lg); display: block; background: var(--surface); }
      .apply-fine { text-align: center; color: var(--t-muted); font-size: 0.9rem; margin: 18px auto 0; max-width: 46ch; }

      /* Founding-partner "two ways in" panel — highlighted like the 40% offer band. */
      .apply-hero {
        position: relative; overflow: hidden; border-radius: var(--r-xl);
        background: linear-gradient(135deg, #2a1a13 0%, #43261c 100%);
        box-shadow: var(--sh-lg); padding: 48px 44px; margin-bottom: 40px;
      }
      .apply-hero::before {
        content: ""; position: absolute; right: -80px; top: -90px; width: 340px; height: 340px; border-radius: 50%;
        background: radial-gradient(closest-side, rgba(255, 122, 89, 0.55), transparent 70%); pointer-events: none;
      }
      .apply-hero .sec-head { position: relative; margin: 0 auto 30px; }
      .apply-hero .sec-head h2 { color: #fff; }
      .apply-hero .sec-head p { color: #f3ddd2; }
      .apply-hero .partner-links { position: relative; }

      /* ---------- footer ---------- */
      .site-footer { background: #fff; border-top: 1px solid var(--border-soft); padding: 54px 0 30px; }
      .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
      .footer-brand img { height: 32px; margin-bottom: 12px; }
      .footer-brand p { margin: 0 0 8px; font-size: 0.95rem; color: var(--t-body); max-width: 34ch; }
      .footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t-muted); margin-bottom: 12px; }
      .footer-col a, .footer-col span { display: block; color: var(--t-body); text-decoration: none; font-weight: 600; font-size: 0.96rem; margin-bottom: 9px; }
      .footer-col a:hover { color: var(--coral-ink); }
      .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border-soft); color: var(--t-muted); font-size: 0.9rem; }
      .footer-bottom a { color: var(--coral-ink); font-weight: 700; text-decoration: none; }

      /* reveal */
      .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
      .reveal.in { opacity: 1; transform: none; }
      @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

      /* ---------- responsive ---------- */
      @media (max-width: 900px) {
        .hero-grid { grid-template-columns: 1fr; gap: 40px; }
        /* width:100% is required — auto margins on a grid item cancel the default
           justify-self:stretch, so without it the stage shrink-to-fits to the
           empty (width-less) .hero-photo and collapses to ~10px on mobile. */
        .hero-stage { max-width: 420px; margin: 0 auto; width: 100%; }
        .hero-lede { max-width: none; }
        .offer-grid { grid-template-columns: 1fr; gap: 20px; text-align: left; }
        .steps { grid-template-columns: 1fr; }
        .why-grid { grid-template-columns: 1fr; }
        .footer-grid { grid-template-columns: 1fr 1fr; }
      }
      @media (max-width: 640px) {
        .sec-pad { padding: 62px 0; }
        .topbar { padding: 14px 20px; }
        .offer-card { padding: 36px 24px; }
        .apply-hero { padding: 34px 22px; }
        .float-commission { left: -6px; }
        .float-free { right: -6px; }
        .footer-grid { grid-template-columns: 1fr; }
      }
    

      /* ---------- earnings calculator ---------- */
      .calc-card {
        background: var(--surface);
        border: 1px solid var(--border-soft);
        border-radius: var(--r-xl);
        box-shadow: var(--sh-md);
        padding: 40px;
      }
      .calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }

      .calc-controls { display: flex; flex-direction: column; gap: 26px; justify-content: center; }
      .calc-field { display: flex; flex-direction: column; gap: 10px; }
      .calc-field label {
        font-family: var(--font-display);
        font-weight: 600;
        color: var(--t-strong);
        font-size: 1rem;
      }
      .calc-field label b { color: var(--coral-ink); font-weight: 700; }
      .calc-hint { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; color: var(--t-muted); margin-top: 2px; }
      .calc-row { display: flex; align-items: center; gap: 14px; }
      .calc-row input[type="range"] {
        flex: 1;
        min-width: 0; /* let the slider shrink so a narrow row never overflows */
        accent-color: var(--coral);
        height: 6px;
        cursor: pointer;
      }
      .calc-row input[type="range"]:focus-visible { outline: 3px solid rgba(255, 107, 87, 0.4); outline-offset: 4px; border-radius: 8px; }
      .calc-row output {
        flex: none;
        min-width: 104px;
        text-align: center;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 0.92rem;
        color: var(--coral-ink);
        background: var(--surface-soft);
        border: 1px solid var(--border-soft);
        border-radius: var(--r-pill);
        padding: 6px 12px;
        font-variant-numeric: tabular-nums;
      }
      /* Plan-mix readout: shows BOTH shares (Plus vs Premium) so the split is
         unambiguous, split by a soft divider dot. */
      .calc-row output.calc-out-mix {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 178px;
        padding: 6px 14px;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--t-body);
      }
      .calc-out-mix span { white-space: nowrap; }
      .calc-out-mix b { color: var(--coral-ink); font-weight: 800; font-family: var(--font-display); }
      .calc-out-mix i { color: var(--border-strong); font-style: normal; font-weight: 700; }

      .calc-results {
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        background:
          radial-gradient(120% 90% at 100% 0%, rgba(255, 154, 77, 0.16), transparent 60%),
          var(--surface-soft);
        border: 1px solid var(--border-soft);
        border-radius: var(--r-lg);
        padding: 30px;
      }
      .calc-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--t-muted); }
      .calc-headline { display: flex; flex-direction: column; gap: 4px; }
      .calc-big {
        font-family: var(--font-display);
        font-weight: 800;
        color: var(--t-strong);
        font-size: clamp(2rem, 5.5vw, 3rem);
        line-height: 1.02;
        letter-spacing: -0.01em;
        font-variant-numeric: tabular-nums;
      }
      .calc-big small { font-size: 0.9rem; font-weight: 700; color: var(--t-muted); margin-left: 8px; }
      .calc-headline.alt .calc-big { font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--amber-ink); }
      .calc-stats { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 7px; font-size: 0.92rem; color: var(--t-body); }
      .calc-stats b { color: var(--t-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
      .calc-cta { margin-top: 6px; text-align: center; }
      .calc-fine { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 0.82rem; color: var(--t-muted); line-height: 1.6; }

      @media (max-width: 900px) {
        .calc-grid { grid-template-columns: 1fr; gap: 30px; }
      }
      @media (max-width: 640px) {
        .calc-card { padding: 26px 20px; }
        .calc-results { padding: 24px 20px; }
        .calc-row output { min-width: 92px; }
        .calc-row output.calc-out-mix { min-width: 132px; flex-wrap: wrap; gap: 3px 7px; font-size: 0.78rem; padding: 6px 10px; }
      }
      /* Very small phones (≤360px, e.g. iPhone SE): let the value pills give the
         slider its remaining room so the row never overflows. */
      @media (max-width: 360px) {
        .calc-row output { min-width: 80px; }
        .calc-row output.calc-out-mix { min-width: 0; }
      }

      /* ---------- apply: self-serve links + 1:1 form ---------- */
      .partner-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        max-width: 860px;
        margin: 0 auto;
      }
      .partner-link {
        display: flex;
        align-items: center;
        gap: 14px;
        background: var(--surface);
        border: 1px solid var(--border-soft);
        border-radius: var(--r-md);
        padding: 18px 20px;
        text-decoration: none;
        box-shadow: var(--sh-sm);
        transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
      }
      .partner-link:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--border-strong); }
      .partner-link:focus-visible { outline: 3px solid rgba(255, 107, 87, 0.4); outline-offset: 3px; }
      .partner-link-ic { font-size: 1.5rem; line-height: 1; flex: none; }
      .partner-link-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
      .partner-link-body strong { font-family: var(--font-display); font-weight: 700; color: var(--t-strong); font-size: 1rem; }
      .partner-link-body small { color: var(--t-muted); font-size: 0.84rem; line-height: 1.45; }
      .partner-link-go { flex: none; color: var(--coral-ink); font-weight: 800; font-size: 1.15rem; transition: transform 0.2s var(--ease); }
      .partner-link:hover .partner-link-go { transform: translateX(4px); }

      .apply-form-head { text-align: center; max-width: 640px; margin: 34px auto 22px; }
      .apply-or {
        display: inline-block;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 0.74rem;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        color: var(--t-muted);
        background: var(--surface-soft);
        border: 1px solid var(--border-soft);
        border-radius: var(--r-pill);
        padding: 4px 14px;
        margin-bottom: 14px;
      }
      .apply-form-head h3 { font-family: var(--font-display); font-weight: 800; color: var(--t-strong); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.15; margin: 0 0 8px; }
      .apply-form-head p { color: var(--t-body); margin: 0; }

      @media (max-width: 640px) {
        .partner-links { grid-template-columns: 1fr; }
      }
    
