/* NurseBC — shared styles
   Colors: "Quiet Pastels" base + Daily Staffing–style gradient accents.
   Change a color once here and the whole site updates. */

:root {
  --navy: #1F3550;
  --slate: #4A5560;
  --line: #E5E5E5;
  --page: #FAFAFC;
  --white: #FFFFFF;
  --indigo: #4B44C9;
  --grad: linear-gradient(135deg, #5B54D6, #8B6FE8);
  --grad-text: linear-gradient(90deg, #5B54D6, #9B7BF0 55%, #E08466);
  --grad-border: linear-gradient(135deg, #F0A27A, #C9B6F2 55%, #8B83EE);
  --peach-ink: #D9784E;
  --radius-card: 28px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Product / family color sets: fill, border, ink (text) */
.c-cream    { --fill: #F7EFE2; --border: #E0C49A; --ink: #8A4A22; }
.c-powder   { --fill: #E6EEF7; --border: #9AA5E8; --ink: #3B3FA8; }
.c-lavender { --fill: #ECE3F5; --border: #B9A2E6; --ink: #5B3A9E; }
.c-blush    { --fill: #FBE3E1; --border: #E8A0A8; --ink: #A33A4A; }
.c-sage     { --fill: #E9F3DC; --border: #9CCFA6; --ink: #2F6B4A; }
.c-aqua     { --fill: #D5ECEE; --border: #8CC6C9; --ink: #1F6468; }
.c-peach    { --fill: #FCE3D9; --border: #E8B48F; --ink: #9A4E25; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--slate); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
a { color: #3B3FA8; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid #8B6FE8; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--slate); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 6px; }
.logo-tile { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; }
.logo-tile span { background: #fff; border-radius: 3px; }
.logo-tile span:nth-child(2), .logo-tile span:nth-child(3) { opacity: .75; }
.logo-tile span:nth-child(4) { background: #FCE3D9; }
.logo-word { display: flex; flex-direction: column; line-height: 1.1; }
.logo-word strong { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--indigo); }
.logo-word strong em { font-style: normal; color: var(--peach-ink); }
.logo-word small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--slate); }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 560px; }
.main-nav .pill { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn.menu-toggle { display: none; }
@media (max-width: 900px) {
  .icon-btn.menu-toggle { display: inline-flex; margin-left: auto; }
  .main-nav { display: none; flex-basis: 100%; }
  .main-nav.open { display: flex; }
}

/* ---------- Pills & buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--fill, #fff); border: 1.5px solid var(--border, var(--line)); color: var(--ink, var(--navy)); font-size: 14px; font-weight: 600; text-decoration: none; }
a.pill:hover { color: var(--ink, var(--navy)); filter: brightness(.98); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(91, 84, 214, .25); }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-soft { background: var(--fill, #fff); border: 1.5px solid var(--border, var(--line)); color: var(--ink, var(--navy)); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.basket-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 22px; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.basket-btn:hover { color: #fff; }
.basket-count { min-width: 28px; height: 28px; border-radius: 14px; background: #fff; color: var(--indigo); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13px; font-weight: 600; }
.status .dot { width: 9px; height: 9px; border-radius: 5px; background: #3E9B63; }

/* ---------- Cards ---------- */
.card { background: #fff; border-radius: var(--radius-card); }
.grad-card { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-border) border-box; border-radius: var(--radius-card); }
.notice { background: #FCF1E6; border: 1.5px solid #E8B48F; border-radius: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; margin-top: 32px; }
.hero-waves { position: absolute; right: -40px; top: -30px; opacity: .55; pointer-events: none; }
.hero-copy { position: relative; display: flex; flex-direction: column; gap: 18px; flex: 1 1 620px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -1.5px; }
.hero p { font-size: 19px; line-height: 30px; max-width: 640px; }
.hero-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .hero { padding: 28px 22px; } }

/* ---------- Shop layout ---------- */
.shop { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 32px; }
.exam-panel { flex: 1 1 300px; min-width: 0; max-width: 340px; padding: 20px; display: flex; flex-direction: column; gap: 14px; border-radius: 24px; }
.shop-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 980px) { .exam-panel { max-width: none; } }
@media (max-width: 640px) { .shop > * { flex-basis: 100%; width: 100%; } .product-card { padding: 20px; } .product-info h2 { font-size: 36px; } }

.search-field { display: flex; align-items: center; gap: 10px; min-height: 46px; border-radius: 23px; border: 1px solid var(--line); background: var(--page); padding: 0 14px; }
.search-field input { border: 0; background: transparent; font: 15px var(--font-body); color: var(--navy); outline: none; flex: 1; min-width: 0; }
.panel-title { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--navy); }
.exam-group { display: flex; flex-direction: column; gap: 8px; }
.exam-group h3 { font-size: 14px; font-weight: 800; letter-spacing: 1px; padding: 10px 4px 0; border-top: 1px solid var(--line); }
.exam-btn { text-align: left; border: 1.5px solid var(--border); border-radius: 16px; padding: 10px 13px; background: var(--fill); display: flex; flex-direction: column; gap: 2px; font-family: var(--font-body); color: var(--navy); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.exam-btn strong { font-size: 15px; font-weight: 800; }
.exam-btn span { font-size: 13px; }
.exam-btn:hover, .exam-btn:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(31, 53, 80, .16); }
.exam-btn[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(91, 84, 214, .22); }
.exam-select { display: none; }
@media (max-width: 640px) {
  .exam-groups { display: none; }
  .exam-select { display: flex; }
}
.dropdown-pill { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px 0 8px; border-radius: 28px; border: 1px solid var(--line); background: #fff; }
.dropdown-pill .avatar { width: 40px; height: 40px; border-radius: 20px; background: linear-gradient(135deg, #8B6FE8, #F0A27A); color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dropdown-pill select { flex: 1; min-width: 0; width: 100%; text-overflow: ellipsis; border: 0; background: transparent; font: 700 17px var(--font-body); color: var(--navy); outline: none; }

/* Running puppy bar */
.pup-bar { position: relative; height: 54px; border-radius: 27px; background: linear-gradient(90deg, #ECE3F5, #FCE3D9); overflow: hidden; }
.pup-bar::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; border-top: 2px dashed #C9B6F2; }
.pup-run { position: absolute; bottom: 6px; left: 6px; z-index: 1; animation: pupRun 9s ease-in-out infinite; }
.pup-flip { animation: pupFlip 9s steps(1) infinite; }
.pup-hop { animation: pupHop .36s ease-in-out infinite alternate; }
.pup-leg-a, .pup-leg-b { transform-box: fill-box; transform-origin: 50% 0; animation: pupLeg .18s ease-in-out infinite alternate; }
.pup-leg-b { animation-direction: alternate-reverse; }
@keyframes pupRun { 0% { left: 6px; } 50% { left: calc(100% - 58px); } 100% { left: 6px; } }
@keyframes pupFlip { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes pupHop { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes pupLeg { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
@media (prefers-reduced-motion: reduce) {
  .pup-run, .pup-flip, .pup-hop, .pup-leg-a, .pup-leg-b { animation: none; }
  .exam-btn { transition: none; }
  html { scroll-behavior: auto; }
}

/* Product panel */
.product-card { padding: 32px; display: flex; flex-wrap: wrap; gap: 36px; }
.product-visual { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.visual-stage { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; border-radius: 24px; background: var(--fill); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.visual-stage .wave { position: absolute; left: 0; bottom: -20px; opacity: .6; }
.cover { position: relative; width: 66%; aspect-ratio: 3 / 4.2; border-radius: 6px 14px 14px 6px; background: #fff; box-shadow: -6px 0 0 var(--spine, #E0C49A), 0 18px 40px rgba(31, 53, 80, .18); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.cover .code { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 40px); line-height: 1; font-weight: 800; color: var(--indigo); word-break: break-word; }
.cover .name { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--navy); }
.cover .bar { margin-top: auto; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #5B54D6, #A78BFA, #F0A27A); }
.cover small { font-size: 11px; }
.device { position: relative; width: 78%; border-radius: 20px; background: var(--navy); padding: 12px; box-shadow: 0 18px 40px rgba(31, 53, 80, .2); }
.device-screen { border-radius: 12px; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.device-screen .row { height: 10px; border-radius: 5px; background: var(--line); }
.device-screen .opt { height: 30px; border-radius: 10px; background: #F4F4F4; }
.device-screen .opt.on { background: #ECE3F5; border: 1.5px solid #8B6FE8; }
.cards-stack { position: relative; width: 70%; aspect-ratio: 4 / 3; }
.cards-stack .back1, .cards-stack .back2, .cards-stack .front { position: absolute; inset: 0; border-radius: 16px; }
.cards-stack .back1 { transform: rotate(-8deg) translate(-14px, 10px); background: #E6EEF7; border: 1.5px solid #9AA5E8; }
.cards-stack .back2 { transform: rotate(5deg) translate(12px, 6px); background: #E9F3DC; border: 1.5px solid #9CCFA6; }
.cards-stack .front { background: #fff; border: 2px solid var(--border); box-shadow: 0 14px 30px rgba(31, 53, 80, .16); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.cards-stack .front strong { font-family: var(--font-head); font-size: 22px; line-height: 27px; color: var(--navy); }
.product-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.product-info h2 { font-size: 44px; line-height: 1.08; font-weight: 800; }
.author { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--navy); }
.author .avatar { width: 34px; height: 34px; border-radius: 17px; background: linear-gradient(135deg, #8B6FE8, #F0A27A); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.tab { border: 1.5px solid var(--border); border-radius: 16px; padding: 7px 13px; background: var(--fill); display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-family: var(--font-body); color: var(--ink); cursor: pointer; }
.tab strong { font-size: 14px; }
.tab small { font-family: var(--font-mono); font-size: 11px; }
.tab[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(91, 84, 214, .22); }
.detail { border-radius: 20px; background: var(--fill); border: 1.5px solid var(--border); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.detail h3 { font-size: 17px; color: var(--ink); font-family: var(--font-body); }
.detail p { color: var(--navy); font-size: 15px; line-height: 23px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; gap: 10px; color: var(--navy); font-size: 14px; line-height: 20px; }
.checklist li::before { content: "✓"; font-weight: 800; }
.price-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.price { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--navy); }
.qty { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px 0 8px; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.qty .avatar { width: 32px; height: 32px; border-radius: 16px; background: linear-gradient(135deg, #8B6FE8, #F0A27A); color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.qty select { border: 0; background: transparent; font: 700 16px var(--font-body); color: var(--navy); }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; }
.action-row .btn-primary { flex: 1 1 220px; }
.toast { align-self: flex-start; display: none; }
.toast.show { display: inline-flex; }

.bundle { padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.bundle h2 { font-size: 24px; color: #9A4E25; }

.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ref-card { border-radius: 20px; background: #fff; border: 1.5px solid #8CC6C9; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.ref-card .tag { align-self: flex-start; font-size: 11px; font-weight: 700; color: #1F6468; background: #D5ECEE; border-radius: 10px; padding: 3px 9px; }
.ref-card strong { font-size: 17px; color: var(--navy); }

.trust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 32px 0 8px; }

/* Generic page content */
.page-head { margin-top: 32px; padding: 44px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 800; }
.page-head p { font-size: 18px; max-width: 760px; }
@media (max-width: 640px) { .page-head { padding: 26px 22px; } }
.section { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mini-card { padding: 20px; border-radius: 22px; background: #fff; border: 1.5px solid var(--border, var(--line)); display: flex; flex-direction: column; gap: 10px; }
.mini-card h3 { font-size: 20px; }
.mini-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.prose { max-width: 820px; background: #fff; border-radius: 24px; border: 1px solid var(--line); padding: 32px; }
.prose h2 { font-size: 24px; margin: 24px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--navy); line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.draft-flag { display: inline-flex; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; background: #FCF1E6; border: 1.5px solid #E8B48F; color: #9A4E25; border-radius: 999px; padding: 6px 12px; }
.form { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.form label { font-size: 14px; font-weight: 600; color: var(--navy); }
.form input { min-height: 52px; border-radius: 16px; border: 1px solid var(--line); padding: 0 16px; font: 16px var(--font-body); color: var(--navy); }

/* Basket */
.basket-list { display: flex; flex-direction: column; gap: 12px; }
.basket-item { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; padding: 16px 20px; border-radius: 20px; background: #fff; border: 1.5px solid var(--border, var(--line)); }
.basket-item .meta { display: flex; flex-direction: column; }
.basket-item strong { color: var(--navy); font-size: 16px; }

/* Footer */
.site-footer { margin-top: 56px; background: #fff; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 14px; }
.legal-note { font-size: 13px; line-height: 20px; max-width: 600px; }
