/* ===========================================================================
   upptoapp.com — shared site styles.
   Static build of the Claude Design project "UpTo Event Discovery Website".
   Tokens live in assets/tokens/*.css; everything here is the site's own chrome
   (nav, footer, buttons, marquee, reveal motion) so pages stay markup-only.
   =========================================================================== */

@import "./tokens/fonts.css";
@import "./tokens/colors.css";
@import "./tokens/typography.css";
@import "./tokens/layout.css";

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

html, body {
  margin: 0;
  background: var(--bg-page);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-strong);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--upto-red); text-decoration: none; }
a:hover { color: var(--red-600); }
::selection { background: var(--red-200); }
img { max-width: 100%; }

/* Keyboard users must always see where they are. */
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,246,0);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-nav.is-stuck {
  background: rgba(250,248,246,0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-hairline);
}
.site-nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: padding .3s ease;
}
.site-nav.is-stuck .site-nav__inner { padding: 12px 32px; }
.site-nav__brand { display: inline-flex; align-items: center; line-height: 0; }
/* The lockup is 2.08:1 and the flame eats ~85% of its height, so the "UpTo"
   wordmark only reads at ~53% of whatever height we set. 54px puts the word
   itself at ~29px, which is what actually registers as the brand. */
.site-nav__brand img { height: 54px; width: auto; display: block; }
.site-nav__links { display: flex; align-items: center; gap: 34px; }
.site-nav__links a:not(.btn) { color: var(--text-body); font-weight: 500; font-size: 16px; }
.site-nav__links a:not(.btn):hover { color: var(--upto-red); }

/* The links collapse before they can crowd the logo. */
@media (max-width: 860px) {
  .site-nav__inner { padding: 14px 20px; }
  .site-nav.is-stuck .site-nav__inner { padding: 10px 20px; }
  .site-nav__brand img { height: 42px; }
  .site-nav__links { gap: 18px; }
  .site-nav__links a:not(.btn) { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 34px; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--upto-red); color: var(--white);
  font-family: var(--font-body); font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
  border: 0; cursor: pointer;
  transition: transform .3s cubic-bezier(.5,0,.25,1), box-shadow .3s ease;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--upto-dark);
  transform: translateY(101%); transition: transform .42s cubic-bezier(.5,0,.25,1); z-index: 0;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(48,45,43,0.20); }
.btn--sm { padding: 12px 24px; font-size: 16px; }
.btn--md { padding: 16px 32px; font-size: 17px; }

.arrow { transition: transform .3s cubic-bezier(.5,0,.25,1); }
.cta-card:hover .arrow, .btn:hover .arrow { transform: translateX(7px); }

/* ── Cards ────────────────────────────────────────────────────────────── */
.lift { transition: transform .38s cubic-bezier(.5,0,.25,1), box-shadow .38s ease; }
.lift:hover { transform: translateY(-7px); box-shadow: 0 18px 44px rgba(48,45,43,0.15); }

.card {
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-md);
}

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--upto-red);
}

/* ── Marquee (organizer names) ────────────────────────────────────────── */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

.marquee-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 14px; }
.marquee-mask:hover .marquee-track { animation-play-state: paused; }
.mq1 { animation: marquee 52s linear infinite; }
.mq2 { animation: marqueeRev 60s linear infinite; }
.mq3 { animation: marquee 46s linear infinite; }
.org-chip {
  flex: none; white-space: nowrap; padding: 13px 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline); background: var(--surface-card);
  box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 500;
  font-size: 16px; color: var(--upto-dark);
}

/* ── Reveal on scroll ─────────────────────────────────────────────────── */
/* Hidden only once JS confirms it can reveal them again — a visitor with no
   JavaScript (or a crawler) must still see every word on the page. */
.js [data-reveal] > * { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in > * {
  opacity: 1; transform: translateY(0);
  transition: opacity .9s cubic-bezier(.22,.61,.16,1), transform .9s cubic-bezier(.22,.61,.16,1);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--upto-dark); color: var(--bg-page); }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 72px 32px 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.site-footer__brand { flex: 1 1 280px; min-width: 240px; }
.site-footer__brand img { height: 58px; width: auto; display: block; }
.site-footer__blurb {
  margin: 22px 0 0; max-width: 30ch; font-weight: 300; font-size: 16px;
  line-height: 1.5; color: rgba(250,248,246,0.62);
}
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.site-footer__col { display: flex; flex-direction: column; gap: 14px; }
.site-footer__col-label {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; color: rgba(250,248,246,0.5);
}
.site-footer__col a { color: var(--bg-page); font-weight: 300; font-size: 16px; }
.site-footer__col a:hover { color: var(--red-400); }
.site-footer__legal {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(250,248,246,0.16);
  font-weight: 300; font-size: 14px; color: rgba(250,248,246,0.55);
}
.site-footer__legal a { color: rgba(250,248,246,0.8); }
.site-footer__legal a:hover { color: var(--red-400); }

