/* ============================================================
   Noctua — Friendly landing page
   A bright, playful pastel layer built ON TOP of the brand:
   keeps Verdana headlines / Poppins body / Plex Mono data,
   the owl, and Pipeline Green — adds soft sky / mint / sun / coral.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Type ---- */
  --font-display: Verdana, sans-serif;
  --font-body: 'Poppins', Verdana, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* ---- Brand ink + paper (light, friendly) ---- */
  --ink: #1F1B14;
  --ink-soft: #544E40;
  --ink-faint: #8A8474;
  --ink-300: #C9C0AD;
  --ink-500: #A49B88;
  --paper: #FBF8F1;
  --paper-deep: #F4EFE3;
  --white: #FFFFFF;

  /* ---- Pipeline green (brand accent) ---- */
  --green: #1A6B4D;
  --green-bright: #2E9E70;
  --green-glow: #6BF0B6;
  --green-soft: #DCF2E7;
  --green-softer: #ECF8F1;

  /* ---- Friendly pastels ---- */
  --sky: #3FA0D4;
  --sky-soft: #DBEEF8;
  --sky-softer: #ECF5FB;
  --sun: #EBB02A;
  --sun-soft: #FBEFC6;
  --sun-softer: #FCF6E2;
  --coral: #E07A4E;
  --coral-soft: #FBE3D6;
  --coral-softer: #FCF0E8;
  --grape: #8E7BD6;
  --grape-soft: #E8E2F8;

  /* ---- Accent role ---- */
  --accent: var(--green);
  --accent-bright: var(--green-bright);
  --accent-soft: var(--green-soft);
  --hero-tint-a: var(--sky-softer);
  --hero-tint-b: var(--green-softer);

  /* ---- Shape ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* ---- Soft, friendly shadows (warm-tinted) ---- */
  --sh-sm: 0 2px 8px rgba(31,27,20,0.06);
  --sh-md: 0 12px 30px rgba(31,27,20,0.09), 0 3px 8px rgba(31,27,20,0.05);
  --sh-lg: 0 30px 70px rgba(31,27,20,0.14), 0 8px 20px rgba(31,27,20,0.07);
  --sh-pop: 0 18px 40px rgba(63,160,212,0.20);

  /* ---- Rhythm (driven by data-density) ---- */
  --section-y: 96px;
  --stack: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Density variants ---- */
:root[data-density="compact"] { --section-y: 64px; --stack: 16px; }
:root[data-density="airy"]    { --section-y: 132px; --stack: 30px; }

/* ---- Palette variants ---- */
:root[data-palette="brand"] {
  --accent: var(--green); --accent-bright: var(--green-bright); --accent-soft: var(--green-soft);
  --hero-tint-a: var(--green-softer); --hero-tint-b: var(--paper-deep);
}
:root[data-palette="sky"] {
  --accent: var(--sky); --accent-bright: #5BB6E4; --accent-soft: var(--sky-soft);
  --hero-tint-a: var(--sky-softer); --hero-tint-b: var(--sun-softer);
}

