/* PharmaGEO · production stylesheet
   Direction A: Editorial Calm. Design tokens from Figma handoff.
   Real fonts: Aeonik (display), Switzer (body), Lyon Display Italic (alt accent).
   Zero em-dashes anywhere in user-facing copy.
*/

/* ============ FONTS (self-hosted, real files) ============ */
@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Air.otf") format("opentype");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Thin.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("fonts/Switzer-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("fonts/Switzer-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("fonts/Switzer-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lyon Display";
  src: url("fonts/Lyon-Display-Light-Italic.otf") format("opentype");
  font-weight: 300; font-style: italic; font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --bg: #F2F7FF;
  --card: #FFFFFF;
  --foreground: #0a0a0b;
  --muted-fg: #5a6070;
  --muted-fg-2: #8a9099;

  --hairline: #D0DDF2;
  --hairline-soft: #E6EEF9;
  --input-border: #C7D2E5;

  --primary: #0a0a0b;
  --on-primary: #ffffff;

  /* aikka palette */
  --aikka-blue: 220 90% 56%;     /* #1F66F5 */
  --aikka-purple: 268 76% 60%;   /* #8A4DEB */
  --aikka-green: 158 64% 42%;    /* #28B27A */
  --aikka-orange: 28 92% 56%;    /* #F58E29 */
  --aikka-red: 0 78% 58%;        /* #E64B4B */

  --gradient-main: linear-gradient(135deg, #c5eaff 0%, #d6d0ff 100%);
  --gradient-accent: linear-gradient(180deg, #f0f6ff 0%, #fdf3ff 100%);
  --gradient-hero: radial-gradient(ellipse at 30% 0%, rgba(0,225,255,0.20) 0%, transparent 55%),
                   radial-gradient(ellipse at 80% 90%, rgba(255,171,234,0.20) 0%, transparent 55%);

  --shadow-elegant: 0 12px 40px -12px rgba(20, 30, 60, 0.18), 0 2px 8px -2px rgba(20, 30, 60, 0.06);
  --shadow-card: 0 1px 3px rgba(20, 30, 60, 0.06), 0 8px 24px -12px rgba(20, 30, 60, 0.10);

  --container: 1280px;
  --container-narrow: 1080px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Aeonik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-alt: "Lyon Display", "Aeonik", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }

/* ============ AMBIENT BACKGROUND (Figma blurred fields) ============ */
.bg-fields {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-fields::before, .bg-fields::after {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(170px);
  opacity: 0.20;
}
.bg-fields::before {
  background: #00E1FF;
  top: -10vw; left: -15vw;
}
.bg-fields::after {
  background: #FFABEA;
  bottom: -20vw; right: -15vw;
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* ============ LAYOUT ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* ============ TYPOGRAPHY HELPERS ============ */
.font-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; }
.font-alt { font-family: var(--font-alt); font-weight: 400; font-style: italic; }
.font-mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.overline {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--muted-fg);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  font-size: 12px; font-weight: 500;
  color: var(--muted-fg);
}
.muted { color: var(--muted-fg); }

h1, .h1 { font-family: var(--font-display); font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; }
h2, .h2 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.10; }
h3, .h3 { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
h4 { font-family: var(--font-display); font-size: 18px; line-height: 1.35; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-primary {
  background: #0a0a0b; color: #fff;
  border-color: #0a0a0b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10), 0 4px 12px -4px rgba(0,0,0,0.18);
}
.btn-primary:hover { background: #1a1a1d; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: #0a0a0b;
  border-color: var(--hairline);
}
.btn-ghost:hover { background: #fff; border-color: #0a0a0b; }
.btn-link { padding: 0; background: transparent; color: var(--foreground); border-bottom: 1px solid currentColor; border-radius: 0; }

.btn:focus-visible { outline: 2px solid hsl(var(--aikka-blue)); outline-offset: 3px; }

/* ============ NAV ============ */
.pg-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(242, 247, 255, 0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.pg-nav.scrolled { border-bottom-color: var(--hairline); background: rgba(242, 247, 255, 0.9); }
.pg-nav .pg-brand { display: inline-flex; align-items: center; color: #0a0a0b; }
.pg-nav .pg-brand img { height: 32px; width: auto; display: block; }
@media (max-width: 640px) { .pg-nav .pg-brand img { height: 26px; } }
.pg-nav nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.pg-nav nav a { color: var(--muted-fg); transition: color 0.15s; position: relative; }
.pg-nav nav a:hover, .pg-nav nav a[aria-current="page"] { color: var(--foreground); }
.pg-nav .nav-cta { display: flex; gap: 10px; align-items: center; }
.pg-nav .menu-toggle { display: none; }
@media (max-width: 900px) {
  .pg-nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: rgba(242, 247, 255, 0.98); backdrop-filter: blur(20px); padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
  .pg-nav nav.open { display: flex; }
  .pg-nav nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--hairline-soft); font-size: 15px; }
  .pg-nav nav a:last-child { border-bottom: none; }
  .pg-nav .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--hairline); border-radius: 8px; background: rgba(255,255,255,0.6); }
  .pg-nav .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .pg-nav { padding: 12px 18px; }
}

/* ============ HERO ============ */
.hero {
  position: relative; padding: 80px 0 96px; overflow: hidden;
}
.hero .ambient-blob {
  position: absolute; pointer-events: none;
  animation: pgAmbient 30s ease-in-out infinite;
}
.hero .ambient-blob.b1 { top: -160px; right: -180px; width: 720px; opacity: 0.55; }
.hero .ambient-blob.b2 { bottom: -240px; left: -260px; width: 680px; opacity: 0.40; animation-direction: reverse; animation-duration: 38s; }

@keyframes pgAmbient {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -20px) rotate(8deg); }
}

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding: 56px 0 72px; }
}
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.025em; margin: 0; }
.hero .lede { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--muted-fg); max-width: 560px; margin-top: 20px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .micro { margin-top: 24px; font-size: 13px; color: var(--muted-fg); }

