/* Brochure styles for the qiiq.health home and the myloop.qiiq.health welcome page. Live palette and type. */

/* Layout: a one-scroll brochure. Hero says what and who in five seconds; each band after it answers one question a first visitor has. Live qiiq.health palette, dark by design. */
:root {
  color-scheme: dark;
  --ink: #07090d;
  --ink-soft: #10151a;
  --panel: #151b21;
  --paper: #f5f3ed;
  --muted: #a7b0af;
  --line: rgba(255,255,255,0.14);
  --magenta: #ed3b91;
  --green: #adff78;
  --cyan: #60d9ef;
  --yellow: #ffc95c;
  --f: "DM Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { background: var(--ink); color: var(--paper); }
body { margin: 0; font-family: var(--f); font-size: 17px; line-height: 1.55; }
.band { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.shell { max-width: 1120px; margin: 0 auto; }
.mockbar { background: var(--yellow); color: var(--ink); font-size: .82rem; font-weight: 700; text-align: center; padding-block: 6px; }
header.band { padding-block: 16px; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-weight: 800; letter-spacing: .14em; font-size: .78rem; }
.brand img { height: 22px; width: auto; }
.links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.links a { color: var(--paper); text-decoration: none; }
.links a:hover { color: var(--green); }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; background: var(--green); color: var(--ink) !important; font-weight: 800; text-decoration: none; }
.cta.small { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--paper); text-decoration: none; font-weight: 700; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.08; }
h3 { font-size: 1.2rem; line-height: 1.2; }
p { margin: 0; }
.hero { padding-block: 48px 56px; }
.hero .shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero .text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero .lede { font-size: 1.2rem; max-width: 34ch; }
.hero .row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { color: var(--muted); font-size: .92rem; }
.hero svg { width: 100%; height: auto; border-radius: 24px; background: var(--ink-soft); }
@media (max-width: 860px) { .hero .shell { grid-template-columns: minmax(0, 1fr); } }
section.band { padding-block: 64px; }
.alt { background: var(--ink-soft); }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 32px; }
.head p { color: var(--muted); font-size: 1.1rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.step svg { width: 100%; height: auto; display: block; background: var(--ink); }
.step .b { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.step .n { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--green); }
.step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.why .big { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; line-height: 1.3; }
.why .big em { font-style: normal; color: var(--magenta); }
.why .body { display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 860px) { .why { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.diff { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.d { border-top: 4px solid var(--magenta); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.d:nth-child(2) { border-color: var(--cyan); } .d:nth-child(3) { border-color: var(--yellow); } .d:nth-child(4) { border-color: var(--green); }
.d p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .diff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .diff { grid-template-columns: minmax(0, 1fr); } }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.door { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--paper); text-decoration: none; min-width: 0; }
.door:hover { border-color: var(--green); }
.door b { font-size: 1.08rem; }
.door span { color: var(--muted); font-size: .92rem; }
.door .go { margin-top: 6px; color: var(--green); font-weight: 700; font-size: .9rem; }
.door.main { background: var(--green); color: var(--ink); border-color: var(--green); }
.door.main span, .door.main .go { color: var(--ink); }
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.team .body { display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.promise { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.promise li { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.promise b { color: var(--paper); }
@media (max-width: 860px) { .team { grid-template-columns: minmax(0, 1fr); } }
.close { text-align: left; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.close p { color: var(--muted); }
footer.band { padding-block: 32px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
footer .shell { display: flex; flex-direction: column; gap: 14px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--paper); text-decoration: none; }
.margin { display: block; margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--yellow); background: rgba(255,201,92,.08); color: var(--yellow); font-size: .85rem; border-radius: 0 10px 10px 0; }
@media (prefers-reduced-motion: no-preference) {
  .grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 1.2s cubic-bezier(.2,.8,.2,1.2) both; }
  @keyframes grow { from { transform: scaleY(0); } }
  .bob { animation: bob 3s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-4px); } }
}

.loopwrap { margin: 40px auto 0; max-width: 1280px; width: 100%; }
.loopart { width: 100%; height: auto; display: block; max-width: 100%; }
.runner { offset-path: path("M 800 180 A 560 290 0 1 0 1360 470 A 560 290 0 0 0 800 180"); offset-rotate: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .runner { animation: run 9s linear infinite; }
  @keyframes run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
  .rings circle { transform-box: fill-box; transform-origin: center; animation: ring 9s ease-out infinite; }
  .rings circle:nth-child(2) { animation-delay: .4s; } .rings circle:nth-child(3) { animation-delay: .8s; } .rings circle:nth-child(4) { animation-delay: 1.2s; } .rings circle:nth-child(5) { animation-delay: 1.6s; }
  @keyframes ring { 0% { transform: scale(.6); opacity: 0; } 15%, 100% { transform: scale(1); } 15% { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .runner { offset-distance: 20%; } }
.layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.layer { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; border-top: 6px solid var(--magenta); }
.layer:nth-child(2) { border-top-color: var(--cyan); } .layer:nth-child(3) { border-top-color: var(--yellow); } .layer:nth-child(4) { border-top-color: var(--green); }
.layer p { color: var(--muted); font-size: .98rem; }
.layer .st { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .layers { grid-template-columns: minmax(0, 1fr); } }
.status { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { border-radius: 18px; padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.tile.now { background: var(--magenta); color: var(--ink); border-color: var(--magenta); }
.tile .k { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tile b { font-size: 1.15rem; line-height: 1.2; }
.tile span:not(.k) { font-size: .92rem; color: var(--muted); }
.tile.now span:not(.k) { color: var(--ink); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.split .body { display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.hero.solo .shell { grid-template-columns: minmax(0, 1fr); }
.hero.solo .lede { max-width: 56ch; }
.mega { font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: .98; letter-spacing: -.03em; max-width: 14ch; }
.hl { color: var(--green); }
.hero.solo .lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); max-width: 52ch; }
.pills { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { font-weight: 800; font-size: .95rem; padding: 8px 16px; border-radius: 999px; border: 2px solid; }
.pills .p1 { border-color: var(--magenta); color: var(--magenta); } .pills .p2 { border-color: var(--cyan); color: var(--cyan); } .pills .p3 { border-color: var(--paper); color: var(--paper); } .pills .p4 { border-color: var(--yellow); color: var(--yellow); }


.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:16px;top:16px;background:var(--paper);color:var(--ink);padding:8px 12px;border-radius:8px;z-index:20}
@media (max-width: 600px) { .links a:not(.cta) { display: none; } }

/* Approved illustrations (round 2). Drafts remain in docs/art/drafts. */
.loopart { width: 100%; height: auto; display: block; border-radius: 24px; background: var(--ink-soft); }
img.art-hero { width: 100%; height: auto; display: block; border-radius: 24px; background: var(--ink-soft); }
.step img.art-step { width: 100%; height: auto; display: block; aspect-ratio: 1440 / 800; object-fit: cover; background: var(--ink); }
.step svg { aspect-ratio: 1440 / 800; object-fit: cover; }
