/* skydive.living — teaser landing. Every colour and font goes through a token below. */
:root {
  --bg: #010a19;            /* sampled from the logo ground */
  --surface: #071229;
  --line: rgb(255 255 255 / .1);
  --line-strong: rgb(255 255 255 / .22);
  --ink: #f6f3ec;
  --muted: #94a0b8;
  --yellow: #ffd101;
  --amber: #ff9a00;
  --orange: #ff5602;
  --heat: linear-gradient(90deg, var(--yellow), var(--orange));

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.hot { color: var(--orange); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 10; padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { top: .75rem; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 40px; width: auto; mix-blend-mode: lighten; }
.wordmark { font-weight: 600; letter-spacing: -.01em; font-size: 1.25rem; }
.wordmark b { font-weight: 600; color: var(--orange); }

.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  appearance: none; border: 0; background: none; cursor: pointer;
  min-width: 44px; height: 36px; padding: 0 .8rem; border-radius: 999px;
  font: 500 .8125rem var(--mono); color: var(--muted);
  transition: color .16s ease, background-color .16s ease, transform .16s var(--ease-out);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang button:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .lang button[aria-pressed="false"]:hover { color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(1.5rem, 4vh, 3rem); padding-top: clamp(.5rem, 3vh, 2.5rem); }
.status { font: 400 .8125rem var(--mono); color: var(--muted); display: flex; align-items: center; gap: .6rem; }
.status::before { content: ""; width: 22px; height: 2px; background: var(--heat); }

h1, h2, .n { font-family: var(--display); }
h1 {
  margin-top: .35em;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(4.6rem, 12.5vw, 10.3rem);
  line-height: .84; letter-spacing: -.012em; white-space: nowrap;
  overflow-wrap: break-word; min-width: 0;
}
h1 span { display: inline-block; }

.hero-row { margin-top: clamp(1.25rem, 3vh, 2.25rem); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.lede { font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.25; font-weight: 300; color: var(--muted); max-width: 22ch; }
.lede strong { display: block; font-weight: 500; color: var(--ink); }

.stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.store {
  display: flex; align-items: center; gap: .7rem;
  height: 58px; padding: 0 1.15rem 0 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface);
  font-weight: 500; font-size: 1.1875rem; line-height: 1.1; white-space: nowrap;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-weight: 400; font-size: .6875rem; color: var(--muted); margin-bottom: 1px; }

.get { display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.free { font-size: .9375rem; color: var(--muted); }
.free b { font: 800 1.375rem/1 var(--display); color: var(--yellow); margin-right: .15em; }
.close .free { margin-top: 1.1rem; }

.pitch { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 1.75rem; border-radius: var(--radius);
  background: var(--heat); color: var(--bg);
  font-weight: 600; font-size: 1.1875rem; white-space: nowrap;
  transition: transform .16s var(--ease-out), filter .16s ease;
}
.cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .cta:hover { filter: brightness(1.1); } }
.close .cta { margin-bottom: 1rem; }
.close .lede { margin-bottom: 1.75rem; }

/* Sensor trace */
.trace { position: relative; touch-action: pan-y; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.plot { position: relative; flex: 1; min-height: 150px; max-height: 400px; clip-path: inset(0 0 0 0); }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot path, .plot line { vector-effect: non-scaling-stroke; fill: none; }
.grid line { stroke: var(--line); stroke-dasharray: 2 6; }
.alt { stroke: url(#g-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plot .alt-fill { fill: url(#g-fill); }
.acc { stroke: var(--muted); stroke-width: 1; opacity: .7; }
.cursor { position: absolute; inset-block: 0; left: 0; width: 1px; background: var(--ink); opacity: 0; transition: opacity .15s ease; will-change: transform; }
.trace.scrub .cursor { opacity: .55; }

.phases { display: grid; grid-template-columns: 12fr 30fr 20fr 24fr 14fr; border-top: 1px solid var(--line); }
.phases li {
  padding: .7rem 0 .9rem; text-align: center;
  font-size: .8125rem; color: var(--muted); white-space: nowrap;
  transition: color .16s ease;
}
.phases li + li { border-left: 1px dashed var(--line); }
.phases li.on { color: var(--ink); box-shadow: inset 0 2px 0 var(--amber); }

/* Entrance: one staggered pass on load */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } }
[data-enter] { animation: rise .7s var(--ease-out) both; }
.status[data-enter] { animation-delay: 40ms; }
h1[data-enter] { animation-delay: 110ms; }
.hero-row[data-enter] { animation-delay: 210ms; }
.trace[data-enter] { animation: none; }
.trace[data-enter] .plot { animation: sweep 1.9s var(--ease-in-out) .35s both; }
.trace[data-enter] .phases { animation: rise .7s var(--ease-out) .5s both; }

/* ---------- Sections ---------- */
section:not(.hero) { padding-block: clamp(5rem, 13vh, 9rem); }
h2 {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 7.4vw, 6.25rem); line-height: .9; letter-spacing: -.008em;
  overflow-wrap: break-word; min-width: 0;
}
h2 span { display: block; }

.job-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.job h2 { font-size: clamp(2.9rem, 5.7vw, 4.9rem); }
.job-head p { margin-top: 1.75rem; max-width: 34ch; font-size: 1.1875rem; color: var(--muted); }

.steps li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); align-items: start; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.n { font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--amber); }
h3 { font: 500 1.4375rem/1.2 var(--body); letter-spacing: -.01em; }
.steps p { margin-top: .4rem; color: var(--muted); }

