/* Life Grid Blood Bank — sample website by genRAG.AI */
:root {
  --ink: #0C0709;
  --ink-2: #170D10;
  --ink-3: #24151A;
  --red: #D7213A;
  --red-2: #FF3B55;
  --red-deep: #8E0E22;
  --plasma: #F4B740;
  --plt: #F6E7C8;
  --paper: #FBF6F1;
  --paper-2: #F2E9E1;
  --text: #1C1114;
  --muted: #6F5B60;
  --on-dark: #F6EEEC;
  --on-dark-2: #BFA9AD;
  --line: rgba(255, 255, 255, .1);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { font: 400 1.0625rem/1.6 var(--sans); color: var(--text); background: var(--ink); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only, .trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--plasma); outline-offset: 3px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }

h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); margin-bottom: 14px; }
h3 { font-size: 1.32rem; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 60ch; }
.eyebrow { font: 500 .8rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.fine { font-size: .82rem; opacity: .7; margin-top: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(215, 33, 58, .8); }
.btn-red:hover { background: var(--red-2); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-light { background: #fff; color: var(--red-deep); }
.full { grid-column: 1 / -1; width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* Nav */
.nav { position: fixed; z-index: 50; inset: 12px 12px auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; border-radius: 999px; color: var(--on-dark); background: rgba(12, 7, 9, .62); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.15rem var(--display); letter-spacing: -.01em; }
.brand small { display: block; font: 500 .7rem var(--sans); letter-spacing: .04em; opacity: .7; }
.brand-mark { width: 30px; height: 30px; fill: var(--red); }
.brand-mark .o { fill: none; stroke: currentColor; stroke-width: 2; opacity: .6; }
.nav-links { display: flex; gap: 22px; font-size: .93rem; }
.nav-links a { text-decoration: none; opacity: .82; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-sos { display: inline-flex; align-items: center; gap: 8px; font: 500 .85rem var(--mono); text-decoration: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 0 rgba(255, 59, 85, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 85, 0); } }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { position: fixed; z-index: 49; inset: 74px 12px auto; display: grid; gap: 4px; padding: 14px; border-radius: 22px; background: rgba(12, 7, 9, .96); color: var(--on-dark); border: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 10px; text-decoration: none; font-size: 1.05rem; }
.mobile-menu .btn { margin-top: 6px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 140px 0 64px; color: var(--on-dark); background: radial-gradient(80% 60% at 75% 35%, rgba(215, 33, 58, .28), transparent 70%), var(--ink); overflow: hidden; isolation: isolate; }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 7, 9, .92) 0%, rgba(12, 7, 9, .55) 45%, rgba(12, 7, 9, 0) 75%), linear-gradient(0deg, var(--ink) 0%, transparent 30%); pointer-events: none; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 .82rem var(--mono); letter-spacing: .06em; color: var(--on-dark-2); margin-bottom: 22px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 12px #3DDC84; }
.hero h1 { font-size: clamp(3.2rem, 10vw, 8.4rem); line-height: .92; letter-spacing: -.045em; margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--red-2); }
.hero .lead { color: var(--on-dark-2); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 46px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 46px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 760px; }
.hero-stats dt { font-size: .82rem; color: var(--on-dark-2); }
.hero-stats dd { font: 800 2.4rem/1 var(--display); letter-spacing: -.03em; }
.hero-stats small { font: 500 .9rem var(--sans); margin-left: 4px; color: var(--on-dark-2); }
.scroll-cue { position: absolute; right: 24px; bottom: 26px; font: 500 .75rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); text-decoration: none; writing-mode: vertical-rl; }

