/* =============================================================================
   QRench product page — loaded after ../_shared/app-page.css.
   The app's own skin (lib/core/theme.dart): deep night background, purple for
   actions, cyan ONLY for the secret — the same job it has in the app.
   The legal pages keep the site's white skin (assets/qrench.css).
   ============================================================================ */

:root {
  --app-bg:        #120E1C;
  --app-bg-2:      #17122A;
  --app-surface:   #1B1626;
  --app-text:      #ECEAF2;
  --app-muted:     #A39DB4;
  --app-rule:      rgba(169, 159, 242, 0.16);
  --app-accent:    #A99FF2;   /* soft purple: eyebrows, labels, links */
  --app-accent-2:  #534AB7;   /* the app's primary purple */
  --app-on-accent: #ffffff;
  --app-glow:      rgba(83, 74, 183, 0.40);

  --app-font-display: 'Sora', system-ui, sans-serif;
  --app-font-body:    'Sora', system-ui, sans-serif;
  --app-display-weight: 700;
  --app-display-spacing: -0.025em;
  --app-radius: 16px;

  --q-purple:  #534AB7;
  --q-purple-h:#6359CC;
  --q-secret:  #22C9E8;
  --q-secret-dim: rgba(34, 201, 232, 0.14);
}

body { font-size: 16px; line-height: 1.7; }

