/* ==========================================================================
   Kogoto landing page — styles
   Light-first, mobile-first, dependency-free. One accent: Kogoto blue.
   ========================================================================== */

/* ------------------------------------------------------------ tokens ---- */
:root {
  --blue:        #0B0BC7;   /* official Kogoto brand blue */
  --blue-600:    #1616D8;   /* hover / lift */
  --blue-700:    #0A0A9E;   /* pressed / deep */
  --blue-tint:   #EEF0FF;   /* pale wash */
  --blue-tint-2: #E3E6FF;

  --ink:      #14162B;      /* headings */
  --ink-2:    #43485E;      /* body text */
  --ink-3:    #5B6072;      /* muted / captions (AA on paper and tint) */

  --paper:    #FFFFFF;
  --paper-2:  #F6F7FB;      /* alternate section */
  --line:     #E6E7F0;

  --radius:      20px;
  --radius-sm:   14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 18, 60, .06), 0 2px 8px rgba(16, 18, 60, .05);
  --shadow-md: 0 8px 24px rgba(16, 18, 60, .08), 0 2px 8px rgba(16, 18, 60, .05);
  --shadow-lg: 0 24px 60px rgba(11, 11, 199, .14), 0 8px 24px rgba(16, 18, 60, .08);

  --container: 1120px;
  --pad-x: clamp(1.25rem, 5vw, 2rem);
  --section-y: clamp(4rem, 10vw, 7rem);

  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ------------------------------------------------------------ reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
ol, ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}
/* skip-link moves focus here; the viewport jump is the cue, no ring needed */
#main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------- primitives --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius-pill);
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 10px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}

.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: -.01em;
  padding: .95rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { color: #fff; background: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); background: var(--blue-700); }
.btn--sm { padding: .6rem 1.05rem; font-size: .9375rem; }

/* ----------------------------------------------------------- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;                 /* fallback for no color-mix */
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: #ffffff;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 32px; height: 32px; }
.brand__name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}
.site-nav {
  display: none;
  margin-left: auto;
  gap: 1.6rem;
}
.site-nav a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--blue); }
.site-header__cta { margin-left: auto; }

@media (min-width: 800px) {
  .site-nav { display: flex; }
  .site-header__cta { margin-left: 0; }
}

/* ------------------------------------------------------------- hero ---- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: var(--section-y);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--blue-tint) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 15%, #F3F0FF 0%, transparent 50%),
    var(--paper);
}
.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero__logo {
  height: auto;
  width: clamp(170px, 42vw, 220px);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-size: clamp(2.6rem, 8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.hero__lead {
  margin-top: 1.15rem;
  font-size: clamp(1.075rem, 1rem + .5vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34ch;
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .hero__lead { max-width: 42ch; }
}

/* store buttons ------------------------------------------------------- */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.9rem;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem 1.25rem;
  min-width: 190px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), opacity .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-btn:active { transform: translateY(0); }
.store-btn__glyph { flex: none; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn__text small { font-size: .72rem; opacity: .85; letter-spacing: .01em; }
.store-btn__text strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }

.store-btn.is-coming-soon {
  background: var(--paper-2);
  color: var(--ink-3);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
}
.store-btn.is-coming-soon:hover { transform: none; box-shadow: none; color: var(--ink-3); }
.store-btn.is-coming-soon .store-btn__glyph { color: var(--ink-3); opacity: .7; }
.store-btn.is-coming-soon .store-btn__text small { color: var(--blue); opacity: 1; font-weight: 700; }

.store-buttons--lg { justify-content: center; }
.store-buttons--lg .store-btn { padding: .85rem 1.4rem; }

.store-note {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--ink-3);
}
.store-note a { font-weight: 600; }