/* Sections */
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec.dark { background: var(--ink); color: var(--on-dark); }
.sec.dark .lead { color: var(--on-dark-2); }
.sec.light { background: var(--paper); }
.sec.light.alt { background: var(--paper-2); }
.sec.light .lead { color: var(--muted); }
.sec.red { background: radial-gradient(70% 90% at 90% 10%, #FF3B55 0%, transparent 60%), var(--red-deep); color: #fff; }
.sec.red .eyebrow { color: var(--plt); }
.sec-head { margin-bottom: 44px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }

/* Live stock grid */
.stock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cell { position: relative; display: grid; gap: 4px; align-content: start; min-height: 170px; padding: 20px; text-align: left; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); cursor: pointer; overflow: hidden; transition: transform .35s var(--ease), border-color .3s ease, opacity .3s ease, background .3s ease; }
.cell:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .25); }
.cell b { font: 800 2.6rem/1 var(--display); letter-spacing: -.03em; }
.cell .units { font: 500 1rem var(--mono); color: var(--on-dark-2); }
.cell .units::after { content: ' units'; }
.cell .lvl { justify-self: start; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font: 600 .72rem var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.lvl.crit { background: rgba(255, 59, 85, .18); color: #FF8796; }
.lvl.low { background: rgba(244, 183, 64, .16); color: var(--plasma); }
.lvl.ok { background: rgba(61, 220, 132, .12); color: #7CE7A8; }
.cell .bar { position: absolute; left: 0; bottom: 0; height: 5px; width: calc(var(--v) * 100%); background: linear-gradient(90deg, var(--red-deep), var(--red-2)); border-radius: 0 4px 0 0; }
.cell[aria-pressed="true"] { background: var(--red); border-color: var(--red-2); transform: translateY(-3px); }
.cell[aria-pressed="true"] .units, .cell[aria-pressed="true"] .lvl { color: #fff; }
.cell.give { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.cell.take { border: 1.5px dashed var(--plasma); }
.cell.dim { opacity: .35; }
.match { margin-top: 22px; min-height: 92px; padding: 20px 22px; border-radius: var(--r); border: 1px dashed var(--line); }
.match-empty { color: var(--on-dark-2); }
.match h3 { margin-bottom: 8px; }
.match p { color: var(--on-dark-2); }
.match .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.match .chip { padding: 4px 12px; border-radius: 999px; font: 600 .9rem var(--mono); }
.match .chip.give { background: #fff; color: var(--ink); }
.match .chip.take { background: var(--plasma); color: var(--ink); }
.match .cta-line { margin-top: 12px; }
.match .cta-line a { color: #fff; font-weight: 600; }

/* Journey (pinned) */
.journey { position: relative; background: var(--ink-2); color: var(--on-dark); }
.journey-pin { display: grid; grid-template-columns: 1fr 1fr; width: min(1200px, 100% - 32px); margin-inline: auto; gap: 40px; }
.journey-stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; align-content: center; gap: 26px; }
.bag { width: min(300px, 70%); filter: drop-shadow(0 30px 60px rgba(215, 33, 58, .25)); }
.bag-edge { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 3; }
.bag-tube { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 4; stroke-linecap: round; }
.bag-tab { fill: rgba(255, 255, 255, .15); }
.fill-rbc { fill: var(--red); }
.fill-plasma { fill: var(--plasma); }
.fill-plt { fill: var(--plt); }
.bag-label rect { fill: rgba(255, 255, 255, .92); }
.bag-label text { font: 800 22px var(--display); fill: var(--ink); }
.bag-label text.small { font: 500 10px var(--mono); }
.lives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 520px; }
.life { padding: 12px; border-radius: 14px; border: 1px solid var(--line); opacity: .22; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); font-size: .85rem; }
.life.on { opacity: 1; transform: none; }
.life b { display: block; margin: 6px 0 2px; }
.life small { color: var(--on-dark-2); line-height: 1.35; display: block; }
.sw { display: block; width: 26px; height: 8px; border-radius: 99px; }
.sw.rbc, .ic.rbc { background: var(--red); }
.sw.plasma, .ic.plasma { background: var(--plasma); }
.sw.plt, .ic.plt { background: var(--plt); }
.clock { font: 500 2rem var(--mono); letter-spacing: .02em; text-align: center; }
.clock small { display: block; font-size: .72rem; color: var(--on-dark-2); letter-spacing: .14em; text-transform: uppercase; }
.chapters { padding: 30vh 0 40vh; }
.chapter { min-height: 70vh; display: grid; align-content: center; max-width: 470px; opacity: .25; transition: opacity .5s ease; }
.chapter.on { opacity: 1; }
.chapter .num { font: 500 .82rem var(--mono); letter-spacing: .1em; color: var(--red-2); margin-bottom: 14px; }
.chapter h3 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; letter-spacing: -.03em; }
.chapter p:last-child { color: var(--on-dark-2); font-size: 1.1rem; }

/* Eligibility */
.rules { list-style: none; display: grid; gap: 10px; margin-top: 24px; }
.rules li { padding-left: 26px; position: relative; }
.rules li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--red); }
.rules.small { font-size: .95rem; color: var(--muted); }
.check, .form, .req { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: 26px; background: #fff; box-shadow: 0 30px 70px -40px rgba(60, 10, 20, .45); }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #E6D9D3; background: #FFFCFA; color: var(--text); font-weight: 500; font-size: 1rem; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 33, 58, .12); }
.verdict { grid-column: 1 / -1; padding: 18px; border-radius: 16px; background: var(--paper-2); min-height: 78px; }
.verdict.yes { background: #E8F7EE; }
.verdict.wait { background: #FFF4DE; }
.verdict.no { background: #FCE8EA; }
.verdict b { display: block; font: 700 1.2rem var(--display); margin-bottom: 4px; color: var(--text); }
.verdict a { color: var(--red); font-weight: 600; }

/* Services */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc article { padding: 28px; border-radius: var(--r); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc article:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(60, 10, 20, .4); }
.svc h3 { margin: 18px 0 8px; }
.svc p { color: var(--muted); }
.ic { display: block; width: 38px; height: 38px; border-radius: 10px; }
.ic.grid { background: conic-gradient(var(--red) 0 25%, var(--plasma) 0 50%, var(--plt) 0 75%, var(--red-deep) 0); }

/* Camps */
.camps { list-style: none; display: grid; }
.camps li { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.camps li:last-child { border-bottom: 1px solid var(--line); }
.camps time { font: 500 1rem var(--mono); color: var(--red-2); }
.camps b { display: block; font: 700 1.3rem var(--display); }
.camps span { color: var(--on-dark-2); font-size: .95rem; }

/* Booking */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.note-line { margin-top: 22px; color: var(--muted); }
.note-line a { color: var(--red); font-weight: 600; }
.slot-set { border: 0; display: grid; gap: 8px; min-width: 0; }
.slot-set legend { font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.slot-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot-chip { flex: none; scroll-snap-align: start; display: grid; gap: 2px; justify-items: center; min-width: 72px; min-height: 48px; padding: 8px 12px; border: 1.5px solid #E6D9D3; border-radius: 12px; cursor: pointer; font: 600 .95rem var(--sans); background: #FFFCFA; transition: transform .2s var(--ease), background .2s ease, border-color .2s ease; }
.slot-chip small { font-size: .74rem; font-weight: 500; color: var(--muted); }
.slot-chip:hover { transform: translateY(-2px); border-color: var(--red); }
.slot-chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.slot-chip.on small { color: #FFD8DD; }
.slot-empty { color: var(--muted); font-size: .92rem; padding: 6px 2px; }
.form-note { min-height: 1.2em; font-size: .9rem; color: var(--muted); }
.form-note.err { color: #B3182E; }
.book-done { grid-template-columns: 1fr; justify-items: start; outline: none; gap: 10px; }
.book-done[hidden] { display: none; }
.book-done h3 { font-size: 1.7rem; }
.book-done .muted { color: var(--muted); }
.done-tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--red); }
.done-tick svg { width: 28px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.book-done .btn-ghost { color: var(--text); border-color: rgba(28, 17, 20, .25); }

/* Request */
.big-tel { margin: 26px 0 12px; }
.big-tel a { font: 800 clamp(2rem, 5vw, 3.4rem) var(--display); letter-spacing: -.02em; text-decoration: none; }
.req { background: rgba(255, 255, 255, .1); box-shadow: none; border: 1px solid rgba(255, 255, 255, .25); }
.req label { color: #FFD8DD; }
.req input, .req select { background: rgba(255, 255, 255, .95); border-color: transparent; }
.req .form-note { color: #FFD8DD; }

/* FAQ */
details { border-top: 1px solid #E6D9D3; padding: 20px 0; }
details:last-of-type { border-bottom: 1px solid #E6D9D3; }
summary { cursor: pointer; list-style: none; font: 700 1.2rem var(--display); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-weight: 500; color: var(--red); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; color: var(--muted); max-width: 64ch; }
#faq h2 { margin-bottom: 28px; }

/* Visit */
.hours { display: grid; gap: 12px; margin: 26px 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--on-dark-2); }
.hours dd { font-weight: 600; text-align: right; }
.contact { display: flex; flex-wrap: wrap; gap: 18px; }
.contact a { font-weight: 600; }
.map { border-radius: 22px; overflow: hidden; min-height: 360px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg); }

/* Footer */
.footer { padding: 60px 0 120px; background: #070405; color: var(--on-dark); }
.footer .wrap { display: grid; gap: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: .95rem; }
.footer nav a { text-decoration: none; opacity: .8; }
.mobile-bar { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .nav-links, .nav-sos { display: none; }
  .menu-btn { display: block; }
  .stock { grid-template-columns: repeat(4, 1fr); }
  .cell { min-height: 140px; padding: 14px; }
  .cell b { font-size: 2rem; }
  .svc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav .btn-sm { display: none; }
  .two, .book { grid-template-columns: 1fr; }
  .stock { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; }
  .camps li { grid-template-columns: 1fr; gap: 6px; }
  .camps .btn { justify-self: start; margin-top: 8px; }
  .check, .form, .req { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(12, 7, 9, .82) 55%, rgba(12, 7, 9, .55) 100%); }
  .hero-stats dd { font-size: 1.9rem; }
  .scroll-cue { display: none; }
  /* The journey stacks: the bag stays pinned at the top, the chapters scroll under it. */
  .journey-pin { grid-template-columns: 1fr; gap: 0; }
  .journey-stage { height: 56svh; top: 0; z-index: 2; background: linear-gradient(180deg, var(--ink-2) 82%, transparent); padding-top: 70px; gap: 12px; }
  .bag { width: 120px; }
  .lives { gap: 6px; }
  .life { padding: 8px; font-size: .72rem; }
  .life small { display: none; }
  .clock { font-size: 1.3rem; }
  .chapters { padding: 4vh 0 30vh; }
  .chapter { min-height: 60vh; }
  .mobile-bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-bar a { min-height: 52px; display: grid; place-items: center; border-radius: 999px; font-weight: 700; text-decoration: none; }
  .mb-call { background: #fff; color: var(--red-deep); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
  .mb-book { background: var(--red); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
