/*
 * Fulbacho website: the app's "Noche de estadio" look (src/presentation/theme).
 * Always dark, like the app. Plain CSS, no build step, no JavaScript.
 */

@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/BarlowCondensed_700Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/BarlowCondensed_800ExtraBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Barlow_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Barlow_500Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Barlow_600SemiBold.ttf') format('truetype');
}

:root {
  color-scheme: dark;
  --background: #081f17;
  --surface: #102e23;
  --surface-border: rgba(238, 243, 236, 0.1);
  --border-strong: rgba(238, 243, 236, 0.16);
  --accent: #17e88f;
  --accent-pressed: #12c77a;
  --on-accent: #06170f;
  --accent-tint: rgba(23, 232, 143, 0.14);
  --text-primary: #eef3ec;
  --text-secondary: #a9bbb0;
  --text-muted: #7f948a;
  --pitch-stripe: #0f3a2b;
  --pitch-stripe-alt: #134633;
  --pitch-line: rgba(238, 243, 236, 0.35);
  --team-orange: #ff7a1a;
  --team-white: #f1efe6;
  --gold: #f4c95d;
  --gold-light: #ffe29a;
  --gold-deep: #d69e35;
  --on-gold: #2a1b03;
  --condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --max: 1120px;
  --gutter: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 10px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(8, 31, 23, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font: 800 26px/1 var(--condensed);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.brand img {
  width: 30px;
  height: 30px;
}

/* The rest of the app's name, after "Fulbacho". */
.brand-tagline {
  color: var(--text-secondary);
  font-weight: 700;
}

.header-badge {
  flex-shrink: 0;
  line-height: 0;
  border-radius: 8px;
}
.header-badge img {
  width: auto;
  height: 42px;
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  margin: 0 0 12px;
  font: 700 15px/1 var(--condensed);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.5px;
}

h2 {
  font-size: clamp(38px, 6vw, 58px);
}

h3 {
  font-size: 26px;
  line-height: 1.05;
}

.accent {
  color: var(--accent);
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head p {
  margin: 16px 0 0;
  font-size: 19px;
  color: var(--text-secondary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
}

.play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
}
.play-badge img {
  width: 200px;
  height: auto;
}

/* The phone captures: the screen alone, without status or navigation bar. */
.phone {
  aspect-ratio: 1 / 2;
  border-radius: 30px;
  border: 2px solid rgba(238, 243, 236, 0.14);
  overflow: hidden;
  background: var(--background);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 0 8px rgba(8, 31, 23, 0.6);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  background:
    linear-gradient(90deg, var(--background) 0%, rgba(8, 31, 23, 0.9) 38%, rgba(8, 31, 23, 0.35) 100%),
    repeating-linear-gradient(90deg, var(--pitch-stripe) 0 72px, var(--pitch-stripe-alt) 72px 144px);
}

/* The pitch's halfway circle, behind the phones. */
.hero::after {
  content: '';
  position: absolute;
  right: -140px;
  top: 50%;
  width: 520px;
  height: 520px;
  margin-top: -260px;
  border: 2px solid var(--pitch-line);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(54px, 9vw, 104px);
  line-height: 0.9;
}

.hero .lede {
  max-width: 520px;
  margin: 24px 0 32px;
  font-size: 21px;
  color: var(--text-secondary);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
  color: var(--text-secondary);
}
.hero-points li::before {
  content: '✓';
  margin-right: 8px;
  color: var(--accent);
  font-weight: 600;
}

.hero-phones {
  position: relative;
  height: 600px;
}
.hero-phones .phone {
  position: absolute;
  width: 270px;
}
.hero-phones .phone.front {
  right: 40px;
  top: 0;
  z-index: 2;
}
.hero-phones .phone.back {
  right: 230px;
  top: 70px;
  transform: rotate(-6deg);
  opacity: 0.85;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 28px 26px 30px;
  counter-increment: step;
}

.steps li::before {
  content: '0' counter(step);
  display: block;
  margin-bottom: 18px;
  font: 800 54px/1 var(--condensed);
  color: var(--accent);
}

.steps p {
  margin: 10px 0 0;
  color: var(--text-secondary);
}

/* ---------- Balance ---------- */

.balance {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
}

.balance .phone {
  width: min(300px, 100%);
  justify-self: center;
}

.reasons {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reasons li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 22px;
}

.reasons .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent);
}
.reasons .icon svg {
  width: 24px;
  height: 24px;
}

.reasons h3 {
  font-size: 23px;
}

.reasons p {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

/* ---------- Screens ---------- */

/*
 * Horizontal carousels (the screens; the archetypes on phones). Cards snap to
 * the page margin, not to the screen's edge (scroll-padding), and a swipe
 * moves one card at a time (scroll-snap-stop).
 */
.screens {
  display: flex;
  gap: 22px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--pitch-stripe-alt) transparent;
  list-style: none;
}

.screens li {
  flex: 0 0 230px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.screens .phone {
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.screens p {
  margin: 16px 4px 0;
  font-weight: 600;
  line-height: 1.35;
}
.screens p span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ---------- Archetypes ---------- */

.archetypes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archetype {
  padding: 22px 22px 24px;
}

.archetype h3 {
  font-size: 28px;
}

.archetype > p {
  min-height: 3em;
  margin: 8px 0 18px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.45;
}

.bars {
  display: grid;
  gap: 8px;
  margin: 0;
}

.bars div {
  display: grid;
  grid-template-columns: 92px 1fr 20px;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.bars dt {
  color: var(--text-secondary);
}

.bars dd {
  display: contents;
}

.bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(238, 243, 236, 0.1);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.bars b {
  font: 800 16px/1 var(--condensed);
  text-align: right;
}

.more-archetypes {
  margin: 26px 0 0;
  color: var(--text-secondary);
}
.more-archetypes strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Extras ---------- */

.extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.extras li {
  padding: 22px 22px 24px;
}

.extras h3 {
  font-size: 22px;
}

.extras p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ---------- Premium (gold is only for Premium, like in the app) ---------- */

.premium {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 48px;
  border-radius: 28px;
  border: 1px solid rgba(244, 201, 93, 0.35);
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(244, 201, 93, 0.16), rgba(244, 201, 93, 0) 70%),
    var(--surface);
}

.premium .eyebrow {
  color: var(--gold);
}

.premium h2 {
  color: var(--gold);
}

.premium .price-note {
  margin: 18px 0 0;
  font-size: 19px;
  color: var(--text-secondary);
}

.benefits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: 600;
}

.benefits li::before {
  content: '';
  flex: 0 0 34px;
  height: 34px;
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4C95D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 18px no-repeat,
    rgba(244, 201, 93, 0.14);
}

.free-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-secondary);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  padding: 0 24px;
}

