/* CherryQuery microsite - palette taken from the app's installer splash */
:root {
  --cream: #fffdf8;
  --cream-2: #fff5d8;
  --sun: #ffda6a;
  --sun-soft: #fff0bd;
  --mint: #ddf6f0;
  --plum: #4a2638;
  --teal: #185c50;
  --muted: #68545c;
  --line: rgba(74, 38, 56, .12);
  --shadow: 0 18px 40px -22px rgba(74, 38, 56, .45);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 76px; }

h1, h2, h3 { text-wrap: balance; }

body {
  margin: 0;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--plum);
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--plum); }

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

code, kbd {
  font-family: Consolas, "Cascadia Mono", Menlo, monospace;
  font-size: .9em;
  background: var(--sun-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .05em .4em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--plum);
  color: var(--cream);
  padding: .6rem 1rem;
  border-radius: 10px;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  color: var(--plum);
  text-decoration: none;
}
.brand img { width: 38px; height: 38px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--plum); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  border-radius: 999px;
  padding: .7rem 1.3rem;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }
.btn-store {
  background: var(--plum);
  color: var(--cream);
  box-shadow: var(--shadow);
  padding: .75rem 1.4rem .75rem 1.1rem;
}
.btn-store:hover { color: var(--cream); background: #5c3047; }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store .btn-label { display: flex; flex-direction: column; text-align: left; }
.btn-store small { font-size: .72rem; font-weight: 600; opacity: .8; letter-spacing: .02rem; }
.btn-store strong { font-size: 1.08rem; }
.btn-ghost {
  color: var(--plum);
  border: 2px solid rgba(74, 38, 56, .2);
}
.btn-ghost:hover { color: var(--plum); border-color: var(--plum); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.hero::before {
  width: 520px; height: 520px;
  right: -160px; top: -240px;
  background: rgba(255, 218, 106, .25);
}
.hero::after {
  width: 480px; height: 480px;
  right: 40px; bottom: -330px;
  background: rgba(221, 246, 240, .8);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 2.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--teal);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.hero h1 .accent {
  background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%);
  padding: 0 .08em;
}
.lead {
  margin: 1.4rem 0 2rem;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
}
.lock-note {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1.6rem 0 0;
  font-size: .92rem;
  color: var(--muted);
}
.lock-note svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
.hero-art { width: 100%; max-width: 440px; margin-inline: auto; }

/* ---------- App preview ---------- */
.preview { padding: 0 0 clamp(3rem, 7vw, 5rem); }
.app-window {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 30px;
  box-shadow: 0 0 16px #00000033;
  overflow: hidden;
}
.app-body { padding: 10px 12px 14px; }
.app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 1rem;
  font-weight: 400;
}
.app-search .brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
}
.app-search .caret {
  display: inline-block;
  width: 2px; height: 1.1em;
  margin-left: 1px;
  background: var(--plum);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
.app-count { margin: .9rem .2rem .4rem; font-size: .82rem; color: var(--muted); }
.app-results { list-style: none; margin: 0; padding: 0; }
.app-results li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: .9rem;
  padding: .9rem .4rem;
  border-top: 1px solid var(--line);
}
.app-results li:first-child { border-top: 0; }
.file-badge {
  display: grid;
  place-items: center;
  width: 40px; height: 48px;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--plum);
  background: var(--mint);
  border: 1px solid var(--line);
}
.file-badge.sun { background: var(--sun-soft); }
.r-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; }
.r-name { margin: 0; font-weight: 700; }
.r-meta { margin: 0; font-size: .8rem; color: var(--muted); }
.r-snippet { margin: .25rem 0 0; font-size: .92rem; color: var(--muted); }
mark {
  background: var(--sun);
  color: var(--plum);
  border-radius: 4px;
  padding: 0 .2em;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 640px; margin: 0 auto 2.8rem; text-align: center; }
