/* My Notes — landing site (product-UI direction) */

/* Self-hosted type (no third-party font calls — privacy-first) */
@font-face {
  font-family: "InterLocal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "InterLocal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "InterLocal";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "InterLocal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "JBMono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jbmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JBMono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jbmono-500.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --ink: #14151a;
  --muted: #585c6b;
  --faint: #8b8f9e;
  --line: #e7e8ef;
  --brand: #4f5bd5;
  --brand-strong: #4338ca;
  --brand-soft: #eef0ff;
  --emerald: #0f9d77;
  --emerald-soft: #e7f7f1;
  --dark: #0e0f15;
  --dark-soft: #1a1c26;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --sans: "InterLocal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JBMono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* Desktop/mobile label swaps (the extension only installs on desktop Chrome) */
.show-mobile { display: none; }
.cta-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--faint);
}
.closing .cta-note { margin-top: 16px; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(38px, 5.4vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.dot-emerald {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(40, 40, 90, 0.18), 0 8px 22px -8px rgba(79, 91, 213, 0.6);
}
.btn-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(40, 40, 90, 0.2), 0 12px 28px -8px rgba(79, 91, 213, 0.7);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: #cdd0dd; background: #fbfbfe; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { border-radius: 7px; }
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 26px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 460px at 78% -8%, var(--brand-soft) 0%, rgba(238, 240, 255, 0) 62%),
    linear-gradient(#ffffff, #fbfbfe);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.lead {
  margin: 0 0 30px;
  font-size: 19px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 32ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.trust li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background: var(--emerald);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.55 17.6 4 12.05 5.4 10.6l4.15 4.15L18.6 5.7 20 7.1z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.55 17.6 4 12.05 5.4 10.6l4.15 4.15L18.6 5.7 20 7.1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Hero device ---------- */
.hero-device { position: relative; }
.glow {
  position: absolute;
  inset: -14% -10% -22% 4%;
  background: radial-gradient(closest-side, rgba(79, 91, 213, 0.28), rgba(79, 91, 213, 0) 72%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}
.browser {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3e4ee;
  box-shadow: 0 1px 1px rgba(20, 21, 40, 0.04), 0 30px 60px -22px rgba(36, 40, 90, 0.4);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #f4f5f9;
  border-bottom: 1px solid #e7e8ef;
}
.dots { display: inline-flex; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.browser-url {
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
  color: #8a8e9d;
  background: #fff;
  border: 1px solid #e7e8ef;
  border-radius: 7px;
  padding: 5px 12px;
  text-align: center;
}
.panel-tab {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 4px 9px;
}
.browser-body {
  display: grid;
  grid-template-columns: 1fr 256px;
  height: 432px;
  background: #fff;
}
.host {
  padding: 26px 26px 0;
  background:
    linear-gradient(#fcfcfe, #fcfcfe);
  border-right: 1px solid #eef0f4;
}
.skel {
  height: 11px;
  border-radius: 6px;
  background: #eceef4;
  margin-bottom: 15px;
}
.skel.w-40 { width: 40%; height: 16px; background: #e2e4ee; }
.skel.w-45 { width: 45%; }
.skel.w-50 { width: 50%; }
.skel.w-55 { width: 55%; }
.skel.w-60 { width: 60%; }
.skel.w-65 { width: 65%; }
.imgbox {
  height: 92px;
  border-radius: 10px;
  background: #eef0f4;
  margin: 6px 0 20px;
}
.panel {
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 8px 0 18px -16px rgba(20, 21, 40, 0.4);
}
.panel-shots { position: relative; height: 100%; }
.panel-shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  animation: cycle3 15s infinite;
}
.panel-shots img:nth-child(1) { animation-delay: 0s; }
.panel-shots img:nth-child(2) { animation-delay: 5s; }
.panel-shots img:nth-child(3) { animation-delay: 10s; }
@keyframes cycle3 {
  0%      { opacity: 0; }
  3%, 30% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

/* ---------- Features ---------- */
.features {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}
.head { max-width: 30ch; margin-bottom: 44px; }
.head .eyebrow { margin-bottom: 16px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #dcdef0;
  box-shadow: 0 18px 36px -22px rgba(36, 40, 90, 0.32);
}
.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  margin-bottom: 18px;
}
.ic svg { width: 22px; height: 22px; }
.ic-emerald { background: var(--emerald-soft); color: var(--emerald); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.card-accent { border-color: #d7dafb; box-shadow: 0 0 0 1px #eef0ff inset; }

/* ---------- Showcase ---------- */
.showcase { padding: 92px 0; }
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.showcase-copy .eyebrow { margin-bottom: 16px; }
.showcase-copy h2 { margin-bottom: 18px; }
.showcase-copy p { margin: 0 0 24px; color: var(--muted); }
.showcase-copy code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
.showcase-copy .btn-ghost { font-size: 15px; }
.showcase-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 60px -28px rgba(36, 40, 90, 0.42);
  max-height: 520px;
}
.showcase-shot img { object-fit: cover; object-position: top center; height: 520px; width: 100%; }

/* ---------- Privacy band ---------- */
.privacy { padding: 0 0 92px; }
.band {
  background: var(--dark);
  color: #e9eaf2;
  border-radius: var(--radius-lg);
  padding: 56px 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 40px 80px -40px rgba(14, 15, 21, 0.7);
}
.band-copy h2 { margin: 14px 0 16px; color: #fff; }
.band-copy p { margin: 0; color: #b6b9c8; }
.band-copy em { color: #fff; font-style: italic; }
.eyebrow-on-dark { color: #aab0ff; }
.code {
  margin: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: #c9ccdb;
  background: var(--dark-soft);
  border: 1px solid #2a2d3a;
  border-radius: 12px;
  padding: 22px 24px;
  overflow-x: auto;
}
.code .c { color: #6f7488; }
.code .k { color: #aab0ff; }
.code .s { color: #7ee0b8; }
.code .fn { color: #f2c97d; }

/* ---------- Closing ---------- */
.closing { text-align: center; padding: 8px 0 100px; }
.closing .mark { margin: 0 auto 22px; border-radius: 12px; }
.closing h2 { margin-bottom: 12px; }
.closing p { margin: 0 auto 28px; color: var(--muted); max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 30px 0;
}
.foot-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-tag { font-size: 13.5px; color: var(--faint); }
.foot-links { margin-left: auto; display: flex; gap: 22px; }
.foot-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.foot-links a:hover { color: var(--ink); }

/* ---------- Legal pages (privacy.html / terms.html) ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
}
.site-header .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
}
.site-header .nav { position: static; background: none; border: 0; margin-left: auto; display: flex; gap: 24px; }
.site-header .nav a { font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
.site-header .nav a:hover { color: var(--ink); }
.prose-page { padding: 56px 0 80px; }
.prose-page .wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.prose .back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-strong);
  text-decoration: none;
}
.prose h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.prose h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose .updated { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
.prose p, .prose li { color: #34363f; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--brand-strong); }
.site-footer .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .wrap .foot-links { margin-left: auto; }

/* ---------- Onboarding (welcome.html) ---------- */
.onb { padding: 56px 0 88px; }
.onb-mark { border-radius: 11px; margin-bottom: 26px; }
.onb .eyebrow { margin-bottom: 16px; }
.onb h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 16px; }
.onb-lead { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 0 0 44px; }
.steps { list-style: none; margin: 0 0 44px; padding: 0; max-width: 640px; }
.step { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-num {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700; font-size: 17px;
}
.step h3 { margin: 6px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.step code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px;
}
.onb-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 40px; max-width: 640px; }
.onb-shots img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(36, 40, 90, 0.4);
  height: 300px; object-fit: cover; object-position: top center; width: 100%;
}

/* ---------- Uninstall (uninstall.html) ---------- */
.leave {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background:
    radial-gradient(900px 460px at 50% -10%, var(--brand-soft) 0%, rgba(238, 240, 255, 0) 62%),
    var(--bg);
}
.leave-card { max-width: 560px; text-align: center; }
.leave-mark { margin: 0 auto 22px; border-radius: 12px; }
.leave-card h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.leave-card > p { color: var(--muted); font-size: 17px; margin: 0 auto 30px; }
.leave-reasons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 32px; }
.leave-foot { font-size: 14.5px; color: var(--faint); }
.leave-foot a { color: var(--brand-strong); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 60px 24px 72px; }
  .lead { max-width: 46ch; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; gap: 36px; }
  .showcase-shot { order: 2; max-height: 460px; }
  .showcase-shot img { height: 460px; }
  .band { grid-template-columns: 1fr; gap: 30px; padding: 40px 34px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hide-mobile { display: none; }
  .show-mobile { display: revert; }
  .hero-inner { padding: 44px 20px 56px; }
  .lead { font-size: 17px; }
  .browser-body { grid-template-columns: 1fr; height: 380px; }
  .host { display: none; }
  .cards { grid-template-columns: 1fr; }
  .features, .showcase { padding: 60px 0; }
  .band { padding: 32px 22px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-links { margin-left: 0; }
  .onb-shots { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .panel-shots img { animation: none; }
  .panel-shots img:nth-child(1) { opacity: 1; }
  .panel-shots img:nth-child(2),
  .panel-shots img:nth-child(3) { opacity: 0; }
  .btn { transition: none; }
}
