/* Lexio News website. Colours and shapes follow the app's theme (src/theme/index.ts). */
:root {
  --paper: #fffbf2;
  --paper-dark: #f3eada;
  --ink: #2b2b2b;
  --ink-muted: #4a4a4a;
  --card: #ffffff;
  --yellow: #ffc83d;
  --blue: #9dbdf7;
  --green: #7cc08a;
  --red: #e5383b;
  --pink: #ffd3e4;
  --sky: #dde8ff;
  --sand: #ffe3a8;
  --dashed: #c9c3b4;
  --border: 2.5px;
  --shadow: 5px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current='page'] { text-decoration: underline; }

/* Shared shapes */
.card {
  background: var(--card);
  border: var(--border) solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow) var(--shadow) 0 var(--ink);
}
.button {
  display: inline-block;
  padding: 14px 26px;
  background: var(--yellow);
  border: var(--border) solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 15px;
}
.button.quiet { background: var(--card); }
/* A highlighter stroke behind a word, as on the app's wordmark: it sits under the letters and
   sticks out a little either side without pushing the text along. */
.mark { position: relative; z-index: 0; white-space: nowrap; }
.mark::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -0.12em;
  right: -0.12em;
  top: 0.2em;
  bottom: 0.1em;
  border-radius: 0.14em;
  background: var(--yellow);
  opacity: 0.75;
  transform: rotate(-1.2deg);
}
.mark.blue::before { background: var(--blue); opacity: 1; transform: rotate(1deg); }

h1, h2, h3 { line-height: 1.2; margin: 0; }

/* Landing */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 700; letter-spacing: -0.01em; }
.hero p.lead { font-size: 20px; color: var(--ink-muted); margin: 20px 0 28px; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.soon { font-size: 14px; color: var(--ink-muted); margin-top: 16px; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.langs li { padding: 6px 14px; border: var(--border) solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 14px; }

.phone {
  border: var(--border) solid var(--ink);
  border-radius: 38px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}
.hero .phone { max-width: 320px; margin: 0 auto; transform: rotate(2deg); }

section { padding: 64px 0; }
section.band { background: var(--paper-dark); border-top: var(--border) solid var(--ink); border-bottom: var(--border) solid var(--ink); }
.section-title { font-size: clamp(28px, 4vw, 38px); font-weight: 700; }
.section-sub { color: var(--ink-muted); margin: 12px 0 0; max-width: 36em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.step { padding: 26px 24px; }
.step .num { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: var(--border) solid var(--ink); border-radius: 50%; font-weight: 700; }
.step:nth-child(1) .num { background: var(--sand); }
.step:nth-child(2) .num { background: var(--blue); }
.step:nth-child(3) .num { background: var(--green); }
.step h3 { font-size: 20px; margin: 16px 0 8px; }
.step p { margin: 0; color: var(--ink-muted); font-size: 16px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 18px; font-size: 16px; color: var(--ink-muted); }
.shots figcaption strong { display: block; color: var(--ink); font-size: 18px; }

.levels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding: 0; list-style: none; }
.levels li { flex: 1 1 140px; padding: 16px; }
.levels b { display: block; font-size: 22px; }
.levels span { font-size: 14px; color: var(--ink-muted); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; margin-top: 32px; }
.facts h3 { font-size: 18px; margin-bottom: 6px; }
.facts p { margin: 0; color: var(--ink-muted); font-size: 16px; }

.cta { text-align: center; }
.cta .card { padding: 44px 24px; background: var(--sand); }
.cta p { color: var(--ink-muted); margin: 12px auto 24px; max-width: 30em; }

/* Text pages */
.doc { padding-top: 24px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; }
.doc .updated { color: var(--ink-muted); font-size: 15px; margin: 10px 0 28px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-muted); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.summary { padding: 22px 24px; background: var(--sky); margin-bottom: 8px; }
.summary p { margin: 0; color: var(--ink); }
.summary ul { margin: 10px 0 0; }
.summary li { color: var(--ink); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px dashed var(--dashed); }
th { color: var(--ink); font-weight: 600; }
td { color: var(--ink-muted); }
details { padding: 16px 20px; margin: 14px 0; box-shadow: 4px 4px 0 var(--ink); }
summary { font-weight: 600; cursor: pointer; color: var(--ink); }
details p { margin: 10px 0 0; }

/* Footer */
footer { border-top: var(--border) solid var(--ink); padding: 28px 0 40px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--ink-muted); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 20px; }
  .hero .phone { max-width: 270px; }
  .steps, .shots, .facts { grid-template-columns: 1fr; }
  .shots figure { max-width: 300px; margin: 0 auto; }
  section { padding: 48px 0; }
  .nav { gap: 12px; font-size: 13px; flex-wrap: nowrap; }
  .brand { font-size: 17px; gap: 8px; white-space: nowrap; }
  .brand img { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform 0.08s ease, box-shadow 0.08s ease; }
  .button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
}
.hero p.lead strong { color: var(--ink); font-weight: 700; }
