/* CheckOn marketing pages — Notion-narrow layout (non-home)
   Shares calm type, tokens, primary brand token with homepage. */

/* ——— Shared shell tokens (light) ——— */
html[data-theme="light"] body.page-site,
html:not([data-theme="dark"]) body.page-site {
  --bg: #ffffff;
  --bg-deep: #f7f8fc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-overlay: rgba(255, 255, 255, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.86);
  --bg-glass-strong: rgba(255, 255, 255, 0.96);

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --border-glow: rgba(90, 103, 216, 0.32);
  --focus-ring: 0 0 0 3px rgba(90, 103, 216, 0.28);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.09);
  --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.11);
  --shadow-glow: none;
  --shadow-glow-teal: none;
  --shadow-card-hover: 0 12px 32px rgba(15, 23, 42, 0.08);

  --aurora-1: transparent;
  --aurora-2: transparent;
  --aurora-3: transparent;

  --sp-max: 720px;
  --sp-wide: 880px;
  --hn-frame-radius: 16px;
  --hn-shot-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 16px 48px rgba(15, 23, 42, 0.1);
  --ease-notion: cubic-bezier(0.16, 1, 0.3, 1);

  background: #ffffff;
  color: var(--text);
  color-scheme: light;
}

html[data-theme="light"] body.page-site::before,
html:not([data-theme="dark"]) body.page-site::before {
  display: none !important;
  content: none !important;
}

/* ——— Dark (design-system, not washed gray) ——— */
html[data-theme="dark"] body.page-site {
  --bg: #0b0f16;
  --bg-deep: #0e1219;
  --bg-card: #161d28;
  --bg-elevated: #1e2736;
  --bg-overlay: rgba(7, 10, 16, 0.82);
  --bg-glass: rgba(22, 29, 40, 0.78);
  --bg-glass-strong: rgba(22, 29, 40, 0.92);

  --text: #e8ecf4;
  --text-secondary: #94a0b4;
  --text-muted: #6b778c;
  --text-inverse: #0b0f16;

  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.26);
  --border-glow: color-mix(in srgb, var(--color-primary) 45%, transparent);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-primary) 45%, transparent);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-glow: none;
  --shadow-glow-teal: none;
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.4);

  --aurora-1: transparent;
  --aurora-2: transparent;
  --aurora-3: transparent;

  --hn-shot-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 56px rgba(0, 0, 0, 0.5);
  --ease-notion: cubic-bezier(0.16, 1, 0.3, 1);

  background: #0b0f16;
  color: var(--text);
  color-scheme: dark;
}

html[data-theme="dark"] body.page-site::before {
  display: none !important;
  content: none !important;
}

/* ——— Header / chrome ——— */
html[data-theme="light"] body.page-site .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: none;
}

html[data-theme="light"] body.page-site .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border-strong);
}

html[data-theme="dark"] body.page-site .site-header,
html[data-theme="dark"] body.page-site .site-header.is-scrolled {
  background: rgba(11, 15, 22, 0.9);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
}

body.page-site .nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}
body.page-site .nav-links a:hover,
body.page-site .nav-links a.is-active {
  color: var(--text);
  background: var(--color-primary-soft);
}
body.page-site .logo { color: var(--text); }

body.page-site .btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: none;
}
body.page-site .btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: none;
}
body.page-site .btn--ghost {
  color: var(--text-secondary);
  border-color: transparent;
}
body.page-site .btn--ghost:hover {
  color: var(--text);
  background: var(--color-primary-soft);
}

/* Narrow header width */
body.page-site .site-header .container,
body.page-site .site-header .container--wide {
  width: min(100% - 5rem, 960px) !important;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 0;
}

/* ——— Notion-narrow content ——— */
body.page-site main#main {
  overflow-x: clip;
  max-width: 100%;
}

body.page-site .page-main {
  padding-bottom: var(--space-8);
}

body.page-site .page-hero {
  text-align: center;
  padding-top: clamp(4rem, 8vw, 5.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: transparent !important;
}
body.page-site .page-hero::before { display: none !important; }

body.page-site .page-hero .container,
body.page-site .sp-wrap {
  width: min(100% - 5rem, var(--sp-max, 720px));
  max-width: var(--sp-max, 720px);
  margin-inline: auto;
  padding-inline: 0;
}

body.page-site .page-hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: var(--text);
}

body.page-site .page-hero .lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-inline: auto;
}

body.page-site .page-hero .eyebrow,
body.page-site .sp-eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  border-radius: 9999px;
}

/* Content containers */
body.page-site .section > .container:not(.container--wide) {
  width: min(100% - 5rem, var(--sp-max, 720px));
  max-width: var(--sp-max, 720px);
  margin-inline: auto;
  padding-inline: 0;
}

body.page-site .section > .container--wide,
body.page-site .sp-wrap--wide {
  width: min(100% - 5rem, var(--sp-wide, 880px));
  max-width: var(--sp-wide, 880px);
  margin-inline: auto;
  padding-inline: 0;
}

body.page-site .section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

