/* QRNest website — shared by index.html and privacy-policy.html. Colours follow app/src/main/res/values/colors.xml. */
:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --fg: #0e1b17;
  --muted: #55635e;
  --line: #dde3df;
  --brand: #0b7a55;
  --brand-soft: #e3f1ea;
  --on-brand: #ffffff;
  --accent: #3ddc97;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1512;
    --surface: #131f1b;
    --fg: #e8efec;
    --muted: #9fb0a9;
    --line: #26352f;
    --brand: #3ddc97;
    --brand-soft: #173328;
    --on-brand: #06261a;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1512;
  --surface: #131f1b;
  --fg: #e8efec;
  --muted: #9fb0a9;
  --line: #26352f;
  --brand: #3ddc97;
  --brand-soft: #173328;
  --on-brand: #06261a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header / footer */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; margin-left: 16px; }
.top nav a:hover { color: var(--fg); }
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 40px; color: var(--muted); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: var(--on-brand);
  padding: 12px 20px; border-radius: 12px; text-decoration: none; font-weight: 600;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn:hover { filter: brightness(1.08); }

/* Home */
.hero { padding: 40px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.hero .icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 18px rgb(11 122 85 / 0.25); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 28px; max-width: 32em; }
/* The screenshot sits in a soft brand panel and never grows past the window height. */
.hero .art {
  background: radial-gradient(120% 90% at 70% 20%, var(--brand-soft), transparent 70%), var(--surface);
  border: 1px solid var(--line); border-radius: 28px;
  padding: 28px; display: grid; place-items: center;
}
.hero .shot { height: min(520px, calc(100vh - 200px)); min-height: 360px; width: auto; aspect-ratio: 9 / 16;
  object-fit: cover; border-radius: 20px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.18); }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 12px; }
.card .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

h2.section { font-size: 1.5rem; margin: 56px 0 20px; }
.privacy-strip { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.privacy-strip p { margin: 0 0 8px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 28px; }
  .hero .art { padding: 20px; }
  .hero .shot { height: auto; min-height: 0; width: min(240px, 62vw); }
  .features { grid-template-columns: 1fr; }
  .top nav a:first-child { display: none; }
}

/* Policy */
.policy h1 { font-size: 2rem; line-height: 1.2; margin: 40px 0 8px; }
.policy h2 { font-size: 1.25rem; margin: 40px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.policy h3 { font-size: 1.05rem; margin: 24px 0 4px; }
.policy p, .policy ul { margin: 0 0 12px; }
.policy ul { padding-left: 1.25em; }
.policy li { margin-bottom: 4px; }
.meta { color: var(--muted); margin-bottom: 24px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
nav.toc ol { padding-left: 1.25em; columns: 2; column-gap: 32px; }
@media (max-width: 560px) { nav.toc ol { columns: 1; } .policy h1 { font-size: 1.6rem; } }
