/* ===========================================================================
   Re:Click — landing page
   One dark theme, deliberately: every screenshot on the page is a dark window,
   and a light page would frame them in a border of glare.
   =========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces, darkest first. */
  --bg:            #0a0b0d;
  --bg-raised:     #121418;
  --bg-card:       #15181d;
  --bg-card-hover: #1a1e24;
  --line:          #24282f;
  --line-soft:     #1c2026;

  /* Text */
  --text:          #f2f4f7;
  --text-muted:    #a4acb9;
  --text-dim:      #757e8c;

  /* Brand — the app icon's red on a dark surface (AppIconArt.Brand). */
  --red:           #ff3d45;
  --red-deep:      #e01824;
  --red-bright:    #ff6b70;
  --red-glow:      rgba(255, 61, 69, 0.18);


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

  --shadow-card:   0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.28);
  --shadow-shot:   0 24px 60px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.4);

  --pad:           clamp(20px, 5vw, 32px);
  --section-gap:   clamp(60px, 8vw, 104px);

  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI",
          system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", ui-monospace, "SF Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); letter-spacing: -0.028em; }
h3 { font-size: 1.12rem; letter-spacing: -0.012em; }
p  { margin: 0; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px;
  border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

/* ── Layout ───────────────────────────────────────────────────────────── */

.wrap { width: min(1120px, 100% - (var(--pad) * 2)); margin-inline: auto; }
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(44px, 6vw, 68px); }


.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red-bright);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px var(--red-glow);
}

.lede { color: var(--text-muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 60ch; }

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-block: 14px 16px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit; font-weight: 650; font-size: 1rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 22px rgba(255, 61, 69, .28);
}
.btn--primary:hover { background: var(--red-bright); box-shadow: 0 8px 28px rgba(255, 61, 69, .38); }

.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #343a44; }

.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn svg { flex: none; }

/* ── Header ───────────────────────────────────────────────────────────── */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 13, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.header[data-stuck="true"] { border-bottom-color: var(--line-soft); background: rgba(10, 11, 13, .9); }

.header__bar {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em;
  text-decoration: none; margin-right: auto;
}
.brand img { width: 26px; height: 26px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px; border-radius: 10px;
  color: var(--text-muted); text-decoration: none;
  font-size: .95rem; font-weight: 550;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }

@media (max-width: 820px) { .nav { display: none; } }
@media (max-width: 420px) { .header__cta .btn { padding: 9px 14px; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { position: relative; padding-block: clamp(56px, 8vw, 96px) 0; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 780px; z-index: 0;
  background:
    radial-gradient(58% 52% at 50% 24%, rgba(224, 24, 36, .22), transparent 68%),
    radial-gradient(38% 34% at 78% 8%,  rgba(255, 61, 69, .12), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 60% at 50% 26%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 26%, #000 30%, transparent 78%);
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { margin-block: 20px 22px; }
.hero h1 .accent {
  background: linear-gradient(102deg, var(--red-bright), var(--red) 46%, var(--red-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-inline: auto; }
/* The headline's hard break is a balance for wide lines; narrow screens break
   it themselves, and keeping it there strands "you" on a line of its own. */
@media (max-width: 700px) { .hero h1 br { display: none; } }

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 34px;
}
.hero__meta {
  margin-top: 20px; color: var(--text-dim); font-size: .88rem;
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta span + span::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: .55; margin-right: 7px;
}

.hero__shot {
  position: relative; z-index: 1;
  margin: clamp(44px, 6vw, 68px) auto 0;
  max-width: 760px;
}
.hero__shot img { filter: drop-shadow(var(--shadow-shot)); border-radius: 10px; }
.hero__shot::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -34px; height: 90px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255,61,69,.16), transparent 72%);
  filter: blur(6px); z-index: -1;
}

/* ── Stat bar ─────────────────────────────────────────────────────────── */

.stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stats > div { background: var(--bg-raised); padding: 26px 22px; text-align: center; }
.stats dt { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.03em; }
.stats dd { margin: 6px 0 0; color: var(--text-dim); font-size: .86rem; }
.stats .unit { color: var(--red); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Alternating feature rows ─────────────────────────────────────────── */

.split {
  display: grid; gap: clamp(36px, 6vw, 72px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
}
.split--flip .split__text { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__text { order: 0; }
}

.split__text h2 { margin-block: 14px 18px; }
.split__text .lede { margin-bottom: 26px; }

.checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 13px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--text-muted); }
.checks svg { margin-top: 5px; color: var(--red); }
.checks b { color: var(--text); font-weight: 650; }

.shot {
  position: relative;
  border-radius: var(--radius);
}
.shot img { filter: drop-shadow(var(--shadow-shot)); border-radius: 8px; }
.shot--stack { display: grid; gap: 18px; }
.shot--inset { max-width: 78%; margin-left: auto; }


/* ── Feature cards ────────────────────────────────────────────────────── */

.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--line); transform: translateY(-2px); }
.card__icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255,61,69,.2), rgba(255,61,69,.06));
  border: 1px solid rgba(255,61,69,.24);
  color: var(--red-bright);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .95rem; }

