/* NativeChrome website. No external fonts, scripts or trackers.
   NOTE: Strict policy - NO emojis anywhere. */

:root {
  color-scheme: dark;

  --bg: #0a0d15;
  --bg-raise: #0f131c;
  --surface: #141925;
  --surface-2: #1a2030;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f3f5f8;
  --text-2: #b4bccb;
  --text-3: #8f98a9;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --link: #8ec5ff;
  --focus: #8ec5ff;

  /* The six sticky note colors from the extension */
  --amber: #fef3c7;
  --mint: #d1fae5;
  --sky: #e0f2fe;
  --lavender: #ede9fe;
  --rose: #ffe4e6;
  --slate: #1e293b;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --gutter: 16px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; text-wrap: balance; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: none;
}

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 2; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-nav a:not(.btn) {
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
}
.header-nav a:not(.btn):hover { color: var(--text); }

@media (max-width: 520px) {
  .header-nav { gap: 14px; }
  .header-nav .nav-optional { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 40px 0 72px;
  margin-top: -72px;
  padding-top: 112px;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(0, 150, 240, 0.30), transparent 62%),
    radial-gradient(760px 520px at 100% -6%, rgba(245, 158, 11, 0.13), transparent 60%),
    linear-gradient(180deg, #0d1322 0%, var(--bg) 78%);
}

.hero-copy {
  text-align: center;
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.note-dots { display: inline-flex; gap: 4px; }
.note-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 6.4vw, 66px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--text-2);
  font-size: clamp(17px, 2.1vw, 20px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 14px;
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: #6ee7b7; flex: none; }

/* ---------- Browser window frame ---------- */

.window {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #11141b;
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: #1b1f28;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}
.window-bar > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3f4b;
}
.window-tab {
  margin-left: 14px;
  padding: 4px 14px;
  border-radius: 8px 8px 0 0;
  align-self: flex-end;
  background: #11141b;
  color: var(--text-3);
  font-size: 12px;
  line-height: 20px;
}

.hero-shot { margin-top: 56px; }

@media (max-width: 560px) {
  .window-bar { height: 28px; padding: 0 10px; gap: 5px; }
  .window-bar > span { width: 8px; height: 8px; }
  .window-tab { font-size: 11px; line-height: 16px; padding: 3px 10px; margin-left: 8px; }
  .hero-shot { margin-top: 40px; }
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section + .section { padding-top: 24px; }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(30px, 4.2vw, 42px); font-weight: 750; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 18px; }

/* ---------- Features ---------- */

.feature {
  display: grid;
  gap: 28px;
  align-items: center;
}
.feature + .feature { margin-top: 88px; }

@media (min-width: 960px) {
  .feature {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }
  .feature.flip .feature-copy { order: 2; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--c, var(--amber));
}

.feature h3 {
  margin-top: 12px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 750;
}
.feature-copy > p {
  margin-top: 14px;
  color: var(--text-2);
}

.checks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
  font-size: 16px;
}
.checks li + li { margin-top: 8px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid #6ee7b7;
  border-bottom: 2px solid #6ee7b7;
  transform: rotate(-45deg);
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-strong), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.walls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.walls img {
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--border-strong), 0 14px 32px rgba(0, 0, 0, 0.4);
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-strong);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.84em;
  line-height: 1.5;
  white-space: nowrap;
}

/* ---------- Cards (sync and privacy) ---------- */

.cards {
  display: grid;
  gap: 20px;
}
@media (min-width: 860px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raise) 100%);
  box-shadow: inset 0 0 0 1px var(--border);
}
@media (max-width: 560px) {
  .card { padding: 22px; }
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(142, 197, 255, 0.1);
  color: var(--link);
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
}
.card > p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 16px;
}
.card .checks { margin-top: 14px; }
.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Shortcuts ---------- */

.shortcuts {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border);
  background: var(--bg-raise);
}
.shortcuts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 16px 22px;
}
.shortcuts li + li { border-top: 1px solid var(--border); }
.shortcuts .keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-3); font-size: 14px; }
.shortcuts .what { color: var(--text-2); font-size: 16px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:first-child { border-top: 1px solid var(--border); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > p {
  padding: 0 2px 22px;
  color: var(--text-2);
}

/* ---------- Release notes ---------- */

.releases { max-width: 760px; margin: 0 auto; }

.release {
  display: grid;
  gap: 6px 28px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.release:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 720px) {
  .release { grid-template-columns: 150px 1fr; }
}
.release-meta { color: var(--text-3); font-size: 14px; }
.release-meta strong { display: block; color: var(--text); font-size: 18px; }
.release ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 16px; }
.release li + li { margin-top: 6px; }

/* ---------- Closing call to action ---------- */

.closing {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% 120%, rgba(0, 150, 240, 0.22), transparent 70%),
    var(--bg);
}
.closing img { width: 72px; height: 72px; margin: 0 auto; }
.closing h2 {
  margin-top: 22px;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
}
.closing p { margin-top: 12px; color: var(--text-2); }
.closing .btn { margin-top: 28px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.gk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}
.gk:hover { color: var(--text); }
.gk svg {
  width: 30px;
  height: 30px;
  /* Lifts the logo's darker faces so they read on the dark footer */
  --gkernel-top: #b9b5aa;
  --gkernel-front: #858177;
  --gkernel-left: #5b5851;
  --gkernel-primary: #6ec498;
  --gkernel-stroke: #2b2b2b;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }

.fine {
  flex-basis: 100%;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- Legal pages ---------- */

.doc {
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 96px;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.doc .updated { margin-top: 12px; color: var(--text-3); font-size: 15px; }

.summary {
  margin-top: 32px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: rgba(110, 231, 183, 0.06);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.22);
}
.summary h2 { font-size: 18px; letter-spacing: -0.01em; }
.summary .checks { margin-top: 12px; }
.summary .checks li { color: var(--text); }

.doc h2 {
  margin-top: 48px;
  font-size: 24px;
  font-weight: 700;
}
.doc .summary h2 { margin-top: 0; }
.doc p,
.doc > ul { margin-top: 14px; color: var(--text-2); }
.doc > ul { padding-left: 22px; }
.doc > ul li + li { margin-top: 8px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  overflow-wrap: anywhere;
}

.perms {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.perms div {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--border);
}
.perms dt { font-weight: 600; }
.perms dd { margin: 4px 0 0; color: var(--text-2); font-size: 16px; }

/* ---------- 404 ---------- */

.lost {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding-top: 40px;
  padding-bottom: 80px;
  text-align: center;
}
.lost h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; }
.lost p { color: var(--text-2); }
.lost .btn { margin-top: 12px; }

/* Sticky note color helpers (no inline styles: the CSP blocks them) */
.c-amber { --c: var(--amber); }
.c-mint { --c: var(--mint); }
.c-sky { --c: var(--sky); }
.c-lavender { --c: var(--lavender); }
.c-rose { --c: var(--rose); }
