/* ASO Keywords — aso.miguelangel.me. The app's own colours: a deep indigo field that warms to magenta at the foot,
   white type, and the rocket's rainbow as the one accent. System fonts only (rounded where the system has them,
   to echo the app's soft grotesque). */
:root {
  --ink: #120338;
  --indigo: #1b0350;
  --plum: #2e0960;
  --violet: #5a0d72;
  --magenta: #d2049b;
  --pink: #fb489d;
  --teal: #00edc8;
  --green: #22d27b;
  --text: #ffffff;
  --soft: rgba(255, 255, 255, 0.72);
  --quiet: rgba(255, 255, 255, 0.5);
  --panel: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.14);
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background-color: var(--ink);
  /* The mesh of dots, still, for when the moving one (js/mesh.js) is not running; under it, the app's field. */
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.6px),
    linear-gradient(180deg, var(--ink) 0%, var(--indigo) 55%, var(--plum) 85%, var(--violet) 100%);
  background-size: 28px 28px, 100% 100%;
  background-attachment: fixed;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* With the moving mesh on, the still one steps aside. */
html.mesh body { background-image: linear-gradient(180deg, var(--ink) 0%, var(--indigo) 55%, var(--plum) 85%, var(--violet) 100%); background-size: 100% 100%; }
#mesh { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bar, main, footer { position: relative; z-index: 1; }

