/* Hum — marketing landing + embedded product demo.
   The first block is the client's final design, ported verbatim.
   A POLISH LAYER at the end refines fit, the demo phone, journal
   content styling and accessibility without changing the design. */

  :root{
    --purple:#5D4FA1; --purple-btn:#544898; --purple-soft:#ECEAF6;
    --teal:#1F8688; --teal-soft:#E2F0F0;
    --ink:#25273A; --ink-soft:#565B78; --ink-mute:#9398B3;
    --surface:#FFFFFF; --surface-2:#F5F4FA; --surface-3:#ECEFF5;
    --line:#E7E9F1; --line-soft:#EFF1F7;
    --grad:linear-gradient(135deg,#6356A8 0%,#218B8B 100%);
    --shadow:0 18px 50px rgba(37,39,58,.13);
    --shadow-sm:0 6px 20px rgba(37,39,58,.08);
    --wrap:1120px;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{margin:0;background:var(--surface);color:var(--ink);font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased;}
  h1,h2,h3{font-family:"Fraunces",serif;font-weight:500;letter-spacing:-.01em;color:var(--ink);margin:0;}
  a{color:inherit;text-decoration:none;}
  .wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px;}
  .serif-i{font-family:"Fraunces",serif;font-style:italic;}

  /* ---------- nav ---------- */
  header.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.86);backdrop-filter:blur(10px);border-bottom:1px solid var(--line-soft);}
  .nav-inner{display:flex;align-items:center;justify-content:space-between;height:70px;}
  .logo{display:flex;flex-direction:column;align-items:flex-start;cursor:pointer;}
  .logo .wm{font-family:"Fraunces",serif;font-weight:500;font-size:27px;line-height:.9;color:var(--ink);}
  .logo svg{width:42px;height:7px;color:var(--purple);margin-top:3px;}
  .nav-links{display:flex;align-items:center;gap:30px;}
  .nav-links a{font-size:14px;font-weight:500;color:var(--ink-soft);cursor:pointer;transition:color .15s;}
  .nav-links a:hover,.nav-links a.active{color:var(--purple);}
  .nav-cta{background:var(--purple-btn);color:#fff;font-weight:600;font-size:13.5px;padding:11px 18px;border-radius:11px;border:none;cursor:pointer;font-family:inherit;transition:background .15s;}
  .nav-cta:hover{background:#4a3f88;}
  @media(max-width:820px){.nav-links a.scrolllink{display:none;}}

  /* ---------- hero ---------- */
  .hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#F7F6FC 0%,#EEF5F6 100%);}
  .hero-amb{position:absolute;inset:0;color:#D6E0EA;opacity:.5;pointer-events:none;}
  .hero-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;padding:70px 0 80px;position:relative;}
  .eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--purple);background:var(--purple-soft);padding:6px 13px;border-radius:999px;}
  .hero h1{font-size:clamp(34px,5vw,52px);line-height:1.06;margin:20px 0 16px;}
  .hero h1 .g{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;}
  .hero p.sub{font-size:17px;color:var(--ink-soft);max-width:480px;margin:0 0 26px;}
  .hero-cta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;}
  .btn{font-family:inherit;font-weight:600;font-size:15px;border:none;border-radius:13px;padding:14px 22px;cursor:pointer;transition:all .15s;}
  .btn-primary{background:var(--purple-btn);color:#fff;}
  .btn-primary:hover{background:#4a3f88;}
  .btn-ghost{background:#fff;color:var(--ink);border:1px solid var(--line);}
  .btn-ghost:hover{border-color:var(--purple);color:var(--purple);}
  .hero-note{font-size:12.5px;color:var(--ink-mute);margin-top:16px;}
  .hero-phone{display:flex;justify-content:center;}

  /* ---------- sections ---------- */
  section.band{padding:78px 0;}
  .sec-head{text-align:center;max-width:640px;margin:0 auto 46px;}
  .sec-head .kick{font-size:12px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--teal);}
  .sec-head h2{font-size:clamp(26px,3.6vw,38px);line-height:1.15;margin:12px 0 12px;}
  .sec-head p{font-size:16px;color:var(--ink-soft);margin:0;}

  .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
  .stat{background:var(--surface-2);border:1px solid var(--line);border-radius:18px;padding:24px 20px;}
  .stat .v{font-family:"Fraunces",serif;font-size:34px;color:var(--ink);line-height:1;}
  .stat .l{font-size:13.5px;color:var(--ink-soft);margin-top:10px;}
  .stat .src{font-size:11px;color:var(--ink-mute);margin-top:9px;}

  .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:34px;}
  .step{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 22px;box-shadow:var(--shadow-sm);}
  .step .n{width:34px;height:34px;border-radius:50%;background:var(--purple-soft);color:var(--purple);font-weight:700;display:grid;place-items:center;font-size:14px;}
  .step h3{font-size:19px;margin:15px 0 6px;}
  .step p{font-size:14px;color:var(--ink-soft);margin:0;}
  .families{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;}
  .fam-chip{background:var(--teal-soft);color:var(--teal);font-weight:600;font-size:13.5px;padding:9px 16px;border-radius:999px;}

  .evi{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;}
  .evi-card{display:flex;gap:14px;background:var(--surface-2);border:1px solid var(--line);border-radius:18px;padding:22px;}
  .evi-card .ic{width:40px;height:40px;border-radius:12px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;flex:none;}
  .evi-card .ic svg{width:21px;height:21px;stroke:var(--purple);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
  .evi-card h3{font-size:17px;margin:0 0 5px;}
  .evi-card p{font-size:13.5px;color:var(--ink-soft);margin:0;}

  /* employers */
  .emp{display:grid;grid-template-columns:1fr 1fr;gap:46px;align-items:center;}
  .emp ul{list-style:none;padding:0;margin:18px 0 0;}
  .emp li{display:flex;gap:11px;font-size:15px;color:var(--ink-soft);margin-bottom:13px;}
  .emp li svg{width:20px;height:20px;stroke:var(--teal);fill:none;stroke-width:2;flex:none;margin-top:3px;}
  .dashcard{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:hidden;}
  .dashcard .dh{padding:18px 22px;border-bottom:1px solid var(--line-soft);}
  .dashcard .dh .t{font-family:"Fraunces",serif;font-size:17px;}
  .dashcard .dh .s{font-size:12px;color:var(--ink-mute);margin-top:3px;}
  .dkpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:16px 18px 6px;}
  .dkpi .v{font-family:"Fraunces",serif;font-size:22px;}
  .dkpi .l{font-size:10.5px;color:var(--ink-mute);}
  .dchart{padding:6px 18px 18px;}
  .dnote{display:flex;gap:8px;font-size:11px;color:var(--ink-soft);padding:0 18px 18px;}
  .dnote svg{width:15px;height:15px;stroke:var(--purple);fill:none;stroke-width:1.7;flex:none;}

  /* privacy band */
  .privacy-band{background:var(--ink);color:#fff;border-radius:24px;padding:48px;display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;}
  .privacy-band h2{color:#fff;font-size:30px;line-height:1.2;}
  .pv-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
  .pv{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:18px;}
  .pv .h{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-bottom:8px;}
  .pv .b{font-size:14px;color:rgba(255,255,255,.92);}
  .pv.see .h{color:#8fdfe2;}

  /* CTA */
  .cta-band{text-align:center;background:linear-gradient(180deg,#F7F6FC,#EEF5F6);border-radius:24px;padding:56px 30px;}
  .cta-band h2{font-size:32px;margin-bottom:12px;}
  .cta-band p{color:var(--ink-soft);max-width:480px;margin:0 auto 24px;}

  /* ---------- blog ---------- */
  #page-blog{display:none;}
  .blog-hero{background:linear-gradient(180deg,#F7F6FC,#fff);padding:60px 0 30px;text-align:center;}
  .blog-hero h1{font-size:clamp(32px,4.5vw,46px);}
  .blog-hero p{color:var(--ink-soft);max-width:520px;margin:14px auto 0;font-size:16px;}
  .posts{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:40px 0 70px;}
  .post-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;cursor:pointer;transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column;}
  .post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);}
  .post-thumb{height:120px;background:var(--grad);position:relative;overflow:hidden;}
  .post-thumb svg{position:absolute;bottom:-6px;left:0;width:100%;color:rgba(255,255,255,.45);}
  .post-thumb.alt{background:linear-gradient(135deg,#218B8B,#6356A8);}
  .post-thumb.t3{background:linear-gradient(135deg,#5D4FA1,#8a7fce);}
  .post-thumb.t4{background:linear-gradient(135deg,#1F8688,#5bbcbe);}
  .post-body{padding:18px 20px 22px;flex:1;display:flex;flex-direction:column;}
  .post-cat{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--teal);}
  .post-card h3{font-size:19px;margin:8px 0 8px;line-height:1.25;}
  .post-card p{font-size:13.5px;color:var(--ink-soft);margin:0 0 14px;flex:1;}
  .post-meta{font-size:12px;color:var(--ink-mute);}

  /* post view */
  #post-view{display:none;}
  .article{max-width:680px;margin:0 auto;padding:46px 24px 80px;}
  .back{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;color:var(--purple);font-weight:600;cursor:pointer;margin-bottom:26px;}
  .back svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;}
  .article .acat{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--teal);}
  .article h1{font-size:clamp(28px,4vw,40px);line-height:1.15;margin:12px 0 14px;}
  .article .ameta{font-size:13px;color:var(--ink-mute);margin-bottom:30px;}
  .article p{font-size:16.5px;color:#3c3f57;line-height:1.7;margin:0 0 18px;}
  .article h2{font-size:23px;margin:32px 0 10px;}
  .article .pull{font-family:"Fraunces",serif;font-style:italic;font-size:20px;color:var(--purple);border-left:3px solid var(--teal);padding-left:18px;margin:26px 0;line-height:1.4;}
  .article .care{background:var(--teal-soft);border:1px solid #cfe9e9;border-radius:14px;padding:16px 18px;font-size:14px;color:#1d5e60;margin-top:30px;}

  /* footer */
  footer{background:var(--surface-2);border-top:1px solid var(--line);padding:48px 0 30px;}
  .foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px;margin-bottom:30px;}
  .foot .wm{font-family:"Fraunces",serif;font-size:24px;}
  .foot p{font-size:13px;color:var(--ink-soft);max-width:300px;margin:10px 0 0;}
  .foot h4{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-mute);margin:0 0 12px;}
  .foot a{display:block;font-size:13.5px;color:var(--ink-soft);margin-bottom:9px;cursor:pointer;}
  .foot a:hover{color:var(--purple);}
  .foot-care{font-size:12.5px;color:var(--ink-soft);background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 15px;}
  .foot-bottom{border-top:1px solid var(--line);padding-top:20px;font-size:12px;color:var(--ink-mute);display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;}

  @media(max-width:860px){
    .hero-inner,.emp,.privacy-band{grid-template-columns:1fr;}
    .hero-phone{margin-top:10px;}
    .stats{grid-template-columns:repeat(2,1fr);}
    .steps,.evi,.posts,.foot-grid,.pv-cols{grid-template-columns:1fr;}
    .privacy-band{padding:34px;}
  }

  /* ===================== embedded app ===================== */
  .appwrap{--a-r:14px;width:300px;}
  .a-phone{width:300px;height:606px;background:#fff;border-radius:40px;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.8);position:relative;overflow:hidden;display:flex;flex-direction:column;}
  .a-phone::before{content:"";position:absolute;top:12px;left:50%;transform:translateX(-50%);width:84px;height:6px;border-radius:99px;background:#E0E2EC;z-index:9;}
  .a-status{display:flex;justify-content:space-between;align-items:center;padding:14px 22px 5px;font-size:11px;font-weight:600;color:var(--ink-mute);flex:none;}
  .a-status .b{display:flex;gap:3px;}.a-status .b i{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.55;}
  #a-screen{flex:1;overflow-y:auto;padding:6px 20px 12px;}
  #a-screen::-webkit-scrollbar{display:none;}
  .a-anim{animation:afade .3s ease;}
  @keyframes afade{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
  .a-nav{flex:none;display:flex;justify-content:space-around;padding:8px 6px 13px;border-top:1px solid var(--line-soft);background:#fff;}
  .a-nav button{background:none;border:none;cursor:pointer;font-family:inherit;font-size:9.5px;font-weight:500;color:var(--ink-mute);display:flex;flex-direction:column;align-items:center;gap:3px;}
  .a-nav button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
  .a-nav button.on{color:var(--purple);}
  .a-date{font-size:11.5px;color:var(--ink-mute);font-weight:500;text-transform:uppercase;letter-spacing:.02em;margin-top:10px;}
  .a-hello{font-family:"Fraunces",serif;font-weight:500;font-size:24px;margin:2px 0 2px;}
  .a-q{font-family:"Fraunces",serif;font-weight:500;font-size:23px;margin:8px 0 4px;}
  .a-lead{font-size:13px;color:var(--ink-soft);margin:0 0 14px;}
  .a-moment{position:relative;overflow:hidden;background:#262A44;border-radius:18px;padding:18px;color:#fff;margin-bottom:14px;}
  .a-moment .mw{position:absolute;right:-12px;top:-10px;width:130px;height:130px;color:rgba(33,139,139,.5);}
  .a-moment .ml{font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.6);}
  .a-moment .mt{font-family:"Fraunces",serif;font-size:18px;margin:6px 0 4px;line-height:1.2;}
  .a-moment .ms{font-size:12px;color:rgba(255,255,255,.78);margin-bottom:14px;}
  .a-btn{font-family:inherit;font-weight:600;font-size:14px;border:none;border-radius:12px;padding:13px;width:100%;cursor:pointer;}
  .a-btn-p{background:var(--purple-btn);color:#fff;}
  .a-btn-g{background:var(--surface-2);color:var(--ink);border:1px solid var(--line);}
  .a-moment .a-btn-p{background:var(--grad);}
  .a-link{display:block;width:100%;text-align:center;background:none;border:none;font-family:inherit;font-size:12.5px;color:var(--ink-soft);cursor:pointer;padding:9px;}
  .a-kick{font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-mute);margin:14px 0 8px;}
  .a-record{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;}
  .a-record .d{aspect-ratio:1;border-radius:8px;background:var(--surface-2);border:1px solid var(--line);display:grid;place-items:center;font-size:9px;color:var(--ink-mute);font-weight:600;}
  .a-record .d.on{background:var(--purple-soft);border-color:transparent;color:var(--purple);}
  .a-record .d.today{border:1.5px solid var(--purple);}
  .a-flowbar{display:flex;align-items:center;gap:10px;padding-top:8px;}
  .a-back{background:none;border:none;cursor:pointer;color:var(--ink-soft);padding:3px;display:flex;}
  .a-back svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;}
  .a-steps{display:flex;gap:5px;flex:1;}.a-steps i{height:4px;flex:1;border-radius:99px;background:var(--line);}.a-steps i.on{background:var(--purple);}
  .a-scale{display:flex;flex-direction:column;gap:8px;margin-top:4px;}
  .a-scale button{font-family:inherit;font-size:14px;font-weight:500;text-align:left;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:13px;padding:14px 16px;cursor:pointer;transition:all .14s;display:flex;justify-content:space-between;align-items:center;}
  .a-scale button:hover{border-color:var(--purple);transform:translateX(2px);}
  .a-scale .dot{width:9px;height:9px;border-radius:50%;background:var(--line);}
  .a-scale button:hover .dot{background:var(--purple);}
  .a-hint{font-size:11.5px;color:var(--ink-mute);margin-top:14px;text-align:center;}
  .a-tag{display:inline-block;font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--teal);background:var(--teal-soft);padding:4px 11px;border-radius:999px;margin-top:14px;}
  .a-body{font-size:15px;line-height:1.6;color:var(--ink);margin:12px 0 16px;}
  .a-breath{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 0;min-height:210px;}
  .a-ring{width:140px;height:140px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,rgba(99,86,168,.16),rgba(33,139,139,.08));border:1.5px solid rgba(93,79,161,.5);transform:scale(.62);transition:transform 4000ms ease-in-out;}
  .a-ring span{font-family:"Fraunces",serif;font-size:16px;color:var(--ink);}
  .a-bnote{margin-top:18px;font-size:12px;color:var(--ink-mute);text-align:center;}
  .a-done{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:460px;}
  .a-done svg{width:120px;height:20px;margin-bottom:22px;}
  .a-done .dt{font-family:"Fraunces",serif;font-size:22px;line-height:1.3;}
  .a-done .ds{font-size:13px;color:var(--ink-soft);margin-top:10px;}
  .a-row{display:flex;align-items:center;justify-content:space-between;padding:12px 2px;border-bottom:1px solid var(--line-soft);cursor:pointer;}
  .a-row:hover .a-rn{color:var(--purple);}
  .a-rn{font-size:14px;font-weight:500;}
  .a-rm{font-size:11.5px;color:var(--ink-mute);}
  .a-fam{font-family:"Fraunces",serif;font-size:16px;margin:14px 0 1px;}
  .a-fd{font-size:11.5px;color:var(--ink-mute);margin-bottom:4px;}
  .a-supp{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);border-radius:13px;padding:13px 14px;margin-bottom:9px;}
  .a-supp .st{font-weight:600;font-size:13px;}.a-supp .sn{font-size:11.5px;color:var(--ink-soft);margin-top:2px;}
  .a-supp .snum{font-family:"Fraunces",serif;font-size:15px;color:var(--purple);}
  .a-supp.urgent{border-color:rgba(31,134,136,.5);background:var(--teal-soft);}
  @media(prefers-reduced-motion:reduce){.a-anim{animation:none;}.a-ring{transition:none!important;transform:scale(.85)!important;}}

  /* --- logo bird --- */
  .logo{flex-direction:row;align-items:center;gap:11px;}
  .nav-bird{width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 3px 6px rgba(93,79,161,.22));}
  .logo-txt{display:flex;flex-direction:column;align-items:flex-start;}

  /* --- hero flying hummingbird --- */
  .hero-bird{position:absolute;top:24px;left:51%;width:124px;height:124px;object-fit:contain;pointer-events:none;z-index:6;filter:drop-shadow(0 14px 20px rgba(93,79,161,.22));transform-origin:center;animation:birdIn 1.5s cubic-bezier(.2,.8,.3,1) both, birdHover 5.5s ease-in-out 1.5s infinite;}
  @keyframes birdIn{0%{opacity:0;transform:translate(-160px,50px) rotate(-14deg) scale(.65);}100%{opacity:1;transform:translate(0,0) rotate(0) scale(1);}}
  @keyframes birdHover{0%{transform:translateY(0) rotate(0);}25%{transform:translateY(-11px) rotate(2.5deg);}50%{transform:translateY(-3px) rotate(0);}75%{transform:translateY(-13px) rotate(-2.5deg);}100%{transform:translateY(0) rotate(0);}}

  /* --- interactive phone stage --- */
  .phone-stage{display:flex;flex-direction:column;align-items:center;gap:16px;}
  .appwrap{position:relative;}
  .phone-halo{position:absolute;inset:-13px;border-radius:52px;border:2px solid var(--purple);opacity:0;pointer-events:none;animation:halo 2.4s ease-out .5s 3;}
  @keyframes halo{0%{opacity:0;transform:scale(.99);}18%{opacity:.36;}100%{opacity:0;transform:scale(1.06);}}
  .live-badge{position:absolute;top:14px;left:14px;z-index:11;display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:600;color:#fff;background:rgba(38,42,68,.82);padding:5px 11px 5px 8px;border-radius:999px;backdrop-filter:blur(4px);}
  .live-badge .dotlive{width:7px;height:7px;border-radius:50%;background:#57cbb0;animation:pulseDot 1.8s ease-in-out infinite;}
  @keyframes pulseDot{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(87,203,176,.6);}50%{opacity:.65;box-shadow:0 0 0 5px rgba(87,203,176,0);}}
  .try-hint{position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);z-index:13;display:inline-flex;align-items:center;gap:9px;white-space:nowrap;font-family:inherit;font-weight:600;font-size:13.5px;color:#fff;background:var(--grad);border:none;border-radius:999px;padding:12px 20px;cursor:pointer;box-shadow:0 14px 30px rgba(93,79,161,.42);opacity:0;pointer-events:none;transition:opacity .45s;}
  .try-hint svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
  .try-hint.show{opacity:1;pointer-events:auto;animation:hintBob 1.9s ease-in-out infinite;}
  .try-hint.gone{opacity:0!important;pointer-events:none;animation:none;}
  @keyframes hintBob{0%,100%{transform:translateX(-50%) translateY(0);}50%{transform:translateX(-50%) translateY(-6px);}}
  .phone-cap{font-size:13px;color:var(--ink-soft);font-weight:500;display:flex;align-items:center;gap:7px;}
  .phone-cap svg{width:16px;height:16px;stroke:var(--purple);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

  /* --- app launch splash --- */
  .a-splash{position:absolute;inset:0;z-index:8;border-radius:40px;background:linear-gradient(180deg,#F7F6FC 0%,#EAF4F5 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;animation:splashOut .6s ease 1.75s forwards;}
  .a-splash .sbird{width:100px;height:100px;object-fit:contain;filter:drop-shadow(0 10px 16px rgba(93,79,161,.25));animation:sbirdIn 1.75s ease;}
  .a-splash .swm{font-family:"Fraunces",serif;font-weight:500;font-size:30px;color:var(--ink);}
  .a-splash .swave{width:58px;height:9px;color:var(--purple);}
  @keyframes sbirdIn{0%{opacity:0;transform:translate(-46px,22px) rotate(-14deg) scale(.68);}55%{opacity:1;transform:translate(0,0) rotate(0) scale(1);}100%{transform:translateY(-5px);}}
  @keyframes splashOut{to{opacity:0;visibility:hidden;}}

  @media(max-width:860px){.hero-bird{width:80px;top:8px;left:auto;right:12px;}}
  @media(prefers-reduced-motion:reduce){
    .hero-bird{animation:none;}.phone-halo{animation:none;}.try-hint.show{animation:none;}
    .a-splash{animation:splashOut .1s forwards;}.a-splash .sbird{animation:none;}.live-badge .dotlive{animation:none;}
  }

/* ============================================================
   POLISH LAYER — surgical touch-ups only; the design above is
   the client's, untouched. Everything here refines fit, fixes
   the "tap to try" overlap, makes the demo phone responsive,
   styles real journal content, and adds accessible focus.
   ============================================================ */

/* --- a11y: visible keyboard focus (design had none) --- */
a:focus-visible,button:focus-visible,.post-card:focus-visible,[tabindex]:focus-visible{
  outline:2.5px solid var(--purple);outline-offset:3px;border-radius:6px;
}
.nav-cta:focus-visible,.btn-primary:focus-visible{outline-color:#2c2560;}
:focus:not(:focus-visible){outline:none;}

/* NOTE: an earlier build hid .reveal sections (opacity:0) for a scroll-in
   fade, but that requires JS to reveal them and risks hiding content — so
   .reveal is intentionally a no-op now. Every section renders immediately,
   exactly as the client's design intended. */

/* ============================================================
   FIX: "Tap to try the live app" no longer covers the phone's
   bottom nav. The pill now sits fully below the frame; the
   caption reveals once the hint is dismissed.
   ============================================================ */
.phone-stage{padding-bottom:34px;}
.try-hint{
  top:calc(100% + 14px);bottom:auto;                 /* fully clear of the phone */
}
.try-hint.show{animation:hintBob 1.9s ease-in-out infinite;}
@keyframes hintBob{0%,100%{transform:translateX(-50%) translateY(0);}50%{transform:translateX(-50%) translateY(-5px);}}
/* caption is the resting state, shown after the hint goes */
.phone-cap{display:none;opacity:0;transition:opacity .4s ease;}
.phone-stage.tried .phone-cap{display:flex;opacity:1;}
.phone-stage.tried{padding-bottom:8px;}

/* ============================================================
   OPTIMISE the demo phone for real phone shapes & sizes.
   Fluid width, safe height, crisper internals on small screens.
   ============================================================ */
.appwrap{width:clamp(272px,84vw,300px);}
.a-phone{width:100%;height:auto;aspect-ratio:300/606;max-height:78vh;}
@media(max-width:520px){
  .a-phone{aspect-ratio:auto;height:min(600px,76vh);}
  #a-screen{padding:6px 18px 12px;}
  .try-hint{font-size:12.5px;padding:11px 17px;}
  .hero-inner{gap:26px;padding:52px 0 60px;}
  .hero-phone{width:100%;}
}
@media(max-width:380px){
  .appwrap{width:min(300px,90vw);}
  .a-hello{font-size:22px;}.a-q{font-size:21px;}
}
/* keep the halo/badge aligned to the fluid frame */
.phone-halo{inset:-11px;}

/* ============================================================
   Real journal content — the article view now renders rich HTML
   from the CMS (lead paragraphs, figures, quotes, lists, links).
   ============================================================ */
.article .lead{font-size:18px;color:var(--ink);line-height:1.65;}
.article figure{margin:26px 0;}
.article figure img,.article img{max-width:100%;height:auto;border-radius:14px;display:block;border:1px solid var(--line);}
.article figcaption{font-size:13px;color:var(--ink-mute);text-align:center;margin-top:9px;}
.article blockquote{font-family:"Fraunces",serif;font-style:italic;font-size:20px;color:var(--purple);border-left:3px solid var(--teal);padding-left:18px;margin:26px 0;line-height:1.4;}
.article h3{font-size:19px;margin:26px 0 8px;}
.article ul,.article ol{font-size:16.5px;color:#3c3f57;line-height:1.7;padding-left:22px;margin:0 0 18px;}
.article li{margin-bottom:7px;}
.article a{color:var(--purple);text-decoration:underline;text-underline-offset:2px;}
.article a:hover{color:var(--teal);}
.article strong{color:var(--ink);font-weight:600;}

/* Journal cards: show a real cover image when the post has one,
   fall back to the client's gradient + wave when it doesn't. */
.post-thumb .post-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.post-thumb.has-cover{background:var(--surface-3);}
.post-card{cursor:pointer;}
.post-card:focus-visible{transform:translateY(-3px);box-shadow:var(--shadow);}

/* Blog loading / empty states */
.blog-status{grid-column:1/-1;text-align:center;color:var(--ink-mute);font-size:15px;padding:40px 0;}
.blog-spin{grid-column:1/-1;display:flex;justify-content:center;padding:50px 0;}
.blog-spin i{width:30px;height:30px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--purple);animation:blogspin .8s linear infinite;}
@keyframes blogspin{to{transform:rotate(360deg);}}
@media(prefers-reduced-motion:reduce){.blog-spin i{animation:none;}}

/* Skeleton nicety: cards fade in as the API resolves */
.posts .post-card{animation:cardIn .45s ease both;}
@keyframes cardIn{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}
@media(prefers-reduced-motion:reduce){.posts .post-card{animation:none;}}

/* CTA confirmation (after "Request a pilot") */
.cta-sent{display:inline-flex;align-items:center;gap:9px;font-size:15px;color:var(--teal);font-weight:600;}
.cta-sent svg{width:20px;height:20px;stroke:var(--teal);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}

/* ============================================================
   PREMIUM MOTION LAYER
   Always-on ambient waves, hover lift + pointer tilt, a sheen on
   the hero accent, and a CRASH-PROOF scroll entrance.
   Golden rule: content is VISIBLE by default. Nothing here sets a
   persistent opacity:0 on real content — JS only *adds* animation.
   If JS or CSS fails, every section still shows in full.
   ============================================================ */

/* --- ambient drifting "wavey lines", in the site's own style --- */
.hero-amb{animation:waveDrift 20s ease-in-out infinite alternate;transform-origin:center;}
@keyframes waveDrift{0%{transform:translate3d(-1.5%,0,0);}100%{transform:translate3d(1.5%,-10px,0);}}
.a-moment .mw{animation:mwFloat 9s ease-in-out infinite;}
@keyframes mwFloat{0%,100%{transform:translate(0,0) rotate(0);}50%{transform:translate(-6px,4px) rotate(-3deg);}}

/* hero accent gradient gently drifts */
.hero h1 .g{background-size:220% 100%;animation:sheen 7s ease-in-out infinite;}
@keyframes sheen{0%,100%{background-position:0% 50%;}50%{background-position:100% 50%;}}

/* --- hero content: one-time premium rise-in on load (above the fold,
       so always seen; base stays visible if animation never runs) --- */
.hero .eyebrow,.hero h1,.hero p.sub,.hero-cta,.hero-note,.hero-phone{animation:riseIn .8s cubic-bezier(.2,.7,.2,1) both;}
.hero .eyebrow{animation-delay:.04s;} .hero h1{animation-delay:.1s;}
.hero p.sub{animation-delay:.2s;} .hero-cta{animation-delay:.3s;}
.hero-note{animation-delay:.38s;} .hero-phone{animation-delay:.18s;}

/* --- crash-proof scroll entrance: base VISIBLE; JS adds .rise to play,
       then removes it on animationend so tilt transforms take over --- */
@keyframes riseIn{from{opacity:0;transform:translateY(24px);}to{opacity:1;transform:none;}}
.reveal.rise{animation:riseIn .7s cubic-bezier(.2,.7,.2,1) both;}

/* --- hover lift + pointer tilt (tilt driven by --rx/--ry set in JS) --- */
.stat,.step,.evi-card,.pv,.dashcard{
  transition:transform .28s cubic-bezier(.2,.7,.2,1),box-shadow .3s ease,border-color .3s ease;
  will-change:transform;
}
[data-tilt]{transform:perspective(820px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0px)) scale(var(--sc,1));transform-style:preserve-3d;}
.stat:hover,.step:hover,.evi-card:hover{--ty:-7px;--sc:1.015;box-shadow:var(--shadow);border-color:transparent;}
.stat:hover .v{color:var(--purple);transition:color .3s ease;}
.step:hover .n{transform:scale(1.12) rotate(-4deg);transition:transform .3s ease;}
.dashcard:hover{--ty:-5px;box-shadow:0 26px 60px rgba(37,39,58,.18);}
.pv{transition:transform .28s ease,background .28s ease;}
.pv:hover{transform:translateY(-4px);background:rgba(255,255,255,.1);}

/* family chips: springy hover */
.fam-chip{transition:transform .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease;}
.fam-chip:hover{transform:translateY(-3px) scale(1.06);box-shadow:0 8px 18px rgba(31,134,136,.24);}

/* journal cards: lift a touch more than the client default */
.post-card{transition:transform .28s cubic-bezier(.2,.7,.2,1),box-shadow .28s ease;}
.post-card:hover{transform:translateY(-6px) scale(1.008);box-shadow:var(--shadow);}
.post-card:hover .post-cover{transform:scale(1.06);}
.post-cover{transition:transform .5s ease;}

/* nav links: animated underline sweep */
.nav-links a{position:relative;}
.nav-links a::after{content:"";position:absolute;left:0;right:100%;bottom:-5px;height:2px;background:var(--grad);border-radius:2px;transition:right .3s cubic-bezier(.2,.7,.2,1);}
.nav-links a:hover::after,.nav-links a.active::after{right:0;}

/* buttons: lift, press, primary glow */
.btn,.nav-cta{transition:transform .18s ease,box-shadow .24s ease,background .15s ease;}
.btn-primary:hover,.nav-cta:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(84,72,152,.36);}
.btn-ghost:hover{transform:translateY(-2px);}
.btn:active,.nav-cta:active{transform:translateY(0) scale(.98);}

/* employer sparkline draws itself when the card is hovered */
.dashcard .dchart polyline{stroke-dasharray:1100;}
.dashcard:hover .dchart polyline{animation:draw 1.5s ease forwards;}
@keyframes draw{from{stroke-dashoffset:1100;}to{stroke-dashoffset:0;}}

@media(prefers-reduced-motion:reduce){
  .hero-amb,.a-moment .mw,.hero h1 .g{animation:none;}
  .hero .eyebrow,.hero h1,.hero p.sub,.hero-cta,.hero-note,.hero-phone{animation:none;}
  .reveal.rise{animation:none;}
  [data-tilt]{transform:none!important;}
  .stat:hover,.step:hover,.evi-card:hover,.dashcard:hover,.pv:hover,.post-card:hover,.fam-chip:hover,
  .btn-primary:hover,.nav-cta:hover,.btn-ghost:hover{transform:none;}
  .step:hover .n{transform:none;}
  .post-card:hover .post-cover{transform:none;}
  .dashcard:hover .dchart polyline{animation:none;}
}
