/* Lockty — one page. Dark only, like the app's onboarding: black, light that drifts,
   glass, and figures that roll. */

:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f5f5f7;
  --ink-2: rgba(245, 245, 247, 0.62);
  --ink-3: rgba(245, 245, 247, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --bad: #ff6661;          /* the app's bad-news red, dark mode */
  --good: #6bf59e;         /* the good-news green */
  --mint: #8ff0d0;
  --sky: #8fc4ff;
  --lilac: #c9a8ff;
  --sun-top: #ffd678;
  --sun-bottom: #ff7a54;
  --heat: 0.35;            /* 0 calm … 1 red: set by the calculator */
  --radius: 28px;
  --max: 1120px;
  --font: "SF Pro Rounded", ui-rounded, "Nunito", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Language: both are in the page, one is shown. */
html[lang="es"] [data-lang="en"],
html[lang="en"] [data-lang="es"] { display: none !important; }

/* ---------- The light behind everything ---------- */

.aura {
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  filter: blur(90px) saturate(1.15);
  opacity: 0.85;
}
.aura span {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.aura .a1 {
  left: 10%; top: 0%;
  background: radial-gradient(circle, color-mix(in oklab, var(--mint) calc((1 - var(--heat)) * 100%), var(--bad)) 0%, transparent 62%);
  opacity: 0.55;
  animation: drift1 26s ease-in-out infinite alternate;
}
.aura .a2 {
  right: 0%; top: 25%;
  background: radial-gradient(circle, color-mix(in oklab, var(--sky) calc((1 - var(--heat)) * 100%), var(--bad)) 0%, transparent 60%);
  opacity: 0.4;
  animation: drift2 32s ease-in-out infinite alternate;
}
.aura .a3 {
  left: 30%; bottom: -10%;
  background: radial-gradient(circle, var(--lilac) 0%, transparent 60%);
  opacity: 0.22;
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, -10vmax) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -18vmax) scale(1.2); } }

/* Grain, so the black is a material and not an empty screen. */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Frame ---------- */

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  width: min(var(--max), calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; background: #000; padding: 4px; border: 1px solid var(--line); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang {
  display: flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
}
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--ink-2);
  font: 600 13px var(--font-text); padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--glass-strong); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  font: 650 16px var(--font-text); letter-spacing: -0.01em;
  color: #000; background: var(--ink);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px) scale(1.01); box-shadow: 0 14px 50px rgba(255, 255, 255, 0.2); }
.btn svg { width: 18px; height: 18px; }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn.glass { color: var(--ink); background: var(--glass-strong); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(18px); }

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

.hero {
  min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 120px 0 80px;
  position: relative;
  /* The orb's halo is wider than a phone; it fades out, it doesn't scroll sideways. */
  overflow-x: clip;
}
.orb {
  position: relative; width: 190px; height: 190px; margin: 0 auto 36px;
}
.orb .glow {
  position: absolute; inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35), rgba(143,240,208,0.18) 35%, transparent 65%);
  filter: blur(30px);
  animation: breathe 6s ease-in-out infinite;
}
.orb .core {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, #fff 0%, rgba(255,255,255,0.9) 12%, rgba(205,235,255,0.55) 32%, rgba(143,196,255,0.18) 55%, rgba(0,0,0,0) 70%),
    conic-gradient(from 0deg, rgba(143,240,208,.25), rgba(201,168,255,.25), rgba(143,196,255,.25), rgba(143,240,208,.25));
  box-shadow: inset 0 0 40px rgba(255,255,255,0.35), 0 0 80px rgba(143,240,208,0.25);
  animation: spin 18s linear infinite, wake 2.4s cubic-bezier(.2,.8,.2,1) both;
}
.orb .ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  animation: ripple 4s ease-out infinite;
}
.orb .ring:nth-child(4) { animation-delay: 2s; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes wake { from { transform: scale(.2); opacity: 0; filter: blur(20px); } to { transform: scale(1); opacity: 1; filter: blur(0); } }
@keyframes ripple { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px var(--font-text); letter-spacing: .02em; color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  margin-bottom: 22px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); }