/* ---- Animation intensity ---- */
:root[data-anim="off"] *,
:root[data-anim="off"] *::before,
:root[data-anim="off"] *::after { animation: none !important; }

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.mono { font-family: var(--font-mono); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 16px; border: none; border-radius: var(--r-pill);
  padding: 15px 26px; transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: var(--sh-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-lg { font-size: 18px; padding: 18px 32px; }

/* ============================================================
   Header
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .glyph {
  width: 40px; height: 40px; border-radius: 12px; background: var(--white);
  display: grid; place-items: center; box-shadow: var(--sh-sm);
}
.brand .glyph svg { width: 26px; height: 26px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.head-nav { display: flex; align-items: center; gap: 22px; }
.head-nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.head-nav .btn-primary { color: #fff; white-space: nowrap; }
.head-nav a:hover { color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 var(--section-y); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 12% -10%, var(--hero-tint-a) 0%, transparent 55%),
    radial-gradient(110% 80% at 92% 0%, var(--hero-tint-b) 0%, transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.4fr 0.9fr; gap: 40px; } }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 74px); margin: 18px 0 0; }
.hero h1 .pop { color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 .pop::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.32em;
  background: var(--accent-soft); z-index: -1; border-radius: var(--r-pill);
}
.hero-sub { font-size: clamp(17px, 2.1vw, 21px); color: var(--ink-soft); margin-top: 22px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-reassure { display: flex; align-items: center; gap: 9px; margin-top: 20px; font-size: 14px; color: var(--ink-faint); font-weight: 500; }
.hero-reassure svg { width: 17px; height: 17px; color: var(--accent); }

/* ============================================================
   The interactive demo
   ============================================================ */
.demo { position: relative; }
.demo-stage {
  position: relative;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: clamp(20px, 3vw, 38px);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  min-height: 440px;
  overflow: hidden;
}
.demo-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
@media (max-width: 860px) { .demo-stage { grid-template-columns: 1fr; min-height: 0; } }

.demo-side { position: relative; z-index: 1; display: flex; flex-direction: column; }
.demo-side-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.demo-side-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.demo-side.out .demo-side-label .dot { background: var(--accent-bright); }

/* --- Spreadsheet card --- */
.sheet-zone { flex: 1; display: grid; place-items: center; position: relative; }
.sheet {
  width: 100%; max-width: 320px; background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--sh-md); border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  overflow: hidden; transform: rotate(-2.4deg); cursor: grab;
  transition: transform .25s var(--bounce), box-shadow .2s var(--ease), opacity .3s;
  touch-action: none; user-select: none;
}
.sheet:hover { transform: rotate(-1deg) translateY(-4px) scale(1.015); box-shadow: var(--sh-lg); }
.sheet.dragging { cursor: grabbing; transform: rotate(0deg) scale(1.03); box-shadow: var(--sh-lg); z-index: 60; }
.sheet.gone { opacity: 0; transform: scale(.4) rotate(8deg); pointer-events: none; }
.sheet-top { background: #1D7A48; color: #fff; padding: 9px 13px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; font-family: var(--font-mono); }
.sheet-top svg { width: 15px; height: 15px; }
.sheet-rows { padding: 4px 0; }
.srow { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 1px; }
.scell { padding: 7px 11px; font-size: 11.5px; font-family: var(--font-mono); color: var(--ink-soft); border-bottom: 1px solid #f0ece2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow:nth-child(odd) .scell { background: #faf8f3; }
.scell.head { background: #eef4f0 !important; color: var(--green); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.scell.miss { color: var(--coral); }
.drag-hint {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink);
  background: var(--sun-soft); padding: 7px 14px; border-radius: var(--r-pill);
  box-shadow: var(--sh-sm); display: flex; align-items: center; gap: 7px; white-space: nowrap;
  animation: hintBob 1.8s var(--ease) infinite;
}
.drag-hint svg { width: 15px; height: 15px; }
@keyframes hintBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
.sheet-zone.hide-hint .drag-hint { opacity: 0; pointer-events: none; transition: opacity .25s; }

/* --- Drop / dashboard side --- */
.drop {
  flex: 1; position: relative; border-radius: var(--r-lg);
  border: 2.5px dashed color-mix(in srgb, var(--accent) 38%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 50%, var(--white));
  display: grid; place-items: center; padding: 22px; text-align: center;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
  min-height: 320px;
}
.drop.over { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.012); }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.drop-empty .owl-mini { width: 76px; height: 76px; }
.drop-empty .t { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); }
.drop-empty .s { font-size: 14px; color: var(--ink-soft); max-width: 230px; }
.drop.has-app { border-style: solid; border-color: transparent; background: transparent; padding: 0; place-items: stretch; }
.drop.building { border-style: solid; border-color: var(--accent); }

/* building shimmer */
.building-state { display: none; flex-direction: column; align-items: center; gap: 16px; }
.drop.building .drop-empty { display: none; }
.drop.building .building-state { display: flex; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.building-state .t { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--accent); font-weight: 600; }

/* --- The generated app --- */
.app-window {
  width: 100%; height: 100%; background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); overflow: hidden; display: none; flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.drop.has-app .app-window { display: flex; animation: appPop .5s var(--bounce) both; }
@keyframes appPop { 0% { opacity: 0; transform: scale(.9); } 100% { opacity: 1; transform: scale(1); } }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--paper-deep); border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.app-bar .lights { display: flex; gap: 6px; }
.app-bar .lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.app-title { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
.app-title b { color: var(--accent); }
.app-body { display: grid; grid-template-columns: 54px 1fr; flex: 1; min-height: 0; }
.app-rail { background: var(--paper); border-right: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; }
.app-rail .ri { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-faint); background: transparent; transition: .2s; }
.app-rail .ri.on { background: var(--accent); color: #fff; box-shadow: var(--sh-sm); }
.app-rail .ri svg { width: 18px; height: 18px; }
.app-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-card { background: var(--paper); border-radius: var(--r-sm); padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.stat-card .sv { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); letter-spacing: -0.03em; color: var(--ink); }
.stat-card .sl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }
.stat-card.c1 { background: var(--green-softer); } .stat-card.c1 .sv { color: var(--green); }
.stat-card.c2 { background: var(--sky-softer); } .stat-card.c2 .sv { color: var(--sky); }
.stat-card.c3 { background: var(--sun-softer); } .stat-card.c3 .sv { color: var(--coral); }
.app-feed { background: var(--paper); border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); padding: 10px 12px; flex: 1; min-height: 92px; display: flex; flex-direction: column; gap: 8px; }
.app-feed .fhead { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.feed-line { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink-soft); opacity: 0; transform: translateY(6px); }
.feed-line.show { opacity: 1; transform: none; transition: .35s var(--ease); }
.feed-line .ck { width: 17px; height: 17px; flex: none; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-top: 1px; }
.feed-line .ck svg { width: 11px; height: 11px; }
.feed-line b { color: var(--ink); font-weight: 600; }

