/* wiit.world — landing, privacy, terms, contact.
   Same visual system as the share page: the tokens below are copied from
   cloudflare/worker/src/page.js so both look like one product. If a token
   changes there, change it here too.
   Snow / Black bases, Cobalt accent, Figtree, no third-party requests. */

@font-face {
  font-family: 'Figtree';
  /* The axis range has to be the real one. Declaring 100–900 leaves browsers on
     the 300 default and the whole site renders Light. */
  src: url('figtree.woff2') format('woff2-variations'),
       url('figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAFAFA; --card: #FFFFFF; --card2: #F0F0F0;
  --ink: #111112; --ink-2: #606063; --ink-3: #707074;
  --line: rgba(0, 0, 0, .08);
  --accent: #35558C; --accent-2: #2A4372; --accent-soft: #DEE5F1;
  --mark-ink: #313647; --mark-pool: #FFD150;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --card: #121316; --card2: #1C1E22;
    --ink: #F5F4F1; --ink-2: #9B9DA1; --ink-3: #85878C;
    --line: rgba(255, 255, 255, .11);
    --accent: #8AAAE8; --accent-2: #6F8DC8; --accent-soft: rgba(138, 170, 232, .15);
    /* El charco va oscuro en tema oscuro, igual que en la app y en page.js. Con el amarillo
       (#F2C04A) la web era el unico sitio de los tres donde el logo salia distinto. */
    --mark-ink: #8AAAE8; --mark-pool: #0E1420;
    --shadow: none;
  }
}

* { box-sizing: border-box; margin: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

/* Never remove the outline without replacing it — this is how a keyboard finds
   its way around the page. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--card); color: var(--ink); padding: 12px 18px; border-radius: 0 0 14px 0;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.head {
  display: flex; justify-content: center; align-items: center;
  padding: clamp(18px, 2.8vh, 30px) clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.head a { display: block; line-height: 0; border-radius: 8px; }
/* display:block matters: the mark lives in a <span>, and width on an inline box
   is ignored — the SVG then stretches to the width of the page. */
.mark { display: block; width: clamp(84px, 7.4vw, 104px); height: auto; }
.mark svg { width: 100%; height: auto; }

/* ---------- layout ---------- */

main { flex: 1; width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); width: 100%; }
section { padding: clamp(40px, 7vh, 84px) 0; }
section + section { border-top: 1px solid var(--line); }

/* ---------- type ---------- */

h1 {
  font-size: clamp(32px, 6vw, 52px); font-weight: 800;
  letter-spacing: -.038em; line-height: 1.02; text-wrap: balance;
}
h2 {
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 800;
  letter-spacing: -.032em; line-height: 1.1; text-wrap: balance;
}
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }

.flabel {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; display: block;
}
.lede {
  margin-top: 16px; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.55;
  color: var(--ink-2); max-width: 54ch; text-wrap: pretty;
}
.sub { margin-top: 12px; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 14px; }
.small { font-size: 13.5px; color: var(--ink-3); }
strong, b { color: var(--ink); font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: .92em; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(36px, 6vh, 72px); }
.hero h1 { margin-top: 10px; }

/* A row holding a button or two, and the line of small print under it. Used in
   the hero and in the sections that end in a call to action. */
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center;
  margin-top: clamp(22px, 4vh, 36px);
}
.note-line { margin-top: 15px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 62px; padding: 0 34px; border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-size: 17px; font-weight: 800; letter-spacing: -.015em;
  text-decoration: none; border: none; cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow);
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); color: #fff; }
.btn.small { min-height: 46px; padding: 0 24px; font-size: 14.5px; }

/* The App Store badge has nowhere to point until the app is approved. It is a
   placeholder on purpose, and it says so rather than pretending to be a link. */
.badge-slot {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 62px; padding: 0 28px; border-radius: 999px;
  border: 1.5px dashed var(--line); color: var(--ink-3);
  font-size: 15px; font-weight: 700;
}

/* ---------- cards ---------- */

/* Explicit column counts rather than auto-fit: four cards in an auto-fit grid
   land as three plus an orphan on a wide screen. Two-up and three-up are what
   the content is written for. */
.grid { display: grid; gap: 12px; margin-top: clamp(22px, 3.4vh, 32px); grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border-radius: 18px; padding: clamp(18px, 2.4vw, 24px);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: 14.5px; }

/* Numbered steps. The number is the only decoration on the page. */
.step .num {
  font-size: 12px; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px;
  width: 26px; height: 26px; display: grid; place-items: center; margin-bottom: 12px;
}

/* ---------- the privacy block ---------- */

