/* Reely website — single stylesheet, dark theme only, mobile-first. */

:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --surface: #14141b;
  --surface-2: #1c1c26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #a5a5b2;
  --pink: #ff1f7a;
  --pink-soft: #ff5c9a;
  --orange: #ff8a3d;
  --gradient: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
  --danger: #ff6b6b;
  --success: #3ddc97;
  --radius: 16px;
  --gutter: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-soft); text-underline-offset: 3px; }
a:hover { color: #ff86b5; }
:focus-visible { outline: 2px solid var(--pink-soft); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: var(--gutter); top: -48px; z-index: 100;
  background: var(--surface-2); color: var(--text); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: auto; }
.brand-text { width: 78px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-link { display: none; }
@media (min-width: 760px) { .site-nav .nav-link { display: inline; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px rgba(255, 31, 122, 0.3); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(255, 31, 122, 0.42); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); background: #262632; }
.site-nav .btn { color: #fff; min-height: 38px; padding: 0 16px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(45% 40% at 50% 30%, rgba(255, 31, 122, 0.26), transparent 70%),
    radial-gradient(30% 35% at 78% 12%, rgba(255, 138, 61, 0.14), transparent 70%),
    radial-gradient(30% 35% at 22% 70%, rgba(255, 138, 61, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 104px; } }
.hero-logo { width: 96px; height: auto; margin: 0 auto 20px; filter: drop-shadow(0 12px 32px rgba(255, 31, 122, 0.35)); }
@media (min-width: 900px) { .hero-logo { width: 128px; } }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 31, 122, 0.12); color: var(--pink-soft);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
}
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.8rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 16em; margin: 0 0 18px; }
.gradient-text {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .hero-actions { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gradient); }

/* ---- Sections ---- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 30%, transparent); }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255, 31, 122, 0.12); color: var(--pink-soft);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; margin: 0 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }

/* ---- Download ---- */
.download-card {
  position: relative; overflow: hidden; border-radius: 24px; padding: 40px 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
}
.download-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255, 31, 122, 0.22), transparent 70%);
  pointer-events: none;
}
.download-card > * { position: relative; }
.download-card > picture img { width: 72px; height: auto; margin: 0 auto 16px; }
.download-card h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: 0 0 10px; line-height: 1.2; }
.download-card p { color: var(--muted); margin: 0 auto 28px; max-width: 32em; }
.store-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-width: 210px; min-height: 60px; padding: 8px 20px;
  border-radius: 14px; background: #000; border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; text-decoration: none; text-align: left;
}
.store-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.store-btn .store-icon { width: 28px; height: 28px; object-fit: contain; flex: none; }
.store-btn small { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.store-btn strong { display: block; font-size: 1.1rem; line-height: 1.25; }
.store-btn.is-soon { cursor: default; }
.store-btn.is-soon small { color: var(--pink-soft); font-weight: 600; }

/* ---- Partner CTA (home) ---- */
.partner-cta {
  display: grid; gap: 24px; align-items: center; padding: 32px 24px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 31, 122, 0.14), rgba(255, 138, 61, 0.08)), var(--surface);
  border: 1px solid var(--border);
}
.partner-cta h2 { font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.25; margin: 0 0 10px; }
.partner-cta p:not(.eyebrow) { color: var(--muted); margin: 0; max-width: 40em; }
.partner-cta .btn { justify-self: start; min-height: 48px; }
@media (min-width: 760px) {
  .partner-cta { grid-template-columns: 1fr auto; padding: 40px; }
  .partner-cta .btn { justify-self: end; }
}

/* ---- Partners page ---- */
.page-hero { position: relative; overflow: hidden; padding: 32px 0 56px; }
.page-hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 130%;
  background: radial-gradient(40% 45% at 30% 35%, rgba(255, 31, 122, 0.2), transparent 70%),
    radial-gradient(30% 35% at 80% 20%, rgba(255, 138, 61, 0.12), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 16em; }
@media (min-width: 900px) { .page-hero { padding: 48px 0 88px; } }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 0.88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

.steps-title { font-size: 1.3rem; margin: 48px 0 16px; }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient); color: #fff; font-weight: 700;
}
.steps h4 { margin: 4px 0 4px; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.form-card {
  max-width: 720px; margin: 0 auto; padding: 28px 20px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
}
@media (min-width: 640px) { .form-card { padding: 40px; } }
.form-head h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); line-height: 1.2; margin: 0 0 8px; }
.form-head p { color: var(--muted); margin: 0 0 24px; }
.req { color: var(--pink-soft); }
.optional { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.form-alert { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; }
.partner-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; }
.field-hint { margin: -2px 0 0; color: var(--muted); font-size: 0.88rem; }
.partner-form input, .partner-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.16);
  font: inherit; font-size: 1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.partner-form textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.partner-form input::placeholder, .partner-form textarea::placeholder { color: #75757f; }
.partner-form input:hover, .partner-form textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.partner-form input:focus, .partner-form textarea:focus {
  outline: none; border-color: var(--pink-soft); box-shadow: 0 0 0 3px rgba(255, 92, 154, 0.25);
}
.partner-form [aria-invalid="true"] { border-color: var(--danger); }
.partner-form [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.25); }
.field-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.field-error { margin: 0; color: var(--danger); font-size: 0.9rem; }
.char-count { margin-left: auto; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.char-count.is-over { color: var(--danger); }
/* Honeypot: off-screen for people, still present for bots that fill every input. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.captcha-wrap { min-height: 78px; }
/* The reCAPTCHA checkbox is a fixed 304px iframe; shrink it on very narrow screens. */
@media (max-width: 359px) { .g-recaptcha { transform: scale(0.88); transform-origin: 0 0; } }
.form-consent { margin: 0; color: var(--muted); font-size: 0.9rem; }
.btn-submit { width: 100%; min-height: 52px; font-size: 1rem; border: 0; cursor: pointer; font-family: inherit; }
@media (min-width: 640px) { .btn-submit { width: auto; min-width: 220px; justify-self: start; } }
.btn-submit:disabled { cursor: progress; opacity: 0.75; transform: none; }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite;
}
.btn-submit.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
.form-status { margin: 0; min-height: 1.5em; font-size: 0.95rem; color: var(--muted); }
.form-status:empty { min-height: 0; }
.form-status.is-error { color: var(--danger); }
.form-success { text-align: center; padding: 16px 0 8px; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.4rem; margin: 0 0 8px; }
.form-success p { color: var(--muted); margin: 0 auto 24px; max-width: 32em; }
.success-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(61, 220, 151, 0.14); color: var(--success);
}
.success-icon svg { width: 28px; height: 28px; }

/* ---- Scroll reveal (assets/site.js adds .js-reveal to <html> only when motion is allowed) ---- */
.js-reveal [data-reveal] {
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media print {
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 64px; overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.25; margin: 0 0 6px; }
.legal h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.legal p, .legal li { margin: 8px 0; color: #dcdce3; }
.legal ul, .legal ol { padding-left: 22px; }
.legal .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.legal .card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 14px 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--border); border-radius: 14px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.93rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal th { background: var(--surface-2); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }

/* ---- 404 ---- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.not-found img { width: 88px; height: auto; margin: 0 auto 20px; }
.not-found h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0 0 10px; }
.not-found p { color: var(--muted); margin: 0 0 28px; }
.not-found .hero-actions { justify-content: center; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 32px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { width: 78px; height: auto; margin-bottom: 12px; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 6px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.85rem; }