/* ============ HERO CARD (snapshot) ============ */
.snap-card {
  position: relative;
}
.snap-card .frame {
  background: linear-gradient(180deg, #fff 0%, #fcfcff 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-elegant);
}
.snap-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.snap-card .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: hsl(var(--aikka-green) / 0.12);
  color: hsl(var(--aikka-green));
  border: 1px solid hsl(var(--aikka-green) / 0.25);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ring-row { display: flex; align-items: center; gap: 24px; }
.bars { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.bar-head { display: flex; justify-content: space-between; }
.bar-track { height: 4px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width 1.2s var(--ease); }
.llm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline-soft); }
.llm-tile { padding: 10px; border: 1px solid var(--hairline-soft); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.llm-tile img { height: 16px; width: 16px; object-fit: contain; }
.llm-tile .v { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1; }
.llm-tile .n { font-size: 10px; color: var(--muted-fg); }

.peek-card {
  position: absolute; left: -28px; bottom: -32px; width: 220px;
  background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-elegant);
  transform: rotate(-3deg);
  z-index: 1;
}
@media (max-width: 1000px) { .peek-card { left: 0; } }
@media (max-width: 480px) { .peek-card { display: none; } }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--hairline);
  font-size: 12px;
  margin-bottom: 22px;
}
.eyebrow-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: hsl(var(--aikka-green)); display: inline-block; }

/* ============ LLM STRIP ============ */
.llm-strip {
  display: flex; align-items: center; justify-content: center; gap: 36px;
  flex-wrap: wrap;
  padding: 22px 24px;
  color: var(--muted-fg);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.llm-strip .label { margin-right: 4px; }
.llm-strip .item { display: inline-flex; align-items: center; gap: 8px; opacity: 0.85; transition: opacity 0.15s; }
.llm-strip .item:hover { opacity: 1; }
.llm-strip .item img { height: 18px; width: 18px; object-fit: contain; }
.llm-strip .item .name { font-family: var(--font-display); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--foreground); font-weight: 500; }

/* ============ TICKER ============ */
.ticker { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); overflow: hidden; background: #fff; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, #fff, transparent); }
.ticker-track { display: flex; padding: 14px 0; white-space: nowrap; animation: tickerScroll 70s linear infinite; width: max-content; }
.ticker-item { display: inline-flex; align-items: center; gap: 14px; padding: 0 28px; border-right: 1px solid var(--hairline-soft); font-size: 13px; }
.ticker-item .b { font-family: var(--font-display); font-weight: 500; }
.ticker-item .s { color: var(--muted-fg); }
.ticker-item .delta-up { color: hsl(var(--aikka-green)); }
.ticker-item .delta-down { color: hsl(var(--aikka-red)); }
.ticker-item .delta-flat { color: var(--muted-fg); }
.ticker-item .tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--muted-fg); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
section { position: relative; }
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }
@media (max-width: 700px) { .section { padding: 72px 0; } .section-sm { padding: 48px 0; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head .lead { max-width: 600px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.10; letter-spacing: -0.022em; }
.section-head p { color: var(--muted-fg); margin-top: 14px; font-size: 16px; max-width: 600px; }

/* ============ VIDEO PANEL ============ */
.video-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--gradient-main);
  box-shadow: var(--shadow-elegant);
  border: 1px solid var(--hairline);
}
.browser-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  background: #fff;
}
.browser-chrome .dots { display: flex; gap: 6px; }
.browser-chrome .dots span { width: 10px; height: 10px; border-radius: 999px; }
.browser-chrome .url {
  flex: 1; margin: 0 12px;
  padding: 6px 12px;
  background: #f1f4f8;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted-fg);
  font-family: var(--font-mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-chrome .live { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: hsl(var(--aikka-green) / 0.12); color: hsl(var(--aikka-green)); border: 1px solid hsl(var(--aikka-green) / 0.25); font-weight: 500; }
.video-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #c5eaff, #d6d0ff); }
.video-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background-image: url("backgrounds/slide-1.jpg");
  background-size: cover; background-position: center;
}
.video-fallback .glyph {
  width: 76px; height: 76px; border-radius: 999px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  display: grid; place-items: center;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.25);
}
.video-fallback .label { position: absolute; bottom: 28px; left: 28px; font-size: 12px; color: #0a0a0b; font-family: var(--font-mono); background: rgba(255,255,255,0.85); padding: 6px 12px; border-radius: 999px; }

.video-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
@media (max-width: 800px) { .video-steps { grid-template-columns: 1fr; } }
.video-steps .step .t { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.video-steps .step .d { font-size: 14px; color: var(--muted-fg); line-height: 1.55; }

/* ============ FRAMEWORK CARDS (Sense / Plan / Act) ============ */
.spa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .spa-grid { grid-template-columns: 1fr; } }
.spa-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.spa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elegant); }
.spa-card .step { font-family: var(--font-mono); font-size: 11px; color: var(--muted-fg); letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 16px; }
.spa-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 12px; }
.spa-card p { font-size: 14px; color: var(--muted-fg); line-height: 1.6; }
.spa-card .icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--gradient-main); }

