/* RadNotes — storefront styles */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #0e7490;
  --brand-2: #155e75;
  --brand-soft: #ecfeff;
  --accent: #e60023; /* Pinterest red */
  --ok: #15803d;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #111a2e; --ink: #e5edf7; --ink-2: #c3cfdf; --muted: #8ea0b8;
    --line: #22304a; --brand: #22b8cf; --brand-2: #67d6e6; --brand-soft: #0f2a33; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center-page { padding: 64px 16px; }
.lead { font-size: 1.125rem; color: var(--ink-2); }
.section { padding: 56px 0; }
.section-title { margin: 40px 0 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .65em 1.1em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-pin { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; width: 100%; max-width: 360px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .875rem; padding: 6px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 500; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
}

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(1200px 400px at 80% -10%, var(--brand-soft), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-stack { position: relative; height: 380px; }
.hero-stack .gen-cover { position: absolute; width: 210px; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.hero-stack .gen-cover:nth-child(1) { left: 0; top: 30px; transform: rotate(-6deg); }
.hero-stack .gen-cover:nth-child(2) { left: 30%; top: 0; z-index: 2; }
.hero-stack .gen-cover:nth-child(3) { right: 0; top: 50px; transform: rotate(6deg); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-stack { height: 300px; } .hero-stack .gen-cover { width: 160px; } }

/* Generated covers (used when no cover image uploaded) */
.gen-cover { aspect-ratio: 2 / 3; border-radius: 12px; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; background: linear-gradient(160deg, #0e7490, #0f172a); }
.gen-cover::after { content: ""; position: absolute; inset: auto -30% -30% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; border: 18px solid rgba(255,255,255,.08); }
.gen-cover .gc-mod { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.gen-cover .gc-title { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.gen-cover.big .gc-title { font-size: 1.8rem; }
.gen-cover .gc-brand { font-size: .8rem; opacity: .8; }
.m-xray { background: linear-gradient(160deg, #334155, #0f172a); }
.m-ct { background: linear-gradient(160deg, #7c3aed, #1e1b4b); }
.m-mri { background: linear-gradient(160deg, #0891b2, #082f49); }
.m-ultrasound { background: linear-gradient(160deg, #059669, #022c22); }
.m-nuclearmedicine { background: linear-gradient(160deg, #d97706, #451a03); }
.m-general { background: linear-gradient(160deg, #e11d48, #4c0519); }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cat { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.cat span { display: block; font-size: 1.6rem; }
.cat:hover { border-color: var(--brand); text-decoration: none; }

/* Product grid */
.grid.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); }
.pcard:hover { text-decoration: none; transform: translateY(-2px); }
.pcard .thumb { position: relative; }
.pcard .thumb img, .pcard .thumb .gen-cover { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 0; }
.pcard .badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; z-index: 2; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard h3 { font-size: 1rem; margin: 0; }
.pcard .sub { font-size: .85rem; color: var(--muted); }
.pcard .foot { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.price { font-weight: 800; font-size: 1.15rem; }
.mrp { color: var(--muted); text-decoration: line-through; }
.off { color: var(--ok); font-weight: 700; font-size: .9rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .75rem; padding: 2px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-2); font-weight: 600; }
.chip-accent { background: #ffe4e6; color: #9f1239; }
.skeleton { height: 380px; border-radius: var(--radius); background: linear-gradient(90deg, var(--line), var(--surface), var(--line)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Shop filters */
.shop-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 28px 0 18px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select, .filters input, .field input, .field select, .field textarea { font: inherit; padding: .6em .8em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.filters input { min-width: 220px; }

/* Product detail */
.crumbs { margin: 20px 0; font-size: .875rem; color: var(--muted); }
.product-detail { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
.product-cover-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.media-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; }
.price-row .price { font-size: 2rem; }
.meta-list { list-style: none; padding: 0; margin: 0 0 20px; color: var(--ink-2); }
.meta-list li { padding: 3px 0; }
.ticks { list-style: none; padding: 0; }
.ticks li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.product-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 36px; }
.toc li { padding: 2px 0; }
.disclaimer { margin: 40px 0; }
@media (max-width: 900px) { .product-detail, .product-body { grid-template-columns: 1fr; } .product-media { max-width: 380px; } }

/* Pinterest band */
.pin-band { background: linear-gradient(135deg, #fff1f2, #fff); border: 1px solid #fecdd3; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pin-band { background: #2a1117; border-color: #5b1a28; } }
@media (max-width: 860px) { .pin-band { grid-template-columns: 1fr; } }
.pin-embed { min-height: 200px; overflow: hidden; }

/* Features / testimonials / FAQ */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { padding: 22px; }
.feature b { display: block; font-size: 1.6rem; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.quote { padding: 22px; }
.quote p { font-style: italic; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }

/* Forms / modal */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; font: inherit; padding: .65em .8em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.modal-back { position: fixed; inset: 0; background: rgba(2, 6, 23, .6); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-back.open { display: flex; }
.modal { width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.modal-close { border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.msg { padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 10px 0; }
.msg.err { background: #fef2f2; color: #991b1b; }
.msg.ok { background: #f0fdf4; color: #166534; }

/* Footer */
.site-footer { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 28px; }
.foot-grid h4 { margin: 0 0 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { padding: 3px 0; }
.foot-grid a { color: var(--ink-2); }
.copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: #25d366; color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; box-shadow: var(--shadow); }
.wa-float:hover { text-decoration: none; }
