/* IRCBouncer landing page. Same visual language as the app (web/src/index.css): Inter, black and
   white, neutral greys, rounded surfaces. Light and dark follow the system (prefers-color-scheme). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-3100e775e8.woff2") format("woff2-variations"), url("/assets/fonts/inter-latin-wght-3100e775e8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f5f5f5;        /* neutral-100, the app's page */
  --surface: #ffffff;
  --ink: #000000;       /* marks, buttons, the bouncer's track */
  --text: #171717;      /* neutral-900 */
  --muted: #595959;     /* ≥ 6:1 on --bg */
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --you: #8a8a8a;       /* your sessions on the day chart (≥ 3:1 on --surface) */
  --on-ink: #ffffff;
  --mention: #b91c1c;
  --ok: #15803d;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 24px 48px -24px rgb(0 0 0 / 0.18);
  --r-lg: 1.25rem;
  --r-md: 0.875rem;
  --r-sm: 0.625rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;      /* neutral-950 */
    --surface: #171717; /* neutral-900 */
    --ink: #ffffff;
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --line: #262626;
    --line-strong: #404040;
    --you: #737373;
    --on-ink: #000000;
    --mention: #f87171;
    --ok: #4ade80;
    --focus: #60a5fa;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 48px -24px rgb(0 0 0 / 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; border-radius: var(--r-sm);
  background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1rem; border-radius: var(--r-sm);
  font-size: 0.9375rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-lg { min-height: 3.25rem; padding: 0 1.4rem; font-size: 1rem; border-radius: 0.75rem; }