body.page-site .section-header {
  text-align: center;
  margin-bottom: 2rem;
}
body.page-site .section-header h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* Contained screenshot frames (reuse hn-frame language) */
body.page-site .hn-frame {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  border-radius: var(--hn-frame-radius, 16px);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  box-shadow: var(--hn-shot-shadow);
  box-sizing: border-box;
  contain: paint;
  transition:
    transform 320ms var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 320ms var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1));
}

body.page-site .hn-shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: top center;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  body.page-site .hn-frame:hover,
  body.page-site .pricing-card:hover,
  body.page-site .card:hover,
  body.page-site .bento__item:hover,
  body.page-site .sp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
  }
}

/* Feature rows with screenshots */
body.page-site .feature-row {
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: center;
}
body.page-site .feature-row h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
  font-weight: 700;
}
body.page-site .feature-visual-box {
  display: none;
}
body.page-site .feature-row__visual .hn-frame {
  min-height: 0;
}

/* Pricing polish */
body.page-site .pricing-grid {
  gap: 1.25rem;
}
body.page-site .pricing-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition:
    transform 320ms var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 320ms var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1));
}
body.page-site .pricing-card--featured {
  border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
  box-shadow: 0 0 0 1px rgba(90, 103, 216, 0.12);
}

/* Cards / bento calm */
body.page-site .card,
body.page-site .bento__item,
body.page-site .sp-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition:
    transform 320ms var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 320ms var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1));
}

body.page-site .cta-band {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  box-shadow: none;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
}
body.page-site .cta-band::before { display: none; }
body.page-site .cta-band h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  letter-spacing: -0.03em;
}

body.page-site .onprem-banner {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

/* Prose / legal */
body.page-site .prose,
body.page-site .legal-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
body.page-site .prose h2,
body.page-site .legal-content h2 {
  color: var(--text);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
body.page-site .prose h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}
body.page-site .prose ul {
  margin: 0.5rem 0 1rem;
  padding-inline-start: 1.25rem;
}
body.page-site .prose li + li { margin-top: 0.35rem; }

/* Footer / bottom nav */
body.page-site .site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
body.page-site .site-footer .container--wide {
  width: min(100% - 5rem, 960px);
  max-width: 960px;
  margin-inline: auto;
}
body.page-site .bottom-nav {
  background: var(--bg-overlay);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.page-site .bottom-nav__item { color: var(--text-muted); }
body.page-site .bottom-nav__item.is-active { color: var(--color-primary); }
body.page-site .bottom-nav__item--cta .bottom-nav__icon {
  background: var(--color-primary);
  color: #fff;
}

/* ——— Scroll reveal (Notion-calm) ——— */
body.page-site,
body.page-home {
  --ease-notion: cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-site [data-reveal],
body.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.6s var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1));
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

body.page-site [data-reveal][data-reveal-delay="1"],
body.page-home [data-reveal][data-reveal-delay="1"] { --reveal-delay: 60ms; }
body.page-site [data-reveal][data-reveal-delay="2"],
body.page-home [data-reveal][data-reveal-delay="2"] { --reveal-delay: 120ms; }
body.page-site [data-reveal][data-reveal-delay="3"],
body.page-home [data-reveal][data-reveal-delay="3"] { --reveal-delay: 180ms; }
body.page-site [data-reveal][data-reveal-delay="4"],
body.page-home [data-reveal][data-reveal-delay="4"] { --reveal-delay: 240ms; }
body.page-site [data-reveal][data-reveal-delay="5"],
body.page-home [data-reveal][data-reveal-delay="5"] { --reveal-delay: 300ms; }
body.page-site [data-reveal][data-reveal-delay="6"],
body.page-home [data-reveal][data-reveal-delay="6"] { --reveal-delay: 360ms; }
body.page-site [data-reveal][data-reveal-delay="7"],
body.page-home [data-reveal][data-reveal-delay="7"] { --reveal-delay: 420ms; }
body.page-site [data-reveal][data-reveal-delay="8"],
body.page-home [data-reveal][data-reveal-delay="8"] { --reveal-delay: 480ms; }

body.page-site [data-reveal].is-visible,
body.page-home [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Hero cascade (site pages + home) */
body.page-site .page-hero.hn-hero--cascade.hn-hero--enter,
body.page-home .hn-hero.hn-hero--cascade.hn-hero--enter {
  opacity: 1;
  transform: none;
}

body.page-site .page-hero.hn-hero--cascade .hn-cascade-item,
body.page-home .hn-hero.hn-hero--cascade .hn-cascade-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.65s var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1));
  transition-delay: var(--cascade-delay, 0ms);
}

body.page-site .page-hero.hn-hero--cascade.is-entered .hn-cascade-item,
body.page-home .hn-hero.hn-hero--cascade.is-entered .hn-cascade-item,
body.is-hero-ready .page-hero.hn-hero--cascade .hn-cascade-item,
body.is-hero-ready .hn-hero.hn-hero--cascade .hn-cascade-item {
  opacity: 1;
  transform: none;
}

