/* icare.apmedicalsystems.com — product site. Same system as the iClaimsGuard site; iCare's accent is the app's own teal. */
/* Fonts are self-hosted: the host's Content-Security-Policy allows styles and fonts from 'self' only. Latin subsets,
   variable weights, SIL Open Font License. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/sora.woff2) format("woff2"); }
:root {
  --ink: #070D14; --ink-2: #0C1520; --ink-3: #13202C; --navy: #293643; --navy-2: #122130;
  --teal: #1FC7AE; --teal-2: #5BE0CB; --teal-deep: #0F8F7D; --teal-glow: rgba(31,199,174,.34);
  --gold: #F6921E;
  --text: #F2F7F9; --text-2: #C2D2DA; --muted: #8AA0AD; --line: rgba(255,255,255,.09);
  --paper: #F4F8F9; --paper-ink: #13222D;
  --radius: 18px; --max: 1260px;
  --display: "Sora", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--teal); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(7,13,20,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.4px; }
.brand .mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand i { font-style: italic; color: var(--teal); font-weight: 700; margin-right: 1px; }
.brand small { font-family: var(--body); font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-left: 4px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #04201B; }
@media (max-width: 860px) { .nav-links a.hide-sm { display: none; } .nav .wrap { gap: 14px; } .nav-links { gap: 14px; } .brand small { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; text-decoration: none; border-radius: 14px; padding: 16px 30px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--teal); color: #04201B; box-shadow: 0 10px 30px -8px var(--teal-glow), inset 0 -2px 0 rgba(0,0,0,.14); }
.btn-primary:hover { background: var(--teal-2); transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--teal-glow); }
.btn-primary .arrow { transition: transform .2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-sm { font-size: 14.5px; padding: 10px 18px; border-radius: 11px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } .btn:hover { transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; background:
  radial-gradient(1100px 620px at 80% 30%, rgba(31,199,174,.15), transparent 60%),
  radial-gradient(900px 700px at 8% 92%, rgba(41,54,67,.9), transparent 70%),
  linear-gradient(180deg, #070D14 0%, #0B1620 100%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 62% 42%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 62% 42%, #000 20%, transparent 72%); opacity: .5; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; width: 100%; }
.eyebrow { font-family: var(--display); font-size: 13.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin: 0 0 22px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--teal); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin: 0; }
.hero h1 { font-size: clamp(46px, 5vw, 82px); }
.accent { color: var(--teal); }
.lede { font-size: clamp(18px, 1.55vw, 21px); color: var(--text-2); max-width: 34em; margin: 28px 0 38px; }
.lede strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.cta-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.15); flex-shrink: 0; }

.hero-shot { position: relative; perspective: 1800px; }
@media (min-width: 981px) { .hero-shot { width: 128%; margin-right: -28%; } .hero .wrap { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } }
.hero-shot .frame { transform: rotateY(-9deg) rotateX(3deg) translateZ(0); transform-origin: left center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero-shot:hover .frame { transform: rotateY(-4deg) rotateX(1deg); }
.hero-shot .chip-float { position: absolute; z-index: 2; background: rgba(12,21,32,.92); border: 1px solid rgba(31,199,174,.45); border-radius: 14px; padding: 12px 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); font-size: 13.5px; color: var(--text-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-shot .chip-float b { display: block; color: #fff; font-family: var(--display); font-size: 15px; }
.hero-shot .c1 { left: -26px; bottom: 16%; animation: float 7s ease-in-out infinite; }
.hero-shot .c2 { right: -14px; top: -22px; animation: float 8s ease-in-out -3s infinite; }
@media (min-width: 981px) { .hero-shot .c2 { right: auto; left: 44%; top: -30px; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .hero-shot .frame { transform: none; transition: none; } .hero-shot .c1, .hero-shot .c2 { animation: none; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--muted); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue span { width: 1.5px; height: 34px; background: linear-gradient(var(--teal), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

@media (max-width: 980px) {
  .hero { min-height: auto; padding: 116px 0 70px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-shot .frame { transform: none; }
  .hero-shot .c1 { left: 8px; } .hero-shot .c2 { right: 8px; }
  .scroll-cue { display: none; }
}

/* ---------- proof strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #08111A; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip div { padding: 30px 24px; border-left: 1px solid var(--line); }
.strip div:first-child { border-left: 0; }
.strip b { display: block; font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.strip b em { font-style: normal; color: var(--teal); }
.strip span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .strip .wrap { grid-template-columns: 1fr 1fr; } .strip div:nth-child(3) { border-left: 0; } .strip div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding: clamp(80px, 11vw, 150px) 0; overflow-x: clip; }
.band-ink { background: var(--ink); }
.band-ink-2 { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.band-navy { background: radial-gradient(1000px 500px at 50% 0%, rgba(31,199,174,.10), transparent 60%), var(--navy-2); }
.section-head { max-width: 880px; margin-bottom: clamp(48px, 7vw, 90px); }
.section-head h2 { font-size: clamp(36px, 5vw, 70px); }
.section-head p { color: var(--text-2); font-size: clamp(17px, 1.4vw, 20px); margin: 22px 0 0; max-width: 40em; }

/* the visit: six chapters */
.chapter { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; margin-bottom: clamp(90px, 12vw, 160px); }
.chapter:last-child { margin-bottom: 0; }
.chapter.flip { grid-template-columns: 1.2fr .8fr; }
.chapter.flip .chapter-text { order: 2; }
.chapter-num { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 9vw, 128px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(31,199,174,.75); letter-spacing: -.04em; margin-bottom: 18px; display: block; }
.chapter .kicker { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.chapter h3 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.3vw, 46px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 18px; }
.chapter p { color: var(--text-2); margin: 0 0 14px; font-size: 17.5px; }
.chapter ul { list-style: none; padding: 0; margin: 18px 0 0; }
.chapter li { position: relative; padding: 6px 0 6px 28px; color: var(--text-2); font-size: 16px; }
.chapter li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.chapter .fact { display: inline-flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--text); border-left: 3px solid var(--teal); padding: 4px 0 4px 14px; margin-top: 16px; }
@media (max-width: 900px) { .chapter, .chapter.flip { grid-template-columns: 1fr; } .chapter.flip .chapter-text { order: 0; } }