.section-head h2 {
  margin: 0 0 .7rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 { margin: 1rem 0 .4rem; font-size: 1.15rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.icon-chip {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--sun);
  color: var(--plum);
}
.icon-chip.mint { background: var(--mint); color: var(--teal); }
.icon-chip svg { width: 24px; height: 24px; }

/* Text recognition (OCR) */
.ocr-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.ocr-band h2 {
  margin: 0 0 .7rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.ocr-lead { margin: 0; color: var(--muted); font-size: 1.08rem; }
.ocr-band .chips li { background: var(--sun-soft); }
.ocr-band .app-window { width: 100%; }
.r-thumb {
  display: block;
  margin-top: .45rem;
  width: 100%;
  max-width: 240px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

/* File types */
.types-band { background: rgba(255, 255, 255, .55); border-block: 1px solid var(--line); }
.types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.type-group h3 { margin: 0 0 .7rem; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-family: Consolas, "Cascadia Mono", Menlo, monospace;
  font-size: .82rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.type-group.featured .chips li { background: var(--sun-soft); }
.type-group.wide { grid-column: 1 / -1; }
.type-desc { margin: .8rem 0 0; font-size: .92rem; color: var(--muted); }
.badge-new {
  display: inline-block;
  margin-left: .35px;
  padding: .05rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  vertical-align: middle;
  color: var(--teal);
  background: var(--mint);
}
.type-note {
  margin: 1.4rem auto 0;
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
}

/* Privacy band */
.privacy-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--mint);
  border-radius: 28px;
  padding: clamp(1.8rem, 5vw, 3.2rem);
}
.privacy-band .big-lock {
  display: grid;
  place-items: center;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--teal);
  box-shadow: var(--shadow);
}
.privacy-band .big-lock svg { width: 54px; height: 54px; }
.privacy-band h2 { margin: 0 0 .6rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.03em; line-height: 1.15; }
.checks { list-style: none; margin: 1rem 0 1.2rem; padding: 0; display: grid; gap: .5rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: .2rem; color: var(--teal); }

/* Good to know */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 1.3rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); }

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--sun);
  border-radius: 28px;
  padding: clamp(2.4rem, 6vw, 4rem) 1.5rem;
}
.final-cta::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  left: -120px; bottom: -200px;
  border-radius: 50%;
  background: rgba(255, 255, 248, .35);
}
.final-cta > * { position: relative; }
.final-cta img { width: 88px; height: 88px; margin: 0 auto 1rem; }
.final-cta h2 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.035rem; line-height: 1.1; }
.final-cta p { margin: 0 auto 1.6rem; max-width: 32em; }
.final-cta .btn-store { box-shadow: none; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(2.6rem, 6vw, 4rem) 0 1.5rem; }
.legal-hero h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -.04em;
  line-height: 1.05;
}
.legal-hero p { margin: 0; color: var(--muted); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.legal-tabs a {
  padding: .35rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.legal-tabs a[aria-current="page"] { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 3rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.legal > :first-child { margin-top: 0; }
.legal h2 {
  margin: 2rem 0 .5rem;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.legal p, .legal li { color: #3d2a33; }
.legal p { margin: 0 0 1rem; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.legal li { margin: .35rem 0; }
.legal .caps { font-size: .93rem; letter-spacing: .01em; }
.legal .meta { color: var(--muted); font-size: .93rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2rem; }
.legal table { border-collapse: collapse; margin: 0 0 1.5rem; min-width: 280px; }
.legal th, .legal td { border: 1px solid var(--line); padding: .55rem 1rem; text-align: left; }
.legal th { background: var(--cream); }
.ok { color: var(--teal); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  font-size: .9rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer .brand { font-size: 1rem; }
.site-footer .brand img { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--plum); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .ocr-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav a:not(.btn) { display: none; }
  .features, .types { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; text-align: center; }
  .privacy-band .big-lock { margin: 0 auto; }
  .checks { text-align: left; }
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .app-search .caret { animation: none; }
}