kbd {
  font-family: var(--mono); font-size: .82em;
  background: #1f242b; border: 1px solid #2e343d; border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 6px; color: var(--text);
  white-space: nowrap;
}

/* ── Themes ───────────────────────────────────────────────────────────── */

.themes__tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.theme-tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  color: var(--text-muted); font: inherit; font-size: .92rem; font-weight: 600;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.theme-tab .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--swatch, #666);
  box-shadow: 0 0 0 3px rgba(255,255,255,.045);
}
.theme-tab:hover { color: var(--text); border-color: var(--line); }
.theme-tab[aria-selected="true"] {
  color: var(--text); background: var(--bg-card-hover);
  border-color: color-mix(in srgb, var(--swatch) 55%, transparent);
}

.themes__stage {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 110% at 50% 0%, color-mix(in srgb, var(--swatch) 13%, transparent), transparent 70%),
    var(--bg-raised);
  padding: clamp(26px, 5vw, 52px);
  display: grid; place-items: center;
  transition: background .35s ease;
  min-height: 260px;
}
.themes__stage img { max-width: 660px; filter: drop-shadow(0 18px 44px rgba(0,0,0,.55)); border-radius: 8px; }
.themes__stage img[hidden] { display: none; }
.themes__note { margin-top: 16px; color: var(--text-dim); font-size: .88rem; text-align: center; }

/* ── Pricing ──────────────────────────────────────────────────────────── */

.plans {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}
.plan {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 30px 28px 32px;
  box-shadow: var(--shadow-card);
}
.plan--pro {
  border-color: rgba(255,61,69,.34);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,61,69,.09), transparent 62%),
    var(--bg-card);
  position: relative;
}
.plan__badge {
  position: absolute; top: -11px; left: 28px;
  background: var(--red); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .09em;
  padding: 4px 11px; border-radius: var(--radius-pill);
}
.plan h3 { font-size: 1.3rem; }
.plan__price { margin: 10px 0 4px; font-size: 1.05rem; font-weight: 650; color: var(--text); }
.plan__note  { color: var(--text-dim); font-size: .86rem; }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; color: var(--text-muted); font-size: .95rem; }
.plan li svg { margin-top: 4px; color: var(--red); }
.plan .btn { width: 100%; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .18s ease;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 19px 22px; font-weight: 650; font-size: 1.02rem;
  display: flex; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--red-bright); }
.faq p { padding: 0 22px 22px; color: var(--text-muted); font-size: .96rem; max-width: 68ch; }
.faq a { color: var(--red-bright); }

/* ── Closing CTA ──────────────────────────────────────────────────────── */

.cta {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,61,69,.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(78% 120% at 50% 118%, rgba(224,24,36,.26), transparent 66%),
    var(--bg-raised);
  padding: clamp(44px, 7vw, 76px) var(--pad);
  text-align: center;
}
.cta h2 { margin-bottom: 16px; }
.cta .lede { margin: 0 auto 32px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line-soft); padding-block: 52px 44px; }
.footer__top {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-start;
}
.footer__blurb { max-width: 34ch; color: var(--text-dim); font-size: .92rem; margin-top: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__links h4 {
  margin: 0 0 12px; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); font-weight: 700;
}
.footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; min-width: 130px; }
.footer__links a { color: var(--text-muted); text-decoration: none; font-size: .93rem; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }
.footer__bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--text-dim); font-size: .86rem;
}
.footer__credit { color: var(--text-muted); }

/* ── Legal pages ──────────────────────────────────────────────────────── */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin-top: 44px; margin-bottom: 14px; }
.prose h1 + p { margin-top: 16px; }
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin-top: 14px; }
.prose ul { padding-left: 22px; display: grid; gap: 10px; margin-top: 14px; }
.prose a { color: var(--red-bright); }
.prose .updated { color: var(--text-dim); font-size: .88rem; }

/* ── Reveal on scroll ─────────────────────────────────────────────────── */

/* Hidden only once the script has claimed the page: without JS, or if the
   observer never fires, every section renders as normal static content. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  .btn:active { transform: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
