/* Liame — site público (GitHub Pages). Sem fontes nem scripts de terceiros. */
:root {
  --ink: #0A1020;
  --deep: #0F1A30;
  --line: #1E2A44;
  --mist: #B9C5DA;
  --white: #F2F6FC;
  --blue: #1F7BFF;
  --cyan: #22D3EE;
  --display: "Segoe UI Variable Display", "Segoe UI", "SF Pro Display", system-ui, sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI", "SF Pro Text", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--mist);
  font: 17px/1.6 var(--text);
}
a { color: var(--cyan); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { color: var(--white); font-family: var(--display); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none;
  font: 800 20px/1 var(--display); letter-spacing: 0.22em; }
.brand img { width: 34px; height: auto; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--mist); text-decoration: none; }
.top nav a:hover { color: var(--white); }
/* 2.24: languages (PT · EN · ES · FR), always visible, also on the phone */
.top nav.langs { display: flex; gap: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.top nav.langs a { padding: 4px 9px; border-radius: 999px; }
.top nav.langs a[aria-current="page"] { background: var(--cyan); color: var(--ink); }

/* hero: the dictionary entry */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 56px 0 88px; }
.entry .word { font: 800 clamp(64px, 11vw, 128px)/0.9 var(--display); color: var(--white); letter-spacing: -0.045em; }
.entry .say { font: italic 19px/1.4 var(--serif); color: var(--mist); margin-top: 14px; }
.entry .def { font: 22px/1.5 var(--serif); color: var(--white); margin-top: 18px; max-width: 30ch; }
.entry .def em { color: var(--mist); }
.pitch { font-size: 19px; margin-top: 30px; max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px;
  font: 700 16px/1 var(--text); text-decoration: none; color: var(--white); background: var(--deep);
  border: 1px solid var(--line); }
.btn:hover { border-color: #33486F; }
.btn.main { background: linear-gradient(120deg, var(--blue), var(--cyan)); color: #04111D; border: 0; }
.btn svg { width: 20px; height: 20px; }
.fine { font-size: 14px; margin-top: 14px; color: #8C9AB3; }

/* the thread between the PC and the phone */
.thread { width: 100%; height: auto; }
.thread .dev { fill: none; stroke: #3A4E75; stroke-width: 2.5; stroke-linejoin: round; }
.thread .bond { fill: none; stroke: url(#g); stroke-width: 3.5; stroke-linecap: round; }
.thread .spark { fill: var(--cyan); }
@media (prefers-reduced-motion: reduce) { .thread .spark { display: none; } }

/* sections */
section { padding: 80px 0; border-top: 1px solid var(--line); }
.lead { margin-top: 14px; max-width: 60ch; }
.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 40px; }
.use { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 32px 1fr; gap: 16px; }
.use svg { width: 26px; height: 26px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.use p { margin-top: 6px; font-size: 16px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 800 44px/1 var(--display); color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan); margin-bottom: 14px; }
.steps p { margin-top: 8px; font-size: 16px; }

.facts { margin-top: 32px; display: grid; gap: 14px; max-width: 64ch; }
.facts p { padding-left: 18px; border-left: 2px solid var(--blue); }

.support { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.support .qr { display: block; background: #fff; border-radius: 20px; padding: 14px; line-height: 0; }
.support .qr img { width: 180px; height: 180px; image-rendering: pixelated; }

.author { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.author p + p { margin-top: 14px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: 14px; color: #8C9AB3; }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 14px; }
footer a { color: var(--mist); }

/* document pages (privacy, license) */
.doc { padding: 40px 0 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.doc .updated { margin-top: 8px; font-size: 14px; color: #8C9AB3; }
.doc .note { margin-top: 12px; padding: 10px 14px; font-size: 14px; border-left: 3px solid var(--cyan); background: var(--deep); border-radius: 6px; }
.doc h2 { font-size: 22px; margin-top: 40px; letter-spacing: 0; font-weight: 700; }
.doc p, .doc ul { margin-top: 12px; }
.doc li { margin-top: 6px; }
.doc pre { white-space: pre-wrap; font: 15px/1.6 var(--text); color: var(--mist); margin-top: 24px; }

@media (max-width: 860px) {
  .hero, .author, .support { grid-template-columns: 1fr; }
  .support .qr { justify-self: start; }
  .hero { padding-top: 24px; gap: 24px; }
  .thread { max-width: 420px; }
  .uses, .steps { grid-template-columns: 1fr; }
  .top nav:not(.langs) { display: none; }
  section { padding: 56px 0; }
}
