/* ==========================================================================
   ABQ — styles.css
   1. Tokens · 2. Reset y base · 3. Utilidades · 4. Componentes
   5. Secciones · 6. Animaciones · 7. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #08090c;
  --bg-soft: #0d0f14;
  --surface: #12151b;
  --surface-2: #181c24;
  --surface-3: #1f242e;

  --text: #f3f4ef;
  --muted: #a7a9b4;
  --muted-2: #7f828e;

  --accent: #d6ff4f;
  --accent-bright: #e4ff86;
  --accent-ink: #0b1002;
  --accent-soft: rgba(214, 255, 79, 0.1);
  --accent-line: rgba(214, 255, 79, 0.32);

  --accent-2: #66f0d0;
  --coral: #ff7a5c;
  --coral-soft: rgba(255, 122, 92, 0.12);
  --coral-line: rgba(255, 122, 92, 0.38);

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --section-y: clamp(3.75rem, 8vw, 6.5rem);
  --wrap: 1180px;
  --header-h: 68px;

  --shadow-card: 0 34px 80px -34px rgba(0, 0, 0, 0.95);
  --shadow-soft: 0 18px 50px -24px rgba(0, 0, 0, 0.8);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* 2. Reset y base ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 6% 0%, rgba(214, 255, 79, 0.075), transparent 64%),
    radial-gradient(46% 38% at 100% 14%, rgba(255, 122, 92, 0.06), transparent 65%),
    radial-gradient(54% 42% at 52% 100%, rgba(102, 240, 208, 0.045), transparent 68%);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* 3. Utilidades ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(214, 255, 79, 0.55);
}

.eyebrow-dot--coral {
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 122, 92, 0.55);
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section-head h2 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

.section-lede {
  max-width: 62ch;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.65;
}

.fineprint {
  max-width: 64ch;
  margin-top: 1.4rem;
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.6;
}

.fineprint--center {
  max-width: 72ch;
  margin-inline: auto;
  text-align: center;
}

/* 4. Componentes ----------------------------------------------------------- */
/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 32px -14px rgba(214, 255, 79, 0.5);
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 16px 36px -14px rgba(214, 255, 79, 0.6);
}

.btn-primary:focus-visible,
.btn-coral:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px var(--text);
}

.btn-quiet {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-quiet:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
}

.btn-coral {
  background: var(--coral);
  color: #1d0803;
  box-shadow: 0 12px 32px -14px rgba(255, 122, 92, 0.45);
}

.btn-coral:hover {
  background: #ff8f75;
}

.btn-block {
  width: 100%;
}

.btn-install {
  min-height: 38px;
  padding: 0 0.9rem;
  border-color: var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.4rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease);
}

.btn-text:hover {
  color: var(--text);
}

/* Cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.82), rgba(8, 9, 12, 0));
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    backdrop-filter 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 9, 12, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.brand-word {
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

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

.header-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.header-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  min-width: 34px;
  min-height: 28px;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.lang-btn:focus-visible {
  outline-offset: 2px;
}

.streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}

.streak-chip strong {
  color: var(--accent);
  font-weight: 700;
}

.streak-flame {
  display: inline-flex;
  width: 13px;
  height: 13px;
  color: var(--coral);
}

.streak-flame svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Tarjeta de la app */
.app-shell {
  position: relative;
  min-width: 0;
}

.app-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(1.1rem, 3.4vw, 1.55rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(214, 255, 79, 0.07), transparent 62%),
    linear-gradient(180deg, #14171e 0%, #0f1117 58%, #0d0f14 100%);
  box-shadow: var(--shadow-card);
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 255, 79, 0.6), transparent);
}

.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.app-kicker {
  margin-bottom: 0.22rem;
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-head h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.4rem);
  letter-spacing: -0.03em;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  flex: none;
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.app-status[data-state="counting"] {
  border-color: var(--coral-line);
  background: var(--coral-soft);
  color: var(--coral);
}

.app-status[data-state="running"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.app-status[data-state="running"]::before {
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.app-status[data-state="done"] {
  border-color: rgba(102, 240, 208, 0.35);
  background: rgba(102, 240, 208, 0.1);
  color: var(--accent-2);
}

.timer-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.4rem;
}

.timer-ring-wrap {
  position: relative;
  width: clamp(210px, 58vw, 252px);
  aspect-ratio: 1;
  margin-top: 0.35rem;
  transition: transform 0.12s var(--ease);
}

.timer-ring-wrap::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.timer-ring-wrap.is-beat {
  transform: scale(1.018);
}

.timer-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 9;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.07);
}

