/* NaviNotes public site. Plain CSS, no build step, no external fonts or scripts. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef0f7;
  --text: #14161c;
  --muted: #4b5262;
  --line: #dfe2ec;
  --accent: #4338ca;
  --accent-soft: #e9e7fd;
  --accent-text-on: #ffffff;
  --ink: #1d2330;
  --frame: #1d2330;
  --hl-yellow: #fde68a;
  --hl-green: #bbf7d0;
  --hl-pink: #fbcfe8;
  --node-a: #4338ca;
  --node-b: #0f766e;
  --node-c: #b45309;
  --node-d: #be185d;
  --shadow: 0 1px 2px rgba(20, 22, 28, .06), 0 12px 32px rgba(20, 22, 28, .10);
  --radius: 16px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Quicksand", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --logo-filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0f14;
    --bg-soft: #13161d;
    --surface: #1a1e27;
    --surface-2: #232834;
    --text: #eceef4;
    --muted: #aab0c0;
    --line: #2a303d;
    --accent: #a5b4fc;
    --accent-soft: #272b52;
    --accent-text-on: #0d0f14;
    --ink: #e4e8f5;
    --frame: #3a4152;
    --hl-yellow: #6b5a14;
    --hl-green: #1f5a3a;
    --hl-pink: #6b2650;
    --node-a: #a5b4fc;
    --node-b: #5eead4;
    --node-c: #fbbf24;
    --node-d: #f9a8d4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
    --logo-filter: invert(1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 750; }
h1 { font-size: clamp(2.2rem, 6vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-text-on); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand img { width: 26px; height: auto; filter: var(--logo-filter); }
.site-header nav ul { display: flex; flex-wrap: wrap; gap: 2px 6px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .98rem; }
.site-header nav a:hover { color: var(--text); background: var(--surface-2); }
.site-header nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--accent-text-on); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: .95rem; color: var(--text); }
.pill small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.pill-soon { opacity: 1; border-style: dashed; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.hero .eyebrow, .eyebrow { display: inline-block; margin-bottom: 18px; }
.hero .row { margin-top: 26px; }
.hero-art { width: 100%; filter: drop-shadow(0 24px 40px rgba(20, 22, 28, .18)); }
.fine { font-size: .92rem; color: var(--muted); margin-top: 18px; }
.mt { margin-top: 28px; }
.inherit { color: inherit; }
.foot-note { margin-top: 12px; max-width: 26em; }
.cta .band .fine { color: inherit; opacity: .9; }

/* Sections */
section { padding-block: clamp(44px, 7vw, 84px); }
.soft { background: var(--bg-soft); }
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Feature rows */
.feature { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-block: 28px; }
.feature:nth-child(even) .feature-art { order: -1; }
.feature-art { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.soft .feature-art { background: var(--surface); }
.feature ul { padding-left: 1.2em; color: var(--muted); }
.feature li { margin-bottom: .35em; }
.feature h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Illustration classes (SVG, theme-aware) */
.il-paper { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.il-paper2 { fill: var(--surface-2); }
.il-line { stroke: var(--line); stroke-width: 2; fill: none; }
.il-ink { stroke: var(--ink); fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.il-inkb { stroke: var(--accent); fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.il-hly { fill: var(--hl-yellow); }
.il-hlg { fill: var(--hl-green); }
.il-hlp { fill: var(--hl-pink); }
.il-bar { fill: var(--muted); opacity: .35; }
.il-bar-a { fill: var(--accent); }
.il-text { fill: var(--text); font-family: var(--font); font-weight: 700; }
.il-sub { fill: var(--muted); font-family: var(--font); font-weight: 600; }
.il-accent { fill: var(--accent); }
.il-accent-soft { fill: var(--accent-soft); }
.il-frame { fill: var(--frame); }
.il-na { fill: var(--node-a); } .il-nb { fill: var(--node-b); } .il-nc { fill: var(--node-c); } .il-nd { fill: var(--node-d); }
.il-edge { stroke: var(--muted); stroke-width: 2; opacity: .55; fill: none; }
.il-on-accent { fill: var(--accent-text-on); font-family: var(--font); font-weight: 700; }

/* Pricing */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 880px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 10px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; background: var(--bg-soft); }
caption { text-align: left; padding: 0 0 10px; font-weight: 700; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
details[open] summary { color: var(--accent); }
details p { color: var(--muted); }

/* Legal / prose */
.prose { padding-block: clamp(36px, 6vw, 72px); }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.prose .meta { color: var(--muted); font-weight: 600; }
.prose table { min-width: 0; font-size: .97rem; }
.callout { background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }

/* CTA band */
.cta { text-align: center; }
.cta .band { background: var(--accent); color: var(--accent-text-on); border-radius: 28px; padding: clamp(32px, 6vw, 64px) 24px; }
.cta .band h2 { margin-inline: auto; max-width: 20em; }
.cta .band p { max-width: 34em; margin-inline: auto; opacity: .92; }
.cta .band .pill { background: transparent; color: var(--accent-text-on); border-color: color-mix(in srgb, var(--accent-text-on) 55%, transparent); }
.cta .band .pill small { color: inherit; opacity: .8; }
.cta .row { justify-content: center; margin-top: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: 44px 36px; font-size: .97rem; }
.foot { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(2, 1fr); }
.foot h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.err { text-align: center; padding-block: clamp(60px, 12vw, 140px); }
.err .row.center { justify-content: center; margin-top: 24px; }
.err .big { margin: 0 0 12px; font-size: clamp(5rem, 22vw, 10rem); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.04em; }

@media (max-width: 860px) {
  .hero-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-art { order: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .site-header nav a { padding: 7px 10px; font-size: .93rem; }
  .btn { width: 100%; justify-content: center; }
  .plan { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