/* hero visual: nearby radar ---------------------------------------- */
.hero__visual { display: flex; justify-content: center; }
.radar {
  position: relative;
  width: min(78vw, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.radar__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1.5px solid var(--blue-tint-2);
  animation: radar-pulse 3.6s var(--ease) infinite;
}
.radar__ring--1 { width: 100%;  height: 100%; }
.radar__ring--2 { width: 68%;   height: 68%;  animation-delay: .5s; border-color: #D6D9FF; }
.radar__ring--3 { width: 38%;   height: 38%;  animation-delay: 1s;  border-color: #C7CBFF; }
@keyframes radar-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.015); }
}
.radar__core {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}
.radar__core img { width: 72px; height: 72px; }
.radar__pin {
  position: absolute;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  animation: pin-float 4s var(--ease) infinite;
}
.radar__pin i {
  width: 15px; height: 15px; border-radius: 50%;
  background: linear-gradient(140deg, var(--blue) 0%, #5a5af0 100%);
}
.radar__pin--a { top: 6%;  left: 22%; animation-delay: 0s; }
.radar__pin--b { top: 14%; right: 8%; animation-delay: .8s; }
.radar__pin--c { bottom: 12%; left: 8%; animation-delay: 1.6s; }
.radar__pin--d { bottom: 4%; right: 24%; animation-delay: 2.4s; }
@keyframes pin-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------------------------------------------------------- sections --- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section__head { max-width: 46ch; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section__title {
  font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.9rem);
  font-weight: 800;
}
.section__lead {
  margin-top: .9rem;
  font-size: clamp(1.02rem, 1rem + .3vw, 1.2rem);
  color: var(--ink-2);
}
.section__note {
  margin-top: 1.75rem;
  font-size: .9rem;
  color: var(--ink-3);
}

/* steps --------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 1.9rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}
.step__title { font-size: 1.2rem; font-weight: 800; margin-bottom: .45rem; }
.step__text { font-size: .975rem; color: var(--ink-2); }

/* cards ------------------------------------------------------------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 2rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  margin-bottom: 1.1rem;
}
.card__title { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.card__text { font-size: .99rem; color: var(--ink-2); }

/* inside kogoto — feature grid --------------------------------------- */
.feature-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.ft {
  padding: 1.6rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ft:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ft__ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: .9rem;
}
.ft__ic svg { width: 22px; height: 22px; }
.ft__t { font-size: 1.08rem; font-weight: 800; color: var(--ink); margin-bottom: .35rem; }
.ft__d { font-size: .93rem; color: var(--ink-2); line-height: 1.55; }

/* mission --------------------------------------------------------- */
.mission {
  background:
    radial-gradient(120% 120% at 85% 0%, var(--blue-600) 0%, transparent 60%),
    var(--blue);
  color: #fff;
  padding-block: clamp(4.5rem, 11vw, 8rem);
}
.mission__title {
  color: #fff;
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.14;
  text-wrap: balance;
  max-width: 18ch;
}
.mission__title span {
  color: #c9c9ef;
  color: color-mix(in srgb, #fff 68%, var(--blue));
}
.mission__text {
  margin-top: 1.5rem;
  color: #dcdcf5;
  color: color-mix(in srgb, #fff 82%, var(--blue));
  font-size: clamp(1.02rem, 1rem + .35vw, 1.22rem);
  max-width: 42ch;
}

/* get the app --------------------------------------------------- */
.get-app { text-align: center; }
.get-app__inner { display: grid; justify-items: center; }
.get-app__mark { width: 64px; height: 64px; margin-bottom: 1.1rem; }
.get-app .section__lead { max-width: 42ch; }
.get-app .store-buttons { justify-content: center; }
.get-app .store-note { text-align: center; }

/* footer ------------------------------------------------------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: 2.5rem;
  font-size: .95rem;
}
.site-footer__inner {
  display: grid;
  gap: 2.25rem 1.5rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer__brand .brand__name { font-size: 1.1rem; }
.site-footer__tag { margin-top: .7rem; color: var(--ink-3); }
.site-footer__col h2 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .9rem;
}
.site-footer__col a {
  display: block;
  color: var(--ink-2);
  font-weight: 600;
  padding: .3rem 0;
}
.site-footer__col a:hover { color: var(--blue); }
.site-footer__col a[aria-disabled="true"] {
  color: var(--ink-3);
  cursor: default;
  opacity: .75;
}
.site-footer__col a[aria-disabled="true"]::after {
  content: "Coming soon";
  display: inline-block;
  margin-left: .5rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  padding: .1rem .4rem;
  border-radius: 6px;
  vertical-align: 1px;
}
.site-footer__base {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .85rem;
}
.site-footer__fineprint { margin-top: .4rem; max-width: 60ch; }

/* toast ------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 1.5rem);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: .8rem 1.15rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 150;
  max-width: calc(100vw - 2rem);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 404 ------------------------------------------------------------ */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.nf__inner { max-width: 30rem; }
.nf img { width: 72px; height: 72px; margin: 0 auto 1.5rem; }
.nf h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; }
.nf p { margin-top: .9rem; color: var(--ink-2); }
.nf .btn { margin-top: 1.8rem; }

/* reveal-on-scroll ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Legal / support pages  (/privacy, /terms, /support)
   --------------------------------------------------------------------------
   Long-form document pages. Same tokens, type and chrome as the rest of
   the site; no JavaScript is loaded on these pages, so nothing here may
   depend on a runtime class being toggled. Plain document flow only.
   ========================================================================== */
.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y);
  background:
    radial-gradient(120% 60% at 100% 0%, var(--blue-tint) 0%, transparent 55%),
    var(--paper);
}
.legal__wrap { max-width: 760px; }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
}
.legal__back:hover { color: var(--blue); }