.ring-progress {
  stroke: url("#ringGradient");
  stroke-linecap: round;
  stroke-dasharray: 779.11;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 9px rgba(214, 255, 79, 0.28));
  transition: stroke-dashoffset 0.18s linear;
}

.app-card.is-running .ring-progress {
  filter: drop-shadow(0 0 14px rgba(214, 255, 79, 0.45));
}

.app-card.is-preparing .timer-ring {
  animation: ring-spin 1.3s linear infinite;
}

.app-card.is-preparing .timer-time {
  color: var(--accent);
}

@keyframes ring-spin {
  from {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(270deg);
  }
}

.app-card.is-counting .ring-progress {
  filter: drop-shadow(0 0 14px rgba(255, 122, 92, 0.4));
}

.timer-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  text-align: center;
}

.timer-caption {
  color: var(--muted-2);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timer-time {
  color: var(--text);
  font-size: clamp(3.3rem, 12vw, 4.1rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 1;
}

.timer-reps {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.2;
}

.timer-reps strong {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.timer-cue {
  min-height: 1.1em;
  margin-top: 0.15rem;
  color: var(--muted-2);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.app-card.is-running .timer-cue,
.app-card.is-counting .timer-cue {
  color: var(--accent);
}

.pace {
  margin-top: 0.85rem;
}

.pace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.15rem;
}

.pace-head label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.pace-head output {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0,
    var(--accent) var(--fill, 44%),
    var(--surface-2) var(--fill, 44%),
    var(--surface-2) 100%
  );
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin-top: -7.5px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(214, 255, 79, 0.4);
}

.range::-moz-range-track {
  height: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
}

.range:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pace-hint {
  color: var(--muted-2);
  font-size: 0.66rem;
  line-height: 1.4;
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 500;
  line-height: 1;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.chip-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip-toggle[aria-pressed="true"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.chip-toggle[aria-pressed="false"] .equalizer i {
  animation-play-state: paused;
  transform: scaleY(0.32);
}

.chip-record[aria-pressed="true"] {
  border-color: var(--coral-line);
  background: var(--coral-soft);
  color: var(--coral);
}

.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 12px;
}

.equalizer i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: equalize 0.9s ease-in-out infinite;
}

.equalizer i:nth-child(2) {
  animation-delay: 0.16s;
  animation-duration: 0.72s;
}

.equalizer i:nth-child(3) {
  animation-delay: 0.32s;
  animation-duration: 0.84s;
}

.rec-mini {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.chip-record[aria-pressed="true"] .rec-mini {
  background: var(--coral);
  box-shadow: 0 0 8px rgba(255, 122, 92, 0.7);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.camera-panel {
  position: relative;
  margin-top: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 16 / 9;
}

.camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.rec-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.rec-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse-dot 1s ease-in-out infinite;
}

.camera-hint {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 1rem 0.65rem 0.5rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  line-height: 1.3;
}

.app-actions {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.9rem;
}

.app-actions .btn-primary {
  min-height: 52px;
  font-size: 0.98rem;
}

.session-result {
  margin-top: 1rem;
  padding: 1.05rem;
  border: 1px solid rgba(102, 240, 208, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(102, 240, 208, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.025);
  animation: rise-in 0.4s var(--ease) both;
}

.result-eyebrow {
  color: var(--accent-2);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.session-result h3 {
  margin-top: 0.18rem;
  font-size: 1.3rem;
}

.result-summary {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.result-video {
  width: 100%;
  margin-top: 0.8rem;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.result-actions .btn {
  min-height: 40px;
  padding: 0 0.85rem;
  font-size: 0.75rem;
}

.result-note {
  margin-top: 0.6rem;
  color: var(--muted-2);
  font-size: 0.65rem;
  line-height: 1.5;
}

.clip {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line-strong);
}

.clip-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clip-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.42rem;
  border: 1px solid var(--coral-line);
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.clip-head h4 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.clip-note {
  margin-top: 0.28rem;
  color: var(--muted-2);
  font-size: 0.66rem;
  line-height: 1.45;
}

.clip-video {
  width: 100%;
  margin-top: 0.55rem;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.clip .result-actions {
  margin-top: 0.6rem;
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.app-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  padding-inline: 0.25rem;
  text-align: center;
}

.app-stat + .app-stat {
  border-left: 1px solid var(--line);
}

.app-stat strong {
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-stat span {
  color: var(--muted-2);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.noscript {
  margin-top: 0.8rem;
  padding: 0.7rem;
  border: 1px solid var(--coral-line);
  border-radius: var(--radius-sm);
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* Recordatorio */
.reminder-card {
  position: relative;
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 90% at 92% 8%, rgba(255, 122, 92, 0.1), transparent 58%),
    linear-gradient(140deg, #14171e, #0e1016 70%);
  box-shadow: var(--shadow-soft);
}

.reminder-card::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -90px;
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(255, 122, 92, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.reminder-copy h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
}

.reminder-next {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.reminder-next::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.reminder-next.is-on {
  color: var(--accent);
}

.reminder-next.is-on::before {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(214, 255, 79, 0.6);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.reminder-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  align-self: start;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(5, 6, 9, 0.46);
}

.field {
  color: var(--muted-2);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.select {
  width: 100%;
  min-height: 46px;
  padding: 0 2.2rem 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23a7a9b4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  color: var(--text);
  font-size: 0.86rem;
  appearance: none;
  -webkit-appearance: none;
}

.select:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.switch {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 48px;
  margin-top: 0.2rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.switch:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.switch-track {
  position: relative;
  width: 44px;
  height: 25px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-3);
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.switch[aria-checked="true"] {
  border-color: var(--accent-line);
  color: var(--text);
}

.switch[aria-checked="true"] .switch-track {
  border-color: var(--accent);
  background: var(--accent);
}

.switch[aria-checked="true"] .switch-thumb {
  background: var(--accent-ink);
  transform: translateX(19px);
}

.reminder-permission {
  color: var(--muted-2);
  font-size: 0.66rem;
  line-height: 1.5;
}

.reminder-panel .btn-text {
  justify-content: flex-start;
  font-size: 0.72rem;
}

/* Beneficios */
.benefit-grid {
  display: grid;
  gap: 1rem;
}

.benefit {
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.benefit:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--accent-line);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.benefit-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit h3 {
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.benefit p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* Pasos */
.steps {
  display: grid;
  gap: 1.4rem;
  list-style: none;
}

.step {
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.step-number {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1;
}

.step h3 {
  font-size: 1.12rem;
}

.step p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* Reto */
.challenge-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.challenge-copy h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.35rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0;
  width: 0.85em;
  height: 0.5em;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.challenge-copy .btn {
  margin-top: 1.5rem;
}

.challenge-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  padding: clamp(1.3rem, 4vw, 1.8rem);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(255, 255, 255, 0.3), transparent 52%),
    var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 40px 90px -45px rgba(214, 255, 79, 0.5);
  transform: rotate(-1.5deg);
}

.challenge-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border: 24px solid rgba(11, 16, 2, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.challenge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.challenge-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.challenge-brand .brand-mark {
  width: 25px;
  height: 25px;
  color: var(--accent-ink);
}

.challenge-tag {
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(11, 16, 2, 0.28);
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.challenge-big {
  margin-top: clamp(2rem, 7vw, 3.2rem);
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.challenge-big small {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.challenge-sub {
  margin-top: 0.5rem;
  color: rgba(11, 16, 2, 0.66);
  font-size: 0.8rem;
  font-weight: 600;
}

.challenge-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.7rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.challenge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.challenge-badge {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.challenge-domain {
  margin-top: clamp(1.8rem, 5vw, 2.8rem);
  color: rgba(11, 16, 2, 0.55);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* FAQ */
.faq-list {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  color: var(--text);
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 72ch;
  padding-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

/* CTA final */
.final-cta {
  padding-top: 0;
}

.cta-card {
  padding: clamp(2rem, 7vw, 4.5rem) clamp(1.3rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(65% 90% at 50% 0%, rgba(214, 255, 79, 0.1), transparent 60%),
    linear-gradient(180deg, #14171e, #0e1016);
  text-align: center;
}

.cta-card .eyebrow {
  justify-content: center;
}

.cta-card h2 {
  margin-top: 0.8rem;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
}

.cta-card .section-lede {
  margin-inline: auto;
  text-align: center;
}

.cta-card .btn {
  margin-top: 1.6rem;
}

/* Pie */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 9, 0.35);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
  align-content: start;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-meta {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.footer-meta p + p {
  margin-top: 0.55rem;
}

.footer-meta strong {
  color: var(--text);
  font-weight: 600;
}

.footer-legal {
  color: var(--muted-2);
  font-size: 0.65rem;
}

/* Barra de pestañas móvil */
.tabbar {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  border-top: 1px solid var(--line);
  background: rgba(9, 10, 14, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.52rem 0.2rem 0.45rem;
  color: var(--muted-2);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.tabbar svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar a[aria-current="location"] {
  color: var(--accent);
}

/* Aviso emergente */
.alarm {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: min(620px, calc(100% - 1.5rem));
  padding: 0.9rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: rgba(20, 24, 30, 0.97);
  box-shadow: 0 25px 70px -20px rgba(0, 0, 0, 0.9);
  transform: translateX(-50%);
  animation: alarm-in 0.35s var(--ease) both;
}

.alarm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.alarm-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alarm-copy {
  flex: 1 1 180px;
  min-width: 0;
}

.alarm-kicker {
  color: var(--muted-2);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.alarm-copy h2 {
  margin-top: 0.05rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.alarm-copy p:last-child {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.alarm-actions {
  display: flex;
  gap: 0.4rem;
}

.alarm-actions .btn {
  min-height: 38px;
  padding: 0 0.8rem;
  border-radius: 10px;
  font-size: 0.7rem;
}

.alarm-close {
  position: absolute;
  top: 0.3rem;
  right: 0.45rem;
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  color: var(--muted-2);
  font-size: 1.25rem;
  line-height: 1;
}

.alarm-close:hover {
  color: var(--text);
}

/* Aviso breve */
.toast {
  position: fixed;
  bottom: calc(5rem + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 120;
  max-width: calc(100% - 2rem);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 5. Secciones ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(1.6rem, 4vw, 2.8rem) var(--section-y);
}

.hero-grid {
  display: grid;
  gap: clamp(1.6rem, 5vw, 2.6rem);
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-extras {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.hero h1 {
  max-width: 12ch;
  margin-top: 1rem;
  font-size: clamp(2.45rem, 6.5vw, 4.5rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero-lede {
  max-width: 53ch;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.7;
}

.hero-lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 1.35rem;
  list-style: none;
}

.hero-facts li {
  position: relative;
  padding-left: 0.85rem;
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.5;
}

.hero-facts li::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-quote {
  max-width: 42ch;
  margin-top: 0;
  padding-left: 1.05rem;
  border-left: 2px solid var(--accent);
}

.hero-quote p {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-style: italic;
  line-height: 1.35;
}

.hero-quote footer {
  margin-top: 0.45rem;
  color: var(--muted-2);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rhythm {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 300px;
  margin-top: 0;
}

.rhythm-label {
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rhythm-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
}

.rhythm-bars i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(102, 240, 208, 0.65));
  transform-origin: bottom;
  animation: equalize 1.4s ease-in-out infinite;
}

.rhythm-bars i:nth-child(2n) {
  animation-delay: 0.12s;
  animation-duration: 1.1s;
}

.rhythm-bars i:nth-child(3n) {
  animation-delay: 0.3s;
  animation-duration: 1.6s;
}

.rhythm-bars i:nth-child(5n) {
  animation-delay: 0.45s;
  animation-duration: 1.2s;
}

.rhythm-hint {
  color: var(--muted-2);
  font-size: 0.65rem;
}

/* 6. Animaciones ----------------------------------------------------------- */
@keyframes equalize {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes alarm-in {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.reveal.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 7. Responsive ------------------------------------------------------------ */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .alarm-actions {
    width: 100%;
  }

  .alarm-actions .btn {
    flex: 1;
  }
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit:last-child {
    grid-column: 1 / -1;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
  }
}

@media (min-width: 760px) {
  .header-nav {
    display: flex;
  }

  .tabbar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
    align-items: start;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-meta {
    text-align: right;
  }
}

@media (max-width: 899px) {
  .header-actions .streak-chip {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(410px, 460px);
    grid-template-areas:
      "copy app"
      "extras app";
    gap: clamp(1.4rem, 3vw, 2.2rem) clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }

  .hero-copy {
    grid-area: copy;
  }

  .app-shell {
    grid-area: app;
    align-self: center;
  }

  .hero-extras {
    grid-area: extras;
    align-self: start;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 5vw, 4.5rem);
  }

  .hero-quote {
    margin-top: 0.2rem;
  }

  .rhythm {
    display: none;
  }

  .app-card {
    max-width: none;
  }
}

@media (min-width: 900px) {
  .benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit:last-child {
    grid-column: auto;
  }

  .reminder-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
  }

  .challenge-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  }

  .challenge-card {
    margin-left: auto;
  }

  .footer-meta {
    justify-self: end;
    max-width: 34ch;
  }
}

@media (min-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 480px;
  }
}

@media (max-width: 759px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .alarm {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal.will-reveal {
    opacity: 1;
    transform: none;
  }

  .equalizer i,
  .rhythm-bars i {
    transform: scaleY(0.7);
  }

  .timer-ring-wrap.is-beat {
    transform: none;
  }
}
