
  /* ============================================================
     NO4get design tokens — pulled directly from lib/theme/app_theme.dart
     ============================================================ */
  :root {
    --primary:        #7C3AED;
    --primary-dark:   #5B21B6;
    --primary-light:  #8B5CF6;
    --primary-deep:   #4C1D95;
    --primary-deeper: #4A00D4;

    --purple-50:  #ECE5FA;
    --purple-100: #DACCF6;
    --purple-200: #C8B2F2;
    --purple-300: #B699ED;
    --purple-400: #A47FE9;
    --purple-500: #9266E5;
    --purple-600: #804CE0;
    --purple-700: #6E32DC;

    --bg:         #F5F7FA;
    --card:       #FFFFFF;
    --text:       #212121;
    --text-2:     #5B5B66;
    --text-3:     #9A9AA8;
    --hint:       #BDBDBD;

    --gold-bg:    #F8F0DD;
    --gold:       #B8860B;
    --gold-2:     #D4A82A;

    --success:    #4CAF50;
    --warning:    #FFC107;
    --error:      #F44336;

    --radius-card:   20px;
    --radius-soft:   16px;
    --radius-pill:   999px;

    --shadow-sm: 0 2px 6px rgba(31, 24, 55, 0.06);
    --shadow-md: 0 8px 24px rgba(31, 24, 55, 0.08);
    --shadow-lg: 0 24px 60px rgba(76, 29, 149, 0.18);
    --shadow-purple: 0 18px 40px rgba(124, 58, 237, 0.35);

    --auth-gradient: linear-gradient(180deg, #7C3AED 0%, #4C1D95 100%);
    --primary-gradient: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
  }

  a { color: var(--primary); }
  button { font-family: inherit; }

  /* ============================================================
     Hero cocoon — matches the curved AppBar in the app:
     bottom corners rounded 24, purple gradient, soft shadow.
     ============================================================ */
  .hero {
    position: relative;
    background: var(--auth-gradient);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    box-shadow: 0 14px 40px rgba(76, 29, 149, 0.35);
    overflow: hidden;
    isolation: isolate;
  }

  /* subtle starfield like the dashboard "Good Evening" card */
  .hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.55), transparent 50%),
      radial-gradient(1.5px 1.5px at 78% 18%, rgba(255,255,255,.45), transparent 50%),
      radial-gradient(2px 2px at 35% 60%, rgba(255,255,255,.35), transparent 50%),
      radial-gradient(1.5px 1.5px at 65% 75%, rgba(255,255,255,.4), transparent 50%),
      radial-gradient(1.5px 1.5px at 90% 50%, rgba(255,255,255,.5), transparent 50%),
      radial-gradient(1.5px 1.5px at 22% 85%, rgba(255,255,255,.4), transparent 50%),
      radial-gradient(2px 2px at 50% 30%, rgba(255,255,255,.3), transparent 50%);
    pointer-events: none;
    z-index: 0;
  }
  /* glowing soft halo behind the form */
  .hero::after {
    content:"";
    position:absolute;
    width: 900px; height: 900px;
    left: 50%; top: 35%;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  /* ============================================================
     Sticky nav — transparent over the hero, solid on scroll
     ============================================================ */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  }
  .nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .nav .brand {
    text-decoration: none;
    color: white;
    transition: color .25s ease;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  .nav-link {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: 15px; font-weight: 500;
    transition: color .15s, opacity .15s;
  }
  .nav-link:hover { opacity: .7; }
  .nav-cta {
    background: white;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 14px; font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    transition: transform .12s, box-shadow .12s, background .2s, color .2s;
    white-space: nowrap;
  }
  .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,.25); }

  /* Scrolled state: solid white bar with dark text */
  .nav.scrolled {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(31,12,78,.1);
  }
  .nav.scrolled .brand { color: var(--text); }
  .nav.scrolled .brand-logo { box-shadow: 0 4px 10px rgba(124,58,237,.18); }
  .nav.scrolled .nav-link { color: var(--text-2); }
  .nav.scrolled .nav-link:hover { color: var(--primary); opacity: 1; }
  .nav.scrolled .nav-pill {
    background: rgba(124,58,237,.1);
    border-color: rgba(124,58,237,.2);
    color: var(--primary-dark);
  }
  .nav.scrolled .nav-cta {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(124,58,237,.32);
  }
  .nav.scrolled .hamburger span { background: var(--text); }

  /* Hamburger (mobile) */
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
  }
  .hamburger span {
    display: block;
    height: 2.5px; width: 100%;
    background: white;
    border-radius: 3px;
    transition: transform .25s ease, opacity .25s ease, background .25s ease;
  }
  .nav.menu-open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .brand {
    display: flex; align-items: center; gap: 10px;
  }
  .brand-logo {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: white;
    display: grid; place-items: center;
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
  }
  .brand-logo img { width: 26px; height: 26px; object-fit: contain; }
  .brand-name {
    font-weight: 700; letter-spacing: 0.3px;
    font-size: 18px;
  }
  .brand-name span { color: #FFD86A; }
  .nav-pill { white-space: nowrap; }
  .pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    color: white;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px; font-weight: 500;
    backdrop-filter: blur(8px);
  }
  .pill .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 0 rgba(74,222,128,.7);
    animation: pulse 1.8s infinite;
  }
  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.7); }
    70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
  }

  /* hero content */
  .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 92px 28px 88px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(380px, 480px) 1fr;
    align-items: start;
    gap: 28px;
  }

  /* Center column: pitch + form */
  .center {
    text-align: center;
    color: white;
    position: relative;
    z-index: 3;
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #F5E9FF;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    padding: 8px 14px;
    border-radius: 999px;
  }
  .eyebrow .sparkle {
    width: 14px; height: 14px;
    color: #FFD86A;
  }

  h1.hero-title {
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 18px auto 14px;
    max-width: 18ch;
    text-wrap: balance;
  }
  h1.hero-title em {
    font-style: normal;
    background: linear-gradient(180deg, #FFE89E, #FFB84D);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-sub {
    color: rgba(255,255,255,.85);
    font-size: 16px;
    line-height: 1.55;
    max-width: 42ch;
    margin: 0 auto 28px;
    text-wrap: pretty;
  }

  /* The form card — the cocoon at the heart */
  .form-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 28px;
    text-align: left;
    color: var(--text);
    box-shadow:
      0 30px 80px rgba(31, 12, 78, 0.45),
      0 6px 18px rgba(31, 12, 78, 0.18),
      inset 0 1px 0 rgba(255,255,255,.6);
    position: relative;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.45);
  }
  .form-card::before {
    /* tiny sparkle accent like the FAB */
    content: "✦";
    position: absolute; top: -14px; right: 22px;
    width: 36px; height: 36px;
    background: var(--primary-gradient);
    color: white;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: var(--shadow-purple);
  }
  .form-title {
    font-size: 18px; font-weight: 700;
    margin: 0 0 4px;
  }
  .form-subtitle {
    font-size: 13px; color: var(--text-2);
    margin: 0 0 20px;
  }

  .field {
    margin-bottom: 14px;
  }
  .field label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
  }
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E6E2F0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #FAFAFE;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
  }
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(124,58,237,.15);
  }
  .field textarea { resize: vertical; min-height: 76px; }
  .field .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  .roles {
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .role-chip {
    padding: 9px 14px;
    border: 1.5px solid #E6E2F0;
    background: #FAFAFE;
    border-radius: 999px;
    font-size: 13px; font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
    transition: all .15s;
  }
  .role-chip:hover { border-color: var(--primary-light); color: var(--primary); }
  .role-chip.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 6px 14px rgba(124,58,237,.3);
  }

  .checkbox-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--text-2);
    margin-top: 4px; margin-bottom: 18px;
    line-height: 1.45;
  }
  .checkbox-row input { margin-top: 2px; accent-color: var(--primary); }

  .submit-btn {
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(124,58,237,.35);
    transition: transform .12s ease, box-shadow .12s;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  }
  .submit-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(124,58,237,.42); }
  .submit-btn:active { transform: translateY(0); }
  .submit-btn[disabled] { opacity: .7; cursor: progress; }
  .submit-btn .spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: none;
  }
  .submit-btn.loading .spinner { display: inline-block; }
  .submit-btn.loading .label { opacity: .8; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .form-foot {
    margin-top: 14px;
    font-size: 12px; color: var(--text-3);
    text-align: center;
  }

  /* counter card under form */
  .counter-strip {
    margin-top: 18px;
    background: linear-gradient(120deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.22);
    color: white;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    backdrop-filter: blur(10px);
  }
  .counter-strip .num {
    font-size: 22px; font-weight: 800;
    background: linear-gradient(180deg, #FFE89E, #FFB84D);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .counter-strip .lbl { font-size: 13px; color: rgba(255,255,255,.85); }

  /* ============================================================
     Floating feature cards — recreate the actual app cards
     ============================================================ */
  .floats { position: relative; }
  .float-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 16px;
    box-shadow: var(--shadow-md);
    color: var(--text);
    position: relative;
    width: 100%;
    transform-origin: center;
    animation: none;
    will-change: auto;
  }

  .floats.left { display: flex; flex-direction: column; gap: 22px; padding-top: 18px; }
  .floats.right { display: flex; flex-direction: column; gap: 22px; padding-top: 60px; }

  .float-card .hdr {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px;
  }
  .icon-tile {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .icon-tile.purple   { background: rgba(124,58,237,.12); color: var(--primary); }
  .icon-tile.solid    { background: var(--primary); color: white; box-shadow: 0 8px 18px rgba(124,58,237,.3); }
  .icon-tile.gold     { background: var(--gold-bg); color: var(--gold); }
  .icon-tile.green    { background: rgba(76,175,80,.12); color: var(--success); }
  .icon-tile svg { width: 20px; height: 20px; }

  .float-card .title { font-size: 14px; font-weight: 700; margin: 0; }
  .float-card .sub   { font-size: 12px; color: var(--text-2); margin: 2px 0 0; }

  /* "Good evening" hero card variant */
  .card-greeting {
    background: linear-gradient(135deg, #6E32DC, #4A00D4);
    color: white;
    overflow: hidden;
  }
  .card-greeting::after {
    content:"";
    position: absolute; inset: 0;
    background-image:
      radial-gradient(1.4px 1.4px at 25% 30%, rgba(255,255,255,.5), transparent),
      radial-gradient(1.2px 1.2px at 75% 65%, rgba(255,255,255,.4), transparent),
      radial-gradient(1.6px 1.6px at 50% 80%, rgba(255,255,255,.5), transparent);
    pointer-events: none;
  }
  .card-greeting .title { color: white; font-size: 13px; opacity: .85; font-weight: 500; margin: 0; }
  .card-greeting .name  { font-size: 17px; font-weight: 700; margin-top: 2px; }
  .card-greeting .date  {
    margin-top: 12px;
    background: rgba(255,255,255,.16);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    display: flex; align-items: center; gap: 8px;
  }
  .avatar-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8B2F2, #804CE0);
    display: grid; place-items: center;
    color: white; font-weight: 700; font-size: 14px;
    flex-shrink: 0;
  }

  /* Active goal card */
  .card-goal { background: var(--gold-bg); }
  .ring {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: conic-gradient(var(--gold-2) calc(var(--p,0) * 1%), #EFE3C2 0);
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .ring::after {
    content: attr(data-pct);
    width: 32px; height: 32px;
    background: var(--gold-bg);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 700; color: var(--gold);
  }
  .progress-bar {
    height: 6px; border-radius: 99px;
    background: rgba(184,134,11,.18);
    margin-top: 12px;
    overflow: hidden;
  }
  .progress-bar > i {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--gold-2), var(--gold));
    border-radius: 99px;
  }
  .meta-row {
    display: flex; gap: 10px;
    margin-top: 10px;
    font-size: 11px; color: var(--gold);
    align-items: center; flex-wrap: wrap;
  }
  .meta-chip {
    background: rgba(184,134,11,.12);
    padding: 4px 8px; border-radius: 999px;
    font-weight: 600;
  }

  /* AI Coach card */
  .card-ai {
    background: linear-gradient(135deg, #ECE5FA, #DACCF6);
    border: 1px solid rgba(124,58,237,.15);
  }
  .ai-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
  }
  .ai-tag {
    background: var(--primary);
    color: white;
    font-size: 10px; font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    letter-spacing: 0.4px;
  }
  .ai-name { font-weight: 700; color: var(--primary-dark); font-size: 14px; }
  .ai-msg {
    font-size: 13px; line-height: 1.5;
    color: var(--text);
  }

  /* Circles checked-in card */
  .card-circle {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
  }
  .card-circle .small { font-size: 11px; opacity: .85; letter-spacing: 1px; text-transform: uppercase; margin: 0; }
  .card-circle .big   { font-size: 28px; font-weight: 800; line-height: 1; }
  .card-circle .big small { font-size: 13px; font-weight: 500; opacity: .9; }
  .stack-avatars {
    display: flex; margin-top: 12px;
  }
  .stack-avatars > div {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    margin-left: -8px;
    background: var(--purple-200);
    display: grid; place-items: center;
    color: var(--primary-dark);
    font-size: 10px; font-weight: 700;
  }
  .stack-avatars > div:first-child { margin-left: 0; }

  /* Mood / feeling check-in */
  .card-mood .mood-row {
    display: flex; gap: 6px; margin-top: 4px;
  }
  .mood-row > div {
    flex: 1;
    padding: 6px 0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    background: #F5F1FB;
    border: 1px solid #ECE5FA;
  }
  .mood-row > div.active { background: var(--primary); color: white; border-color: var(--primary); }

  /* Scan card */
  .card-scan {
    background: linear-gradient(135deg, #8B5CF6, #6E32DC);
    color: white;
  }
  .card-scan .title { color: white; }
  .card-scan .sub   { color: rgba(255,255,255,.85); }
  .arrow-btn {
    width: 32px; height: 32px;
    background: rgba(255,255,255,.22);
    border-radius: 10px;
    display: grid; place-items: center;
    color: white;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Notes card */
  .card-note { background: white; }
  .note-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gold-bg);
    display: grid; place-items: center;
    color: var(--gold);
    flex-shrink: 0;
  }
  .note-icon.purple { background: rgba(124,58,237,.12); color: var(--primary); }

  /* ===== "Below the fold" — stat strip + features grid + share ===== */
  .stats {
    background: white;
    margin: -32px auto 0;
    max-width: 1100px;
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
    z-index: 4;
  }
  .stat {
    text-align: center;
    padding: 10px;
    border-right: 1px solid #EFEAF7;
  }
  .stat:last-child { border-right: 0; }
  .stat .v {
    font-size: 26px; font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: -0.02em;
  }
  .stat .l {
    font-size: 12px; color: var(--text-2);
    margin-top: 4px;
    text-transform: uppercase; letter-spacing: 0.6px; font-weight: 500;
  }

  /* Features section */
  section.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 28px 24px;
  }
  .sec-eyebrow {
    text-align: center;
    font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--primary);
  }
  .sec-title {
    text-align: center;
    margin: 8px auto 14px;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    max-width: 18ch;
    text-wrap: balance;
  }
  .sec-sub {
    text-align: center;
    color: var(--text-2);
    max-width: 56ch;
    margin: 0 auto 56px;
    line-height: 1.6;
    text-wrap: pretty;
  }
  .feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .feat {
    background: white;
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid #F0EBFA;
    transition: transform .2s, box-shadow .2s;
  }
  .feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .feat .ico {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: white;
    display: grid; place-items: center;
    margin-bottom: 14px;
    box-shadow: 0 10px 24px rgba(124,58,237,.3);
  }
  .feat h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
  .feat p  { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 0; }

  /* Share / FAQ / Footer */
  section.share-block {
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 0 28px;
  }
  .share-card {
    background: var(--auth-gradient);
    border-radius: 28px;
    padding: 48px 32px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
  }
  .share-card::before {
    content:""; position: absolute; inset:0;
    background-image:
      radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.5), transparent 50%),
      radial-gradient(1.5px 1.5px at 78% 18%, rgba(255,255,255,.4), transparent 50%),
      radial-gradient(2px 2px at 50% 80%, rgba(255,255,255,.4), transparent 50%);
    pointer-events: none;
  }
  .share-card h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
  }
  .share-card p { color: rgba(255,255,255,.85); margin: 0 0 24px; }
  .share-row {
    display: inline-flex; gap: 10px; flex-wrap: wrap;
    justify-content: center;
    position: relative; z-index: 2;
  }
  .share-btn {
    background: rgba(255,255,255,.16);
    color: white;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600; font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all .15s;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .share-btn:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
  .share-btn svg { width: 16px; height: 16px; }

  /* FAQ */
  section.faq {
    max-width: 800px;
    margin: 80px auto 0;
    padding: 0 28px;
  }
  .faq details {
    background: white;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #EEEAF7;
    transition: box-shadow .15s;
  }
  .faq details[open] { box-shadow: var(--shadow-md); border-color: var(--purple-100); }
  .faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+";
    color: var(--primary);
    font-size: 24px; font-weight: 300;
    transition: transform .2s;
  }
  .faq details[open] summary::after { content: "−"; }
  .faq p { margin: 12px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }

  /* Footer */
  footer {
    margin-top: 80px;
    padding: 32px 28px 48px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
  }
  footer .footer-brand {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
    color: var(--text-2);
    font-weight: 600;
  }
  footer .footer-brand-logo {
    width: 38px; height: 38px;
    box-shadow: 0 6px 14px rgba(124,58,237,.14);
  }
  footer .footer-brand-name {
    color: var(--text-2);
  }

  /* ============================================================
     Success state
     ============================================================ */
  .success-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(31, 12, 78, 0.55);
    backdrop-filter: blur(6px);
    z-index: 100;
    align-items: center; justify-content: center;
    padding: 24px;
  }
  .success-overlay.show { display: flex; animation: fadeIn .25s ease both; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .success-modal {
    background: white;
    border-radius: 24px;
    padding: 40px 32px 32px;
    max-width: 460px; width: 100%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,.4);
    animation: pop .35s cubic-bezier(.2,1.2,.4,1) both;
    position: relative;
  }
  @keyframes pop {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }
  .check-burst {
    width: 84px; height: 84px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: var(--primary-gradient);
    display: grid; place-items: center;
    color: white;
    box-shadow: 0 16px 40px rgba(124,58,237,.45);
    position: relative;
  }
  .check-burst::after {
    content:""; position: absolute; inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    opacity: .5;
    animation: ring 1.4s ease-out infinite;
  }
  @keyframes ring {
    from { transform: scale(.85); opacity: .6; }
    to   { transform: scale(1.3); opacity: 0; }
  }
  .success-modal h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
  .success-modal p  { color: var(--text-2); margin: 0 0 18px; line-height: 1.55; }
  .success-modal .pos {
    background: linear-gradient(135deg, #ECE5FA, #DACCF6);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
  }
  .success-modal .pos .num {
    font-size: 32px; font-weight: 800; color: var(--primary-dark);
    background: var(--primary-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: -0.02em;
  }
  .success-modal .pos .lbl { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
  .success-modal .share-row {
    width: 100%;
  }
  .success-modal .share-btn {
    min-height: 44px;
    justify-content: center;
  }
  .success-modal [data-share-card] {
    order: 1;
  }
  .success-modal [data-download-card] {
    order: 2;
  }
  .success-modal [data-share="x"] {
    order: 3;
  }
  .success-modal [data-share="whatsapp"] {
    order: 4;
  }
  .success-modal [data-share="copy"] {
    order: 5;
    flex: 1 1 100%;
    background: linear-gradient(135deg, #14B8A6, #0F766E) !important;
    border-color: rgba(15,118,110,.28) !important;
    color: white !important;
  }
  .success-modal .share-card-action {
    flex: 1 1 180px;
    justify-content: center;
    background: var(--primary-gradient) !important;
    border-color: rgba(124,58,237,.42) !important;
    color: white !important;
    box-shadow: 0 10px 22px rgba(124,58,237,.22);
  }
  .success-modal .download-card-action {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    padding: 0 !important;
    justify-content: center;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    background: var(--primary-gradient) !important;
    border-color: rgba(124,58,237,.42) !important;
    color: white !important;
    box-shadow: 0 10px 22px rgba(124,58,237,.22);
  }
  .success-modal .download-card-action svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: white !important;
    stroke: white !important;
    opacity: 1;
  }
  .success-modal .download-card-action svg path {
    stroke: white !important;
  }
  .success-modal .share-card-action:disabled,
  .success-modal .download-card-action:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
  }
  .close-x {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 0;
    background: #F2EEFB;
    color: var(--text-2);
    cursor: pointer;
    font-size: 18px;
    display: grid; place-items: center;
  }
  .close-x:hover { background: #E6DFF7; color: var(--text); }

  /* ============================================================
     Privacy policy modal
     ============================================================ */
  .privacy-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(31, 12, 78, 0.55);
    backdrop-filter: blur(6px);
    z-index: 120;
    align-items: center; justify-content: center;
    padding: 24px;
  }
  .privacy-overlay.show { display: flex; animation: fadeIn .2s ease both; }
  .privacy-modal {
    background: white;
    border-radius: 24px;
    padding: 34px 30px 30px;
    max-width: 760px; width: 100%;
    max-height: min(760px, 88vh);
    overflow: auto;
    box-shadow: 0 40px 100px rgba(0,0,0,.38);
    position: relative;
    color: var(--text);
  }
  .privacy-kicker {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .privacy-modal h2 {
    font-size: 30px;
    line-height: 1.15;
    margin: 0 40px 8px 0;
    letter-spacing: -0.02em;
  }
  .privacy-updated {
    color: var(--text-2);
    font-size: 14px;
    margin: 0 0 22px;
  }
  .privacy-body {
    display: grid;
    gap: 14px;
  }
  .privacy-body h3 {
    font-size: 16px;
    margin: 8px 0 -6px;
  }
  .privacy-body p {
    color: var(--text-2);
    line-height: 1.65;
    margin: 0;
  }

  /* ============================================================
     Toast
     ============================================================ */
  .toast {
    position: fixed;
    bottom: 28px; left: 50%;
    transform: translate(-50%, 20px);
    background: var(--text);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px; font-weight: 500;
    box-shadow: 0 14px 30px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 200;
  }
  .toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

  /* ============================================================
     Floating sparkles in the hero (matches the FAB)
     ============================================================ */
  .sparkle-float {
    position: absolute;
    color: rgba(255, 216, 106, .85);
    pointer-events: none;
    z-index: 1;
    animation: spkl 5s ease-in-out infinite;
  }
  @keyframes spkl {
    0%, 100% { transform: translateY(0) rotate(0); opacity: .6; }
    50%      { transform: translateY(-12px) rotate(20deg); opacity: 1; }
  }

  /* ============================================================
     Responsive
     ============================================================ */
  @media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    /* Stacked order: headline + form FIRST, feature cards after */
    .center      { order: 0; }
    .floats.left { order: 1; }
    .floats.right{ order: 2; }
    .floats.left, .floats.right {
      flex-direction: row; flex-wrap: wrap;
      padding-top: 0;
      justify-content: center;
    }
    .float-card { flex: 1 1 240px; max-width: 320px; }
    .stats { grid-template-columns: repeat(2, 1fr); margin: -32px 16px 0; }
    .stat:nth-child(2) { border-right: 0; }
    .feat-grid { grid-template-columns: 1fr 1fr; }
  }
  /* Anchor targets clear the fixed nav */
  #features, #faq, #waitlist-form { scroll-margin-top: 88px; }

  @media (max-width: 860px) {
    /* Collapse nav into hamburger menu */
    .hamburger { display: flex; }
    .nav-links {
      position: absolute;
      top: calc(100% + 8px);
      right: 16px;
      left: 16px;
      flex-direction: column;
      align-items: stretch;
      gap: 6px;
      background: rgba(255,255,255,.98);
      backdrop-filter: blur(16px);
      border-radius: 18px;
      padding: 14px;
      box-shadow: 0 20px 50px rgba(31,12,78,.22);
      border: 1px solid rgba(124,58,237,.12);
      opacity: 0;
      transform: translateY(-8px) scale(.98);
      transform-origin: top right;
      pointer-events: none;
      transition: opacity .2s ease, transform .2s ease;
    }
    .nav.menu-open .nav-links {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }
    .nav-link {
      color: var(--text) !important;
      padding: 12px 14px;
      border-radius: 12px;
      font-size: 16px; font-weight: 600;
    }
    .nav-link:hover { background: rgba(124,58,237,.08); color: var(--primary) !important; opacity: 1; }
    .nav-pill {
      justify-content: center;
      background: rgba(124,58,237,.1) !important;
      border-color: rgba(124,58,237,.2) !important;
      color: var(--primary-dark) !important;
      margin: 4px 0;
      padding: 10px 14px;
    }
    .nav-cta {
      text-align: center;
      background: var(--primary-gradient);
      color: white;
      padding: 14px 20px;
      font-size: 16px;
      box-shadow: 0 10px 24px rgba(124,58,237,.3);
    }
  }

  @media (max-width: 640px) {
    .hero-inner { padding: 84px 18px 72px; }
    .form-card { padding: 22px; }
    .field .row { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
    .nav-inner { padding: 12px 18px; }
    h1.hero-title { font-size: 32px; }
    .stats { grid-template-columns: 1fr 1fr; padding: 16px; }
    .stat { padding: 8px; }
    .stat .v { font-size: 22px; }
    section.features, section.share-block, section.faq { padding-left: 18px; padding-right: 18px; }
    .share-card { padding: 36px 22px; }
    .privacy-overlay { padding: 14px; }
    .privacy-modal {
      border-radius: 18px;
      padding: 28px 20px 22px;
      max-height: 86vh;
    }
    .privacy-modal h2 {
      font-size: 24px;
      margin-right: 34px;
    }
  }