.sensors { margin-top: clamp(3.5rem, 8vh, 5.5rem); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sensors dt { grid-column: 1 / -1; padding: 1rem 1.4rem; font-size: .875rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.sensors dd { padding: 1.2rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .2rem; font-weight: 500; font-size: 1.125rem; }
.sensors dd + dd { border-left: 1px solid var(--line); }
.sensors i { font: 400 .8125rem var(--mono); color: var(--amber); }

.note { margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); }
.note strong { color: var(--ink); font-weight: 500; }

/* What comes next */
.next { background: var(--surface); border-block: 1px solid var(--line); }
.plan { margin-top: clamp(2.5rem, 6vh, 4.5rem); }
.plan li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; align-items: center; gap: 0 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.plan li:last-child { border-bottom: 1px solid var(--line); }
.plan p { font-size: clamp(1.1875rem, 2.2vw, 1.75rem); font-weight: 400; line-height: 1.25; }
.secret .n { color: var(--muted); opacity: .6; }
.bars { display: flex; flex-wrap: wrap; gap: .5em; }
.bars i { display: block; height: 1.05em; width: calc(var(--w) * .62em); background: var(--ink); opacity: .16; border-radius: 3px; transition: opacity .2s ease; }

.tag { position: relative; font: 400 .8125rem var(--mono); color: var(--muted); padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.tag.live { color: var(--bg); background: var(--heat); border-color: transparent; font-weight: 500; }
.secret .tag { display: grid; }
.secret .tag span { grid-area: 1 / 1; text-align: center; transition: opacity .2s ease, filter .2s ease; }
.secret .tag span + span { opacity: 0; filter: blur(3px); color: var(--amber); }
@media (hover: hover) and (pointer: fine) {
  .secret:hover .bars i { opacity: .3; }
  .secret:hover .tag span { opacity: 0; filter: blur(3px); }
  .secret:hover .tag span + span { opacity: 1; filter: none; }
}

/* Close */
.close { text-align: center; }
.close .big { font-size: clamp(2.75rem, 11vw, 9rem); line-height: 1; letter-spacing: -.035em; }
.close .lede { margin: 1.25rem auto 2.25rem; max-width: none; }
.close .stores { justify-content: center; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.75rem 2.25rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }

.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.foot-links a { text-decoration: underline; text-underline-offset: 3px; padding-block: .35rem; transition: color .16s ease; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: var(--ink); } }

/* ---------- Legal pages ---------- */
html[lang="es"] [data-l="en"], html:not([lang="es"]) [data-l="es"] { display: none; }
.legal { max-width: 46rem; padding-block: clamp(2.5rem, 7vh, 5rem) clamp(4rem, 10vh, 7rem); }
.legal h1 { font-size: clamp(3rem, 8vw, 5.5rem); line-height: .9; white-space: normal; margin: 0; }
.legal .date { margin-top: 1rem; font: 400 .8125rem var(--mono); color: var(--muted); }
.legal h2 { margin-top: 2.75rem; font: 600 1.375rem/1.25 var(--body); text-transform: none; letter-spacing: -.01em; }
.legal p, .legal ul { margin-top: .9rem; color: var(--muted); max-width: 65ch; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: .4rem; }
.legal li::marker { color: var(--amber); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .job-grid { grid-template-columns: minmax(0, 1fr); }
  .sensors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sensors dd + dd { border-left: 0; }
  .sensors dd:nth-of-type(even) { border-left: 1px solid var(--line); }
  .sensors dd:nth-of-type(n + 3) { border-top: 1px solid var(--line); }
  .sensors dd:last-of-type { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(3.6rem, 21.5vw, 9rem); white-space: normal; }
  h1 span { display: block; }
  .wordmark { font-size: 1.125rem; }
  .brand img { height: 34px; }
  .hero-row { flex-direction: column; align-items: stretch; }
  .get { align-items: stretch; }
  .pitch { align-items: stretch; }
  .stores { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .store { padding-inline: .8rem; font-size: 1.0625rem; gap: .55rem; }
  .phases li { font-size: .6875rem; }
  .plan li { grid-template-columns: 3rem minmax(0, 1fr); }
  .plan .tag { grid-column: 2; justify-self: start; margin-top: .8rem; }
  .steps li { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .n { font-size: 2rem; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-enter], .trace[data-enter] .plot, .trace[data-enter] .phases { animation: none; }
}