.faq summary {
  position: relative;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font: 800 30px/1 var(--condensed);
  color: var(--accent);
}
.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin: -4px 0 22px;
  color: var(--text-secondary);
}

/* ---------- Closing call ---------- */

.closing {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(23, 232, 143, 0.14), rgba(23, 232, 143, 0) 70%),
    repeating-linear-gradient(90deg, var(--background) 0 72px, #0a2519 72px 144px);
  border-top: 1px solid var(--surface-border);
}

.closing img.ball {
  width: 84px;
  height: 84px;
  margin: 0 auto 26px;
}

.closing h2 {
  font-size: clamp(46px, 8vw, 84px);
}

.closing p {
  margin: 16px auto 34px;
  max-width: 520px;
  font-size: 20px;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text-primary);
}

.site-footer .brand {
  font-size: 22px;
}
.site-footer .brand img {
  width: 26px;
  height: 26px;
}

/* ---------- Privacy policy page ---------- */

.legal {
  max-width: 760px;
  padding: 56px 0 88px;
}

.legal h1 {
  font-size: clamp(46px, 8vw, 72px);
}

.legal .updated {
  margin: 14px 0 0;
  font: 700 15px/1 var(--condensed);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.legal .lede {
  margin: 32px 0 0;
  font-size: 20px;
  color: var(--text-secondary);
}

.legal .summary {
  margin: 28px 0 8px;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--accent-tint);
}

.legal section {
  padding-top: 40px;
}

.legal section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 32px;
  line-height: 1.05;
}

.legal section h2 span {
  font-size: 20px;
  color: var(--accent);
}

.legal section p,
.legal section li {
  color: var(--text-secondary);
}

.legal strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.legal em {
  font-style: normal;
  color: var(--text-primary);
}

/* ---------- Not found ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px - 130px);
  padding: 64px 0;
  text-align: center;
}
.not-found h1 {
  font-size: clamp(56px, 10vw, 96px);
}
.not-found p {
  margin: 16px 0 28px;
  color: var(--text-secondary);
  font-size: 19px;
}
.not-found .button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font: 800 20px/1 var(--condensed);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  /* The full name fits the header on desktop only. */
  .site-header .brand-tagline {
    display: none;
  }
  .hero {
    padding: 44px 0 56px;
    background:
      linear-gradient(180deg, rgba(8, 31, 23, 0.94) 0%, rgba(8, 31, 23, 0.7) 55%, var(--background) 100%),
      repeating-linear-gradient(90deg, var(--pitch-stripe) 0 56px, var(--pitch-stripe-alt) 56px 112px);
  }
  .hero::after {
    display: none;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  /* The same two phones as on desktop, scaled to the screen's width. */
  .hero-phones {
    width: 100%;
    max-width: 440px;
    height: min(580px, 118vw);
    margin: 0 auto;
  }
  .hero-phones .phone {
    width: 55%;
  }
  .hero-phones .phone.front {
    right: 2%;
  }
  .hero-phones .phone.back {
    right: auto;
    left: 2%;
    top: 12%;
  }
  .steps,
  .extras {
    grid-template-columns: 1fr;
  }
  .archetypes {
    grid-template-columns: 1fr 1fr;
  }
  .balance {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Alone under the list it read as out of place (2026-09-30). */
  .balance .phone {
    display: none;
  }
  .premium {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  /* Six stacked cards made a long scroll: they become a carousel. */
  .archetypes {
    display: flex;
    gap: 14px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .archetypes::-webkit-scrollbar {
    display: none;
  }
  .archetype {
    flex: 0 0 82%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .screens {
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar {
    display: none;
  }
  .header-badge img {
    height: 38px;
  }
  .screens li {
    flex-basis: 64vw;
  }
  .hero .lede {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