/* browser frame around a real screenshot */
.frame { position: relative; border-radius: 14px; background: #16212C; box-shadow: 0 50px 100px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.frame-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: linear-gradient(#1F2B37, #18222D); border-bottom: 1px solid rgba(0,0,0,.35); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #34424F; }
.frame-bar i:first-child { background: var(--teal); }
.frame-bar .url { margin-left: 14px; flex: 1; max-width: 380px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.06); font-size: 11.5px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.frame img { width: 100%; height: auto; }
.shot-wrap { position: relative; }
.shot-wrap::before { content: ""; position: absolute; inset: -10% -8% auto auto; width: 70%; height: 70%; background: radial-gradient(circle, rgba(31,199,174,.18), transparent 65%); filter: blur(24px); z-index: 0; pointer-events: none; }
.shot-wrap .frame { z-index: 1; }
.caption { color: var(--muted); font-size: 13.5px; margin: 14px 2px 0; }

/* modules */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.module { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; transition: border-color .25s, transform .25s; }
.module:hover { border-color: rgba(31,199,174,.45); transform: translateY(-3px); }
.module .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: linear-gradient(160deg, rgba(31,199,174,.18), rgba(31,199,174,.05)); border: 1px solid rgba(31,199,174,.32); box-shadow: 0 10px 24px -14px var(--teal-glow); transition: transform .25s, box-shadow .25s; }
.module .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--teal-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.module:hover .ico { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px -12px var(--teal-glow); }
@media (prefers-reduced-motion: reduce) { .module .ico { transition: none; } .module:hover .ico { transform: none; } }
.module .tag { display: inline-block; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.module h3 { font-family: var(--display); font-size: 21px; letter-spacing: -.02em; margin: 0 0 8px; }
.module h3 i { color: var(--teal); font-style: italic; }
.module p { color: var(--text-2); margin: 0; font-size: 15px; line-height: 1.55; }
.included { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.included .lbl { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; }
.included span:not(.lbl) { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--text-2); background: rgba(255,255,255,.03); }
@media (max-width: 1080px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

/* principles */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.pillar svg { width: 42px; height: 42px; margin-bottom: 22px; }
.pillar h3 { font-family: var(--display); font-size: 23px; letter-spacing: -.02em; margin: 0 0 10px; }
.pillar p { color: var(--text-2); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* straight answers */
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.02); }
.answers > div { padding: 30px 32px; border-top: 1px solid var(--line); }
.answers > div:nth-child(-n+2) { border-top: 0; }
.answers > div:nth-child(even) { border-left: 1px solid var(--line); }
.answers h3 { font-family: var(--display); font-size: 19px; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.answers h3 .st { font-family: var(--body); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.st.live { background: rgba(61,220,132,.14); color: #7CEAAE; }
.st.next { background: rgba(246,146,30,.14); color: #FFC27A; }
.answers p { margin: 0; color: var(--text-2); font-size: 15.5px; }
@media (max-width: 820px) { .answers { grid-template-columns: 1fr; } .answers > div:nth-child(even) { border-left: 0; } .answers > div:nth-child(2) { border-top: 1px solid var(--line); } }

/* closing call */
.closing { text-align: center; }
.closing h2 { font-size: clamp(42px, 6.6vw, 96px); margin: 0 auto; max-width: 13em; }
.closing p { color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); margin: 24px auto 40px; max-width: 36em; }
.closing .cta-row { justify-content: center; }

footer.site { background: #05090E; border-top: 1px solid var(--line); padding: 50px 0 60px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
footer.site a { color: var(--text-2); text-decoration: none; }
footer.site a:hover { color: #fff; }

/* reveal on scroll: only when JS runs and motion is welcome; a timer un-hides everything if the observer never fires */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- the demo sign-in: an entrance, not a form ---------- */
body.entrance { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background:
  radial-gradient(1200px 800px at 70% 40%, rgba(18,33,48,.95), transparent 70%), #050A10; }
body.entrance .nav { position: relative; background: transparent; }
.portal { position: fixed; right: -18vmax; top: 50%; width: 90vmax; height: 90vmax; transform: translateY(-50%); pointer-events: none; z-index: 0; }
.portal-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 60%, rgba(31,199,174,.55) 72%, transparent 86%); filter: blur(28px); opacity: .55; animation: spin 18s linear infinite; }
.portal-core { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(31,199,174,.16), transparent 62%); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .portal-ring { animation: none; } }
.entry { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 4vw, 60px); align-items: center; padding-top: 30px; padding-bottom: 50px; }
.entry h1 { font-size: clamp(42px, 4.4vw, 70px); }
.entry .lede { margin: 26px 0 26px; }
.entry-facts { list-style: none; padding: 0; margin: 0; color: var(--text-2); font-size: 15.5px; }
.entry-facts li { padding: 7px 0 7px 26px; position: relative; }
.entry-facts li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 3px; background: var(--teal); }
.entry-facts strong { color: #B8F3E8; }
.gate { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; padding: 8px; box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(31,199,174,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gate-inner { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; }
.gate-form { background: var(--paper); color: var(--paper-ink); padding: clamp(28px, 3.4vw, 46px); }
.gate-form h2 { font-family: var(--display); color: var(--navy); font-size: 26px; letter-spacing: -.02em; margin: 0 0 20px; }
.gate-form label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin: 16px 0 8px; }
.gate-form input { width: 100%; font: inherit; font-size: 20px; padding: 16px 18px; border-radius: 14px; border: 2px solid #C5D3DB; background: #fff; color: var(--paper-ink); }
.gate-form input:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 5px rgba(31,199,174,.22); }
.gate-go { width: 100%; margin-top: 26px; font-size: 19px; padding: 18px 26px; }
.gate-go[disabled] { opacity: .7; cursor: progress; }
.gate-err { color: #B02A24; font-weight: 600; margin: 14px 0 0; min-height: 1em; }
.gate-msg:empty { display: none; }
.gate-msg { color: #0E5E53; font-weight: 600; background: #DDF3EF; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
/* preparing the private practice: spinner ring, progress bar, steps that tick off */
.prep { display: none; }
.gate-form.busy > :not(.prep) { display: none; }
.gate-form.busy .prep { display: block; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.prep-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ring { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(var(--teal-deep) 0 var(--p, 0%), #DCE7EB var(--p, 0%) 100%); display: grid; place-items: center; position: relative; transition: --p .4s; }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }
.ring::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--teal); animation: spin 1s linear infinite; }
.ring b { position: relative; font-family: var(--display); font-size: 13px; color: var(--navy); }
.prep h2 { margin: 0; }
.prep-sub { color: #4A5F6C; font-size: 14.5px; margin: 4px 0 0; }
.bar { height: 8px; border-radius: 99px; background: #DCE7EB; overflow: hidden; margin-bottom: 22px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); transition: width .6s cubic-bezier(.2,.7,.2,1); position: relative; }
.bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 9px 0; color: #8A9CA7; font-size: 15.5px; font-weight: 600; transition: color .3s; }
.steps li .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C5D3DB; flex-shrink: 0; display: grid; place-items: center; transition: all .3s; }
.steps li.active { color: var(--navy); }
.steps li.active .dot { border-color: var(--teal-deep); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--navy); }
.steps li.done .dot { background: var(--teal-deep); border-color: var(--teal-deep); }
.steps li.done .dot::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.prep-done { display: none; margin-top: 22px; }
.prep.finished .prep-done { display: block; animation: fadein .4s ease; }
.prep-done p { color: #33475A; font-size: 15px; margin: 0 0 16px; }
.prep-done .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .ring::after, .steps li.active .dot, .bar i::after { animation: none; } }
.creds { background: linear-gradient(160deg, #173042, #0F1D29); padding: clamp(28px, 3.4vw, 46px); display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,.08); }
.creds-kicker { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.creds-dir { color: var(--text); font-size: 17px; line-height: 1.45; margin: 0 0 22px; font-weight: 600; }
.creds dl { margin: 0 0 22px; }
.creds dt { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-top: 12px; }
.creds dd { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.creds code { font-family: "Cascadia Mono", Consolas, Menlo, monospace; font-size: 19px; color: #fff; background: rgba(0,0,0,.28); border: 1px dashed rgba(31,199,174,.55); border-radius: 10px; padding: 8px 12px; white-space: nowrap; max-width: 100%; overflow-x: auto; }
.copy, .fill { background: transparent; border: 1px solid rgba(255,255,255,.3); color: var(--text-2); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.copy:hover, .fill:hover { color: #fff; border-color: #fff; }
.fill { padding: 10px 14px; font-size: 14px; align-self: flex-start; }
.entry-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; color: var(--muted); font-size: 13.5px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); }
/* sign-in v2 (Sep 29, Glenn: "cuter, normalized L-R"): two mirrored panes — kicker, title, two 48px rows, one
   48px action — so every row sits level with the one opposite it. Later rules here override the first draft above. */
.entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.entry h1 { font-size: clamp(38px, 3.6vw, 58px); }
.entry .lede { font-size: 18px; margin: 22px 0 22px; }
.gate { max-width: 560px; width: 100%; justify-self: end; border-radius: 22px; padding: 6px; }
.gate-inner { grid-template-columns: 1fr 1fr; border-radius: 17px; align-items: stretch; }
.pane { padding: 22px 22px 20px; display: flex; flex-direction: column; }
.pane-kicker { font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 4px; color: var(--teal-deep); }
.creds .pane-kicker { color: var(--teal); }
.pane .pane-title { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; margin: 0 0 14px; color: var(--navy); }
.creds.pane .pane-title { color: #fff; }
.pane .row { margin-bottom: 10px; }
.pane .row label, .pane .row .lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 5px; color: #4A5F6C; }
.creds .row .lbl { color: var(--muted); }
.gate-form input { height: 42px; font-size: 15px; padding: 0 12px; border-radius: 11px; border: 1.5px solid #C9D6DD; }
.pill { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 5px 0 12px; border-radius: 11px; background: rgba(0,0,0,.26); border: 1.5px dashed rgba(31,199,174,.5); }
.pill code { font-family: "Cascadia Mono", Consolas, Menlo, monospace; font-size: 14px; color: #fff; background: none; border: 0; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill .copy { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; flex-shrink: 0; }
.pane-action { margin-top: 4px; height: 42px; padding: 0 14px; font-size: 14.5px; border-radius: 11px; width: 100%; }
.btn-soft { background: rgba(31,199,174,.12); color: #BFF5EC; box-shadow: inset 0 0 0 1.5px rgba(31,199,174,.45); font-family: var(--display); font-weight: 700; }
.btn-soft:hover { background: rgba(31,199,174,.2); color: #fff; }
.pane-note { margin: 9px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.gate-form .gate-err { font-size: 14px; margin-top: 10px; }
.gate-form .gate-err:empty { display: none; }
.creds { border-left: 1px solid rgba(255,255,255,.08); justify-content: flex-start; }
/* preparing screen, compact to fit the pane: ring above a one-line title, smaller steps, auto-open line */
.prep .prep-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.prep .ring { width: 46px; height: 46px; }
.prep .ring b { font-size: 11.5px; }
.prep .prep-title { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; color: var(--navy); margin: 0; white-space: nowrap; }
.prep .prep-sub { font-size: 13.5px; margin-top: 2px; }
.prep .bar { height: 6px; margin-bottom: 14px; }
.prep .steps li { font-size: 14px; padding: 6px 0; gap: 10px; line-height: 1.35; }
.prep .steps li .dot { width: 18px; height: 18px; }
.prep .steps li.done .dot::after { width: 7px; height: 4px; }
.prep .prep-done { margin-top: 14px; }
.prep .prep-done p { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.go-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--teal-deep); border-top-color: transparent; animation: spin .8s linear infinite; flex-shrink: 0; }
/* stepper v2 (Glenn: "showing the steps, without enlarging the panel"): ring + title in one row, the current step
   as one changing line, four segments that fill. Fits inside the sign-in pane's own height. */
.gate-form.busy { justify-content: center; }
.prep .prep-head { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 18px; }
.prep .prep-title { font-size: 17px; }
.prep .prep-sub { font-size: 12.5px; }
.step-now { min-height: 42px; margin: 0 0 12px; font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.step-now.in { animation: stepin .35s ease; }
@keyframes stepin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.prep .steps { display: flex; gap: 6px; }
.prep .steps li { flex: 1; height: 7px; padding: 0; border-radius: 99px; background: #DCE7EB; font-size: 0; overflow: hidden; position: relative; }
.prep .steps li .dot { display: none; }
.prep .steps li.done { background: var(--teal-deep); }
.prep .steps li.active { background: #BFE9E1; }
.prep .steps li.active::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--teal), transparent); animation: shimmer 1s linear infinite; }
.step-count { margin: 8px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #6B7F8B; }
.prep .prep-done { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .step-now.in, .prep .steps li.active::after { animation: none; } }
/* sign-in v3 (Glenn: "bland, boring, flat"): depth without growing the card — real screens floating behind it,
   a slow light around the edge, an accent strip, field icons, a glowing button, texture on the credentials side. */
.gate-stage { position: relative; justify-self: end; width: 100%; max-width: 560px; }
.gate-stage .gate { position: relative; z-index: 2; justify-self: auto; max-width: none; }
.ghost { position: absolute; z-index: 1; width: 78%; border-radius: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); opacity: .32; filter: saturate(.8) blur(.4px); pointer-events: none; }
.ghost.g1 { left: 4%; top: -40%; width: 66%; transform: rotate(-7deg); animation: drift1 11s ease-in-out infinite; }
.ghost.g2 { right: 0; bottom: -34%; width: 66%; transform: rotate(6deg); animation: drift2 13s ease-in-out infinite; }
.entry { overflow-x: clip; }
@keyframes drift1 { 0%,100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-12px); } }
@keyframes drift2 { 0%,100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(5deg) translateY(10px); } }
@property --edge { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.gate { background: rgba(10,20,30,.55); box-shadow: 0 50px 110px -40px rgba(0,0,0,.95), 0 0 70px -20px rgba(31,199,174,.35); }
.gate::before { content: ""; position: absolute; inset: -1px; border-radius: 23px; padding: 1.5px; background: conic-gradient(from var(--edge), rgba(31,199,174,0) 0deg, rgba(31,199,174,.9) 60deg, rgba(91,224,203,.2) 120deg, rgba(31,199,174,0) 180deg, rgba(31,199,174,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: edge 6s linear infinite; pointer-events: none; }
@keyframes edge { to { --edge: 360deg; } }
.gate-form.pane { position: relative; background: linear-gradient(170deg, #FFFFFF 0%, #EEF6F7 100%); }
.gate-form.pane::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--teal-deep), var(--teal), #7BE6D5); }
.ifield { position: relative; }
.ifield svg, .pill svg { width: 17px; height: 17px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ifield svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); stroke: #7F95A1; pointer-events: none; transition: stroke .2s; }
.ifield input { padding-left: 38px; background: #fff; box-shadow: inset 0 1px 2px rgba(19,34,45,.06); }
.ifield:focus-within svg { stroke: var(--teal-deep); }
#go.pane-action { background: linear-gradient(135deg, #22D3B8, #12A38D); color: #03211C; box-shadow: 0 12px 26px -10px rgba(31,199,174,.75), inset 0 1px 0 rgba(255,255,255,.35); }
#go.pane-action:hover { filter: brightness(1.06); }
.creds.pane { position: relative; overflow: hidden; background: radial-gradient(260px 200px at 100% 0%, rgba(31,199,174,.22), transparent 70%), radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 14px 14px, linear-gradient(160deg, #173042, #0D1B27); }
.pill svg { stroke: var(--teal-2); margin-right: -2px; }
.pill { justify-content: flex-start; }
.pill code { flex: 1; }
@media (max-width: 1080px) { .gate-stage { justify-self: start; } .ghost { display: none; } }
@media (prefers-reduced-motion: reduce) { .ghost { animation: none; } .gate::before { animation: none; } }
/* progress in the RIGHT panel (Glenn, Sep 29): the credentials panel turns into the progress display, in its own dark
   palette; the sign-in side keeps what was entered, dimmed, with "Entering…" on the button. */
.creds.busy { justify-content: center; }
.creds.busy > :not(.prep) { display: none; }
.creds.busy .prep { display: block; animation: fadein .35s ease; }
.creds .prep .ring::before { background: #13283A; }
.creds .prep .ring b { color: #fff; }
.creds .prep .ring::after { border-top-color: var(--teal-2); }
.creds .prep .prep-title { color: #fff; font-size: 15.5px; white-space: normal; line-height: 1.25; }
.creds .prep .prep-head > div { min-width: 0; }
.creds .prep .prep-sub { color: var(--muted); }
.creds .step-now { color: #E6F5F2; }
.creds .prep .steps li { background: rgba(255,255,255,.12); }
.creds .prep .steps li.active { background: rgba(31,199,174,.3); }
.creds .prep .steps li.done { background: var(--teal); }
.creds .step-count { color: var(--muted); }
.creds .prep .prep-done p { color: #fff; }
.creds .go-spin { border-color: var(--teal-2); border-top-color: transparent; }
.creds .go-now { color: var(--teal-2); }
.gate-form.entered .row, .gate-form.entered .pane-title, .gate-form.entered .pane-kicker { opacity: .5; transition: opacity .4s; }
.gate-form.entered input:disabled { background: #F3F7F8; color: #5B6E79; }
#go:disabled { cursor: progress; }
#go .go-spin { display: inline-block; width: 15px; height: 15px; margin-right: 10px; border-color: #03211C; border-top-color: transparent; vertical-align: -2px; }
.gate .creds { transition: opacity .4s, filter .4s; }
.gate.locked .creds { opacity: .38; filter: saturate(.3); pointer-events: none; }
.creds button:disabled { cursor: default; }
.go-now { font-size: 14px; font-weight: 700; color: var(--teal-deep); text-decoration: none; }
.go-now:hover { text-decoration: underline; }
@media (max-width: 1080px) { .entry { grid-template-columns: 1fr; } .gate { justify-self: start; } }
@media (min-width: 1081px) and (max-width: 1280px) { .gate-inner { grid-template-columns: 1fr 1fr; } .creds { border-top: 0; order: 0; } }
@media (max-width: 620px) { .gate-inner { grid-template-columns: 1fr; } .creds { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); order: -1; } }
@media (min-width: 1081px) and (max-width: 1280px) { .gate-inner { grid-template-columns: 1fr; } .creds { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); order: -1; } }
@media (max-width: 720px) { .gate-inner { grid-template-columns: 1fr; } .creds { border-left: 0; order: -1; } .portal { right: -50vmax; } }
