/* InkNode marketing — palette aligned with app chrome (InkNodeSharedUI / UnifiedShell) */
:root {
  --ink-bg-deep: #070b14;
  --ink-bg-mid: #0c1222;
  --ink-surface: rgba(18, 26, 44, 0.72);
  --ink-surface-2: rgba(255, 255, 255, 0.06);
  --ink-stroke: rgba(255, 255, 255, 0.14);
  --ink-text: #e8eefc;
  --ink-muted: #9aa8c4;
  --ink-blue: #2f6be0;
  --ink-blue-bright: #4d9efa;
  --ink-blue-deep: #1a47b8;
  --ink-purple: #8059d9;
  --ink-green: #4d9966;
  --ink-radius-lg: 20px;
  --ink-radius-md: 14px;
  --ink-radius-sm: 10px;
  --font-sans: "Outfit", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ink-bg-deep);
  color: var(--ink-text);
  line-height: 1.55;
  font-size: 1.05rem;
  overflow-x: hidden;
}

a {
  color: var(--ink-blue-bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid var(--ink-stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink-text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-desktop a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav-desktop a:hover {
  color: var(--ink-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--ink-radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(165deg, var(--ink-blue-bright), var(--ink-blue));
  color: #fff;
  box-shadow: 0 4px 24px rgba(77, 158, 250, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(77, 158, 250, 0.45);
}

.btn-secondary {
  background: var(--ink-surface-2);
  color: var(--ink-text);
  border: 1px solid var(--ink-stroke);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 880px) {
  .nav-desktop {
    display: flex;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.55;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(47, 107, 224, 0.35), transparent),
    radial-gradient(ellipse 50% 40% at 90% 40%, rgba(128, 89, 217, 0.18), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ink-stroke);
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-lead {
  color: var(--ink-muted);
  font-size: 1.15rem;
  max-width: 34ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Device mock — evokes unified shell (sidebar + canvas) */
.device-mock {
  position: relative;
  border-radius: var(--ink-radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--ink-stroke);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 0.6rem;
  max-width: 520px;
  margin-inline: auto;
}

.device-bezel {
  border-radius: calc(var(--ink-radius-lg) - 6px);
  overflow: hidden;
  background: #0f1524;
  border: 1px solid rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 280px;
}
@media (min-width: 520px) {
  .device-bezel {
    grid-template-columns: 140px 1fr;
    min-height: 320px;
  }
}

.mock-sidebar {
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.95), rgba(12, 18, 34, 0.98));
  border-right: 1px solid var(--ink-stroke);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mock-sidebar-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding: 0.25rem 0.5rem 0.5rem;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--ink-radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.mock-nav-item.active {
  background: rgba(47, 107, 224, 0.22);
  color: #fff;
  border: 1px solid rgba(77, 158, 250, 0.25);
}
.mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-blue-bright);
}

.mock-canvas {
  position: relative;
  padding: 1rem;
  background: radial-gradient(circle at 30% 20%, rgba(47, 107, 224, 0.08), transparent 50%),
    linear-gradient(180deg, #121a2e, #0d1322);
}

.mock-toolbar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.mock-tool {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ink-stroke);
}

.mock-ink {
  height: 120px;
  border-radius: var(--ink-radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: linear-gradient(105deg, transparent 40%, rgba(77, 158, 250, 0.06) 40%, rgba(77, 158, 250, 0.06) 42%, transparent 42%);
  position: relative;
}
.mock-ink::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 35%;
  width: 55%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ink-blue-bright), transparent);
  opacity: 0.7;
  transform: rotate(-4deg);
}

/* —— Notebook scroll: short band — closed top, open bottom (same sky as background) —— */
section.notebook-reveal {
  --nr-p: 0;
  position: relative;
  /* ~1 screen + modest scroll so Features isn’t blocked behind a long strip */
  height: 125vh;
  padding: 0 !important;
  margin: 0;
  scroll-margin-top: 5rem;
}

.notebook-reveal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}

.notebook-reveal-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(20, 35, 70, 0.65), transparent 55%),
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(47, 107, 224, 0.12), transparent 45%),
    radial-gradient(ellipse 60% 45% at 85% 25%, rgba(128, 89, 217, 0.1), transparent 40%),
    linear-gradient(180deg, #03060f 0%, #0a1020 38%, #070b14 100%);
}