/* ============ STAT GRID ============ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border: 1px solid var(--hairline); border-radius: var(--radius-xl); overflow: hidden; background: var(--hairline); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-grid .stat { background: #fff; padding: 32px 28px; }
.stat-grid .stat .v { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 44px); font-weight: 500; line-height: 1.0; letter-spacing: -0.02em; }
.stat-grid .stat .l { font-size: 13px; color: var(--muted-fg); margin-top: 8px; }

/* ============ INDEX CARD ============ */
.index-card {
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  background-image: var(--gradient-main);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.index-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("backgrounds/slide-2.jpg");
  background-size: cover; background-position: center;
  opacity: 0.45; pointer-events: none;
}
.index-card > * { position: relative; }
@media (max-width: 800px) { .index-card { grid-template-columns: 1fr; padding: 36px 28px; } }
.index-card h2 { font-size: clamp(26px, 3vw, 42px); line-height: 1.1; color: #0a0a0b; }
.index-rows { display: grid; gap: 8px; }
.index-row { background: rgba(255,255,255,0.70); backdrop-filter: blur(6px); padding: 12px 16px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.index-row .left { display: flex; align-items: center; gap: 12px; }
.index-row .rank { font-family: var(--font-display); color: var(--muted-fg); width: 18px; }
.index-row .brand { font-family: var(--font-display); font-weight: 500; }
.index-row .right { display: flex; align-items: center; gap: 12px; }
.index-row .score { font-family: var(--font-display); font-weight: 500; }
.index-row .status { font-size: 11px; padding: 2px 8px; background: rgba(0,0,0,0.06); border-radius: 999px; }

/* ============ CLIENTS ============ */
.clients { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.clients-row { display: flex; gap: 56px; flex-wrap: wrap; justify-content: center; align-items: center; }
.clients-row .c {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: -0.01em;
  color: #4a525e;
  opacity: 0.85;
}

/* ============ PLAYBOOK CARDS ============ */
.playbook-section { padding: 110px 0; }
.playbook-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 1000px) { .playbook-grid { grid-template-columns: 1fr; gap: 48px; } }

.book-stack { position: relative; height: 540px; display: flex; justify-content: center; align-items: center; }
@media (max-width: 700px) { .book-stack { height: 420px; } }
.book {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-elegant);
  position: absolute;
}
.book .cover { padding: 24px; position: relative; overflow: hidden; }
.book .meta { padding: 20px; }
.book .meta .t { font-family: var(--font-display); font-weight: 500; line-height: 1.2; }

.book-1 { width: 280px; height: 380px; transform: rotate(-6deg) translateX(-100px); }
.book-1 .cover { height: 60%; background: var(--gradient-main); }
.book-1 .meta .t { font-size: 16px; }

.book-main { width: 320px; height: 440px; z-index: 2; box-shadow: 0 24px 80px -20px rgba(20,30,60,0.30); }
.book-main .cover { height: 55%; background-image: var(--gradient-main); padding: 28px; }
.book-main .cover::after { content: ""; position: absolute; inset: 0; background-image: url("backgrounds/slide-3.jpg"); background-size: cover; background-position: center; opacity: 0.55; mix-blend-mode: multiply; }
.book-main .meta { padding: 24px; }
.book-main .meta .t { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 12px; }
.book-main .desc { font-size: 12px; color: var(--muted-fg); line-height: 1.5; }

.book-2 { width: 280px; height: 380px; transform: rotate(6deg) translateX(110px); }
.book-2 .cover { height: 60%; background: linear-gradient(135deg, #fdf6ec, #f5e6ce); }
.book-2 .meta .t { font-size: 16px; }

.playbook-text ul.checks { display: grid; gap: 12px; margin: 24px 0 32px; font-size: 14px; }
.playbook-text ul.checks li { display: flex; gap: 10px; }
.playbook-text ul.checks .check {
  width: 20px; height: 20px; border-radius: 999px;
  background: hsl(var(--aikka-green) / 0.15);
  color: hsl(var(--aikka-green));
  display: grid; place-items: center;
  flex: 0 0 auto;
}

/* ============ MODAL ============ */
.modal-back {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,10,12,0.55);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  animation: pgFadeIn 0.25s var(--ease);
  padding: 16px;
}
.modal-back[hidden] { display: none; }
.modal-card {
  width: min(960px, 100%);
  max-height: 92vh;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.30);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 800px) { .modal-card { grid-template-columns: 1fr; } }
.modal-cover { background: var(--gradient-main); padding: 36px; min-height: 480px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.modal-cover::after { content: ""; position: absolute; inset: 0; background-image: url("backgrounds/slide-1.jpg"); background-size: cover; background-position: center; opacity: 0.4; pointer-events: none; }
.modal-cover > * { position: relative; }
.modal-cover h2 { font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; color: #0a0a0b; margin-top: auto; }
.modal-cover p { font-size: 14px; color: #2a3140; line-height: 1.5; max-width: 360px; margin-top: 12px; }
.modal-cover .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.modal-cover .tags span { background: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.85); padding: 5px 12px; border-radius: 999px; font-size: 12px; color: #0a0a0b; backdrop-filter: blur(4px); }
.modal-form { padding: 36px; position: relative; max-height: 92vh; overflow-y: auto; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 8px; background: #fff;
  display: grid; place-items: center;
}
.modal-close:hover { border-color: #0a0a0b; }
@keyframes pgFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ FORMS ============ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 11px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.field input, .field select, .field textarea {
  padding: 11px 14px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  background: #fff;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #0a0a0b;
  box-shadow: 0 0 0 3px rgba(122, 99, 246, 0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-stack { display: grid; gap: 14px; }
.form-consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--muted-fg); margin-top: 4px;
}
.form-consent input { margin-top: 3px; }
.form-consent a { text-decoration: underline; }
.form-success { text-align: center; padding: 32px 8px; }
.form-success .glyph { width: 56px; height: 56px; border-radius: 999px; background: hsl(var(--aikka-green) / 0.15); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--muted-fg); max-width: 320px; margin: 0 auto; }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 8px; }
.faq-item { background: rgba(255,255,255,0.7); backdrop-filter: blur(6px); border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; }
.faq-q { width: 100%; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.faq-q .chev { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px; color: var(--muted-fg); font-size: 14px; line-height: 1.65; }

/* ============ FOOTER ============ */
.pg-footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 32px 32px;
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) {
  .pg-footer { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .pg-footer { grid-template-columns: 1fr; padding: 48px 20px 24px; }
}
.pg-footer .brand-col p { margin-top: 16px; font-size: 13px; line-height: 1.55; max-width: 280px; color: var(--muted-fg); }
.pg-footer .brand-col .footer-logo { height: 30px; width: auto; display: block; }
.pg-footer .aikka-link { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted-fg); letter-spacing: 0.04em; margin-top: 18px; }
.pg-footer .aikka-link img { height: 18px; width: auto; display: block; }
.pg-footer h5 { font-family: var(--font-display); font-size: 13px; font-weight: 500; margin-bottom: 14px; color: var(--foreground); }
.pg-footer ul { display: grid; gap: 10px; }
.pg-footer ul a { font-size: 13px; color: var(--muted-fg); transition: color 0.15s; }
.pg-footer ul a:hover { color: var(--foreground); }
.pg-footer .meta {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; margin-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 12px; color: var(--muted-fg);
}

/* ============ FRAME / CARD ============ */
.frame { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-xl); }
.brand-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,0.65); border: 1px solid var(--hairline); font-size: 11px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

/* ============ ARTICLE CARDS ============ */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elegant); border-color: #b9c8e0; }
.article-card .thumb { aspect-ratio: 16 / 10; background: var(--gradient-main); position: relative; overflow: hidden; }
.article-card .thumb.bg1 { background-image: url("backgrounds/slide-1.jpg"); background-size: cover; background-position: center; }
.article-card .thumb.bg2 { background-image: url("backgrounds/slide-2.jpg"); background-size: cover; background-position: center; }
.article-card .thumb.bg3 { background-image: url("backgrounds/slide-3.jpg"); background-size: cover; background-position: center; }
/* Per-article illustration thumbs (vintage engraving + pastel gradient series) */
.article-card .thumb.art-findings        { background-image: url("articles/findings.webp");        background-size: cover; background-position: center; }
.article-card .thumb.art-benchmark       { background-image: url("articles/benchmark.webp");       background-size: cover; background-position: center; }
.article-card .thumb.art-owned-content   { background-image: url("articles/owned-content.webp");   background-size: cover; background-position: center; }
.article-card .thumb.art-citations       { background-image: url("articles/citations.webp");       background-size: cover; background-position: center; }
.article-card .thumb.art-hcp-behavior    { background-image: url("articles/hcp-behavior.webp");    background-size: cover; background-position: center; }
.article-card .thumb.art-share-of-voice  { background-image: url("articles/share-of-voice.webp");  background-size: cover; background-position: center; }
.article-card .thumb.art-medical-writing { background-image: url("articles/medical-writing.webp"); background-size: cover; background-position: center; }
.article-card .thumb.art-blindspots      { background-image: url("articles/blindspots.webp");      background-size: cover; background-position: center; }
.article-card .thumb.art-compliance      { background-image: url("articles/compliance.webp");      background-size: cover; background-position: center; }
.article-card .thumb.art-case-study      { background-image: url("articles/case-study.webp");      background-size: cover; background-position: center; }
.article-card .thumb.art-primer          { background-image: url("articles/primer.webp");          background-size: cover; background-position: center; }
.article-card .thumb.art-comparison      { background-image: url("articles/comparison.webp");      background-size: cover; background-position: center; }
.article-card .thumb.art-engines,
.article-card .thumb.art-language,
.article-card .thumb.art-source-stack,
.article-card .thumb.art-answer-rate,
.article-card .thumb.art-mobilization,
.article-card .thumb.art-pharmacovigilance { background-size: cover; background-position: center top; background-color: #eaf0fa; }
.article-card .thumb.art-engines         { background-image: url("articles/six-visibilities.webp"); }
.article-card .thumb.art-language        { background-image: url("articles/language-geography.webp"); }
.article-card .thumb.art-source-stack    { background-image: url("articles/source-stack.webp"); }
.article-card .thumb.art-answer-rate     { background-image: url("articles/answer-rate-vs-share-of-voice.webp"); }
.article-card .thumb.art-mobilization    { background-image: url("articles/mobilization.webp"); }
.article-card .thumb.art-pharmacovigilance { background-image: url("articles/pharmacovigilance.webp"); }
.article-card .thumb .label { position: absolute; top: 14px; left: 14px; font-size: 11px; padding: 4px 10px; background: rgba(255,255,255,0.85); border-radius: 999px; color: #0a0a0b; font-weight: 500; }
.article-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.article-card p { font-size: 13px; color: var(--muted-fg); line-height: 1.55; }
.article-card .read { margin-top: auto; font-size: 12px; color: var(--foreground); font-weight: 500; padding-top: 10px; border-top: 1px solid var(--hairline-soft); }

/* ============ PRICING ============ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.price-card.featured {
  border-color: #0a0a0b;
  box-shadow: var(--shadow-elegant);
}
.price-card .tier-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.price-card .tier-price { font-family: var(--font-display); font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.price-card .tier-price small { font-size: 14px; color: var(--muted-fg); font-weight: 400; margin-left: 4px; }
.price-card .tier-desc { color: var(--muted-fg); font-size: 14px; }
.price-card ul.features { display: grid; gap: 10px; font-size: 14px; }
.price-card ul.features li { display: flex; gap: 10px; align-items: flex-start; }
.price-card .check { width: 18px; height: 18px; border-radius: 999px; background: hsl(var(--aikka-green) / 0.15); color: hsl(var(--aikka-green)); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.price-card .featured-tag { position: absolute; top: 14px; right: 14px; font-size: 10px; padding: 4px 10px; border-radius: 999px; background: hsl(var(--aikka-green) / 0.12); color: hsl(var(--aikka-green)); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============ TESTIMONIAL / QUOTE ============ */
.quote {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.quote blockquote { font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 13px; color: var(--muted-fg); }
.quote .who strong { color: var(--foreground); font-weight: 500; }

/* ============ CONTACT GRID ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-grid .info p { color: var(--muted-fg); margin-top: 14px; font-size: 15px; line-height: 1.6; }
.contact-grid .info ul { margin-top: 24px; display: grid; gap: 12px; font-size: 14px; }
.contact-grid .info ul li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-grid .info ul li span:first-child { color: var(--muted-fg); }

.contact-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(255,255,255,0.5); margin-bottom: 24px; width: fit-content; }
.contact-tabs button { padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted-fg); }
.contact-tabs button[aria-selected="true"] { background: #0a0a0b; color: #fff; }

.contact-form-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(10px);
}

/* ============ ARTICLE PAGE ============ */
.article-hero { padding: 80px 0 48px; }
.article-hero h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.02em; max-width: 880px; }
.article-hero .meta { display: flex; gap: 16px; margin-top: 22px; font-size: 13px; color: var(--muted-fg); flex-wrap: wrap; }
.article-cover { aspect-ratio: 16 / 7; border-radius: var(--radius-xl); overflow: hidden; background: var(--gradient-main); margin-bottom: 56px; border: 1px solid var(--hairline); position: relative; }
.article-cover.bg1 { background-image: url("backgrounds/slide-1.jpg"); background-size: cover; background-position: center; }
.article-cover.bg2 { background-image: url("backgrounds/slide-2.jpg"); background-size: cover; background-position: center; }
.article-cover.bg3 { background-image: url("backgrounds/slide-3.jpg"); background-size: cover; background-position: center; }
/* Per-article hero covers (vintage engraving + pastel gradient series) */
.article-cover.art-findings        { background-image: url("articles/findings.webp");        background-size: cover; background-position: center; }
.article-cover.art-benchmark       { background-image: url("articles/benchmark.webp");       background-size: cover; background-position: center; }
.article-cover.art-owned-content   { background-image: url("articles/owned-content.webp");   background-size: cover; background-position: center; }
.article-cover.art-citations       { background-image: url("articles/citations.webp");       background-size: cover; background-position: center; }
.article-cover.art-hcp-behavior    { background-image: url("articles/hcp-behavior.webp");    background-size: cover; background-position: center; }
.article-cover.art-share-of-voice  { background-image: url("articles/share-of-voice.webp");  background-size: cover; background-position: center; }
.article-cover.art-medical-writing { background-image: url("articles/medical-writing.webp"); background-size: cover; background-position: center; }
.article-cover.art-blindspots      { background-image: url("articles/blindspots.webp");      background-size: cover; background-position: center; }
.article-cover.art-compliance      { background-image: url("articles/compliance.webp");      background-size: cover; background-position: center; }
.article-cover.art-case-study      { background-image: url("articles/case-study.webp");      background-size: cover; background-position: center; }
.article-cover.art-primer          { background-image: url("articles/primer.webp");          background-size: cover; background-position: center; }
.article-cover.art-comparison      { background-image: url("articles/comparison.webp");      background-size: cover; background-position: center; }
.article-cover.art-engines,
.article-cover.art-language,
.article-cover.art-source-stack,
.article-cover.art-answer-rate,
.article-cover.art-mobilization,
.article-cover.art-pharmacovigilance { aspect-ratio: 16 / 9; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #eaf0fa; }
.article-cover.art-engines         { background-image: url("articles/six-visibilities.webp"); }
.article-cover.art-language        { background-image: url("articles/language-geography.webp"); }
.article-cover.art-source-stack    { background-image: url("articles/source-stack.webp"); }
.article-cover.art-answer-rate     { background-image: url("articles/answer-rate-vs-share-of-voice.webp"); }
.article-cover.art-mobilization    { background-image: url("articles/mobilization.webp"); }
.article-cover.art-pharmacovigilance { background-image: url("articles/pharmacovigilance.webp"); }

.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { font-size: 17px; line-height: 1.75; margin-bottom: 22px; color: #1a2030; }
.article-body h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; margin: 48px 0 16px; }
.article-body h3 { font-family: var(--font-display); font-size: 21px; font-weight: 500; line-height: 1.3; margin: 36px 0 12px; }
.article-body ul { margin: 16px 0 22px; padding-left: 22px; list-style: disc; }
.article-body ul li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; color: #1a2030; }
.article-body blockquote { border-left: 3px solid #0a0a0b; padding: 8px 0 8px 24px; margin: 28px 0; font-family: var(--font-display); font-size: 22px; line-height: 1.4; font-weight: 500; }
.article-body strong { font-weight: 600; color: var(--foreground); }
.article-body a { color: var(--foreground); border-bottom: 1px solid currentColor; }

/* ============ ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker-track { animation: none !important; }
  .ambient-blob { animation: none !important; }
}

/* ============ MISC HELPERS ============ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
hr.divider { border: 0; height: 1px; background: var(--hairline); margin: 64px 0; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.tag-green { background: hsl(var(--aikka-green) / 0.12); color: hsl(var(--aikka-green)); }
.tag-blue { background: hsl(var(--aikka-blue) / 0.12); color: hsl(var(--aikka-blue)); }
.tag-orange { background: hsl(var(--aikka-orange) / 0.12); color: hsl(var(--aikka-orange)); }
.tag-purple { background: hsl(var(--aikka-purple) / 0.12); color: hsl(var(--aikka-purple)); }
.tag-red { background: hsl(var(--aikka-red) / 0.12); color: hsl(var(--aikka-red)); }

/* ============ CTA BAND (reusable) ============ */
.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
}
.cta-band h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; letter-spacing: -0.018em; }
.cta-stack { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
@media (max-width: 800px) {
  .cta-band { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .cta-stack { width: 100%; }
}

/* ============ INDEX RANKING TABLE (public ranking page) ============ */
.idx-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
}
.idx-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.idx-chip {
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.idx-chip:hover { border-color: #0a0a0b; }
.idx-chip[aria-pressed="true"] { background: #0a0a0b; color: #fff; border-color: #0a0a0b; }
.idx-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
}
.idx-search input { border: 0; outline: 0; font-size: 13px; min-width: 200px; background: transparent; }

.idx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.idx-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  padding: 16px 20px;
  background: #f8fafd;
  border-bottom: 1px solid var(--hairline);
  font-weight: 500;
}
.idx-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
  vertical-align: middle;
}
.idx-table tbody tr:last-child td { border-bottom: 0; }
.idx-table tbody tr:hover { background: #f8fafd; }
.idx-table .col-rank { font-family: var(--font-display); font-weight: 500; color: var(--muted-fg); width: 60px; }
.idx-table .col-brand { font-family: var(--font-display); font-weight: 500; }
.idx-table .col-score { font-family: var(--font-display); font-weight: 500; font-size: 17px; width: 90px; text-align: right; }
.idx-table .col-delta { width: 80px; font-size: 13px; }
.idx-table .col-delta.up { color: hsl(var(--aikka-green)); }
.idx-table .col-delta.down { color: hsl(var(--aikka-red)); }
.idx-table .col-delta.flat { color: var(--muted-fg); }
.idx-table .badge-leader { background: hsl(var(--aikka-green) / 0.12); color: hsl(var(--aikka-green)); padding: 3px 10px; border-radius: 999px; font-size: 11px; }
.idx-table .badge-strong { background: hsl(var(--aikka-blue) / 0.12); color: hsl(var(--aikka-blue)); padding: 3px 10px; border-radius: 999px; font-size: 11px; }
.idx-table .badge-average { background: rgba(0,0,0,0.06); color: var(--muted-fg); padding: 3px 10px; border-radius: 999px; font-size: 11px; }
.idx-table .badge-weak { background: hsl(var(--aikka-orange) / 0.12); color: hsl(var(--aikka-orange)); padding: 3px 10px; border-radius: 999px; font-size: 11px; }

@media (max-width: 800px) {
  .idx-table thead th:nth-child(4),
  .idx-table tbody td:nth-child(4),
  .idx-table thead th:nth-child(6),
  .idx-table tbody td:nth-child(6) { display: none; }
  .idx-table thead th, .idx-table tbody td { padding: 12px 14px; }
}

/* ============ LEGAL / DOC PAGES ============ */
.doc-body { max-width: 760px; margin: 0 auto; }
.doc-body h2 { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 48px 0 14px; letter-spacing: -0.015em; }
.doc-body h3 { font-family: var(--font-display); font-size: 19px; font-weight: 500; margin: 28px 0 10px; }
.doc-body p { font-size: 16px; line-height: 1.7; color: #1a2030; margin-bottom: 16px; }
.doc-body ul { margin: 12px 0 20px; padding-left: 22px; }
.doc-body ul li { font-size: 15px; line-height: 1.7; color: #1a2030; margin-bottom: 6px; }
.doc-body a { color: var(--foreground); border-bottom: 1px solid currentColor; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.doc-body table th, .doc-body table td { padding: 10px 14px; border: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.doc-body table th { background: #f8fafd; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-fg); font-weight: 500; }
.doc-toc {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.5);
}
.doc-toc h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-fg); font-weight: 500; margin-bottom: 12px; }
.doc-toc ol { padding-left: 22px; }
.doc-toc ol li { font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.doc-toc ol li a { color: var(--foreground); }
.doc-toc ol li a:hover { text-decoration: underline; }

/* ============ FORM STACK BASE STYLES (for plain <label> + <input> siblings) ============ */
.form-stack > div > label,
.form-stack > label:not(.form-consent),
.contact-form-card label:not(.form-consent),
.contact-form-card .form-stack label:not(.form-consent) {
  display: block;
  font-size: 11px;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-stack input[type="text"],
.form-stack input[type="email"],
.form-stack input[type="tel"],
.form-stack input[type="search"],
.form-stack select,
.form-stack textarea,
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--foreground);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus,
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  outline: 0;
  border-color: #0a0a0b;
  box-shadow: 0 0 0 3px rgba(10,10,11,0.08);
}
.form-stack textarea { min-height: 110px; resize: vertical; }
.form-stack button[type="submit"] { width: 100%; }

/* Index page metric strip - mobile fix */
@media (max-width: 700px) {
  .container > .reveal[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 20px !important;
    gap: 16px !important;
  }
  .container > .reveal[style*="grid-template-columns: repeat(4"] .font-display {
    font-size: 22px !important;
  }
}

/* ============ CLIENT LOGOS ROW ============ */
.clients-logos {
  display: flex;
  gap: 56px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.clients-logos:hover { opacity: 1; }
.clients-logos img {
  height: 38px;
  width: auto;
  display: block;
  max-width: 170px;
  object-fit: contain;
}
/* Digital Pharmalab is taller (squarish ratio); give it a slightly smaller cap */
.clients-logos img[alt="Digital Pharmalab"] { height: 44px; max-width: 110px; }
.clients-logos img[alt="Takeda"] { height: 44px; max-width: 130px; }
.clients-logos img[alt="IQVIA"] { height: 30px; max-width: 170px; }
@media (max-width: 720px) {
  .clients-logos { gap: 32px; }
  .clients-logos img { height: 30px; max-width: 130px; }
  .clients-logos img[alt="Digital Pharmalab"] { height: 36px; max-width: 90px; }
  .clients-logos img[alt="Takeda"] { height: 36px; max-width: 100px; }
  .clients-logos img[alt="IQVIA"] { height: 24px; max-width: 130px; }
}

/* ============ HOMEPAGE COMPARISON STRIP ============ */
.cmp-home {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  max-width: 1080px;
  margin: 0 auto;
}
.cmp-home-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp-home-table thead th {
  text-align: center;
  padding: 18px 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted-fg);
  background: #fafbff;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.cmp-home-table thead th.cap-col { text-align: left; padding-left: 24px; }
.cmp-home-table thead th.pg-col {
  color: hsl(var(--aikka-blue));
  background: linear-gradient(180deg, hsl(var(--aikka-blue) / 0.10), hsl(var(--aikka-blue) / 0.03));
  border-bottom: 2px solid hsl(var(--aikka-blue));
  font-weight: 600;
  font-size: 14px;
}
.cmp-home-table tbody td {
  padding: 18px 14px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.cmp-home-table tbody tr:last-child td { border-bottom: 0; }
.cmp-home-table tbody td.cap {
  text-align: left;
  padding-left: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  width: 38%;
  line-height: 1.4;
}
.cmp-home-table tbody td.pg-col {
  background: hsl(var(--aikka-blue) / 0.04);
  border-left: 1px solid hsl(var(--aikka-blue) / 0.14);
  border-right: 1px solid hsl(var(--aikka-blue) / 0.14);
}
.cmp-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.cmp-yes { background: hsl(160 84% 39% / 0.14); color: hsl(160 84% 28%); }
.cmp-no  { background: rgba(15,23,42,0.05); color: var(--muted-fg); }
.cmp-partial { background: hsl(38 92% 50% / 0.16); color: hsl(28 80% 38%); }
.cmp-home-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--hairline);
  background: #fafbff;
  font-size: 13px;
  color: var(--muted-fg);
}
.cmp-legend-row { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.cmp-legend-row > span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-legend-row .cmp-mark { width: 20px; height: 20px; font-size: 12px; }
/* Mobile: shrink table to fit screen, keep all 5 columns visible */
@media (max-width: 860px) {
  .cmp-home { overflow: hidden; }
  .cmp-home-table { table-layout: fixed; width: 100%; min-width: 0; font-size: 13px; }
  /* column widths: capability gets 36%, PharmaGEO 18%, three competitors share 46% */
  .cmp-home-table colgroup col { /* fallback if no colgroup, use nth-child */ }
  .cmp-home-table thead th:nth-child(1),
  .cmp-home-table tbody td:nth-child(1) { width: 36%; }
  .cmp-home-table thead th:nth-child(2),
  .cmp-home-table tbody td:nth-child(2) { width: 19%; }
  .cmp-home-table thead th:nth-child(3),
  .cmp-home-table tbody td:nth-child(3),
  .cmp-home-table thead th:nth-child(4),
  .cmp-home-table tbody td:nth-child(4),
  .cmp-home-table thead th:nth-child(5),
  .cmp-home-table tbody td:nth-child(5) { width: 15%; }
  .cmp-home-table thead th { padding: 10px 4px; font-size: 10.5px; letter-spacing: 0.02em; text-align: center; white-space: normal; line-height: 1.2; }
  .cmp-home-table thead th.cap-col { padding-left: 12px; text-align: left; }
  .cmp-home-table thead th.pg-col { font-size: 11px; }
  .cmp-home-table tbody td { padding: 10px 4px; text-align: center; }
  .cmp-home-table tbody td.cap { padding: 10px 8px 10px 12px; text-align: left; font-size: 12px; line-height: 1.3; }
  .cmp-mark { width: 22px; height: 22px; font-size: 12px; }
  .cmp-home-foot { padding: 14px 16px; font-size: 12px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .cmp-legend-row { gap: 12px; font-size: 11px; flex-wrap: wrap; }
  .cmp-legend-row .cmp-mark { width: 16px; height: 16px; font-size: 10px; }
}

@media (max-width: 480px) {
  .cmp-home-table { font-size: 12px; }
  .cmp-home-table thead th { font-size: 9.5px; padding: 9px 3px; }
  .cmp-home-table thead th.pg-col { font-size: 10px; }
  .cmp-home-table tbody td { padding: 9px 3px; }
  .cmp-home-table tbody td.cap { padding: 9px 6px 9px 10px; font-size: 11.5px; line-height: 1.25; }
  .cmp-home-table thead th:nth-child(1),
  .cmp-home-table tbody td:nth-child(1) { width: 38%; }
  .cmp-home-table thead th:nth-child(2),
  .cmp-home-table tbody td:nth-child(2) { width: 18%; }
  .cmp-home-table thead th:nth-child(3),
  .cmp-home-table tbody td:nth-child(3),
  .cmp-home-table thead th:nth-child(4),
  .cmp-home-table tbody td:nth-child(4),
  .cmp-home-table thead th:nth-child(5),
  .cmp-home-table tbody td:nth-child(5) { width: 14.66%; }
  .cmp-mark { width: 20px; height: 20px; font-size: 11px; }
}

/* ============ PLAYBOOK PREVIEW (research-hub) ============ */
.playbook-side { display: grid; gap: 20px; align-content: start; }
.playbook-preview {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--hairline);
  background: #fff;
}
.playbook-preview img {
  width: 100%;
  height: auto;
  display: block;
}
.playbook-pages-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0a0a0b;
  border: 1px solid var(--hairline-soft);
}
@media (max-width: 900px) {
  .playbook-side { gap: 16px; }
  .playbook-pages-tag { font-size: 10px; padding: 5px 10px; }
}

/* ============ INDEX CHART PANELS ============ */
.idx-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 28px;
}
.idx-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  color: var(--muted-fg);
}
.idx-meta-pill strong {
  color: #0a0a0b;
  font-weight: 500;
  font-family: var(--font-display);
}
.idx-meta-pill .meta-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg-2);
}

.idx-charts-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
@media (max-width: 960px) {
  .idx-charts-grid { grid-template-columns: 1fr; }
}

.idx-panel {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.idx-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.idx-panel-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0;
}
.idx-panel-head .panel-sub {
  font-size: 12px;
  color: var(--muted-fg);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* AR bar chart */
.ar-bars { display: flex; flex-direction: column; gap: 10px; }
.ar-row { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 14px; font-size: 13.5px; }
.ar-row .ar-name { font-family: var(--font-display); font-weight: 500; color: #0a0a0b; }
.ar-row .ar-track { position: relative; height: 10px; background: #f1f5fb; border-radius: 999px; overflow: hidden; }
.ar-row .ar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, hsl(var(--aikka-blue)), hsl(var(--aikka-purple))); border-radius: 999px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.ar-row .ar-val { font-family: var(--font-display); font-weight: 500; text-align: right; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.ar-row.lead .ar-val { color: hsl(var(--aikka-blue)); }
@media (max-width: 600px) {
  .ar-row { grid-template-columns: 90px 1fr 50px; gap: 10px; font-size: 12.5px; }
}

/* SOV donut */
.sov-donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sov-donut { position: relative; width: 200px; height: 200px; flex-shrink: 0; }
.sov-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sov-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.sov-donut-center .sov-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
}
.sov-donut-center .sov-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: #0a0a0b;
  margin-top: 2px;
}
.sov-donut-center .sov-sub {
  font-size: 11px;
  color: var(--muted-fg);
  margin-top: 2px;
}
.sov-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; width: 100%; font-size: 12px; }
.sov-legend-item { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; }
.sov-legend-dot { width: 10px; height: 10px; border-radius: 2px; }
.sov-legend-name { color: #0a0a0b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sov-legend-pct { font-family: var(--font-display); color: var(--muted-fg); font-variant-numeric: tabular-nums; }

/* Top sources list */
.sources-list { display: flex; flex-direction: column; gap: 0; }
.sources-row {
  display: grid;
  grid-template-columns: 28px 1fr 60px;
  gap: 14px;
  padding: 14px 0;
  align-items: center;
  border-bottom: 1px solid var(--hairline-soft);
}
.sources-row:last-child { border-bottom: 0; }
.sources-row .src-rank { font-family: var(--font-mono); font-size: 11px; color: var(--muted-fg-2); }
.sources-row .src-name { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: #0a0a0b; line-height: 1.3; }
.sources-row .src-name .src-tag { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11.5px; color: var(--muted-fg); margin-top: 2px; }
.sources-row .src-count { font-family: var(--font-display); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted-fg); }

/* ============ BOOK COVER IMAGE OVERRIDE ============ */
.book .cover.cover-image {
  background: #fff !important;
  background-image: none !important;
  padding: 0;
  height: 70%;
}
.book .cover.cover-image::after { display: none !important; }
.book .cover.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book.book-with-cover .meta { padding: 18px 22px; }
.book.book-with-cover .meta .t { font-size: 18px; line-height: 1.25; }
.book.book-with-cover .desc { margin-top: 8px; font-size: 12px; color: var(--muted-fg); line-height: 1.5; }
