/*
 * roloNotes — the site.
 *
 * Shared by the landing page and the privacy policy so the two cannot drift apart.
 *
 * The design is deliberately quiet. An earlier version opened with a full-bleed
 * indigo-to-purple gradient, and a large area of saturated colour is tiring to look at and
 * reads as a template rather than as a product. Colour is now rationed: the app icon is the
 * only saturated thing above the fold, buttons are near-black, and the accent appears at
 * link size or smaller. What carries the page instead is space, a firm type scale and
 * hairline borders.
 */

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-sunk: #f4f5f8;
  --ink: #14161c;
  --ink-soft: #3d434f;
  --muted: #6b7280;
  --faint: #9aa1ae;
  --border: #e6e8ef;
  --border-strong: #d6d9e3;
  --accent: #4338ca;
  --accent-soft: rgba(67, 56, 202, 0.08);
  --shadow: 0 1px 2px rgba(16, 20, 32, 0.04), 0 12px 28px -18px rgba(16, 20, 32, 0.25);
  --shadow-lift: 0 2px 4px rgba(16, 20, 32, 0.05), 0 28px 54px -28px rgba(16, 20, 32, 0.35);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e13;
    --surface: #14171f;
    --surface-sunk: #1a1e27;
    --ink: #eef0f5;
    --ink-soft: #c2c7d2;
    --muted: #949bab;
    --faint: #6f7684;
    --border: #232833;
    --border-strong: #303645;
    --accent: #a5b4fc;
    --accent-soft: rgba(129, 140, 248, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px -18px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.45), 0 28px 54px -28px rgba(0, 0, 0, 0.8);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--ink-soft);
}

/* ---------- hero ---------- */

.hero {
  padding: 92px 0 60px;
  text-align: center;
  /*
   * A hint of depth rather than a slab of colour: two very low-opacity washes that read as
   * light falling on the page, not as a coloured banner.
   */
  background:
    radial-gradient(760px 340px at 50% -12%, rgba(99, 102, 241, 0.09), transparent 70%),
    var(--bg);
}

.hero .logo {
  width: 68px;
  height: 68px;
  display: block;
  margin: 0 auto 26px;
  border-radius: 17px;
  box-shadow: var(--shadow-lift);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.033em;
  font-weight: 680;
  margin-bottom: 16px;
}

.hero .tagline {
  max-width: 30em;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  /*
   * Deliberately not transitioning background. Switching the OS appearance while the page
   * is open changes the colour tokens, and Chrome leaves a transitioned background holding
   * its old value — a dark button on a dark page. The hover lift only needs these two.
   */
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Near-black rather than brand colour: it is the calmest way to make one thing dominant. */
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lift);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
}

/* ---------- sections ---------- */

section {
  padding: 52px 0;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.021em;
  font-weight: 660;
  margin-bottom: 16px;
}

p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink);
}

/* ---------- feature list ---------- */

ul.features {
  list-style: none;
  display: grid;
  gap: 12px;
}

ul.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

ul.features strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 640;
}

ul.features p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
}

/* ---------- screenshot ---------- */

.shot-frame {
  padding: 26px;
  border-radius: 20px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
}

.screenshot {
  display: block;
  width: 100%;
  /* The source is 404px wide; scaling past that only makes it soft. */
  max-width: 404px;
  margin: 0 auto;
  border-radius: 13px;
  box-shadow: var(--shadow-lift);
}

.caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--faint);
}

/* ---------- the two button states ---------- */

.button-preview {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.button-preview .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 620;
}

/* These two mirror the real button in the extension, so they keep the product's colour. */
.pill-solid {
  background: linear-gradient(150deg, #6366f1, #8b5cf6);
  color: #fff;
}

.pill-plain {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.button-preview .meaning {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- pull-out note ---------- */

.note {
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  /* One edge of colour, at the smallest dose that still registers. */
  border-left: 3px solid var(--accent);
}

.note h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* ---------- footer ---------- */

footer {
  margin-top: 40px;
  padding: 32px 0 56px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--faint);
}

footer p {
  color: inherit;
  margin-bottom: 6px;
}

footer a {
  color: var(--muted);
}

/* ---------- the privacy policy ---------- */

.doc-head {
  padding: 72px 0 8px;
  background:
    radial-gradient(700px 300px at 50% -16%, rgba(99, 102, 241, 0.07), transparent 70%),
    var(--bg);
}

.doc-head .back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: var(--faint);
}

.doc-head h1 {
  font-size: 2.3rem;
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 680;
  margin-bottom: 12px;
}

.doc-head .standfirst {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34em;
}

.doc {
  padding: 34px 0 20px;
  font-size: 1rem;
}

.doc h2 {
  font-size: 1.22rem;
  margin: 40px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.doc h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc p {
  margin-bottom: 15px;
}

.doc strong {
  color: var(--ink);
  font-weight: 620;
}

.doc ul.plain {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.doc ul.plain li {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.doc .updated {
  font-size: 0.9rem;
  color: var(--faint);
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 64px 0 44px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  .doc-head h1 {
    font-size: 1.85rem;
  }

  section {
    padding: 40px 0;
  }

  .shot-frame {
    padding: 16px;
  }
}