h1, h2, h3 { font-family: var(--font); letter-spacing: -0.035em; margin: 0; }
h1 {
  font-size: clamp(44px, 8.4vw, 104px); line-height: .96; font-weight: 800;
}
.shine {
  background: linear-gradient(100deg, #fff 0%, var(--mint) 30%, var(--sky) 55%, var(--lilac) 80%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s ease-in-out infinite alternate;
}
.shine.bad { background: linear-gradient(100deg, #fff, var(--bad) 45%, #ff9d7a 75%, #fff); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; }
.shine.good { background: linear-gradient(100deg, #fff, var(--good) 40%, var(--mint) 75%, #fff); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; }
@keyframes shine { to { background-position: 100% 0; } }

.lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--ink-2); max-width: 620px; margin: 22px auto 34px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; color: var(--ink-3); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint span { width: 1px; height: 36px; background: linear-gradient(var(--ink-3), transparent); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */

section { padding: 120px 0; position: relative; }
.kicker { font: 600 13px var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
h2 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; font-weight: 800; }
.sub { color: var(--ink-2); font-size: clamp(16px, 1.8vw, 19px); max-width: 640px; margin-top: 18px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 30px 80px rgba(0,0,0,0.45);
}

/* ---------- Lost time calculator ---------- */

.calc { margin-top: 56px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.calc-q { font: 600 clamp(17px, 2vw, 20px) var(--font); color: var(--ink-2); }
.hours { font: 800 clamp(30px, 4vw, 44px) var(--font); margin: 10px 0 18px; }
.hours b { font-variant-numeric: tabular-nums; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: min(520px, 100%); height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--ink) var(--fill, 30%), rgba(255,255,255,0.14) var(--fill, 30%));
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 6px rgba(255,255,255,0.08);
}
input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; }
.result-lead { margin-top: 44px; color: var(--ink-2); font-size: 18px; }
.result {
  font: 900 clamp(76px, 15vw, 190px) var(--font); letter-spacing: -0.05em; line-height: 1;
  margin: 8px 0 6px; display: flex; justify-content: center; align-items: baseline; gap: .18em;
  color: color-mix(in oklab, var(--bad) calc(var(--heat) * 100%), #fff);
  /* The glow on the whole figure, not on each digit: the digits sit in clipped
     columns, and a text-shadow inside them is cut into boxes. */
  filter: drop-shadow(0 0 34px color-mix(in oklab, var(--bad) calc(var(--heat) * 75%), transparent));
  transition: color .4s ease;
}
.result small { font-size: .32em; letter-spacing: -0.02em; font-weight: 800; }
.result-trail { color: var(--ink-2); font-size: 18px; }
.note { color: var(--ink-3); font-size: 13px; margin-top: 22px; }

/* The rolling digits: each one a column that turns to its number. */
.roll { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; font-variant-numeric: tabular-nums; }
.roll .col { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.2,.9,.2,1); }
.roll .col span { height: 1em; display: block; }

/* ---------- Three ways ---------- */

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.way { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 440px; overflow: clip; position: relative; }
.way h3 { font-size: 26px; font-weight: 800; }
.way p { color: var(--ink-2); margin: 0; font-size: 16px; }
.way .tint {
  position: absolute; inset: auto -30% -40% -30%; height: 70%;
  filter: blur(50px); opacity: .45; pointer-events: none;
}
.way .stage { margin-top: auto; height: 210px; display: grid; place-items: center; position: relative; }

/* Rule: the hourglass card, as in the plan screen. */
.rule-card {
  width: 210px; height: 170px; border-radius: 26px; padding: 18px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(64,209,148,.9), rgba(30,120,90,.6));
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 20px 60px rgba(64,209,148,.35);
  display: flex; flex-direction: column; justify-content: flex-end;
  animation: float 6s ease-in-out infinite;
}
.rule-card .icons { position: absolute; top: 16px; left: 18px; display: flex; gap: 8px; font-size: 18px; opacity: .95; }
.rule-card small { font-size: 12px; opacity: .8; }
.rule-card b { font: 800 20px var(--font); }
.rule-card .check { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-weight: 900; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }

/* Mode: the card of a mode that is on, and the three ways it starts. */
.mode-card {
  width: min(270px, 100%); padding: 18px; border-radius: 26px; position: relative;
  background: linear-gradient(160deg, rgba(143,196,255,.16), rgba(143,240,208,.06));
  border: 1px solid rgba(143,196,255,.32);
  box-shadow: 0 20px 60px rgba(143,196,255,.18), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: float 6s ease-in-out infinite;
}
.mode-top { display: flex; justify-content: space-between; align-items: center; }
.mode-top > span { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font-text); color: var(--ink-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 1.6s ease-in-out infinite; }
.strict svg, .trig svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode-name { display: block; font: 800 26px/1.1 var(--font); letter-spacing: -0.02em; margin: 12px 0 14px; }
.mode-time { display: flex; align-items: center; gap: 10px; font: 600 12px var(--font-text); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mode-time .track { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.mode-time .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--mint)); animation: progress 6s ease-in-out infinite; }
.triggers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.trig {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px;
  font: 600 11px var(--font-text); color: var(--ink-2); background: rgba(255,255,255,.05); border: 1px solid var(--line);
  animation: trigger 6s ease-in-out infinite;
}
.trig svg { width: 18px; height: 18px; }
.trig:nth-child(2) { animation-delay: 2s; }
.trig:nth-child(3) { animation-delay: 4s; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes progress { 0% { width: 8%; } 80%, 100% { width: 72%; } }
@keyframes trigger {
  0%, 30%, 100% { color: var(--ink-2); background: rgba(255,255,255,.05); border-color: var(--line); }
  8%, 24% { color: var(--ink); background: rgba(143,196,255,.16); border-color: rgba(143,196,255,.45); }
}

/* Friction: breathe. */
.breathe { width: 150px; height: 150px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); display: grid; place-items: center; position: relative; animation: inhale 8s ease-in-out infinite; }
.breathe::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,255,.45), transparent 70%); }
.breathe-text { position: absolute; bottom: 0; font: 600 15px var(--font); color: var(--ink-2); }
@keyframes inhale { 0%, 100% { transform: scale(.72); } 45%, 55% { transform: scale(1); } }