.demo-redo { position: absolute; bottom: 14px; right: 16px; z-index: 5; display: none; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--white); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); padding: 8px 14px; border-radius: var(--r-pill); box-shadow: var(--sh-sm); transition: .18s var(--ease); }
.demo-redo svg { width: 14px; height: 14px; }
.demo-redo:hover { transform: translateY(-1px); box-shadow: var(--sh-md); color: var(--accent); }
.demo-stage.done .demo-redo { display: inline-flex; }

.demo-caption { text-align: center; margin-top: 22px; font-size: 15px; color: var(--ink-faint); display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; }
.demo-caption b { color: var(--ink); font-weight: 600; }

/* the flying ghost during auto-play */
.ghost-sheet { position: fixed; z-index: 80; pointer-events: none; transition: all .9s var(--ease); }

/* ============================================================
   Section heading
   ============================================================ */
.sec { padding: var(--section-y) 0; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(28px, 4.4vw, 46px); margin-top: 12px; }
.sec-head p { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); margin-top: 16px; }

/* ============================================================
   Helpers (the six agents, friendly)
   ============================================================ */
.helpers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .helpers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .helpers { grid-template-columns: 1fr; } }
.helper {
  background: var(--white); border-radius: var(--r-lg); padding: 26px 24px;
  box-shadow: var(--sh-sm); border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.helper:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.helper .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; }
