/* QuickPeek — shared web styles
   Theme tokens mirror specs/NovaView/styles.css so marketing pages
   match the in-app design language. */

:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", Consolas, monospace;

  /* Light (default) */
  --bg-page: #ffffff;
  --bg-canvas: #f5f5f7;
  --bg-content-2: #fbfbfd;
  --bg-toolbar: rgba(246, 246, 247, 0.85);
  --bg-chip: rgba(0, 0, 0, 0.05);
  --bg-card: #ffffff;
  --bg-button: #ffffff;
  --bg-button-hover: #f5f5f7;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --divider: rgba(0, 0, 0, 0.06);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(0,0,0,0.06);
  --shadow-lift: 0 1px 0 rgba(0,0,0,0.04), 0 12px 36px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hero: 0 30px 80px -20px rgba(0, 122, 255, 0.25), 0 12px 36px rgba(0,0,0,0.08);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #8e8e93;
  --text-on-accent: #ffffff;
  --accent: #007aff;
  --accent-hover: #0066d6;
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);
  --selection: color-mix(in oklab, var(--accent) 28%, transparent);

  /* File type colors */
  --md: #007aff;
  --md-fg: #006fe6;
  --csv: #34c759;
  --csv-fg: #207a3a;
  --json: #ff9500;
  --json-fg: #c46a00;
  --yaml: #af52de;
  --yaml-fg: #7e2ec3;

  /* Hero gradient */
  --hero-grad: radial-gradient(circle at 20% 0%, rgba(0,122,255,0.10), transparent 50%),
               radial-gradient(circle at 80% 10%, rgba(175,82,222,0.08), transparent 50%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #000000;
    --bg-canvas: #1c1c1e;
    --bg-content-2: #232326;
    --bg-toolbar: rgba(38, 38, 40, 0.85);
    --bg-chip: rgba(255, 255, 255, 0.08);
    --bg-card: #1e1e20;
    --bg-button: #2c2c2e;
    --bg-button-hover: #37373a;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --divider: rgba(255, 255, 255, 0.06);
    --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(255,255,255,0.05);
    --shadow-lift: 0 1px 0 rgba(0,0,0,0.5), 0 20px 50px rgba(0,0,0,0.45);
    --shadow-hero: 0 30px 80px -20px rgba(0, 122, 255, 0.40), 0 20px 50px rgba(0,0,0,0.55);
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #8e8e93;

    --md-fg: #5aa6ff;
    --csv-fg: #6cdd87;
    --json-fg: #ffb152;
    --yaml-fg: #cf8aee;

    --hero-grad: radial-gradient(circle at 20% 0%, rgba(0,122,255,0.18), transparent 50%),
                 radial-gradient(circle at 80% 10%, rgba(175,82,222,0.14), transparent 50%);
  }
}

/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg-page);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--selection); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg-page) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: var(--shadow-card);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}
.nav-links a:hover { background: var(--bg-chip); color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--bg-chip); }

@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; height: 52px; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 0;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 6px 16px rgba(0,122,255,0.30);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-button);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-button-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  height: auto;
  padding: 0;
  font-weight: 500;
}
.btn-ghost:hover { text-decoration: underline; background: transparent; }
.btn .arrow { font-size: 18px; line-height: 1; transform: translateY(-1px); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: var(--hero-grad), var(--bg-page);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, transparent, var(--bg-page) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-hero);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 18px;
  background: linear-gradient(180deg, var(--text), color-mix(in oklab, var(--text) 75%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
  letter-spacing: -0.005em;
}
.hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hero-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta .dot { width: 3px; height: 3px; background: var(--text-tertiary); border-radius: 50%; }

/* ── Section ──────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section-alt { background: var(--bg-canvas); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 14px;
}
.section-head p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── File type cards ──────────────────────────────────────────────── */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.type-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.type-card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.type-card.md  .badge { background: color-mix(in oklab, var(--md) 16%, transparent);  color: var(--md-fg); }
.type-card.json .badge { background: color-mix(in oklab, var(--json) 20%, transparent); color: var(--json-fg); }
.type-card.yaml .badge { background: color-mix(in oklab, var(--yaml) 18%, transparent); color: var(--yaml-fg); }
.type-card.csv  .badge { background: color-mix(in oklab, var(--csv) 18%, transparent); color: var(--csv-fg); }
.type-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.type-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.type-card .exts {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
}

/* ── Feature list ─────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  display: flex;
  gap: 16px;
}
.feature .icon-circle {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 4px 0 4px;
}
.feature p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Pro card ─────────────────────────────────────────────────────── */
.pro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.pro-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.pro-card .pro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
}
.pro-card .pro-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pro-card .pro-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, #007aff, #5e5ce6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 6px;
}
.pro-card h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.pro-card .pro-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pro-card .pro-price .once {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 6px;
}
.pro-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 24px;
  position: relative;
}
.pro-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.pro-card li::before {
  content: '';
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8.5l3.5 3.5L13 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Privacy callout ──────────────────────────────────────────────── */
.privacy-callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.privacy-callout .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in oklab, #34c759 18%, transparent);
  color: #207a3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) {
  .privacy-callout .icon-circle { color: #6cdd87; }
}
.privacy-callout h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.privacy-callout p {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin: 0;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}
.faq .answer p { margin: 0 0 8px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--bg-chip);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
}

/* ── Contact block ────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.contact-card .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 12px;
  min-height: 40px;
}
.contact-card a {
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}

/* ── Article (privacy / docs prose) ───────────────────────────────── */
.article {
  padding: 60px 0 100px;
}
.article h1 {
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.022em;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 12px;
}
.article .updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 40px;
}
.article .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 32px;
  letter-spacing: -0.005em;
}
.article h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 48px 0 12px;
}
.article h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 8px;
}
.article p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 14px;
  color: var(--text);
}
.article ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.article li {
  font-size: 17px;
  line-height: 1.6;
  margin: 4px 0;
}
.article .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 36px;
}
.article .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, #34c759 16%, transparent);
  color: #207a3a;
  font-size: 13px;
  font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  .article .pill { color: #6cdd87; }
}

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-page);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer .brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer .brand-mini img { width: 20px; height: 20px; border-radius: 5px; }

/* ── Mobile tweaks ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .hero-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 22px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .pro-card { padding: 28px 22px; border-radius: 18px; }
  .pro-card h2 { font-size: 22px; }
  .pro-card .pro-price { font-size: 22px; }
  .privacy-callout { padding: 28px 22px; }
  .article { padding: 40px 0 80px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