/* The app's filled buttons: primary purple, white text */
.btn-accent { background: var(--q-purple); color: #fff; font-weight: 600; }
.btn-accent:hover { background: var(--q-purple-h); }
.secret { color: var(--q-secret); }

/* ── "Did a QR code bring you here?" — first on the page, always ──── */
.scanned { padding: 28px 0 0; }
.scanned-box {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border: 1px solid color-mix(in srgb, var(--q-secret) 55%, transparent);
  background: linear-gradient(90deg, var(--q-secret-dim), transparent 75%), var(--app-surface);
  border-radius: var(--app-radius); padding: 24px 28px;
}
.scanned-box h2 {
  font-family: var(--app-font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em; color: var(--app-text); margin-bottom: 6px;
}
.scanned-box p { color: var(--app-muted); font-size: 15.5px; max-width: 640px; }
.scanned-box .btn { flex-shrink: 0; }

/* ── Hero: one QR code, two scanners ──────────────────────────────── */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero-tagline { color: var(--app-accent); }
.duo { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 2.4vw, 28px); }
.duo figure { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.duo figcaption {
  font-family: var(--app-font-body); font-size: 14px; font-weight: 600; color: var(--app-muted);
  text-align: center; line-height: 1.4;
}
.duo figcaption b { display: block; color: var(--app-text); font-weight: 600; }
.duo .q-cap b { color: var(--q-secret); }
.phone {
  position: relative; overflow: hidden; border-radius: 26px;
  border: 1px solid var(--app-rule); background: #0B0812;
  box-shadow: 0 40px 90px -40px #000, 0 0 60px -28px var(--app-glow);
}
.phone-q { width: clamp(200px, 22vw, 260px); aspect-ratio: 1 / 2; }
.phone-q img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-q { box-shadow: 0 40px 90px -40px #000, 0 0 70px -26px rgba(34, 201, 232, 0.45); }

/* "Any other scanner": a deliberately generic, app-neutral result screen */
.phone-any {
  width: clamp(168px, 18vw, 214px); aspect-ratio: 1 / 2;
  background: #1c1c20; border-color: rgba(255,255,255,0.08);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 12px 22px;
  margin-bottom: 18px;
}
.phone-any .sheet {
  background: #2a2a30; border-radius: 14px; padding: 14px 14px 16px;
  font-family: system-ui, sans-serif; color: #e6e6ea;
}
.phone-any .sheet-k { font-size: 10.5px; color: #9a9aa4; margin-bottom: 6px; }
.phone-any .sheet-v { font-size: 11.5px; line-height: 1.45; word-break: break-all; }
.phone-any .sheet-b {
  margin-top: 12px; font-size: 11px; font-weight: 600; text-align: center;
  border-radius: 999px; padding: 7px 0; background: #3a3a42; color: #e6e6ea;
}
.phone-any .viewfinder {
  flex: 1; margin: 34px 14px 22px; border: 2px solid rgba(255,255,255,0.18); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.phone-any .qr-glyph { width: 62%; height: auto; display: block; opacity: 0.92; }

/* ── Two audiences ────────────────────────────────────────────────── */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.8vw, 22px); max-width: 900px; }
.two > div { border: 1px solid var(--app-rule); border-radius: var(--app-radius); padding: 26px; background: var(--app-surface); }
.two .is-secret { border-color: color-mix(in srgb, var(--q-secret) 45%, transparent); background: linear-gradient(180deg, var(--q-secret-dim), transparent 70%), var(--app-surface); }
.two h3 { font-family: var(--app-font-display); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.two .is-secret h3 { color: var(--q-secret); }
.two p { color: var(--app-muted); font-size: 15px; }

/* ── Ideas: public for everyone, secret for a few ─────────────────── */
.idea-pub, .idea-sec { display: block; font-size: 14.5px; line-height: 1.55; }
.idea-pub { color: var(--app-muted); }
.idea-sec { color: var(--q-secret); margin-top: 8px; }
.idea-pub b, .idea-sec b { font-weight: 600; }

/* Feature cards: purple keys (cyan stays reserved for the secret) */
.feature-k { color: var(--app-accent); }

/* ── Screenshots ──────────────────────────────────────────────────── */
.shot img { aspect-ratio: 1 / 2; object-fit: cover; }

/* ── Private by design ────────────────────────────────────────────── */
.plain-list { list-style: none; max-width: 760px; display: grid; gap: 14px; }
.plain-list li { position: relative; padding-left: 26px; color: var(--app-muted); font-size: 16px; }
.plain-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; border-radius: 2px;
  background: var(--app-accent);
}
.more-link { margin-top: 26px; font-size: 15px; color: var(--app-muted); }
.more-link a, .note a { color: var(--app-accent); text-decoration: underline; text-underline-offset: 0.18em; }
.more-link a:hover, .note a:hover { color: var(--app-text); }

/* ── "Try it" — the QR code must stay readable and unaltered ──────── */
.try-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.try-panel { background: #ffffff; border-radius: var(--app-radius); padding: 18px; width: max-content; max-width: 100%; }
/* Exactly 420 CSS px (half of 840) wherever it fits, never cropped. On phones it
   shrinks to fit (decided 2026-10-08); the file is untouched, so long-press,
   share and Save image always get it whole. */
.try-panel img {
  display: block; width: 420px; max-width: 100%; height: auto; aspect-ratio: 1;
  image-rendering: pixelated; background: #ffffff;
}
.try-copy p { color: var(--app-muted); font-size: 16.5px; }
.try-copy p + p { margin-top: 16px; }
.try-copy .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .scanned-box { flex-direction: column; align-items: flex-start; gap: 16px; }
  .two { grid-template-columns: 1fr; }
  .hero-grid, .try-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: 0; margin-top: 8px; }
}
@media (max-width: 640px) {
  .scanned { padding-top: 18px; }
  .scanned-box { padding: 20px; }
  .try-panel { padding: 12px; width: auto; }
  /* Two phones side by side must fit a 320px-wide screen */
  .duo { gap: 12px; }
  .phone-q { width: 46vw; max-width: 230px; border-radius: 20px; }
  .phone-any { width: 37vw; max-width: 186px; border-radius: 18px; }
  .duo figcaption { font-size: 13px; }
  .phone-any { padding: 0 9px 16px; margin-bottom: 14px; }
  .phone-any .viewfinder { margin: 24px 10px 16px; }
}
