/* Campo Now landing: a pitch being marked out. Mown turf, chalk lines, orange marking paint for the one action. */
@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("fonts/schibsted.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --turf: #0f4d2a;
  --turf-dark: #0a3a1e;
  --turf-deep: #072a16;
  --chalk: #f5f2e9;
  --chalk-dim: #d2ebcc;
  --paint: #ff6a2b;
  --paint-deep: #e0501a;
  --ink: #0b1d12;
  --bib: #ffd84a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --body: "Schibsted", system-ui, sans-serif;
  /* fine grass speckle, authored as a seamless SVG tile */
  --speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.02  0 0 0 0 0.12  0 0 0 0 0.04  1.6 0 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--chalk-dim) var(--turf-deep); }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--chalk);
  background-color: var(--turf);
  /* mown stripes + speckle */
  background-image:
    var(--speckle),
    repeating-linear-gradient(180deg, rgba(255,255,255,.045) 0 110px, rgba(0,0,0,.06) 110px 220px),
    radial-gradient(130% 70% at 50% 0%, rgba(255,255,255,.07), transparent 60%);
  min-height: 100svh;
  overflow-x: hidden;
}
::selection { background: var(--paint); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--turf-deep); }
::-webkit-scrollbar-thumb { background: var(--chalk-dim); border-radius: 8px; border: 3px solid var(--turf-deep); }
:focus-visible { outline: 3px solid var(--paint); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
[hidden] { display: none !important; }
.chalked { filter: url(#chalk); }

.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--paint); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; z-index: 20; }
.skip:focus { top: 10px; }
.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.mark { font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark img { width: 32px; height: 32px; border-radius: 9px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1.5px rgba(245,242,233,.5); }
.lang button { font: 600 0.8125rem/1 var(--body); letter-spacing: 0.08em; color: var(--chalk); background: none; border: 0; padding: 10px 14px; min-width: 44px; min-height: 40px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--chalk); color: var(--ink); }

/* ---------- hero: the pitch, being marked ---------- */
.hero { position: relative; padding: 4px 0 28px; overflow: hidden; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.line { fill: none; stroke: var(--chalk); stroke-width: 0.5; stroke-linecap: round; opacity: .42; stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark 1.7s var(--ease) both; animation-delay: calc(var(--n, 0) * 140ms + 200ms); }
@keyframes mark { to { stroke-dashoffset: 0; } }
.hero-grid { display: grid; gap: 0; }
h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.92; font-size: clamp(3rem, 13.5vw, 6rem); text-wrap: balance; margin-top: 22px; }
.lede { margin-top: 16px; max-width: 46ch; font-size: 1.1875rem; text-wrap: pretty; }
.cta-row { margin-top: 24px; display: grid; gap: 14px; max-width: 420px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 14px; font: 600 1.0625rem/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.btn.paint { color: var(--ink); background: var(--paint); box-shadow: 0 8px 16px rgba(0,0,0,.35), inset 0 -3px 5px rgba(0,0,0,.14); }
.btn.paint:hover { transform: translateY(-2px); box-shadow: 0 14px 24px rgba(0,0,0,.4), inset 0 -3px 5px rgba(0,0,0,.14); }
.btn.paint:active { transform: translateY(1px); }
.btn.ghost { color: var(--chalk); background: transparent; box-shadow: inset 0 0 0 2px rgba(245,242,233,.7); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--chalk); background: rgba(255,255,255,.06); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; }
.note { margin-top: 12px; font-size: 0.9375rem; color: var(--chalk-dim); max-width: 46ch; }

.peek { margin: 24px auto 0; width: min(78%, 300px); height: 190px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.phone { position: relative; border-radius: 40px; padding: 9px; background: #0a120d; box-shadow: 0 24px 40px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(245,242,233,.35); }
.peek .phone { border-radius: 40px 40px 0 0; }
.phone img { width: 100%; height: auto; border-radius: 32px; background: #fff; }

/* ---------- sections ---------- */
section { padding: 56px 0; position: relative; }
section + section::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 0; border-top: 2px solid rgba(245,242,233,.5); max-width: 1120px; margin-inline: auto; }
h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 9vw, 3.75rem); line-height: 0.95; text-wrap: balance; }
.sec-lede { margin-top: 14px; color: var(--chalk-dim); max-width: 52ch; text-wrap: pretty; }

/* the lineup you can drop out of */
.try { display: grid; gap: 26px; }
.pitch-wrap { width: min(100%, 360px); justify-self: center; }
.pitch { width: 100%; height: auto; display: block; border-radius: 6px; background: rgba(0,0,0,.14); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.pitch .mark-line { fill: none; stroke: var(--chalk); stroke-width: 0.6; opacity: .85; }
.pitch .shirt { transition: fill .4s var(--ease), stroke .4s var(--ease), opacity .4s; }
.pitch .num { font-family: var(--display); font-weight: 900; font-size: 5.2px; text-anchor: middle; dominant-baseline: central; fill: var(--ink); transition: opacity .3s; }
.pitch .a .shirt { fill: var(--chalk); }
.pitch .b .shirt { fill: var(--bib); }
.pitch .you .shirt { fill: var(--paint); stroke: var(--chalk); stroke-width: 0.9; }
.pitch .you.out .shirt { fill: transparent; stroke: var(--chalk); stroke-width: 0.8; stroke-dasharray: 1.6 1.4; }
.pitch .you.out .num { opacity: 0; }
.pitch .you-tag { font-family: var(--display); font-weight: 900; font-size: 4px; text-anchor: middle; fill: var(--chalk); letter-spacing: .08em; }
.readout { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.readout output { font-family: var(--display); font-weight: 900; font-size: 4.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.readout span { color: var(--chalk-dim); font-size: 0.9375rem; }
.status { margin-top: 6px; min-height: 3.2em; font-weight: 600; max-width: 44ch; }
.status[data-state="low"] { color: var(--bib); }
.try-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.fine { margin-top: 14px; font-size: 0.875rem; color: var(--chalk-dim); }

/* real screens */
.screens-head { margin-bottom: 30px; }
.strip { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 22px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; }
.shot { flex: 0 0 min(74vw, 290px); scroll-snap-align: center; }
.shot h3 { font-family: var(--display); font-weight: 700; font-size: 1.625rem; line-height: 1.05; text-transform: uppercase; margin-top: 20px; }
.shot p { margin-top: 6px; color: var(--chalk-dim); font-size: 0.9688rem; text-wrap: pretty; }

/* how reliability is built */
.patch { list-style: none; padding: 0; margin-top: 22px; }
.patch li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 22px 0; border-top: 2px dashed rgba(245,242,233,.4); align-items: start; }
.patch li:last-child { border-bottom: 2px dashed rgba(245,242,233,.4); }
.patch .plate { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; }
.plate svg { width: 38px; height: 38px; stroke: var(--chalk); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.patch h3 { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.patch p { color: var(--chalk-dim); max-width: 56ch; text-wrap: pretty; }

.final { padding-bottom: 40px; }
.final .cta-row { margin-top: 28px; }

footer { padding: 28px 0 44px; border-top: 2px solid rgba(245,242,233,.5); color: var(--chalk-dim); font-size: 0.9375rem; background: rgba(0,0,0,.18); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- motion: one clock, everything is marked or set down in order ---------- */
.rise { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) both; animation-delay: calc(var(--n, 0) * 110ms + 350ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="phone"] { transform: translateY(46px) rotate(1.5deg); }
.js [data-reveal="line"] { transform: translateX(-24px); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line { animation: none; stroke-dashoffset: 0; }
  .rise { animation: none; opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .pitch .shirt { transition: none; }
}

/* ---------- privacy / prose ---------- */
html[lang="es"] [data-l="en"], html[lang="en"] [data-l="es"] { display: none; }
.prose { max-width: 720px; padding: 24px 0 72px; }
.prose h1 { font-size: clamp(2.4rem, 9vw, 3.75rem); margin-top: 12px; }
.prose .updated { color: var(--chalk-dim); margin-top: 10px; font-size: 0.9375rem; }
.prose h2 { font-size: 1.75rem; margin-top: 40px; letter-spacing: 0.01em; }
.prose p, .prose li { margin-top: 12px; max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--chalk-dim); }
.prose a { color: var(--chalk); text-decoration-thickness: 2px; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .cta-row { grid-template-columns: auto auto; justify-content: start; max-width: none; }
  .try { grid-template-columns: 1fr 380px; grid-template-areas: "text pitch" "ctl pitch"; align-items: center; column-gap: 72px; row-gap: 0; }
  .try-text { grid-area: text; align-self: end; }
  .pitch-wrap { grid-area: pitch; width: 380px; }
  .try-ctl { grid-area: ctl; align-self: start; }
  .strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .shot { flex: none; }
  .shot:nth-child(2) { margin-top: 38px; }
  .shot:nth-child(3) { margin-top: 76px; }
  .patch li { grid-template-columns: 44px 260px 1fr; gap: 28px; align-items: center; }
  .patch .plate { grid-row: auto; }
  section { padding: 84px 0; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 340px; column-gap: 56px; align-items: start; }
  .peek { margin: 30px 0 0; width: 340px; height: 520px; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
}

.hero-lines.land { display: none; }
.hero-lines .line { stroke-width: 0.55; }
@media (min-width: 900px) {
  .hero-lines.portrait { display: none; }
  .hero-lines.land { display: block; }
  .hero-lines .line { stroke-width: 0.28; opacity: .3; }
}