a { color: var(--teal); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.bar, main, footer { width: 100%; max-width: 68rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; font-family: var(--round); }
.brand img { border-radius: 22%; }
.bar nav { display: flex; gap: 1.25rem; align-items: center; font-size: 0.95rem; }
.bar nav a { color: var(--soft); }
.bar nav a.lang { border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.7rem; }

main { flex: 1; padding-block: 1rem 3rem; }

section { margin-block: 4.5rem; }

h1, h2, h3 { font-family: var(--round); }
h1 { font-size: clamp(2.5rem, 7.2vw, 4.6rem); line-height: 1.04; margin: 1.2rem 0 1.1rem; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 1.4rem; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 1.1rem; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; }

/* ------------------------------------------------------------------------------------------------- hero */
.hero { text-align: center; margin-top: 2.5rem; margin-bottom: 2rem; }
.hero .icon { border-radius: 22.5%; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.lead { color: var(--soft); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 42rem; margin-inline: auto; text-wrap: pretty; }
.soon {
  display: inline-block; margin-top: 1.1rem; padding: 0.6rem 1.4rem; border-radius: 999px;
  background: var(--magenta); font-weight: 600; box-shadow: 0 10px 30px rgba(210, 4, 155, 0.35);
}

/* ------------------------------------------------------------------------------- the fan of iPhone screens */
.phones {
  --w: min(15.5rem, 46vw);            /* a screen's width */
  --step: min(11.5rem, 31vw);         /* from one screen to the next */
  margin-block: 0 4.5rem; margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem)); overflow: hidden;
  perspective: 1800px; padding-block: 1.5rem 0;
}
.fan {
  position: relative; list-style: none; margin: 0 auto; padding: 0; height: calc(var(--w) * 2.172 + 1rem);
  transform-style: preserve-3d; transition: transform 0.35s ease-out;
  transform: rotateY(calc(var(--tx, 0) * 9deg)) rotateX(calc(var(--ty, 0) * -7deg));
  /* The list's own box sits in front of the screens that stand back: it must not take their clicks. */
  pointer-events: none;
}
.fan li {
  position: absolute; top: 0; left: 50%; width: var(--w); margin-left: calc(var(--w) / -2);
  transform: translateX(calc(var(--p) * var(--step))) translateZ(calc(var(--a) * -9rem)) rotateY(calc(var(--p) * -15deg)) scale(calc(1 - var(--a) * 0.07));
  opacity: calc(1 - var(--a) * 0.2);
  transition: transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.95s ease;
  pointer-events: auto;
}
.fan button { all: unset; display: block; width: 100%; cursor: pointer; border-radius: calc(var(--w) * 0.13); transition: transform 0.25s ease, filter 0.25s ease; }
.fan li.front button { cursor: default; }
/* A screen at the side answers the pointer: it comes a little forward and lights up, to say it can be picked. */
.fan li:not(.front) button:hover { transform: translateY(-0.6rem) scale(1.03); filter: brightness(1.25); }
.fan button:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.phone {
  border-radius: calc(var(--w) * 0.13); overflow: hidden; background: #0b0220;
  border: calc(var(--w) * 0.018) solid #0b0220; outline: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both, drift 7s ease-in-out infinite;
  animation-delay: calc(var(--a) * 0.12s + 0.1s), calc(var(--i) * -1.4s);
}
.phone img { display: block; width: 100%; height: auto; }
.fan li.front .phone { box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 90px rgba(210, 4, 155, 0.28); }
.fan-caption {
  text-align: center; margin: 1.6rem 0 0; font-family: var(--round); font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: -0.01em;
}
.fan-caption.in { animation: caption 0.6s ease both; }
.fan-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 0.9rem; }
.fan-dots button { all: unset; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: rgba(255, 255, 255, 0.28); cursor: pointer; transition: background 0.3s, transform 0.3s; }
.fan-dots button[aria-current="true"] { background: var(--teal); transform: scale(1.25); }
.fan-dots button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@keyframes rise { from { opacity: 0; transform: translateY(3rem); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.55rem; } }
@keyframes caption { from { opacity: 0; transform: translateY(0.4rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
  .fan, .fan li { transition: none; }
}

/* ------------------------------------------------------------------------------------- feature cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.cards > li { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 1.3rem; padding: 1.2rem 1.3rem 1.3rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cards > li > p { color: var(--soft); margin: 0; font-size: 0.98rem; }
.cards > li > :first-child { height: 8.2rem; margin-bottom: 1.1rem; border-radius: 0.9rem; background: rgba(15, 3, 48, 0.75); border: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--round); overflow: hidden; }

.v-ranks { list-style: none; margin: 0; padding: 0.6rem 1rem; display: grid; align-content: center; gap: 0.15rem; }
.v-ranks li { display: grid; grid-template-columns: 1fr auto 2.6rem; align-items: center; gap: 0.6rem; padding: 0.3rem 0; font-size: 0.92rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.v-ranks li:last-child { border-bottom: 0; }
.v-ranks b { font-variant-numeric: tabular-nums; }
.v-ranks em { font-style: normal; font-size: 0.72rem; font-weight: 700; border-radius: 0.35rem; padding: 0.05rem 0.3rem; text-align: center; }
.v-ranks em.up { color: var(--green); background: rgba(34, 210, 123, 0.16); }
.v-ranks em.down { color: var(--pink); background: rgba(251, 72, 157, 0.16); }

.v-months { position: relative; padding: 0.9rem 1rem 0.7rem; display: grid; grid-template-rows: 1fr auto; }
.v-months div { display: flex; align-items: flex-end; gap: 0.28rem; height: 100%; }
.v-months i { flex: 1; border-radius: 0.2rem 0.2rem 0 0; background: linear-gradient(180deg, var(--teal), rgba(0, 237, 200, 0.25)); }
.v-months span { color: var(--quiet); font-size: 0.72rem; padding-top: 0.3rem; }
.v-months b { position: absolute; top: 0.6rem; left: 1rem; font-size: 1.5rem; }
.v-months b small { color: var(--quiet); font-size: 0.8rem; font-weight: 400; }

.v-score { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 0 1rem; }
.v-score ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.v-score li { display: grid; grid-template-columns: 5.6rem 1fr; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--soft); }
.v-score i { height: 0.3rem; border-radius: 1rem; background: linear-gradient(90deg, var(--c) var(--v), rgba(255, 255, 255, 0.18) var(--v)); }
.v-score b { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%; font-size: 1.6rem; border: 0.3rem solid var(--green); }

.v-ideas, .v-listing div { display: flex; flex-wrap: wrap; gap: 0.4rem; align-content: center; }
.v-ideas { padding: 0.8rem 1rem; }
.v-ideas span { border: 1px dashed rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.82rem; color: var(--soft); white-space: nowrap; }
.v-ideas b { color: var(--teal); margin-left: 0.2rem; }

.v-listing { padding: 0.7rem 1rem; display: grid; align-content: center; gap: 0.5rem; }
.v-listing small { display: flex; justify-content: space-between; color: var(--quiet); font-size: 0.75rem; }
.v-listing span { border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 28%, transparent); border-radius: 999px; padding: 0.15rem 0.65rem; font-size: 0.82rem; }

.v-private { list-style: none; margin: 0; padding: 0 1.2rem; display: grid; align-content: center; gap: 0.5rem; }
.v-private li { display: block; color: var(--soft); font-size: 0.95rem; }
.v-private li::first-letter { color: var(--green); }

.quiet { color: var(--quiet); font-size: 0.92rem; }
.center { text-align: center; }

/* ----------------------------------------------------------------------------------------- text pages */
.text { max-width: 44rem; margin: 1.5rem auto 0; }
.text h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.text h2 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; }
.text .lead { margin-inline: 0; }
.text p { color: var(--soft); }
.text h3 { margin-top: 1.6rem; color: var(--text); }

footer { padding-block: 1.5rem 2.5rem; color: var(--quiet); font-size: 0.88rem; border-top: 1px solid var(--line); }
footer a { color: var(--soft); }
.legal { margin: 0; }