.helper .ico svg { width: 27px; height: 27px; }
.helper h3 { font-size: 21px; }
.helper p { font-size: 15px; color: var(--ink-soft); margin-top: 9px; }
.helper .tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; padding: 5px 11px; border-radius: var(--r-pill); }
.helper .tag svg { width: 13px; height: 13px; }
/* per-helper pastel */
.h-mint  .ico { background: var(--green-soft); color: var(--green); } .h-mint .tag { background: var(--green-softer); color: var(--green); }
.h-sky   .ico { background: var(--sky-soft); color: var(--sky); }     .h-sky .tag { background: var(--sky-softer); color: var(--sky); }
.h-sun   .ico { background: var(--sun-soft); color: #B07A12; }        .h-sun .tag { background: var(--sun-softer); color: #B07A12; }
.h-coral .ico { background: var(--coral-soft); color: var(--coral); } .h-coral .tag { background: var(--coral-softer); color: var(--coral); }
.h-grape .ico { background: var(--grape-soft); color: var(--grape); } .h-grape .tag { background: var(--grape-soft); color: #6A5AB5; }
.h-mint2 .ico { background: #DFF0EC; color: #2A8C77; }                .h-mint2 .tag { background: #ECF7F4; color: #2A8C77; }

/* ============================================================
   Proof strip
   ============================================================ */
.proof { background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: clamp(40px,5vw,64px) clamp(24px,4vw,56px); }
.proof-head { text-align: center; margin-bottom: 40px; }
.proof-head .eyebrow { color: var(--accent-bright); }
.proof-head h2 { color: var(--paper); font-size: clamp(26px,3.6vw,40px); margin-top: 12px; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 680px) { .proof-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; } }
.pstat { border-top: 2px solid color-mix(in srgb, var(--paper) 22%, transparent); padding-top: 20px; }
.pstat .pv { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; font-size: clamp(44px, 6vw, 68px); line-height: 1; color: var(--paper); }
.pstat .pv .u { color: var(--accent-bright); }
.pstat .pl { font-size: 15px; color: var(--ink-300, #C9C0AD); margin-top: 12px; max-width: 240px; }
@media (max-width: 680px) { .pstat .pl { margin-inline: auto; } }
.proof-quote { margin-top: 44px; text-align: center; }
.proof-quote .q { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(19px, 2.6vw, 27px); color: var(--paper); max-width: 720px; margin: 0 auto; line-height: 1.3; }
.proof-quote .who { font-family: var(--font-mono); font-size: 13px; color: var(--accent-bright); margin-top: 18px; letter-spacing: .04em; }

/* ============================================================
   CTA
   ============================================================ */
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-md);
  padding: clamp(44px,6vw,76px) 28px;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 80% at 18% 110%, var(--green-softer) 0%, transparent 60%),
    radial-gradient(70% 80% at 85% -10%, var(--sky-softer) 0%, transparent 60%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(30px, 5vw, 52px); }
.cta-card p { font-size: clamp(16px, 2.2vw, 20px); color: var(--ink-soft); margin: 18px auto 0; max-width: 520px; }
.cta-card .hero-cta { justify-content: center; margin-top: 32px; }
.cta-note { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }

/* ============================================================
   Footer
   ============================================================ */
.site-foot { padding: 46px 0; text-align: center; }
.site-foot .brand { justify-content: center; margin-bottom: 14px; }
.site-foot p { font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* floating owl bob */
.owl-float { animation: owlBob 4s ease-in-out infinite; }
@keyframes owlBob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }

/* ============================================================
   Product tour — the 60-second video demo kept from the
   previous site, restyled to sit inside the friendly theme.
   ============================================================ */
.tour { padding: 0 0 var(--section-y); }
.tour-card {
  background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  padding: clamp(20px,3vw,40px); max-width: 980px; margin-inline: auto; text-align: center;
}
.tour-card h2 { font-size: clamp(24px,3.4vw,38px); margin-top: 10px; }
.tour-card p { color: var(--ink-soft); margin: 14px auto 0; max-width: 540px; font-size: clamp(15px,1.8vw,18px); }
.tour-frame {
  position: relative; margin-top: 26px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); box-shadow: var(--sh-md); aspect-ratio: 16 / 10;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tour-cap {
  margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: .04em; color: var(--ink-faint); text-transform: uppercase;
}

/* footer nav (real site links under the friendly mark) */
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 16px; }
.foot-nav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.foot-nav a:hover { color: var(--accent); }

/* ============================================================
   INTERIOR PAGES — friendly skin for the brand's legacy classes.
   Interior pages share the original component classes (.section,
   .card, .btn-*, .page-hero, .faq-item, .form-*, .price-card …).
   Here we restyle them all in the friendly pastel theme so the
   whole site matches the landing. Chrome is swapped to the
   friendly .site-head / .site-foot in markup.
   ============================================================ */

/* ---- layout ---- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: var(--section-y) 0; }
.section-sm { padding: calc(var(--section-y) * 0.55) 0; }
.deep-section { background: var(--paper-deep); }
.row { display: flex; align-items: center; gap: 14px; }
.row.between, .between { justify-content: space-between; }
.row.wrap, .wrap.row { flex-wrap: wrap; }
.mx-auto { margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.grid.cols-2, .grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* ---- type ---- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; font-size: clamp(34px, 5.6vw, 64px); }
.h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; font-size: clamp(27px, 4.2vw, 46px); }
.h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(22px, 3vw, 34px); }
.subhead { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 20px; line-height: 1.18; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); line-height: 1.55; }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.grad { color: var(--accent); }
.kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow.on-dark { color: var(--accent-bright); }

/* ---- page hero ---- */
.page-hero { position: relative; padding: clamp(54px, 7vw, 96px) 0 clamp(28px, 4vw, 50px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 12% -10%, var(--hero-tint-a) 0%, transparent 55%),
    radial-gradient(110% 80% at 92% 0%, var(--hero-tint-b) 0%, transparent 50%);
}
.page-hero .display, .page-hero .h1 { margin-top: 16px; }
.page-hero .lead { margin-top: 18px; max-width: 660px; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-inline: auto; }
.page-hero.center .hero-cta { justify-content: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 20px; display: inline-flex; align-items: center; gap: 9px; color: var(--ink-faint); font-size: 14px; font-weight: 500; }
.hero-note svg { width: 17px; height: 17px; color: var(--accent); }

/* ---- section head ---- */
.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head .h1, .section-head h2 { margin-top: 10px; }
.section-head .lead, .section-head p { margin-top: 14px; }

/* ---- cards ---- */
.card { background: var(--white); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--sh-sm); border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.card-interactive { display: block; transition: transform .22s var(--ease), box-shadow .22s var(--ease); cursor: pointer; }
.card-interactive:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.card-ink, .ink-section, .section.ink-section { background: var(--ink); color: var(--paper); border-color: transparent; }
.card-ink { border-radius: var(--r-xl); }
.on-ink, .on-ink .h1, .on-ink .display, .on-ink .subhead, .card-ink .h1, .ink-section .h1 { color: var(--paper); }
.on-ink .lead, .on-ink .body, .on-ink p, .card-ink .lead, .card-ink p, .ink-section .lead { color: var(--ink-300, #C9C0AD); }
.on-ink .eyebrow, .ink-section .eyebrow { color: var(--accent-bright); }

/* ---- icon chip ---- */
.icon-chip { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.icon-chip svg { width: 24px; height: 24px; }

/* ---- buttons (variants beyond the friendly base) ---- */
.btn-secondary { background: var(--white); color: var(--ink); box-shadow: var(--sh-sm); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-sm { font-size: 13px; padding: 9px 17px; }
.btn-on-ink { background: var(--accent); color: #fff; }
.btn-on-ink:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-gold { background: var(--sun); color: var(--ink); box-shadow: var(--sh-sm); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.on-ink .btn-secondary { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 42%, transparent); }
.on-ink .btn-secondary:hover { background: color-mix(in srgb, var(--paper) 12%, transparent); }

/* ---- list-check ---- */
.list-check { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.list-check li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.list-check li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); }
.list-check li::after { content: ""; position: absolute; left: 6.5px; top: 6px; width: 7px; height: 4px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* ---- steps ---- */
.step-num { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--accent); background: var(--accent-soft); width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }

/* ---- FAQ accordion ---- */
.faq-item { background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-sm); border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 22px; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-body { padding: 0 22px 18px; }
.faq-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }
.faq-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---- forms ---- */
.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--sh-md); border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full, .full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  background: var(--paper); color: var(--ink); width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; }
.form-status { font-size: 14px; color: var(--ink-soft); }

/* ---- pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--white); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--sh-sm); border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.price-card.featured { border-color: var(--accent); box-shadow: var(--sh-md); }
.price-card h3 { font-family: var(--font-display); font-size: 22px; }
.price-card .tagline { color: var(--ink-soft); font-size: 14px; }
.price-card .price { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; color: var(--ink); }
.price-card .price small { font-size: 15px; color: var(--ink-faint); font-weight: 500; }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--r-pill); white-space: nowrap; }
.price-foot { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); margin-top: auto; }

/* ---- blog ---- */
.post-card { display: block; background: var(--white); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-sm); border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.post-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }
.read-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 600; color: var(--accent); font-size: 15px; }
.read-more svg { width: 16px; height: 16px; }

