/* Patient landing page (signed-out home). Self-contained: does not use app.css. */

  :root {
    --ink: #0f172a; --muted: #5b6b7f; --line: #e3e9ef; --canvas: #f6f8f9;
    --teal-900: #02574b; --teal-800: #02705f; --teal-700: #0a9078; --teal-600: #11a086; --teal-400: #49cbab;
    --mint: #e8f8f3; --mint-2: #d3f2e8; --sun: #f6c454;
  }
  * { box-sizing: border-box; }
  body.landing { margin: 0; font-family: Inter, -apple-system, system-ui, sans-serif; color: var(--ink); background: #fff; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

  /* Nav */
  /* Top bar: pinned while scrolling; clear over the hero, solid teal once the page scrolls */
  nav { position: fixed; inset: 0 0 auto 0; z-index: 10; transition: background .25s, box-shadow .25s, height .25s; }
  nav.scrolled { background: linear-gradient(100deg, rgba(2,112,95,.97) 0%, rgba(10,144,120,.97) 60%, rgba(17,160,134,.97) 100%);
    box-shadow: 0 8px 24px rgba(2,60,50,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  nav .wrap { display: flex; align-items: center; gap: 36px; height: 84px; color: #fff; transition: height .25s; }
  nav.scrolled .wrap { height: 68px; }
  /* Reading progress along the bottom of the bar */
  nav .progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.15);
    opacity: 0; transition: opacity .25s; }
  nav.scrolled .progress { opacity: 1; }
  nav .progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, #49cbab, #a7f3d0 70%, #f6c454); border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(167,243,208,.7); }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; }
  .logo { width: 40px; height: 40px; border-radius: 11px; background: #27b798; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
  .logo svg { width: 26px; height: 26px; color: #fff; }
  nav .links { display: flex; gap: 28px; margin-left: 20px; font-size: 15px; font-weight: 500; opacity: .92; }
  nav .right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
  .btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; }
  .btn.white { background: #fff; color: var(--teal-800); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
  .btn.ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
  .btn.teal { background: var(--teal-800); color: #fff; }

  /* Hero */
  .hero { position: relative; color: #fff; overflow: hidden;
    background: url('/images/login-panel.webp') center bottom / 1500px auto no-repeat,
                linear-gradient(100deg, #02705f 0%, #0a9078 52%, #11a086 100%);
    padding: 150px 0 230px; }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
    padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
  .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(246,196,84,.25); }
  h1 { font-size: 58px; line-height: 1.06; letter-spacing: -1.4px; margin: 22px 0 18px; font-weight: 800; }
  .hero p.lead { font-size: 19px; line-height: 1.55; opacity: .92; max-width: 520px; margin: 0 0 30px; }
  .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
  .trust { display: flex; gap: 22px; margin-top: 30px; font-size: 14px; opacity: .9; }
  .trust span { display: inline-flex; align-items: center; gap: 8px; }
  .trust svg { width: 18px; height: 18px; }

  /* Phone mockup */
  .phone { justify-self: center; width: 320px; height: 640px; border-radius: 46px; background: #0b1f1c; padding: 12px;
    box-shadow: 0 40px 80px rgba(0,30,25,.45), inset 0 0 0 2px rgba(255,255,255,.08); position: relative; transform: rotate(-3deg); }
  .screen { width: 100%; height: 100%; border-radius: 36px; background: #f4f7f6; overflow: hidden; position: relative; color: var(--ink); }
  .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; border-radius: 20px; background: #0b1f1c; z-index: 2; }
  .apphead { background: linear-gradient(140deg, #0a9078, #02705f); color: #fff; padding: 52px 18px 16px; }
  .apphead .greet { font-size: 13px; opacity: .85; }
  .apphead .nm { font-size: 20px; font-weight: 800; margin-top: 2px; }
  .chat { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
  .bubble { max-width: 82%; padding: 10px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.45; }
  .bubble.me { align-self: flex-end; background: var(--teal-800); color: #fff; border-bottom-right-radius: 5px; }
  .bubble.ai { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
  .bubble.ai b { color: var(--teal-800); }
  .qcard { margin: 4px 14px 0; border-radius: 18px; background: linear-gradient(140deg, #1f5f5c, #174a47); color: #fff; padding: 14px; }
  .qcard .row { display: flex; justify-content: space-between; }
  .qcard small { font-size: 9px; letter-spacing: 1.4px; opacity: .65; font-weight: 700; }
  .qcard .big { font-size: 30px; font-weight: 800; }
  .qcard .mid { font-size: 22px; font-weight: 800; text-align: right; }
  .steps { display: flex; align-items: center; margin-top: 10px; }
  .steps .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
  .steps .d1 { background: #fff; color: #174a47; } .steps .d2 { border: 2px solid #fff; background: rgba(255,255,255,.18); } .steps .d3 { background: rgba(255,255,255,.12); opacity: .6; }
  .steps .ln { flex: 1; height: 2px; background: rgba(255,255,255,.75); margin: 0 4px; }
  .steps .ln.half { background: linear-gradient(90deg, #fff 45%, rgba(255,255,255,.22) 45%); }
  .inputbar { position: absolute; bottom: 14px; left: 14px; right: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
    font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
  .mic { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-800); display: grid; place-items: center; }
  .mic svg { width: 15px; height: 15px; color: #fff; }

  /* Floating chip by the phone */
  .float { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 14px; box-shadow: 0 18px 40px rgba(0,40,30,.25);
    font-size: 13px; display: flex; gap: 10px; align-items: center; }
  .float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mint); color: var(--teal-800); font-weight: 800; }
  .float.f1 { right: -86px; top: 64px; transform: rotate(3deg); }
  .float.f2 { left: -118px; bottom: 92px; transform: rotate(-4deg); }
  .float b { display: block; font-size: 13.5px; }
  .float span { color: var(--muted); font-size: 12px; }

  /* Sections */
  section { padding: 96px 0; }
  .kicker { color: var(--teal-700); font-weight: 700; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; }
  h2 { font-size: 40px; letter-spacing: -.8px; margin: 10px 0 14px; line-height: 1.12; }
  .sub { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0; }
  .center { text-align: center; } .center .sub { margin: 0 auto; }

  /* App scene above the feature cards (hidden on phones, where its text would be too small) */
  .scene { margin-top: 48px; }
  .scene img { display: block; width: 100%; height: auto; border-radius: 32px; }

  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
  .card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; transition: transform .2s; }
  .card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--mint); color: var(--teal-800); display: grid; place-items: center; margin-bottom: 18px; }
  .card .ic svg { width: 26px; height: 26px; }
  .card h3 { margin: 0 0 8px; font-size: 19px; }
  .card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }
  .card.feature-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center;
    background: linear-gradient(135deg, var(--mint) 0%, #fff 70%); }
  .labs { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 13.5px; }
  .labs .r { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); }
  .labs .r:last-child { border: 0; }
  .pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
  .ok { background: #dcfce7; color: #166534; } .hi { background: #fef3c7; color: #92400e; }
  .labs .explain { margin-top: 10px; background: var(--mint); border-radius: 12px; padding: 10px 12px; color: var(--teal-900); font-size: 13px; line-height: 1.5; }

  .how { background: var(--canvas); }
  .steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; counter-reset: s; }
  .step { position: relative; background: #fff; border-radius: 22px; padding: 30px 28px; border: 1px solid var(--line); }
  .step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-800); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px; margin-bottom: 18px; }
  .step h3 { margin: 0 0 8px; font-size: 19px; } .step p { margin: 0; color: var(--muted); line-height: 1.6; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
  .lock { background: linear-gradient(150deg, #0a9078, #02574b); border-radius: 30px; padding: 40px; color: #fff; position: relative; overflow: hidden; }
  .lock .bigicon { width: 72px; height: 72px; border-radius: 20px; background: rgba(255,255,255,.15); display: grid; place-items: center; margin-bottom: 22px; }
  .lock .bigicon svg { width: 38px; height: 38px; }
  .lock ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
  .lock li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
  .lock li i { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--teal-400); display: grid; place-items: center; font-style: normal; font-size: 12px; margin-top: 1px; }

  .cta { padding: 0 0 96px; }
  .ctabox { border-radius: 32px; padding: 60px 60px 210px; color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; overflow: hidden;
    background: url('/images/login-panel.webp') center bottom / 100% auto no-repeat,
                linear-gradient(100deg, #02705f 0%, #0a9078 52%, #11a086 100%); }
  .ctabox h2 { color: #fff; margin-top: 0; } .ctabox p { opacity: .9; font-size: 18px; line-height: 1.55; margin: 0 0 26px; }

  .careteam { border-top: 1px solid var(--line); padding: 34px 0; }
  .careteam .wrap { display: flex; align-items: center; gap: 18px; }
  .careteam .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--mint); color: var(--teal-800); display: grid; place-items: center; }
  .careteam b { font-size: 17px; } .careteam span { color: var(--muted); }
  .careteam a { margin-left: auto; color: var(--teal-800); font-weight: 700; }

  footer { background: #0b2a26; color: rgba(255,255,255,.75); padding: 40px 0; font-size: 14px; }
  footer .wrap { display: flex; align-items: center; gap: 26px; }
  footer .brand { color: #fff; font-size: 18px; } footer .logo { width: 32px; height: 32px; } footer .logo svg { width: 20px; height: 20px; }
  footer .sp { margin-left: auto; display: flex; gap: 24px; }

  /* ── Tablet ─────────────────────────────────────────────────────────── */
  @media (max-width: 1080px) {
    .hero .wrap { grid-template-columns: 1fr; text-align: left; }
    .hero { padding: 130px 0 230px; }
    .phone-area { margin-top: 30px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .card.feature-wide { grid-column: span 2; }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .ctabox { grid-template-columns: 1fr; }
    nav .links { display: none; }
  }
  /* ── Phone ──────────────────────────────────────────────────────────── */
  @media (max-width: 640px) {
    .wrap { padding: 0 18px; }
    nav .wrap { gap: 12px; height: 68px; }
    nav .right { gap: 12px; font-size: 14px; }
    nav .right .care-link { display: none; }
    .brand { font-size: 19px; } .logo { width: 34px; height: 34px; } .logo svg { width: 22px; height: 22px; }
    .btn { padding: 11px 16px; font-size: 14px; }
    .hero { padding: 104px 0 150px; background-size: 760px auto, auto; }
    h1 { font-size: 38px; letter-spacing: -.8px; }
    .hero p.lead { font-size: 16.5px; }
    .trust { flex-direction: column; gap: 10px; }
    .phone-area { transform: scale(.82); transform-origin: top center; margin: 10px 0 -110px; }
    .float.f1 { right: -24px; } .float.f2 { left: -30px; }
    section { padding: 64px 0; }
    h2 { font-size: 30px; }
    .sub { font-size: 16px; }
    .scene { display: none; }
    .features, .steps3 { grid-template-columns: 1fr; margin-top: 34px; }
    .card.feature-wide { grid-column: auto; grid-template-columns: 1fr; }
    .lock { padding: 28px; }
    .cta { padding-bottom: 64px; }
    .ctabox { padding: 36px 26px 150px; background-size: 140% auto, auto; }
    .careteam .wrap { flex-wrap: wrap; }
    .careteam a { margin-left: 0; width: 100%; }
    footer .wrap { flex-wrap: wrap; gap: 14px; }
    footer .sp { margin-left: 0; width: 100%; }
  }