.notebook-reveal-bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(120, 170, 255, 0.09) 0%, transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(180, 140, 255, 0.07) 0%, transparent 22%),
    radial-gradient(circle at 55% 75%, rgba(77, 158, 250, 0.06) 0%, transparent 30%);
  filter: blur(1px);
}

.notebook-reveal-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
    ellipse 85% 72% at 50% 50%,
    transparent 42%,
    rgba(3, 6, 15, calc(0.28 - var(--nr-p) * 0.22)) 100%
  );
  opacity: calc(0.92 - var(--nr-p) * 0.25);
}

.notebook-reveal-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.notebook-reveal-scene {
  width: 100%;
  max-width: 720px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  transform-style: preserve-3d;
  transform:
    translateY(calc(5vh - var(--nr-p) * 5vh))
    rotateX(calc(12deg - var(--nr-p) * 12deg))
    rotateZ(calc(-5deg + var(--nr-p) * 5deg))
    scale(calc(0.9 + var(--nr-p) * 0.1));
  transform-origin: 50% 55%;
  will-change: transform;
}

.notebook-object {
  position: relative;
  width: min(92vw, 560px);
  aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
}

.notebook-shadow {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 88%;
  height: 14%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(16px);
  opacity: calc(0.88 - var(--nr-p) * 0.18);
}

.notebook-open {
  position: relative;
  z-index: 1;
  height: 100%;
  opacity: var(--nr-p);
}

.notebook-closed-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  opacity: calc(1 - var(--nr-p));
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.09) 0%, transparent 42%),
    linear-gradient(145deg, #152038 0%, #243556 38%, #1a2840 72%, #121a2c 100%);
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.05) inset,
    0 28px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.09);
}

.notebook-closed-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.16) 0%,
    transparent 35%,
    transparent 55%,
    rgba(77, 158, 250, 0.06) 100%
  );
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

.notebook-closed-edge {
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.06));
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.35);
}

.notebook-body {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.06) inset,
    0 32px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.notebook-binding {
  width: clamp(10px, 2.2vw, 16px);
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    #0a0f1a,
    #1a2438 45%,
    #121a2c 100%
  );
  box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.45);
}

.notebook-spread {
  flex: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
}

.notebook-page {
  position: relative;
}

.notebook-page--left {
  width: 22%;
  background: linear-gradient(100deg, #141c2e 0%, #1e2a44 55%, #243556 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.35);
}

.notebook-page--right {
  flex: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 242, 235, 1) 100%);
  overflow: hidden;
}

.notebook-paper-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.notebook-lines {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: repeating-linear-gradient(
    transparent 0,
    transparent 27px,
    rgba(30, 58, 95, 0.35) 27px,
    rgba(30, 58, 95, 0.35) 28px
  );
  background-position: 0 18px;
}

.notebook-ink-svg {
  position: absolute;
  left: 8%;
  right: 6%;
  top: 38%;
  height: 32%;
  overflow: visible;
}

.notebook-ink-path {
  opacity: calc(var(--nr-p) * 0.95);
  filter: drop-shadow(0 1px 1px rgba(30, 74, 140, 0.25));
}

.notebook-glass-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.45) 0%,
    transparent 38%,
    transparent 62%,
    rgba(255, 255, 255, 0.08) 100%
  );
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.notebook-reveal-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 6vh, 3rem);
  transform: translateX(-50%);
  width: min(560px, 92%);
  text-align: center;
  z-index: 4;
  pointer-events: none;
  opacity: clamp(0, calc((var(--nr-p) - 0.68) * 3.2), 1);
  transition: opacity 0.08s linear;
}

.notebook-reveal-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-blue-bright);
}

.notebook-reveal-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink-text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.notebook-reveal-lead {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(232, 238, 252, 0.88);
  line-height: 1.5;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

.notebook-reveal-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(5rem, 14vh, 7rem);
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 168, 196, 0.85);
  opacity: clamp(0, calc(1 - var(--nr-p) * 1.35), 1);
  pointer-events: none;
}

