:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --paper: #f1f5f9;
  --surface: #ffffff;
  --line: #e2e8f0;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --glow: rgba(194, 65, 12, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: flex-end;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.06);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 10vw, 100px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 88px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orb-drift 18s var(--ease-out) infinite alternate;
}

.hero-orb--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: radial-gradient(circle, #93c5fd 0%, transparent 70%);
  top: -10%;
  left: -8%;
}

.hero-orb--2 {
  width: min(380px, 60vw);
  height: min(380px, 60vw);
  background: radial-gradient(circle, #c4b5fd 0%, transparent 70%);
  bottom: -15%;
  right: -5%;
  animation-delay: -6s;
}

.hero-orb--3 {
  width: min(300px, 50vw);
  height: min(300px, 50vw);
  background: radial-gradient(circle, #5eead4 0%, transparent 70%);
  top: 30%;
  right: 25%;
  animation-delay: -12s;
}

@keyframes orb-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(24px, -18px) scale(1.08);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  animation: hero-in 1.1s var(--ease-out) 0.1s both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background 0.2s, color 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px var(--glow);
}

.button--primary:hover {
  color: #fff;
  background: var(--accent-hover);
}

.button--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button--disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

/* Floating icons */
.hero-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.hero-icon-link {
  display: flex;
  text-decoration: none;
  /* Negative delays = already mid-cycle at load; no sit-then-jump for later icons */
  animation: icon-float 5s var(--ease-out) infinite alternate;
  animation-fill-mode: both;
}

.hero-icon-link:nth-child(1) {
  animation-delay: 0s;
}

.hero-icon-link:nth-child(2) {
  animation-delay: -1.7s;
}

.hero-icon-link:nth-child(3) {
  animation-delay: -3.4s;
}

.hero-icon-link--muted {
  opacity: 0.72;
  filter: saturate(0.85);
}

@keyframes icon-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

.app-icon {
  --icon-size: 72px;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 22%;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.app-icon--lg {
  --icon-size: 96px;
  border-radius: 24%;
}

.app-icon--md {
  --icon-size: 56px;
}

.hero-icon-link:hover .app-icon {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
}

/* Sections */
.section {
  padding: clamp(40px, 7vw, 72px) clamp(16px, 4vw, 40px);
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* Product grid */
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.product-card {
  --card-accent: #2563eb;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.14);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-badge--available {
  background: #dcfce7;
  color: #166534;
}

.status-badge--coming-soon {
  background: #fef3c7;
  color: #92400e;
  animation: badge-pulse 2.5s ease-in-out infinite;
}

.status-badge--internal-testing {
  background: #ccfbf1;
  color: #0f766e;
}

@keyframes badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(146, 64, 14, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(146, 64, 14, 0.12);
  }
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.product-card .tagline {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* Value strip */
.value-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.value-card {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--paper) 80%, var(--surface)));
  border: 1px solid var(--line);
}

.value-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.value-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* App / doc pages */
.page-hero {
  padding: clamp(40px, 8vw, 72px) clamp(16px, 4vw, 40px);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--page-accent, #2563eb) 12%, var(--paper)),
    var(--paper)
  );
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

@media (max-width: 640px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
  }
}

.page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.page-hero .hero-hook {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: color-mix(in srgb, var(--page-accent, #2563eb) 78%, var(--ink));
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 40px);
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 2em 0 0.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.5em;
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
}

.highlight-list li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.75em;
}

.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--page-accent, var(--accent));
}

.tier-box {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 1em 0;
}

.tier-box strong {
  display: block;
  margin-bottom: 4px;
}

.banner-dev {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  margin-bottom: 1.5em;
}

.banner-required {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  margin-bottom: 1.5em;
  font-weight: 500;
}

.onboarding-step-head {
  margin-top: 2.5em;
  padding-top: 0.25em;
}

.email-plain {
  margin: 1em 0;
}

.email-address {
  display: inline-block;
  margin-top: 0.35em;
  padding: 0.35em 0.65em;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.95em;
  user-select: all;
}

.report-template {
  margin: 0.75em 0 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  color: var(--muted);
}

.privacy-list {
  list-style: none;
  padding: 0;
}

.privacy-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-list li:last-child {
  border-bottom: none;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 28px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* Product page sections */
.page-section {
  padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 40px);
}

.page-section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.page-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-section-inner--narrow {
  max-width: 720px;
}

.page-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
}

.page-section .section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 62ch;
}

.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.view-card {
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  border-top: 4px solid var(--page-accent, var(--accent));
}

.view-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.view-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.tool-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--page-accent, var(--accent)) 8%, var(--surface));
  border: 1px solid var(--line);
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.screenshot-card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.screenshot-card[data-screenshot-detail] {
  cursor: zoom-in;
}

.screenshot-card[data-screenshot-detail]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.screenshot-card img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
  background: #0f172a;
}

.screenshot-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.screenshot-card[data-screenshot-detail] figcaption::after {
  content: " Tap to enlarge.";
  color: var(--accent);
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}

.screenshot-modal[hidden] {
  display: none;
}

.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}

.screenshot-modal__panel {
  width: min(1000px, 100%);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .screenshot-modal__panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.screenshot-modal__image-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 8px;
}

.screenshot-modal__image-wrap img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.screenshot-modal__copy h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
}

.screenshot-modal__copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.screenshot-modal__gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.screenshot-modal__nav,
.screenshot-modal__close {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.screenshot-modal__close {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.screenshot-modal__close:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.screenshot-modal__nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.screenshot-modal__nav:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Feature spotlights (NotiVault product page) */
.feature-hero-section {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--page-accent, #0d9488) 10%, var(--surface)),
    var(--surface)
  );
}

.feature-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 56px);
}

.feature-spotlight:last-child {
  margin-bottom: 0;
}

.feature-spotlight--reverse .feature-spotlight-copy {
  order: 2;
}

.feature-spotlight--reverse .feature-spotlight-shot {
  order: 1;
}

@media (max-width: 820px) {
  .feature-spotlight,
  .feature-spotlight--reverse {
    grid-template-columns: 1fr;
  }

  .feature-spotlight--reverse .feature-spotlight-copy,
  .feature-spotlight--reverse .feature-spotlight-shot {
    order: unset;
  }
}

.feature-spotlight--hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 380px);
  margin-bottom: 0;
}

.feature-spotlight--hero h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 400;
  line-height: 1.12;
}

.feature-spotlight-copy h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.feature-spotlight-copy p {
  margin: 0;
  color: var(--muted);
}

.feature-bullet-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-bullet-list li {
  position: relative;
  padding-left: 1.35em;
  margin-bottom: 0.85em;
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--page-accent, var(--accent));
}

.feature-spotlight-shot {
  margin: 0;
  cursor: zoom-in;
}

.feature-spotlight-shot img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  background: #0f172a;
  object-fit: contain;
  max-height: 520px;
}

.feature-spotlight-shot--compact img {
  max-height: 420px;
}

.feature-spotlight-shot figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.dashboard-lines-demo {
  margin: 0 0 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}

.dashboard-lines-demo img {
  display: block;
  width: 100%;
  height: auto;
}

.cta-band {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--page-accent, #0d9488) 14%, var(--surface)),
    var(--surface)
  );
  border: 1px solid var(--line);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
}

.cta-band p {
  margin: 0 0 20px;
  color: var(--muted);
}

.prose .guide-links {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.prose .guide-links a {
  color: var(--accent, #0d9488);
  text-decoration: none;
}

.prose .guide-links a:hover {
  text-decoration: underline;
}

.cta-band .hero-actions {
  justify-content: center;
}
