/* QuishGuard.io public site, light edition.
   Brand: deep teal ink for text and dark bands, aqua for the main action,
   red and green only for verdicts. */
:root {
  /* Same tokens as the Flutter app (AppTheme) */
  --paper: #0B1416;      /* app background */
  --mint: #0E1A1C;       /* app backgroundSecondary */
  --card: #102023;       /* app card */
  --card-2: #15292D;     /* app cardRaised */
  --line: #1E3A3F;       /* app border */
  --ink: #0B1416;
  --ink-2: #102023;
  --ink-3: #15292D;
  --text: #E6F0EF;
  --muted: #A7BEC0;
  --faint: #6F8F92;
  --aqua: #45D9C9;
  --on-aqua: #062022;
  --teal: #45D9C9;
  --threat: #FF4D6A;
  --threat-dark: #FF4D6A;
  --warn: #F5B544;
  --warn-dark: #F5B544;
  --safe: #3DD68C;
  --safe-dark: #3DD68C;
  --wrap: 1140px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 4.8vw, 58px); line-height: 1.06; font-weight: 800; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; font-weight: 750; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 33em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand .tld { color: var(--faint); font-weight: 600; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--aqua); color: var(--on-aqua); }
.btn-primary:hover { background: #63e3d5; }
.btn-aqua { background: var(--aqua); color: var(--on-aqua); }
.btn-aqua:hover { background: #63e3d5; }
.btn-ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); }
.btn-small { padding: 9px 16px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.hero .lead { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--faint); }