.btn-solid { background: var(--ink); color: var(--on-ink); }
.btn-solid:hover { background: #262626; }
.btn-line { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-quiet { color: var(--text); }
.btn-quiet:hover { background: var(--line); }
@media (prefers-color-scheme: dark) {
  .btn-solid:hover { background: #d4d4d4; }
}

/* ---------- Header ---------- */
.top { padding-block: 1rem; }
.top-in { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; border-radius: var(--r-sm); }
.mark {
  display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: var(--ink); color: var(--on-ink);
}
.mark-ic { width: 1.25rem; height: 1.25rem; stroke-width: 2.2; }
.brand-name { font-size: 0.9375rem; font-weight: 550; line-height: 1.15; }
.sections { margin-left: auto; }
.sections ul { display: flex; gap: 0.25rem; }
.sections a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.6rem;
  border-radius: var(--r-sm); font-size: 0.9375rem; color: var(--muted); text-decoration: none;
}
.sections a:hover { color: var(--text); background: var(--line); }
.hash { margin-right: 0.15rem; opacity: 0.7; }
.top-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.sections + .top-actions { margin-left: 0.5rem; }
.lang-link {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.6rem;
  font-size: 0.875rem; color: var(--muted); border-radius: var(--r-sm);
}
.lang-link:hover { color: var(--text); }
@media (max-width: 1000px) { .sections { display: none; } }
/* Narrow phones: "Entrar" is also right under the hero buttons. */
@media (max-width: 420px) { .top-actions .btn-quiet { display: none; } }
@media (max-width: 560px) {
  .top-in { gap: 0.5rem; }
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top-actions .btn-quiet { padding: 0 0.6rem; }
  .top-actions .btn-solid { padding: 0 0.8rem; }
}

/* ---------- Type ---------- */
h1 {
  font-size: clamp(2.75rem, 1.2rem + 6.4vw, 6.25rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h3 { font-size: 1.125rem; font-weight: 620; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 36rem; text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem) 0; }
.hero-text { display: grid; gap: 1.75rem; }
.hero h1 { max-width: 11ch; }
.hero-lead { color: var(--text); max-width: 38rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-note { font-size: 0.9375rem; color: var(--muted); }
.hero-note a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .hero-text { grid-template-columns: 1.15fr 1fr; column-gap: 4rem; align-items: end; }
  .hero h1 { grid-row: 1 / 4; align-self: end; }
}

.stage { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.shot-main img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.shot-phone { display: none; }
@media (min-width: 900px) {
  .stage { padding-right: 9%; }
  .shot-phone {
    display: block; position: absolute; right: 0; bottom: -3rem; width: 21%;
  }
  .shot-phone img {
    border-radius: 2rem; border: 7px solid var(--ink);
    box-shadow: var(--shadow); background: var(--surface);
  }
}
@media (max-width: 640px) {
  .shot-main img { width: min(100%, 19rem); margin-inline: auto; border-radius: 2rem; border: 7px solid var(--ink); }
}

/* ---------- The day: you vs. the bouncer ---------- */
.day { padding-block: clamp(5rem, 11vw, 9rem) clamp(4rem, 8vw, 6rem); }
.day-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) {
  .day-head { grid-template-columns: 1.15fr 1fr; column-gap: 4rem; align-items: end; }
}
.tracks {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tracks-plot {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
  row-gap: 0.5rem;
  align-items: end;
}
.track-name { font-size: 0.9375rem; font-weight: 600; padding-bottom: 0.45rem; white-space: nowrap; }
.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(48, minmax(0, 1fr));
  grid-template-rows: 1.5rem 2rem;
}
.track::before { /* the empty 24 hours */
  content: ""; grid-column: 1 / -1; grid-row: 2;
  border-radius: 0.5rem; background: var(--bg); border: 1px dashed var(--line-strong);
}
.seg { grid-row: 1 / 3; display: grid; grid-template-rows: 1.5rem 2rem; min-width: 0; }
.seg::after { content: ""; grid-row: 2; border-radius: 0.5rem; background: var(--you); }
.seg-l { grid-row: 1; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; padding-left: 0.1rem; }
.s-train { grid-column: 16 / 19; }
.s-work { grid-column: 20 / 37; }
.s-eve { grid-column: 43 / 48; }
.s-all { grid-column: 1 / -1; }
.track-bnc .seg::after { background: var(--ink); }
.dot {
  grid-row: 2; align-self: center; justify-self: center;
  width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--on-ink); opacity: 0.85;
}
.d1 { grid-column: 2; } .d2 { grid-column: 4; } .d3 { grid-column: 7; } .d4 { grid-column: 11; }
.d5 { grid-column: 13; } .d6 { grid-column: 38; } .d7 { grid-column: 40; } .d8 { grid-column: 42; }
.dot-mention { width: 0.8rem; height: 0.8rem; background: var(--mention); opacity: 1; box-shadow: 0 0 0 3px var(--ink); }
.flag {
  grid-row: 1; grid-column: 7 / 30; justify-self: start; white-space: nowrap;
  font-size: 0.8125rem; font-weight: 600; color: var(--mention); margin-left: -0.15rem;
}
.hours {
  grid-column: 2; display: flex; justify-content: space-between;
  font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.night { display: grid; gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); counter-reset: none; }
.night li { display: grid; gap: 0.35rem; align-content: start; }
.night-time { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.night p { color: var(--muted); max-width: 30rem; }
@media (min-width: 900px) {
  .night { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
}
@media (max-width: 560px) {
  .track-name { font-size: 0.8125rem; }
  .seg-l { font-size: 0.75rem; }
  .s-train .seg-l { display: none; } /* too narrow to label on a phone */
  .hours span:nth-child(even) { visibility: hidden; }
}

/* The one moment of motion: the bouncer's line runs across the day as it scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .track-bnc .s-all::after {
      transform-origin: left center;
      animation: run linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 35%;
    }
    .track-bnc .dot, .track-bnc .flag {
      animation: appear linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 35%;
    }
  }
}
@keyframes run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes appear { 0%, 70% { opacity: 0; } to { opacity: 1; } }

/* ---------- Section heads ---------- */
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 1.15fr 1fr; column-gap: 4rem; align-items: end; }
}

/* ---------- Features ---------- */
.features { padding-block: clamp(4rem, 8vw, 7rem); }
.fgroup {
  display: grid; gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line-strong);
}
.fgroup h3 { font-size: 1.25rem; }
.flist { display: grid; gap: 1.75rem 2.5rem; }
.fitem { display: grid; gap: 0.3rem; }
.fitem dt { display: flex; align-items: center; gap: 0.65rem; font-weight: 620; }
.fitem dd { color: var(--muted); padding-left: 2.15rem; max-width: 26rem; }
.ic { width: 1.5rem; height: 1.5rem; flex: none; }
@media (min-width: 720px) { .flist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .fgroup { grid-template-columns: 1fr 2fr; column-gap: 4rem; padding-block: 2.5rem; } }

/* ---------- How it works ---------- */
.how { padding-block: clamp(4rem, 8vw, 7rem); background: var(--surface); border-block: 1px solid var(--line); }
.how h2 { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.steps { display: grid; gap: 2.5rem; }
.steps li { display: grid; gap: 0.6rem; align-content: start; }
.step-n {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 0.6rem;
  border-radius: 0.6rem; background: var(--ink); color: var(--on-ink);
  font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.steps p { color: var(--muted); max-width: 22rem; }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .steps li { position: relative; }
  .steps li:not(:last-child)::after { /* the arrow of time between steps */
    content: ""; position: absolute; top: 1.375rem; left: 3.75rem; right: -2rem;
    border-top: 1px dashed var(--line-strong);
  }
}

/* ---------- Plans ---------- */
.plans { padding-block: clamp(4rem, 8vw, 7rem); }
.plan-grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.plan {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
}
.plan-free { background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.plan-pro { border: 1.5px dashed var(--line-strong); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.plan h3 { font-size: 1.75rem; font-weight: 680; letter-spacing: -0.03em; }
.pill {
  display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 0.7rem;
  border-radius: 999px; font-size: 0.8125rem; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.pill-on { color: var(--ok); border-color: currentColor; }
.plan-list { display: grid; gap: 0.75rem; }
.plan-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.ic-s { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.15rem; }
.plan-free .ic-s { color: var(--ok); }
.plan-pro .ic-s { color: var(--muted); }
.plan-cta { margin-top: auto; align-self: flex-start; }
.plan-note { margin-top: auto; color: var(--muted); font-size: 0.9375rem; }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(4rem, 8vw, 7rem); }
.faq-in { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .faq-in { grid-template-columns: 1fr 2fr; column-gap: 4rem; align-items: start; }
  .faq h2 { position: sticky; top: 2rem; }
}
.qs { border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line-strong); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem; padding-block: 1rem;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 0.75rem; height: 0.75rem; margin-right: 0.35rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-0.2rem) rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(0.15rem) rotate(-135deg); }
details p { padding-bottom: 1.5rem; color: var(--muted); max-width: 40rem; }

/* ---------- Final call ---------- */
.final { padding-block: 0 clamp(4rem, 8vw, 6rem); }
.final-in {
  display: grid; justify-items: start; gap: 1.25rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: calc(var(--r-lg) + 0.5rem);
  background: var(--ink); color: var(--on-ink);
}
.final-mark {
  display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1rem;
  background: var(--on-ink); color: var(--ink); margin-bottom: 0.5rem;
}
.final-ic { width: 2.25rem; height: 2.25rem; stroke-width: 2.2; }
.final h2 { max-width: 16ch; }
.final p { font-size: 1.125rem; max-width: 34rem; opacity: 0.8; }
.final .ctas { margin-top: 0.75rem; }
.btn-inv { background: var(--on-ink); color: var(--ink); }
.btn-inv:hover { opacity: 0.9; }
.btn-inv-line { border-color: currentColor; color: var(--on-ink); }
.btn-inv-line:hover { background: rgb(128 128 128 / 0.2); }
.final :focus-visible { outline-color: var(--on-ink); }

/* ---------- Footer ---------- */
.foot { padding-block: 2rem 2.5rem; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: 0.9375rem; }
.foot-links a:hover { color: var(--text); }
.foot-copy { margin-left: auto; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 560px) { .foot-copy { margin-left: 0; width: 100%; } }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(4rem, 12vw, 9rem); }
.nf-in { display: grid; gap: 1.5rem; justify-items: start; }
.nf-line { font-size: 1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nf-num { display: inline-block; padding: 0.1rem 0.5rem; margin-right: 0.4rem; border-radius: 0.4rem; background: var(--ink); color: var(--on-ink); font-weight: 700; }
.nf h1 { max-width: 14ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