/* Fallback whole-hero fade when cascade not present */
body.page-site .page-hero.hn-hero--enter:not(.hn-hero--cascade),
body.page-home .hn-hero.hn-hero--enter:not(.hn-hero--cascade) {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.7s var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1));
}
body.page-site .page-hero.hn-hero--enter:not(.hn-hero--cascade).is-entered,
body.page-home .hn-hero.hn-hero--enter:not(.hn-hero--cascade).is-entered,
body.is-hero-ready .page-hero.hn-hero--enter:not(.hn-hero--cascade),
body.is-hero-ready .hn-hero.hn-hero--enter:not(.hn-hero--cascade) {
  opacity: 1;
  transform: none;
}

/* Soft site-page hovers */
@media (hover: hover) and (pointer: fine) {
  body.page-site .btn--primary:hover,
  body.page-site .btn--teal:hover {
    transform: scale(1.01);
  }
  body.page-site .pricing-card:hover,
  body.page-site .card:hover,
  body.page-site .bento__item:hover,
  body.page-site .sp-card:hover,
  body.page-site .hn-frame:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--color-primary) 22%, var(--border));
    box-shadow: var(--shadow-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-site [data-reveal],
  body.page-home [data-reveal],
  body.page-site .page-hero.hn-hero--enter,
  body.page-home .hn-hero.hn-hero--enter,
  body.page-site .hn-cascade-item,
  body.page-home .hn-cascade-item,
  body.page-site .hn-frame,
  body.page-site .pricing-card,
  body.page-site .card,
  body.page-site .bento__item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  body.page-site .hn-shot {
    transform: none !important;
  }
}

@media (max-width: 720px) {
  body.page-site .page-hero .container,
  body.page-site .section > .container:not(.container--wide),
  body.page-site .section > .container--wide,
  body.page-site .sp-wrap,
  body.page-site .sp-wrap--wide,
  body.page-site .site-header .container,
  body.page-site .site-header .container--wide,
  body.page-site .site-footer .container--wide {
    width: min(100% - 2rem, 880px) !important;
  }
  body.page-site .page-hero h1 { max-width: none; }
  body.page-site .page-hero { text-align: right; }
  body.page-site .page-hero .lead { margin-inline: 0; text-align: right; }
  body.page-site .section-header { text-align: right; }
}


/* ——— Feature rows with contained screenshots ——— */
body.page-site .feature-rows,
body.page-site .feature-row {
  display: grid;
  gap: 2.5rem;
}
body.page-site .feature-row {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 3.5rem;
}
body.page-site .feature-row:nth-child(even) .feature-row__visual {
  order: -1;
}
body.page-site .feature-row h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}
body.page-site .feature-row__visual .hn-frame {
  width: 100%;
}
body.page-site .eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  border-radius: 9999px;
}
@media (max-width: 800px) {
  body.page-site .feature-row {
    grid-template-columns: 1fr;
  }
  body.page-site .feature-row:nth-child(even) .feature-row__visual {
    order: 0;
  }
}

/* Pricing grid constrained */
body.page-site .pricing-grid {
  width: 100%;
}
@media (min-width: 900px) {
  body.page-site .section > .container--wide:has(.pricing-grid) {
    width: min(100% - 5rem, 960px);
    max-width: 960px;
  }
}


/* ——— Notion polish v2 ——— */
body.page-site .card,
body.page-site .bento__item,
body.page-site .sp-card,
body.page-site .pricing-card {
  border-width: 1px;
  border-color: var(--border);
  box-shadow: none;
  border-radius: var(--radius-lg);
  transition:
    transform 360ms var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow 360ms var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1)),
    border-color 360ms var(--ease-notion, cubic-bezier(0.16, 1, 0.3, 1));
}

body.page-site .card,
body.page-site .bento__item {
  padding: 1.35rem 1.25rem;
}

body.page-site .bento {
  gap: 1rem;
}

body.page-site .bento__item--glow,
body.page-site .bento__item--teal {
  box-shadow: none;
  background: var(--bg-card);
}

body.page-site .accordion {
  gap: 0.65rem;
}

body.page-site .accordion__item {
  border-radius: var(--radius-md);
  border-color: var(--border);
  box-shadow: none;
}

body.page-site .accordion__trigger {
  align-items: center;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
}

body.page-site .accordion__icon {
  margin-top: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-site .accordion__panel {
  padding: 0 1.1rem 1.1rem;
}

body.page-site .blog-card__cover {
  height: 120px;
  opacity: 1;
}

body.page-site .blog-card {
  border-radius: var(--radius-lg);
}

body.page-site .help-cat {
  min-height: 0;
}

body.page-site .grid-2,
body.page-site .grid-3 {
  gap: 1rem;
}

body.page-site .pricing-card {
  overflow: visible;
}

body.page-site .pricing-card--featured {
  background: var(--bg-card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

body.page-site .onprem-banner {
  padding: 1.5rem 1.35rem;
  gap: 1.25rem;
}

.prose figure { margin: 1.5rem 0 1.75rem; }
.prose figure img { width: 100%; height: auto; border-radius: 16px; display: block; }
.prose figcaption { margin-top: .55rem; font-size: .875rem; line-height: 1.7; color: var(--text-secondary, #4a5568); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); padding: .55rem .4rem; text-align: start; }