.legal__title {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.legal__meta {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--ink-3);
}
.legal__meta strong { color: var(--ink-2); font-weight: 700; }
.legal__lead {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1rem + .3vw, 1.15rem);
  color: var(--ink-2);
}

/* status / callout box */
.callout {
  margin-top: 1.8rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--blue-tint);
  font-size: .95rem;
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }
.callout--warn {
  background: #FFF7ED;
  border-left-color: #C2410C;
}
.callout p + p { margin-top: .6rem; }

/* table of contents */
.legal__toc {
  margin-top: 2.2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}
.legal__toc h2 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .8rem;
}
.legal__toc ol { counter-reset: toc; display: grid; gap: .3rem; }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: block;
  padding: .2rem 0;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
}
.legal__toc a::before { content: counter(toc) ". "; color: var(--ink-3); }
.legal__toc a:hover { color: var(--blue); }

/* document body */
.legal__body { margin-top: 2.6rem; }
.legal__body > section { margin-top: 2.6rem; scroll-margin-top: 84px; }
.legal__body > section:first-child { margin-top: 0; }
.legal__body h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.legal__body h2 .legal__num { color: var(--blue); margin-right: .5ch; }
.legal__body h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}
.legal__body p { margin-top: .9rem; color: var(--ink-2); }
.legal__body ul, .legal__body ol { margin-top: .9rem; padding-left: 1.4rem; }
.legal__body ul { list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li { margin-top: .4rem; color: var(--ink-2); }
.legal__body li::marker { color: var(--ink-3); }
.legal__body a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: var(--ink); font-weight: 700; }
.legal__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .05rem .35rem;
}

/* processors / data table */
.legal__tablewrap { margin-top: 1.1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .9rem;
}
.legal__table th, .legal__table td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
}
.legal__table th { background: var(--paper-2); color: var(--ink); font-weight: 700; }
.legal__table td { color: var(--ink-2); }

.legal__end {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-3);
}

/* ==========================================================================
   Kogoto Spot / Event QR landing + fallback pages  (/spot/, /event/)
   --------------------------------------------------------------------------
   Reached by scanning a physical Kogoto Spot or Event QR code with any
   camera app. Deliberately generic — no Spot/Event-specific data is ever
   fetched (there is no public unauthenticated endpoint; see the repo
   README and docs/QR_REFERRAL.md). These pages explain the concept,
   surface the review model, and route to the app.

   Pure CSS: no inline styles, no data: URIs, same-origin images only —
   the site CSP is deny-by-default. All motion is neutralised by the
   global prefers-reduced-motion rule near the top of this file.
   ========================================================================== */
.qrl {
  --qrl-accent: var(--blue);
  --gold:       #F5B301;
  --gold-soft:  #FFF4D6;
}
.qrl main { display: block; }

/* ---- shared shell --------------------------------------------------- */
.qrl__wrap { max-width: 640px; }
.qrl__section { padding-block: clamp(2.75rem, 8vw, 4rem); }
.qrl__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.qrl__h2 {
  font-size: clamp(1.5rem, 1.2rem + 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.qrl__p { margin-top: .85rem; color: var(--ink-2); }

/* ---- hero --------------------------------------------------------- */
.qrl-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: clamp(2.75rem, 9vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 8vw, 3.75rem);
  background:
    radial-gradient(120% 85% at 50% 0%, var(--blue-tint) 0%, transparent 60%),
    radial-gradient(90% 60% at 100% 10%, #F3F0FF 0%, transparent 55%),
    var(--paper);
}
.qrl-hero::after {
  /* soft brand glow that breathes behind the mark */
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(1.5rem, 6vw, 3rem);
  width: min(70vw, 320px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 11, 199, .16) 0%, transparent 70%);
  filter: blur(6px);
  animation: qrl-glow 6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes qrl-glow {
  0%, 100% { opacity: .55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}
.qrl-hero__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.qrl-hero__mark {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  animation: qrl-float 5s var(--ease) infinite;
}
@keyframes qrl-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.qrl-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .9rem .4rem .75rem;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.qrl-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qrl-accent);
  box-shadow: 0 0 0 0 rgba(11, 11, 199, .5);
  animation: qrl-ping 2.4s var(--ease) infinite;
}
.qrl-badge--gold .qrl-badge__dot { background: var(--gold); box-shadow: 0 0 0 0 rgba(245, 179, 1, .5); }
@keyframes qrl-ping {
  0%   { box-shadow: 0 0 0 0 rgba(11, 11, 199, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(11, 11, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 11, 199, 0); }
}
.qrl-hero__title {
  margin-top: 1.15rem;
  font-size: clamp(2rem, 1.5rem + 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.qrl-hero__lead {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 1rem + .45vw, 1.2rem);
  color: var(--ink-2);
  max-width: 32ch;
}
.qrl-hero .store-buttons { justify-content: center; margin-top: 1.75rem; }
.qrl-hero .store-note { text-align: center; }

/* ---- section divider -------------------------------------------- */
.qrl-divider {
  position: relative;
  height: 1px;
  margin-inline: auto;
  max-width: 640px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 22%, var(--line) 78%, transparent 100%);
}
.qrl-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--paper);
  border: 1px solid var(--blue-tint-2);
  border-radius: 2px;
}
.qrl-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, var(--blue) 50%, transparent);
  opacity: .0;
  animation: qrl-shimmer 5.5s ease-in-out infinite;
}
@keyframes qrl-shimmer {
  0%, 100% { opacity: 0; }
  50%      { opacity: .7; }
}