/* ── Long-form document pages (legal, help) ───────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 32px 96px; }
.prose h1 {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.03em;
  color: var(--upto-red); text-wrap: balance;
}
.prose h2 {
  margin: 2.4rem 0 0.8rem; font-family: var(--font-display); font-weight: 600;
  font-size: 26px; letter-spacing: -0.02em; color: var(--upto-dark); text-wrap: balance;
}
.prose h3 {
  margin: 1.8rem 0 0.5rem; font-family: var(--font-display); font-weight: 500;
  font-size: 19px; letter-spacing: -0.01em; color: var(--upto-dark); text-wrap: balance;
}
.prose p, .prose li { font-weight: 300; font-size: 17px; line-height: 1.6; color: var(--text-body); }
.prose ul, .prose ol { margin: 0.6rem 0 0.6rem 1.3rem; }
.prose li { margin: 0.35rem 0; }
.prose .doc-meta { color: var(--text-muted); font-size: 15px; margin: 0 0 2rem; }
.prose hr { border: 0; border-top: 1px solid var(--border-hairline); margin: 2.4rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-hairline); }
.prose th { font-weight: 600; color: var(--upto-dark); }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .prose { padding: 36px 20px 72px; }
  .site-footer__inner { padding: 56px 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] > * { opacity: 1; transform: none; }
}

/* ── FAQ (home + organizers) ──────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
  letter-spacing: -0.01em; color: var(--upto-dark);
}
.faq summary::-webkit-details-marker { display: none; }
/* A red plus that becomes an x when the answer is open. */
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; color: var(--upto-red);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform .3s cubic-bezier(.5,0,.25,1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a {
  margin: 0; padding: 0 24px 22px; max-width: 62ch;
  font-weight: 300; font-size: 16px; line-height: 1.55; color: var(--text-body);
}
.faq .faq__a a { font-weight: 500; }
@media (max-width: 640px) {
  .faq summary { padding: 17px 18px; font-size: 17px; }
  .faq .faq__a { padding: 0 18px 18px; }
}

/* ── App-store download badges (home #get-app) ──────────────────────────── */
.dl { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
/* Both chips come straight from the app. Shared shape, different meaning. */
.dl__soon, .chip-free {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  line-height: 1.35; border-radius: 999px;
}
/* "Free", exactly as the Discover card draws it: green fill, white label. */
.chip-free {
  font-size: 12px; letter-spacing: .01em;
  color: #fff; background: #2F9E6B; padding: 4px 11px;
}
/* "Coming soon" borrows the status-chip recipe instead: brand red on blush,
   uppercase. Green here would read as "free", which is a different idea. */
.dl__soon {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--upto-red); background: #FBE3DE; padding: 4px 10px;
}
.dl__badges { display: flex; flex-wrap: wrap; gap: 12px; }

/* "Free" chip + the two platform marks, next to the hero CTA. */
.avail { display: inline-flex; align-items: center; gap: 12px; }
.avail__os { display: inline-flex; align-items: center; gap: 10px; }
.avail__os svg { width: 21px; height: 21px; fill: var(--text-muted); display: block; }
/* Apple's and Google's official badge artwork. Their trademark guidelines
   forbid redrawing or restyling them, so they go in as-is and we only set
   the height, letting each keep its own aspect ratio. */
.dl-badge { display: inline-block; line-height: 0; text-decoration: none;
  transition: transform .2s ease, opacity .2s ease; }
.dl-badge img { height: 46px; width: auto; display: block; }
/* Before launch the badges are not links yet, but they stay at full strength:
   fading them made the artwork look washed out and broken rather than pending.
   The "coming soon" chip above is what says they are not live. */
.dl[data-live="false"] .dl-badge { pointer-events: none; }
/* Mismo trato para los botones de invitacion/perfil: sin app publicada no
   llevan a ningun sitio, en vez de devolverte a la home de la que vienes. */
[data-dl][data-live="false"] .store-btn { pointer-events: none; opacity: .55; }
[data-dl][data-live="false"] .store-row__soon { display: block; }
[data-dl][data-live="true"] .store-row__soon { display: none; }
.dl[data-live="true"] .dl__soon { display: none; }
/* Interruptor POR TIENDA: una tienda puede estar publicada y la otra aun en
   revision. El badge que no esta vivo se queda atenuado y no clicable, aunque
   su contenedor ya sea data-live="true". */
.dl-badge[data-live="false"],
.store-btn[data-live="false"] { pointer-events: none; opacity: .45; filter: grayscale(1); }

.dl[data-live="true"] .dl-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
