/* inoq.life: the app's tokens (DESIGN.md). Grayscale, pills, 12px containers, no shadows, system fonts. */
:root {
  --page: #f7f7f7;
  --card: #ffffff;
  --text: #000000;
  --text-2: #525252;
  --text-3: #737373;
  --border: #e5e5e5;
  --primary: #000000;
  --on-primary: #ffffff;
  --quiet: #e8e8e8;
  --ring: rgb(59 130 246 / 0.5);
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0a0a0a;
    --card: #0a0a0a;
    --text: #fafafa;
    --text-2: #d4d4d4;
    --text-3: #a3a3a3;
    --border: #262626;
    --primary: #fafafa;
    --on-primary: #0a0a0a;
    --quiet: #262626;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.brand img { border-radius: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 500 20px/1 var(--display); }
.top-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.langs { display: inline-flex; gap: 2px; }
.langs a {
  text-decoration: none; color: var(--text-3); font-size: 14px; padding: 6px 10px; border-radius: 9999px;
}
.langs .short { display: none; }
@media (max-width: 519px) {
  .top .langs .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .top .langs .short { display: inline; }
}
.langs a[aria-current="page"] { color: var(--text); background: var(--quiet); }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 22px; border-radius: 9999px; text-decoration: none; font-weight: 500; font-size: 16px;
}
.pill-primary { background: var(--primary); color: var(--on-primary); }
.pill-quiet { min-height: 36px; padding: 0 16px; font-size: 14px; background: var(--card); border: 1px solid var(--border); }
.link { color: var(--text); text-underline-offset: 3px; }

/* Hero */
.hero { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 48px; align-items: center; }
.hero-text { display: grid; gap: 20px; max-width: 560px; }
.lead { font-size: 19px; color: var(--text-2); }
.actions { margin-top: 4px; }
.fine { font-size: 14px; color: var(--text-3); }

/* Screenshots: a plain 12px frame, no device bezel */
.shot { margin: 0; justify-self: center; width: min(100%, 300px); }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }

/* Note */
.note { padding-top: 40px; padding-bottom: 40px; max-width: 720px; display: grid; gap: 20px; }
.note blockquote {
  margin: 0; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  display: grid; gap: 16px; font-size: 18px; color: var(--text-2);
}
.note blockquote footer { color: var(--text); font-weight: 500; }

/* Features: one screen, a few sentences */
.feature { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 40px; align-items: center; }
.feature > div { display: grid; gap: 14px; max-width: 480px; }
.feature p, .plain p { color: var(--text-2); }

.plain { max-width: 720px; display: grid; gap: 14px; padding-top: 40px; padding-bottom: 40px; }
.plain h2 { margin-bottom: 4px; }

/* Footer */
.bottom {
  display: grid; gap: 12px; padding-top: 32px; padding-bottom: 40px; margin-top: 40px;
  border-top: 1px solid var(--border); font-size: 14px; color: var(--text-3);
}
.bottom-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.bottom-links a { color: var(--text-2); text-underline-offset: 3px; }
.bottom .langs { margin-left: -10px; }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 56px; padding-bottom: 96px; }
  .shot-hero { width: 340px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 48px; padding-bottom: 48px; }
  .feature .shot { width: 300px; }
  .feature-flip > .shot { order: 2; }
  .note, .plain { padding-top: 72px; padding-bottom: 72px; }
}

/* Motion: one short fade as a section first comes into view; nothing under reduced motion. */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 200ms ease-out, transform 200ms ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