/* ---- feature trio --------------------------------------------- */
.feature-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .95rem;
  align-items: start;
  padding: 1.1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
}
.feature__ic svg { width: 22px; height: 22px; }
.feature__t { font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.feature__d { margin-top: .2rem; font-size: .93rem; color: var(--ink-2); line-height: 1.55; }

/* ---- review teaser (Spot) ------------------------------------ */
.rt {
  margin-top: 1.6rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 100% 0%, var(--gold-soft) 0%, transparent 60%),
    var(--paper);
  box-shadow: var(--shadow-md);
}
.rt__score {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.rt__num {
  font-size: clamp(2.4rem, 2rem + 3vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.rt__out { font-size: 1rem; font-weight: 700; color: var(--ink-3); }
.stars { display: inline-flex; gap: .18rem; margin-top: .55rem; }
.stars svg { width: 24px; height: 24px; }
.stars .star { fill: var(--gold); }
.stars .star--o { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.stars--twinkle .star, .stars--twinkle .star--o { animation: qrl-twinkle 3.5s var(--ease) infinite; }
.stars--twinkle svg:nth-child(2) .star,
.stars--twinkle svg:nth-child(2) .star--o { animation-delay: .18s; }
.stars--twinkle svg:nth-child(3) .star,
.stars--twinkle svg:nth-child(3) .star--o { animation-delay: .36s; }
.stars--twinkle svg:nth-child(4) .star,
.stars--twinkle svg:nth-child(4) .star--o { animation-delay: .54s; }
.stars--twinkle svg:nth-child(5) .star,
.stars--twinkle svg:nth-child(5) .star--o { animation-delay: .72s; }
@keyframes qrl-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .78; transform: scale(.94); }
}
.rt__label { margin-top: .7rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.rt__note { margin-top: .35rem; font-size: .92rem; color: var(--ink-2); }
.rt__cta { margin-top: 1.15rem; }
.rt__hand {
  margin-top: .8rem;
  font-size: .84rem;
  color: var(--ink-3);
}

/* ---- social vibe cluster (Event) --------------------------- */
.vibe {
  position: relative;
  margin: 1.6rem auto 0;
  width: min(78vw, 300px);
  aspect-ratio: 1 / .72;
}
.vibe__dot {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  animation: qrl-float 4.5s var(--ease) infinite;
}
.vibe__dot i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue) 0%, #5a5af0 100%);
  display: block;
}
.vibe__dot--1 { left: 4%;  top: 8%;  animation-delay: 0s; }
.vibe__dot--2 { right: 6%; top: 0%;  animation-delay: .6s; }
.vibe__dot--3 { left: 18%; bottom: 4%; animation-delay: 1.2s; }
.vibe__dot--4 { right: 14%; bottom: 10%; animation-delay: 1.8s; }
.vibe__core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.vibe__core img { width: 52px; height: 52px; }
.vibe__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--blue-tint-2);
  border-radius: 50%;
  animation: qrl-glow 4s var(--ease) infinite;
}

/* ---- final CTA + mini footer ------------------------------- */
.qrl-cta {
  text-align: center;
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.qrl-cta__inner { display: grid; justify-items: center; }
.qrl-cta__mark { width: 56px; height: 56px; margin-bottom: 1rem; }
.qrl-cta .store-buttons { justify-content: center; margin-top: 1.5rem; }
.qrl-cta .store-note { text-align: center; }
.qrl-foot {
  text-align: center;
  padding-block: 2rem;
  font-size: .85rem;
  color: var(--ink-3);
}
.qrl-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1rem; margin-bottom: .7rem; }
.qrl-foot__links a { color: var(--ink-3); font-weight: 600; }
.qrl-foot__links a:hover { color: var(--blue); }