.notebook-reveal-hint-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: notebook-hint-pulse 2.4s ease-in-out infinite;
}

@keyframes notebook-hint-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  section.notebook-reveal {
    height: auto;
    min-height: 70vh;
    --nr-p: 1;
  }

  .notebook-reveal-sticky {
    position: relative;
    min-height: 68vh;
  }

  .notebook-reveal-scene {
    transform: scale(1) translateY(0) rotateX(0) rotateZ(0) !important;
  }

  .notebook-closed-cover {
    opacity: 0 !important;
  }

  .notebook-open {
    opacity: 1 !important;
  }

  .notebook-reveal-vignette {
    opacity: 0.2;
  }

  .notebook-reveal-caption {
    opacity: 1 !important;
    pointer-events: auto;
  }

  .notebook-reveal-hint {
    display: none !important;
  }

  .notebook-reveal-hint-inner {
    animation: none;
  }
}

/* —— Sections —— */
section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-blue-bright);
  margin: 0 0 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section-desc {
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

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

.card {
  background: var(--ink-surface);
  border: 1px solid var(--ink-stroke);
  border-radius: var(--ink-radius-md);
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  background: rgba(47, 107, 224, 0.2);
  border: 1px solid rgba(77, 158, 250, 0.25);
}

.card-icon.purple {
  background: rgba(128, 89, 217, 0.2);
  border-color: rgba(180, 140, 255, 0.25);
}
.card-icon.green {
  background: rgba(77, 153, 102, 0.2);
  border-color: rgba(120, 200, 150, 0.25);
}

/* —— Product screenshot showcase (contain-fit, lightbox) —— */
.showcase-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--ink-stroke);
  background:
    radial-gradient(ellipse 80% 55% at 18% 0%, rgba(77, 158, 250, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 22%, rgba(128, 89, 217, 0.14), transparent 60%),
    linear-gradient(180deg, #070b14 0%, #0a1020 50%, #070b14 100%);
}

.showcase-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 5%, #000 0%, transparent 78%);
}

.showcase-section .container {
  position: relative;
  z-index: 1;
}

.showcase-head {
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.showcase-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.showcase-figure {
  position: relative;
  margin: 0;
  padding: clamp(1.05rem, 2.6vw, 1.35rem);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(12, 18, 34, 0.8);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.showcase-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.1), transparent 40%, rgba(77, 158, 250, 0.07));
  opacity: 0.5;
  mix-blend-mode: screen;
}

.showcase-figure:hover {
  border-color: rgba(77, 158, 250, 0.3);
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(77, 158, 250, 0.12) inset;
  transform: translateY(-2px);
}

.showcase-figure .showcase-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 0;
}

.showcase-figure .showcase-media,
.showcase-figure .showcase-caption {
  position: relative;
  z-index: 1;
}

.showcase-media {
  position: relative;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 50% at 30% 12%, rgba(77, 158, 250, 0.18), transparent 60%),
    linear-gradient(180deg, #10182c 0%, #0a1020 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.55rem, 1.3vw, 0.8rem);
}

.showcase-figure .showcase-media,
.showcase-figure .showcase-image {
  cursor: zoom-in;
}

.showcase-image {
  width: 100%;
  height: auto;
  max-height: min(78vh, 1000px);
  object-fit: contain;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
}

.showcase-figure--featured .showcase-image {
  max-height: min(86vh, 1200px);
}