/* ---------- Big statement ---------- */

.statement { text-align: center; }
.statement h2 { font-size: clamp(40px, 7vw, 92px); }
.statement .apps { display: flex; justify-content: center; gap: 14px; margin: 46px 0 10px; flex-wrap: wrap; }
.app-tile {
  width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; position: relative;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.app-tile.locked::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}
.app-tile .lock { position: absolute; z-index: 2; font-size: 22px; }

/* ---------- Privacy promise ---------- */

.promise { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; margin-top: 50px; }
.promise ul { list-style: none; padding: 26px; margin: 0; display: grid; gap: 16px; }
.promise li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.promise li .x { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); color: var(--ink-2); font-size: 12px; font-weight: 800; }
.promise li .ok { background: rgba(107,245,158,.15); color: var(--good); }

/* ---------- Final CTA ---------- */

.final { text-align: center; padding: 140px 0 120px; }
.sun {
  width: 220px; height: 150px; margin: 0 auto 40px; position: relative;
}
/* A half disc drawn as one, not a clipped circle: a clip would cut its glow into a box. */
.sun::before {
  content: ""; position: absolute; left: 50%; top: 10px; translate: -50% 0; width: 140px; height: 70px;
  border-radius: 70px 70px 0 0;
  background: linear-gradient(var(--sun-top), #ffa868);
  box-shadow: 0 -6px 50px rgba(255,150,90,.45);
  z-index: 1;
}
/* The light it gives off, free to spread above and to the sides. */
.sun::after {
  content: ""; position: absolute; left: 50%; top: -20px; translate: -50% 0; width: 260px; height: 110px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,122,84,.35), transparent 65%);
  filter: blur(18px); pointer-events: none;
}
.sun i { position: absolute; left: 50%; translate: -50% 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--sun-bottom), transparent); animation: shimmer 3s ease-in-out infinite alternate; }
.sun i:nth-child(1) { top: 86px; width: 180px; }
.sun i:nth-child(2) { top: 98px; width: 150px; animation-delay: .4s; }
.sun i:nth-child(3) { top: 110px; width: 118px; animation-delay: .8s; }
.sun i:nth-child(4) { top: 122px; width: 86px; animation-delay: 1.2s; }
.sun i:nth-child(5) { top: 134px; width: 54px; animation-delay: 1.6s; }
@keyframes shimmer { to { transform: translateX(8px); opacity: .5; } }

/* ---------- Legal ---------- */

.legal-page { padding: 130px 0 40px; }
.legal-page .back { display: inline-block; color: var(--ink-3); text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.legal-page .back:hover { color: var(--ink); }
.legal-page h1 { font: 900 clamp(38px, 7vw, 64px) / 1.02 var(--font); letter-spacing: -0.035em; margin: 0 0 10px; }
.legal-page .doc { color: var(--ink-2); font-size: 16px; max-width: 760px; }
.legal-page .doc h4 { color: var(--ink); font: 700 19px var(--font); margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal-page .doc ul { padding-left: 20px; }
.legal-page .doc li { margin: 8px 0; }
.legal-page .doc strong { color: var(--ink); }
.legal-page .updated { color: var(--ink-3); font-size: 13px; margin-bottom: 28px; }

footer { padding: 30px 0 60px; color: var(--ink-3); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); filter: blur(10px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .9s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .ways { grid-template-columns: 1fr; }
  .way { min-height: 380px; }
  .promise { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav .btn.small span { display: none; }
  section { padding: 90px 0; }
  .app-tile { width: 60px; height: 60px; border-radius: 16px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
