/* apps.sensa.co — shared styles. Mirrors sensa.co tokens (black, white, Gelion). */
@font-face { font-family: 'Gelion'; src: url('/assets/gelion-thin.woff') format('woff'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gelion'; src: url('/assets/gelion-regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gelion'; src: url('/assets/gelion-medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255,255,255,.6);
  --faint: rgba(255,255,255,.15);
  --ease: cubic-bezier(.22,1,.36,1);
  --dur: 480ms;
}
@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; } }

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Gelion', system-ui, -apple-system, sans-serif;
  font-weight: 200;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #fff; color: #000; }

/* language: both languages are in the markup; the html[data-lang] attribute hides the other one */
html[data-lang="en"] [lang="es"] { display: none !important; }
html[data-lang="es"] [lang="en"] { display: none !important; }

h1, h2, h3 { font-family: 'Gelion', system-ui, sans-serif; font-weight: 500; margin: 0; text-align: left; }
h1 { font-size: 72px; line-height: .9; letter-spacing: -0.05em; }
h2 { font-size: 32px; line-height: 1.05; letter-spacing: -0.03em; margin-top: 72px; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; margin-top: 40px; font-weight: 400; }
p { margin: 0; color: var(--fg); }
p + p, h2 + p, h3 + p, p + ul, ul + p { margin-top: 20px; }
h2 + p { margin-top: 24px; }
h3 + p { margin-top: 12px; }
ul { margin: 0; padding-left: 20px; }
li + li { margin-top: 8px; }
a { color: inherit; text-decoration: none; opacity: .6; transition: opacity 200ms ease; }
a:hover, a:focus-visible { opacity: 1; }
main a { opacity: 1; border-bottom: 1px solid var(--faint); }
main a:hover { border-bottom-color: var(--fg); }
strong { font-weight: 400; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--faint); margin: 72px 0; }

.page { max-width: 1440px; margin: 0 auto; padding: 160px 40px 260px; }
.column { max-width: 720px; }
.lede { font-size: 24px; margin-top: 32px; color: var(--muted); }
.meta { margin-top: 24px; font-size: 16px; color: var(--muted); }
.legal p, .legal li { color: rgba(255,255,255,.8); }
.legal h2 { padding-top: 8px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(12px); animation: rise var(--dur) var(--ease) forwards; }
.reveal:nth-child(2) { animation-delay: 70ms; }
.reveal:nth-child(3) { animation-delay: 140ms; }
.reveal:nth-child(4) { animation-delay: 210ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* app grid (index) */
.apps { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 40px; max-width: 1040px; }
.apps li { border-top: 1px solid var(--faint); padding-top: 20px; margin: 0; }
.apps .name { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; display: block; opacity: 1; }
.apps .desc { display: block; margin-top: 8px; color: var(--muted); font-size: 18px; }

/* form */
form { margin-top: 56px; display: grid; gap: 28px; max-width: 640px; }
label { display: block; font-size: 14px; letter-spacing: 0; color: var(--muted); margin-bottom: 8px; text-transform: lowercase; }
input, select, textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--faint); border-radius: 0;
  color: var(--fg); font: inherit; font-weight: 200; padding: 10px 0 12px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color 200ms ease;
}
input:focus, select:focus, textarea:focus { border-bottom-color: var(--fg); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.25); }
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 6L8 11L3 6' stroke='white' stroke-opacity='.6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 24px; }
select option { background: #111; color: #fff; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button.submit {
  justify-self: start; margin-top: 12px; background: var(--fg); color: #000; border: 0; border-radius: 999px;
  font: inherit; font-weight: 400; font-size: 18px; padding: 14px 28px; cursor: pointer; transition: opacity 200ms ease, transform var(--dur) var(--ease);
}
button.submit:hover { opacity: .85; }
button.submit:disabled { opacity: .4; cursor: default; }
.status { min-height: 30px; color: var(--muted); }
.status.ok { color: var(--fg); }
.status.err { color: #ff6b5c; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* bottom nav (same construction as sensa.co) */
.nav { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 100; }
.nav__blur {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 200px; pointer-events: none; z-index: 99;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(0,0,0,.04);
  mask: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 60%); -webkit-mask: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 60%);
}
.nav__inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; align-items: flex-end; z-index: 1; }
.nav__left { display: flex; align-items: center; gap: 12px; }
.nav__icon { width: 40px; height: 40px; line-height: 0; opacity: 1; flex-shrink: 0; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand svg { display: block; }
.nav__tagline { font-size: 20px; font-weight: 200; color: var(--muted); display: block; margin-top: 2px; }
.nav__right { display: flex; justify-content: flex-end; align-items: flex-end; gap: 40px; }
.nav__link { font-size: 20px; line-height: 1.2; }
.nav__link[aria-current="page"] { opacity: 1; }
.lang { display: inline-flex; align-items: center; border: 1px solid var(--faint); border-radius: 8px; padding: 0 2px; opacity: .6; transition: opacity 200ms ease; }
.lang:hover { opacity: 1; }
.lang button { background: none; border: 0; color: var(--fg); font: inherit; font-size: 14px; font-weight: 200; padding: 4px 8px; cursor: pointer; opacity: .5; }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 400; }

@media (max-width: 900px) {
  body { font-size: 18px; }
  h1 { font-size: 52px; }
  h2 { font-size: 28px; margin-top: 56px; }
  .page { padding: 112px 20px 240px; }
  .lede { font-size: 20px; }
  .row2 { grid-template-columns: 1fr; }
  .nav__inner { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px 28px; }
  .nav__right { justify-content: flex-start; gap: 20px; flex-wrap: wrap; align-items: center; }
  .nav__link { font-size: 18px; }
  .nav__icon { width: 32px; height: 32px; } .nav__icon svg { width: 32px; height: 32px; }
  .nav__tagline { display: none; }
  .nav__blur { height: 240px; }
}
