/* ----------------------------------------------------------------------
   PDF Tools — shared styles for landing, privacy, terms, support pages.
   Tokens mirror Theme.swift so the site visual feels like an extension
   of the app: same accent (#6c5ce8), same accentSecondary (#3db5d9).
   ---------------------------------------------------------------------- */

:root {
  --accent:           #6c5ce8;
  --accent-secondary: #3db5d9;
  --plus-red:         #ff5f5a;

  --text:        #1f2240;
  --text-soft:   #555873;
  --text-muted:  #8e92aa;
  --surface:     #ffffff;
  --surface-2:   #f6f7fc;
  --border:      rgba(31, 34, 64, 0.08);
  --shadow:      0 12px 40px rgba(108, 92, 232, 0.10);

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --max-width: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text:       #ecedf6;
    --text-soft:  #b8baca;
    --text-muted: #8088a3;
    --surface:    #14152b;
    --surface-2:  #1c1e3a;
    --border:     rgba(255, 255, 255, 0.08);
    --shadow:     0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded",
               "SF Pro Display", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 0 0 0.5em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; color: var(--text-soft); }

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

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .nav { background: rgba(20, 21, 43, 0.78); }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links {
  display: flex; gap: 22px;
  font-size: 0.95rem;
}
.nav-links a { color: var(--text-soft); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px -100px auto auto;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side,
              rgba(108, 92, 232, 0.20),
              rgba(61, 181, 217, 0.08) 60%,
              transparent 80%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

.hero img.hero-icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow);
}
.hero p.tagline {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.2rem;
  color: var(--text-soft);
}

.cta-row {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(108, 92, 232, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(108, 92, 232, 0.45);
  text-decoration: none;
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); text-decoration: none; }

.privacy-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  margin-bottom: 24px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.privacy-pill .dot {
  width: 6px; height: 6px;
  background: #2cd16a;
  border-radius: 50%;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section h2 { text-align: center; margin-bottom: 18px; }
.section .lede {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--text-soft);
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
  color: #ffffff;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 0.95rem; }

.tone-blue   .icon { background: linear-gradient(135deg, #5d6ce8, #8c5ce8); }
.tone-pink   .icon { background: linear-gradient(135deg, #e85ca6, #e87a5d); }
.tone-teal   .icon { background: linear-gradient(135deg, #33c8a6, #5da6e8); }
.tone-orange .icon { background: linear-gradient(135deg, #f08c33, #f0c733); }
.tone-purple .icon { background: linear-gradient(135deg, #8c33c8, #c75ce8); }
.tone-red    .icon { background: linear-gradient(135deg, #e85c5c, #e8338c); }
.tone-indigo .icon { background: linear-gradient(135deg, #5d8ce8, #33c8e8); }
.tone-green  .icon { background: linear-gradient(135deg, #338ce8, #5dc8a6); }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: left;
}
.price-card.highlight {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-secondary)) border-box;
  box-shadow: var(--shadow);
}
.price-card .label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.price-card .amount {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 8px 0 4px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui;
}
.price-card .amount .currency { font-size: 1.6rem; vertical-align: super; }
.price-card .terms { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.price-card ul { padding-left: 20px; margin: 0 0 8px; }
.price-card ul li {
  color: var(--text-soft);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* ---------- Privacy section ---------- */
.privacy-bullets {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 880px;
  margin: 0 auto;
}
.privacy-bullets .card { text-align: left; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 80px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--text-soft); }

/* ---------- Long-form (legal pages) ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal h1 { margin-bottom: 8px; }
.legal .updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.legal h2 { margin-top: 36px; font-size: 1.3rem; }
.legal h3 { margin-top: 24px; font-size: 1.05rem; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { padding-left: 22px; }
.legal ul li { margin-bottom: 6px; }
.legal code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ---------- Misc ---------- */
.center { text-align: center; }
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
