/* Web de Fleko (fleko.dev). Mismos colores y letra que la app (src/tokens.css).
   Sin fuentes ni scripts externos. */
:root {
  color-scheme: dark light;
  --bg: #0c0d10;
  --surface: #15171b;
  --surface-2: #1c1f25;
  --border: #2a2e37;
  --border-strong: #3a3f4b;
  --text: #ecedef;
  --muted: #9ba1ac;
  --accent: #8b7cff;
  --accent-fill: #6c56f5;
  --accent-fill-hover: #7a66f8;
  --accent-soft: rgb(139 124 255 / 0.14);
  --ok: #4ccb8b;
  --font-text: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 24px 60px rgb(0 0 0 / 0.45);
  --wide: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f8;
    --surface: #ffffff;
    --surface-2: #efeff2;
    --border: #e3e4e8;
    --border-strong: #cdced6;
    --text: #16181d;
    --muted: #5c626e;
    --accent: #5b45f0;
    --accent-fill: #5b45f0;
    --accent-fill-hover: #4a35d8;
    --accent-soft: rgb(91 69 240 / 0.1);
    --ok: #177a4b;
    --shadow: 0 24px 60px rgb(22 24 29 / 0.14);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

/* Cabecera */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 15px;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--text);
}

/* Portada */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding-block: 72px 88px;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 58px);
  font-weight: 700;
}

.hero .lead {
  margin-top: 20px;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--accent-fill);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.button:hover {
  background: var(--accent-fill-hover);
}

.button svg {
  width: 18px;
  height: 18px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.note {
  margin-top: 16px;
  max-width: 36em;
  color: var(--muted);
  font-size: 14px;
}

/* Ilustración: el menú del Explorador */
.demo {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
  user-select: none;
}

.file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
}

.file .thumb {
  flex: none;
  width: 34px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, #3b82f6, #8b7cff 55%, #f472b6);
}

.file .name {
  font-weight: 600;
}

.file .size {
  margin-left: auto;
  color: var(--muted);
}

.menus {
  display: flex;
  align-items: flex-start;
  margin: 10px 0 0 48px;
}

.menu {
  min-width: 170px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--muted);
  white-space: nowrap;
}

.menu li.on {
  background: var(--accent-soft);
  color: var(--text);
}

.menu li.pick {
  background: var(--accent-fill);
  color: #fff;
}

.menu li.sep {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  padding-top: 10px;
}

.menu ul,
ul.menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu.sub {
  margin: 34px 0 0 -8px;
}

.result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.result .tick {
  color: var(--ok);
  font-weight: 700;
}

.result .size {
  margin-left: auto;
  color: var(--ok);
  font-weight: 600;
}

/* Secciones */
section {
  padding-block: 72px;
  border-top: 1px solid var(--border);
}

section > .wrap > h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  max-width: 22em;
}

section > .wrap > .lead {
  margin-top: 14px;
  max-width: 40em;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.card svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.card h3 {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 600;
}

.card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
}

.card.wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  align-items: start;
}

.card.wide svg {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  margin-top: 4px;
}

.card.wide h3 {
  margin-top: 0;
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.promises li {
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.promises strong {
  display: block;
  font-size: 18px;
}

.promises span {
  color: var(--muted);
  font-size: 15.5px;
}

.final {
  text-align: center;
}

.final .wrap > h2,
.final .wrap > .lead {
  margin-inline: auto;
}

.final .cta {
  justify-content: center;
}

/* Páginas de texto: privacidad y soporte */
.page {
  padding-block: 56px 88px;
}

.page .wrap {
  max-width: 720px;
}

.page h1 {
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 700;
}

.page .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.page h2 {
  margin-top: 44px;
  font-size: 23px;
  font-weight: 600;
}

.page h3 {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page p,
.page ul,
.page ol {
  margin-top: 12px;
}

.page li + li {
  margin-top: 6px;
}

.page .box {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.page .box p:first-child {
  margin-top: 0;
}

.mail {
  font-size: 21px;
  font-weight: 600;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  font-family: inherit;
  font-size: 0.9em;
}

/* Pie */
footer {
  padding-block: 32px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer a {
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 40px 64px;
  }

  .grid,
  .promises {
    grid-template-columns: 1fr;
  }

  .card.wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .demo {
    padding: 18px;
  }

  .menus {
    margin-left: 12px;
  }

  /* En el móvil se ve directamente el submenú de Fleko. */
  .menus > .menu:first-child {
    display: none;
  }

  .menu.sub {
    margin: 0;
  }

  .top nav .hide-s {
    display: none;
  }
}