.shout {
  background: var(--accent-soft); border-radius: 18px;
  padding: clamp(20px, 3vw, 30px);
}
.shout .flabel { color: var(--accent); opacity: .8; }
.shout h2 { color: var(--accent); margin-top: 6px; }
.shout p { color: var(--accent); max-width: 58ch; margin-top: 12px; }
.shout strong { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  /* On the dark base the soft fill is a 15% wash, so body copy inside it reads
     better in the normal ink than in the accent. */
  .shout p { color: var(--ink-2); }
  .shout strong { color: var(--ink); }
}

/* ---------- pricing ---------- */

.price { display: flex; flex-direction: column; gap: 4px; }
.price .amount { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.price .once { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.card.featured { outline: 2px solid var(--accent); outline-offset: -2px; }
ul.ticks { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 8px; }
ul.ticks li {
  display: grid; grid-template-columns: 16px 1fr; gap: 9px;
  font-size: 14.5px; color: var(--ink-2); align-items: start;
}
ul.ticks li::before {
  content: ''; width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent); margin-top: 8px; margin-left: 4px;
}

/* ---------- prose, for the legal pages ---------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: clamp(28px, 4vh, 40px); font-size: clamp(20px, 2.4vw, 24px); }
.prose h2:first-of-type { margin-top: clamp(22px, 3vh, 30px); }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; }
.prose ul { margin: 12px 0 0 0; padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.prose dl { margin-top: 14px; display: grid; gap: 12px; }
.prose dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.prose dd { margin: 4px 0 0 0; color: var(--ink-2); font-size: 15px; }
.updated { margin-top: 14px; color: var(--ink-3); font-size: 13.5px; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line); margin-top: auto; flex: none;
  padding: clamp(30px, 5vh, 48px) clamp(20px, 3vw, 40px) clamp(32px, 5vh, 52px);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.foot .word { display: block; width: 53px; color: var(--ink); opacity: .9; }
.foot .word svg { width: 100%; height: auto; }
.tagline { color: var(--ink-3); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 2px 8px; justify-content: center; margin-top: 4px; }
/* The padding is the tap target: bare 14px text is a 22px-tall thing to hit
   with a thumb. This gets each link to 36px without moving them apart. */
.foot nav a {
  color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 7px 9px; border-radius: 8px;
}
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot nav a[aria-current] { color: var(--ink); }
.langs { display: flex; gap: 4px; align-items: center; font-size: 13.5px; }
.langs span, .langs a { padding: 6px 8px; }
.langs span { color: var(--ink-3); }
.copy { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .btn, .badge-slot { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
}

/* --- la app en ocho pantallas --- */
/* Capturas repartidas por las secciones, cada una junto al texto que ilustra.
   Antes vivian las ocho juntas en una franja con scroll horizontal y sin pie de
   foto: el visitante veia movil tras movil sin saber que miraba, mientras las
   secciones con buen texto no tenian ninguna imagen. */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 16px;
  box-shadow: 0 8px 28px rgba(20,22,30,.16); }

/* Dentro de un paso, la captura va arriba y el propio texto del paso hace de pie */
.step .shot { max-width: 176px; margin: 0 auto 16px; }
.step .shot img { border-radius: 13px; box-shadow: 0 6px 18px rgba(20,22,30,.13); }

/* Texto y prueba visual, lado a lado a partir de tablet */
.split { display: grid; gap: clamp(20px, 4vw, 44px); align-items: center; }
.split .shot { max-width: 236px; margin-inline: auto; }
@media (min-width: 760px) {
  .split { grid-template-columns: 1.15fr .85fr; }
}

/* --- el badge del App Store, por fin de verdad --- */
.storebadge { display: inline-block; }
.storebadge img { height: 56px; width: auto; display: block; }
.storebadge:hover img { opacity: .85; }

/* Fila minima de idiomas arriba a la derecha, en pequeno y en gris: para quien
   aterriza en el idioma equivocado y busca donde cambiarlo, que es donde mira
   todo el mundo. La lista completa con los nombres sigue en el pie. El logo se
   queda centrado: la fila va en absoluto y no le roba sitio. */
.head { position: relative; }
.langs-top { position: absolute; right: clamp(20px, 3vw, 40px); top: 50%; transform: translateY(-50%);
  display: flex; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.langs-top a, .langs-top span { display: inline; line-height: 1; color: var(--ink-3); text-decoration: none; }
.langs-top a:hover { color: var(--ink); }
.langs-top span { color: var(--ink); }
@media (max-width: 480px) { .langs-top { gap: 7px; font-size: 10.5px; } }