.showcase-zoom {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(6, 10, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}

.showcase-zoom:hover,
.showcase-zoom:focus-visible {
  background: rgba(47, 107, 224, 0.4);
  outline: none;
}

.showcase-caption {
  margin-top: 1.05rem;
  padding: 0 0.15rem;
  max-width: 72ch;
}

.showcase-caption > span {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(77, 158, 250, 0.14);
  border: 1px solid rgba(77, 158, 250, 0.2);
  color: #b8d8ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.showcase-caption h3 {
  margin: 0.7rem 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.showcase-caption p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.showcase-figure--bookend {
  margin-top: 1.25rem;
}

/* Lightbox */
.showcase-lightbox {
  max-width: min(1400px, 100% - 2.5rem);
  width: min(1400px, 100% - 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 0;
  background: rgba(6, 9, 16, 0.9);
  color: var(--ink-text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.showcase-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.showcase-lightbox[open] {
  animation: showcase-fade 0.18s ease;
}

.showcase-lightbox:focus-visible {
  outline: 2px solid rgba(77, 158, 250, 0.55);
  outline-offset: 2px;
}

.showcase-lightbox-inner {
  position: relative;
  max-height: min(92dvh, 1000px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(0.75rem, 2.5vw, 1.1rem);
}

.showcase-lightbox-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  border-radius: 14px;
}

.showcase-lightbox-close {
  position: fixed;
  top: max(0.7rem, env(safe-area-inset-top, 0px) + 0.35rem);
  right: max(0.7rem, env(safe-area-inset-right, 0px) + 0.35rem);
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 9, 16, 0.6);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.showcase-lightbox-close:hover,
.showcase-lightbox-close:focus-visible {
  background: rgba(47, 107, 224, 0.35);
  outline: none;
}

@keyframes showcase-fade {
  from {
    opacity: 0.85;
    transform: translateY(4px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .showcase-figure {
    border-radius: 20px;
    padding: 0.95rem;
  }

  .showcase-image {
    max-height: 72vh;
  }

  .showcase-figure--featured .showcase-image {
    max-height: 80vh;
  }
}

/* AI band */
.ai-band {
  position: relative;
  background: var(--ink-bg-mid);
  border-block: 1px solid var(--ink-stroke);
  overflow: hidden;
}
.ai-band #neural-canvas-ai {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.35;
  pointer-events: none;
}

.ai-inner {
  position: relative;
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .ai-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.ai-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ai-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-muted);
}
.ai-list strong {
  color: var(--ink-text);
}
.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(77, 158, 250, 0.2);
  border: 1px solid rgba(77, 158, 250, 0.35);
  display: grid;
  place-items: center;
  color: var(--ink-blue-bright);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Pricing */
.pricing-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.pricing-head .section-desc {
  margin-inline: auto;
}

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ink-stroke);
  margin-bottom: 2rem;
}
.billing-toggle button {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.billing-toggle button[aria-pressed="true"] {
  background: linear-gradient(165deg, var(--ink-blue-bright), var(--ink-blue));
  color: #fff;
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--ink-radius-md);
  background: var(--ink-surface);
  border: 1px solid var(--ink-stroke);
  position: relative;
}
.price-card.featured {
  border-color: rgba(77, 158, 250, 0.45);
  box-shadow: 0 0 0 1px rgba(77, 158, 250, 0.12), 0 20px 50px rgba(47, 107, 224, 0.15);
}
.price-card .badge {
  position: absolute;
  top: -10px;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(165deg, var(--ink-blue-bright), var(--ink-blue));
  color: #fff;
}

.price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}
.price-card .tagline {
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
  min-height: 2.6em;
}

.price-row {
  margin-bottom: 1rem;
}
.price-main {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-sub {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
}
.price-card li {
  font-size: 0.88rem;
  color: var(--ink-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 1.1rem;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ink-green);
  font-size: 0.75rem;
  font-weight: 800;
}

.price-footnote {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.82rem;
  margin-top: 2rem;
  max-width: 720px;
  margin-inline: auto;
}

/* Free plan comparison table */
.compare-section {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--ink-stroke);
  background: linear-gradient(180deg, rgba(12, 18, 34, 0.5) 0%, var(--ink-bg-deep) 100%);
}

.compare-section .section-title {
  margin-bottom: 0.5rem;
}

.compare-tagline {
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-text);
  margin: 0 0 0.75rem;
  max-width: 52ch;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.compare-section .section-desc {
  margin-bottom: 1.5rem;
}

.compare-tagline strong {
  color: var(--ink-blue-bright);
  font-weight: 700;
}

.compare-table-wrap {
  margin-top: 1.75rem;
  border-radius: var(--ink-radius-lg);
  border: 1px solid var(--ink-stroke);
  background: rgba(10, 14, 26, 0.85);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-caption {
  caption-side: bottom;
  padding: 0.75rem 1rem 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
}

.compare-th-feature {
  text-align: left;
  padding: 1rem 1rem 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--ink-stroke);
  width: 28%;
  vertical-align: middle;
}

.compare-th-app {
  padding: 0.85rem 0.65rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--ink-stroke);
  vertical-align: middle;
  min-width: 108px;
}

.compare-th-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.compare-app-logo {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  border-radius: 0.55rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.compare-app-logo--freenote {
  image-rendering: -webkit-optimize-contrast;
}

.compare-th-name {
  display: block;
  padding: 0.45rem 0.35rem;
  border-radius: var(--ink-radius-sm);
}

.compare-th-inknode {
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.22) 0%, rgba(18, 26, 44, 0.4) 100%);
  color: #fef3c7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.compare-th-inknode .compare-th-name {
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.compare-th-goodnotes {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.compare-th-goodnotes .compare-th-name {
  background: rgba(255, 255, 255, 0.08);
}

.compare-th-notability {
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
}

.compare-th-notability .compare-th-name {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.compare-th-freenote {
  background: rgba(236, 72, 153, 0.12);
  color: #fce7f3;
}

.compare-th-freenote .compare-th-name {
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.compare-row-label {
  text-align: left;
  padding: 1rem 1rem 1rem 1.25rem;
  font-weight: 500;
  color: var(--ink-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.45;
  max-width: 22rem;
}

.compare-cell {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

tbody tr:nth-child(even) .compare-row-label,
tbody tr:nth-child(even) .compare-cell {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:last-child .compare-row-label,
tbody tr:last-child .compare-cell {
  border-bottom: none;
}

.compare-yes {
  background: rgba(34, 197, 94, 0.06);
}

.compare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.compare-icon-yes {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.18);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35);
}

.compare-icon-no {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

@media (min-width: 900px) {
  .compare-table {
    font-size: 0.92rem;
  }
  .compare-th-app {
    font-size: 0.88rem;
    padding: 1rem 0.85rem;
  }
  .compare-app-logo {
    width: 2.5rem;
    height: 2.5rem;
  }
  .compare-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--ink-stroke);
  background: #050810;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.footer-grid h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li {
  margin-bottom: 0.5rem;
}
.footer-grid a {
  color: var(--ink-text);
  font-size: 0.92rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-stroke);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* —— Legal (privacy / terms) —— */
.legal-page-body .legal-main {
  padding: 2.5rem 0 4rem;
  min-height: 60vh;
}

.legal-wrap {
  max-width: 720px;
}

.legal-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-blue-bright);
  margin: 0 0 0.5rem;
}

.legal-page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.legal-lead {
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin: 0 0 2rem;
  line-height: 1.5;
}

.legal-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ink-stroke);
  max-width: 420px;
}

.legal-tab {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-muted);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.legal-tab:hover {
  color: var(--ink-text);
}

.legal-tab-active {
  background: rgba(47, 107, 224, 0.35);
  color: var(--ink-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.legal-status {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.legal-prose {
  padding: 1.75rem 1.5rem;
  border-radius: var(--ink-radius-lg);
  background: rgba(18, 26, 44, 0.55);
  border: 1px solid var(--ink-stroke);
  font-size: 0.98rem;
  line-height: 1.65;
}

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

.legal-prose h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.02em;
}

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

.legal-prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.02em;
}

.legal-prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-prose h3 {
  font-size: 1.02rem;
  font-weight: 650;
  margin: 1.25rem 0 0.5rem;
  color: var(--ink-text);
}

.legal-prose p {
  margin: 0.65rem 0;
  color: var(--ink-muted);
}

.legal-prose strong {
  color: var(--ink-text);
  font-weight: 600;
}

.legal-prose hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.legal-prose ul,
.legal-prose ol {
  margin: 0.65rem 0;
  padding-left: 1.35rem;
  color: var(--ink-muted);
}

.legal-prose li {
  margin: 0.35rem 0;
}

.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.legal-prose th,
.legal-prose td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-prose th {
  background: rgba(47, 107, 224, 0.18);
  color: var(--ink-text);
  font-weight: 600;
}

.legal-prose tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.legal-prose a {
  color: var(--ink-blue-bright);
  word-break: break-word;
}

.legal-error {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.legal-error code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}