/* ---- prose (legal + blog article body) ---- */
.prose-page, article.prose, .prose { max-width: 720px; margin-inline: auto; }
.prose-page h2, article h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); margin: 38px 0 12px; }
.prose-page h3, article h3 { font-family: var(--font-display); font-size: 20px; margin: 28px 0 10px; }
.prose-page p, article p, .prose-page li, article li { color: var(--ink-soft); line-height: 1.7; }
.prose-page p, article p { margin: 0 0 16px; }
.prose-page a, article a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---- stagger: friendly.js only animates .reveal, so keep stagger visible ---- */
.stagger { opacity: 1; }

/* ============================================================
   Visible page directory (friendly)
   ============================================================ */
.directory { position: relative; }
.dir-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.dir-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dir-grid { grid-template-columns: 1fr; } }
.dir-card { display: flex; flex-direction: column; gap: 7px; background: var(--white); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-sm); border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.dir-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.dir-card .dir-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.dir-card .dir-ico svg { width: 23px; height: 23px; }
.dir-card .dir-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 7px; }
.dir-card .dir-title svg { width: 16px; height: 16px; color: var(--ink-faint); transition: transform .2s var(--ease); }
.dir-card:hover .dir-title svg { transform: translateX(4px); color: var(--accent); }
.dir-card .dir-desc { font-size: 13.5px; color: var(--ink-soft); }
.dir-card.d-mint .dir-ico { background: var(--green-soft); color: var(--green); }
.dir-card.d-sky .dir-ico { background: var(--sky-soft); color: var(--sky); }
.dir-card.d-sun .dir-ico { background: var(--sun-soft); color: #B07A12; }
.dir-card.d-coral .dir-ico { background: var(--coral-soft); color: var(--coral); }
.dir-card.d-grape .dir-ico { background: var(--grape-soft); color: #6A5AB5; }

/* ============================================================
   Mobile nav toggle (friendly header)
   ============================================================ */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s var(--ease); }
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .head-nav {
    position: absolute; top: 72px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 8px 5vw 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
    box-shadow: var(--sh-md);
  }
  .head-nav.open { display: flex; }
  .head-nav .nav-link { display: block; padding: 13px 4px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
  .head-nav .btn-primary { margin-top: 12px; justify-content: center; }
}
.nav-link[aria-current="page"] { color: var(--accent); }

/* ============================================================
   Why-Noctua comparison + ROI calculator (competitive features)
   ============================================================ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
@media (max-width: 680px) { .compare { grid-template-columns: 1fr; } }
.compare-col { background: var(--white); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--sh-sm); border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.compare-col.us { background: var(--green-softer); border-color: color-mix(in srgb, var(--green) 22%, transparent); box-shadow: var(--sh-md); }
.compare-head { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.compare-head svg { width: 20px; height: 20px; flex: none; }
.compare-col.them .compare-head { color: var(--ink-faint); }
.compare-col.them .compare-head svg { color: var(--coral); }
.compare-col.us .compare-head { color: var(--green); }
.compare-col.us .compare-head svg { color: var(--green); }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.compare-col li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.compare-col li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; }
.compare-col.them li::before { background: var(--coral); opacity: .6; }
.compare-col.us li { color: var(--ink); }
.compare-col.us li::before { background: var(--green); }

.roi-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: clamp(26px, 4vw, 52px); }
@media (max-width: 820px) { .roi-card { grid-template-columns: 1fr; } }
.roi-copy h2 { font-size: clamp(26px, 3.6vw, 40px); margin-top: 10px; }
.roi-copy p { color: var(--ink-soft); margin-top: 14px; font-size: 16px; }
.roi-tool { display: flex; flex-direction: column; gap: 18px; }
.roi-field { display: flex; flex-direction: column; gap: 10px; }
.roi-label { font-size: 14px; font-weight: 600; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.roi-label b { font-family: var(--font-display); font-size: 20px; color: var(--accent); }
.roi-tool input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: var(--r-pill); background: var(--accent-soft); outline: none; }
.roi-tool input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 4px solid var(--white); box-shadow: var(--sh-sm); cursor: pointer; }
.roi-tool input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 4px solid var(--white); box-shadow: var(--sh-sm); cursor: pointer; }
.roi-money { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: var(--r-sm); padding: 0 14px; width: max-content; }
.roi-money span { color: var(--ink-faint); font-weight: 600; }
.roi-money input { font: inherit; font-weight: 600; border: 0; background: none; padding: 12px 0; width: 90px; color: var(--ink); }
.roi-money input:focus { outline: none; }
.roi-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roi-stat { background: var(--green-softer); border-radius: var(--r-md); padding: 16px 18px; text-align: center; }
.roi-stat:last-child { background: var(--sun-softer); }
.roi-v { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(26px, 4vw, 38px); color: var(--green); }
.roi-stat:last-child .roi-v { color: var(--coral); }
.roi-l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }
.roi-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); text-align: center; }

/* ---- "works with" trust strip ---- */
.trust-strip .trust-label { text-align: center; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: 18px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.trust-logos span { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink-soft); background: var(--white); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); box-shadow: var(--sh-sm); border-radius: var(--r-pill); padding: 8px 16px; }