/* Reveal: left is what people see, right is what QuishGuard sees */
.reveal { position: relative; aspect-ratio: 5 / 4; border-radius: 22px; overflow: hidden; user-select: none; touch-action: pan-y; border: 1px solid var(--line); }
.reveal-side { position: absolute; inset: 0; display: grid; place-items: center; }
.seen { background: #16282B; background-image: radial-gradient(circle at 42% 38%, #2A4246, #15282B 62%); }
.sticker { width: 52%; max-width: 270px; background: #FBFCFA; border-radius: 12px; padding: 18px 18px 14px; color: #12201F; transform: rotate(-3deg); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45); position: relative; }
.sticker::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed #c3cecb; border-radius: 8px; pointer-events: none; }
.sticker-title { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.sticker-sub { font-size: 12px; color: #536866; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticker svg { width: 100%; height: auto; margin-top: 12px; fill: #12201F; display: block; }
.sticker-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: #536866; }

.seen-by-app { background: #071012; color: #E6F0EF; clip-path: inset(0 0 0 50%); place-items: center; }
.app-view { width: min(84%, 380px); }
.app-view .who { font-size: 13px; color: #8FA9AB; }
.app-view .url { margin-top: 10px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.45; word-break: break-word; color: #6F8F92; }
.app-view .url b { color: #fff; font-weight: 700; }
.flags { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; font-size: 14px; }
.flags li { display: flex; gap: 10px; align-items: baseline; color: #C9D8D9; }
.flags li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--threat-dark); flex: none; transform: translateY(-1px); }
.flags li.neutral::before { background: #6F8F92; }
.app-verdict { margin-top: 20px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 77, 106, 0.1); }
.app-verdict strong { color: var(--threat-dark); font-size: 17px; }
.app-verdict span { margin-left: auto; font-weight: 700; }

.reveal-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--aqua); pointer-events: none; }
.reveal-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--aqua);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062022' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E");
  background-size: 22px; background-repeat: no-repeat; background-position: center;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.4);
}
.reveal input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.reveal input:focus-visible ~ .reveal-handle::after { outline: 3px solid var(--text); outline-offset: 3px; }
.reveal-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; color: var(--faint); }

/* ---------- where fake codes hide ---------- */
.section { padding: 104px 0; }
.mint { background: var(--mint); }
.section-head { max-width: 640px; }
.section-head .lead { margin-top: 16px; }
.objects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; align-items: end; }
.object { all: unset; cursor: pointer; display: block; position: relative; }
.object:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; border-radius: 14px; }
.object .thing { transition: transform 0.35s cubic-bezier(.2, .8, .2, 1); }
.object:hover .thing { transform: translateY(-4px); }
.object .qr { fill: #12201F; width: 100%; height: auto; display: block; }
.object-label { margin-top: 18px; font-weight: 700; font-size: 18px; color: var(--text); }
.object-hint { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* each object has its own physical shape */
.park { background: #FBFCFA; color: #12201F; border-radius: 10px; padding: 16px; transform: rotate(-2deg); box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.45); }
.park .t { font-weight: 800; font-size: 16px; }
.park .qrbox { margin-top: 10px; }
.menu { background: #fff; color: #12201F; border-radius: 6px 6px 2px 2px; padding: 18px 20px 22px; box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.6); border-top: 10px solid #2E8F99; text-align: center; }
.menu .t { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-style: italic; }
.menu .s { font-size: 12px; color: #536866; margin-top: 2px; }
.menu .qrbox { width: 70%; margin: 12px auto 0; }
.parcel { background: #D8C29E; border-radius: 4px; padding: 14px; box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.45); transform: rotate(1.5deg); }
.parcel .label { color: #12201F; background: #FFFDF7; border-radius: 3px; padding: 14px; display: grid; grid-template-columns: 1fr 48%; gap: 12px; align-items: center; }
.parcel .t { font-weight: 800; font-size: 15px; line-height: 1.2; }
.parcel .s { font-size: 11px; color: #6b5d45; margin-top: 4px; }
.parcel .bars { height: 26px; margin-top: 10px; background: repeating-linear-gradient(90deg, #2a2a2a 0 2px, transparent 2px 4px, #2a2a2a 4px 5px, transparent 5px 8px); }

/* the reveal panel slides up over the object */
.peek { position: absolute; left: 0; right: 0; bottom: 0; background: #071012; border: 1px solid var(--line); color: #E6F0EF; border-radius: 12px; padding: 14px 16px; transform: translateY(12px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.3s cubic-bezier(.2, .8, .2, 1); }
.object[aria-expanded="true"] .peek { opacity: 1; transform: none; }
.peek .u { font-size: 14px; color: #8FA9AB; word-break: break-word; }
.peek .u b { color: #fff; }
.peek .v { margin-top: 6px; font-weight: 700; font-size: 15px; }
.peek .why { font-size: 13px; color: #A7BEC0; margin-top: 2px; }
.v.bad { color: var(--threat-dark); }
.v.warn { color: var(--warn-dark); }
.v.good { color: var(--safe-dark); }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 320px; gap: 80px; align-items: center; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #2E8F99; color: var(--aqua); font-weight: 800; }
.steps p { color: var(--muted); margin-top: 4px; }
.phone { width: 100%; max-width: 290px; margin-inline: auto; border-radius: 38px; padding: 10px; background: var(--card-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.phone img { border-radius: 29px; width: 100%; height: auto; }

/* ---------- features ---------- */
.feature-split { display: grid; grid-template-columns: 290px 1fr; gap: 80px; align-items: center; margin-top: 64px; }
.feature-split.reverse { grid-template-columns: 1fr 290px; }
.feature-split.reverse .phone { order: 2; }
.feature-list { display: grid; gap: 26px; }
.feature-list p { color: var(--muted); margin-top: 4px; max-width: 34em; }

/* ---------- organisations (dark band) ---------- */
.dark { background: var(--card); color: #E6F0EF; border-block: 1px solid var(--line); }
.dark .lead { color: #A7BEC0; }
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.org-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.org-list li { padding-left: 18px; border-left: 2px solid var(--aqua); }
.org-list p { color: #A7BEC0; margin-top: 4px; }
.dark .btn { margin-top: 30px; }

/* ---------- get / contact ---------- */
.get-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.get-grid p { color: var(--muted); margin-top: 14px; max-width: 34em; }
.get-grid b { color: var(--text); }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); color: #8FA9AB; padding: 36px 0 48px; font-size: 15px; }
.site-footer .brand { color: #E6F0EF; }
.site-footer .brand .tld { color: #6F8F92; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.footer-row a { color: #C9D8D9; text-decoration: none; }
.footer-row a:hover { color: #fff; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(34px, 4.5vw, 48px); }
.legal .meta { color: var(--faint); margin-top: 10px; font-size: 15px; }
.legal h2 { font-size: 23px; margin-top: 44px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-top: 14px; }
.legal ul, .legal ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal b { color: var(--text); font-weight: 700; }
.legal .btn { margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 32px 0 72px; }
  .hero-grid, .how-grid, .feature-split, .feature-split.reverse, .org-grid, .get-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature-split.reverse .phone { order: 0; }
  .objects { grid-template-columns: 1fr; gap: 44px; max-width: 360px; }
  .section { padding: 80px 0; }
  .reveal { aspect-ratio: 4 / 5; }
  .sticker { width: 62%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .object .thing, .peek { transition: none; }
}
.object .thing { position: relative; }

/* X-ray version of the same sticker, so the code turns into its real address in place */
.sticker.xray { background: #102023; color: #E6F0EF; box-shadow: none; outline: 1px solid #1E3A3F; }
.sticker.xray::before { border-color: #2B4A4F; }
.sticker.xray .sticker-sub { color: #45D9C9; }
.sticker.xray .sticker-foot { color: #FF4D6A; font-weight: 600; }
.xray-box { aspect-ratio: 1 / 1; margin-top: 12px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; }
.xray-box .url { font-size: clamp(11px, 1vw, 13px); line-height: 1.4; color: #6F8F92; word-break: break-word; }
.xray-box .url b { color: #fff; font-weight: 700; }
.xray-box .flags { margin: 0; gap: 5px; font-size: clamp(10.5px, 0.9vw, 12px); }
.xray-box .app-verdict { margin-top: 2px; padding: 9px 11px; border-radius: 10px; }
.xray-box .app-verdict strong { font-size: 15px; }
