/* QRIUM — design tokens */
:root {
  --coral: #FF6A64;
  --coral-soft: #FFF4F4;
  --coral-deep: #E5564F;
  --lime: #C3FF00;
  --yellow: #E6FF4B;
  --beige: #F1ECE9;
  --beige-soft: #FBF9F8;
  --ink: #2F2F2F;
  --ink-deep: #0F0F0F;
  --ink-700: #414144;
  --ink-500: #8E8E93;
  --ink-300: #DEDEDE;
  --ink-200: #ECECEC;
  --ok-bg: #F3FFE4;
  --ok-fg: #007004;
  --err-fg: #9F0000;
  --white: #FFFFFF;
  --shadow-card: 0 0 30px rgba(241, 236, 233, 1);
  --shadow-soft: 0 12px 32px -16px rgba(94, 39, 0, 0.15);
  --shadow-deep: 0 24px 48px -20px rgba(31, 41, 55, 0.18);
  --radius: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --container: 1280px;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

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

svg {
  shape-rendering: geometricPrecision;
}

button svg,
a svg,
.ico svg,
.feat-ic svg,
.case-emoji svg,
.tier-list svg,
.foot-social svg,
.mini-btn svg {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a { color: inherit; text-decoration: none; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Containers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--white);
  border: 1.5px solid var(--lime);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-700);
  white-space: nowrap;
}
.eyebrow.dark { background: var(--ink-deep); color: var(--white); }

.h1, h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-700);
  margin: 0;
  text-wrap: balance;
}
.h2, h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-700);
  margin: 0;
}
.h3, h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink-700);
  margin: 0;
}
.body-lg { font-size: 20px; line-height: 1.35; color: var(--ink-700); }
.body { font-size: 18px; line-height: 1.4; color: var(--ink-700); }
.muted { color: var(--ink-500); }
.body-sm { font-size: 15px; line-height: 1.45; color: var(--ink-700); }
.tiny { font-size: 13px; line-height: 1.4; color: var(--ink-500); }

/* Giant display heading — pure silhouette outline (no inner counter rings) */
.display-outline {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  pointer-events: none;
  user-select: none;
}
.display-outline-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.display-outline-svg text {
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 200px;
  letter-spacing: -2px;
  text-transform: lowercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 20px -10px rgba(255, 106, 100, 0.6);
}
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn-secondary {
  background: var(--white);
  color: var(--ink-700);
  border: 1.5px solid var(--ink-200);
}
.btn-secondary:hover { border-color: var(--ink-700); }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Sections */
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

.bg-beige { background: var(--beige); }
.bg-beige-soft { background: var(--beige-soft); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--ink); color: var(--white); }

/* Generic card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1.5px solid var(--lime);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-700);
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  transition: background .2s;
}
.site-header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px -26px rgba(15, 15, 15, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: transparent;
  transition: background .2s, box-shadow .2s;
}
.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--ink-deep);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
}
.logo-mark-img {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: block;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-700);
}
.nav a:hover { color: var(--coral); }

@supports (content-visibility: auto) {
  main > section:not(.hero-section) {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
  }
}

.seo-fallback {
  min-height: 100vh;
  padding: 56px 0;
}
.seo-fallback-inner {
  max-width: 860px;
}
.seo-fallback h1 {
  margin-top: 42px;
}
.seo-fallback p {
  max-width: 720px;
}
.seo-fallback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Decorative gradient blob */
.blob {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--coral) 100%);
  filter: blur(0.5px);
  pointer-events: none;
}

/* Phone frame */
.phone {
  position: relative;
  width: 310px;
  border-radius: 32px;
  background: var(--ink-deep);
  border: 1px solid #2a2a2a;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  color: var(--white);
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-300);
}
.phone-status .dots { display: inline-flex; gap: 4px; }
.phone-status .dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: inline-block; }
.phone-appbar {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
  padding-bottom: 8px;
}

/* Animated reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scroll with 60fps-friendly hardware accel */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label { font-size: 13px; color: var(--ink-500); }
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 1.5px solid var(--ink-200);
  border-radius: 14px;
  background: var(--white);
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--coral); }
.field .err {
  font-size: 12px;
  color: var(--err-fg);
}
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.45;
}
.checkbox-row input { margin-top: 2px; accent-color: var(--coral); }
.checkbox-row a { color: var(--ink-700); text-decoration: underline; text-underline-offset: 2px; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.45);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn .2s ease;
}
.modal {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-deep);
  animation: popUp .3s cubic-bezier(.2,.9,.3,1.2);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--beige);
  display: grid; place-items: center;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popUp {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  background: rgba(15, 15, 15, 0.94);
  color: var(--white);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 40;
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: slideUp .4s cubic-bezier(.2,.9,.3,1.05);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-300); }
.cookie-banner a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { font-size: 13px; padding: 10px 18px; }
.cookie-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.cookie-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.cookie-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}
.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-300);
  line-height: 1.45;
}
.cookie-row strong { color: #fff; display: block; margin-bottom: 2px; }
.cookie-row .muted-tag { font-size: 11px; color: rgba(255,255,255,0.45); }
.cookie-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22); transition: background .2s ease;
}
.cookie-switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform .2s ease;
}
.cookie-switch input:checked + .track { background: var(--coral); }
.cookie-switch input:checked + .track::after { transform: translateX(18px); }
.cookie-switch input:disabled + .track { opacity: 0.55; }
.cookie-switch input:focus-visible + .track { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) {
  .cookie-actions .btn { flex: 1 1 auto; }
}

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0 32px;
}
footer .legal {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.5;
}

/* Floating analytics chips (in dark section) */
.float-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-700);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}
.float-chip .ico { width: 22px; height: 22px; display: inline-grid; place-items: center; color: var(--ink-700); }

/* Utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.wrap { flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .section-pad { padding: 64px 0; }
  .nav { display: none; }
  .container { padding: 0 20px; }
}
@media (max-width: 430px) {
  html { overflow-x: hidden; }
  .container { padding: 0 14px; }
  .site-header .btn-sm { font-size: 12px; padding: 8px 10px; }
  .header-inner { padding: 10px 12px; }
  .security-grid { grid-template-columns: 1fr !important; }
  /* Display outline: keep letters legible on small screens */
  .display-outline { height: 110px; overflow: hidden; }
  .display-outline-svg { width: 640px; height: 110px; position: relative; left: 50%; transform: translateX(-50%); }
}
