/* r3o.uk. Colors are the app's tokens (src/renderer/src/styles.css), the font is the app's Inter. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --font: 'Inter Variable', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f2f5f9;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-2: #475569;
  --link: #0369a1;
  --water: #0369a1;
  --focus: #c2410c;
  --rise: #047857;
  --plan: #5263b5;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1120;
    --surface: #131c2e;
    --surface-2: #1a2539;
    --border: rgba(148, 163, 184, 0.13);
    --border-strong: rgba(148, 163, 184, 0.24);
    --text: #e6edf7;
    --text-2: #a3b3ca;
    --link: #38bdf8;
    --water: #38bdf8;
    --focus: #fb923c;
    --rise: #6ee7b7;
    --plan: #a5b4fc;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 48px 0 16px; }

/* The logo: the letters take the text color (a mask, as in the app), the glass O stays as drawn. */
.wordmark { position: relative; display: block; aspect-ratio: 295 / 128; }
.wordmark > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.wordmark-letters {
  background: var(--text);
  -webkit-mask: url(/brand/wordmark-letters.png) center / 100% 100% no-repeat;
  mask: url(/brand/wordmark-letters.png) center / 100% 100% no-repeat;
}

/* ---------- home ---------- */

.hero { padding: 64px 0 8px; text-align: center; }
.hero-logo { width: 200px; margin: 0 auto; }
.slogan { margin: 20px 0 0; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-2); }
.lead { max-width: 34em; margin: 20px auto 0; font-size: 19px; line-height: 1.5; }

.tools, .platforms { list-style: none; margin: 0; padding: 0; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tool {
  --m: var(--water);
  padding: 18px 20px 20px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.tool.focus { --m: var(--focus); }
.tool.rise { --m: var(--rise); }
.tool.plan { --m: var(--plan); }
.tool-name { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--m); }
.tool-name::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--m); }
.tool h3 { margin: 4px 0 6px; font-size: 18px; }
.tool p:last-child { margin: 0; color: var(--text-2); }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms li {
  padding: 8px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 600;
}

.data p { max-width: 40em; }

/* ---------- documents (privacy, 404) ---------- */

.bar { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 16px 0; }
.bar .wordmark { width: 92px; }

.doc { padding-top: 8px; padding-bottom: 16px; }
.doc h1 { font-size: 32px; margin: 32px 0 8px; }
.doc h2 { margin: 40px 0 12px; }
.doc p, .doc li { max-width: 42em; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--text-2); }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; }
tr + tr td, tbody tr:first-child td { border-top: 1px solid var(--border-strong); }

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

.foot {
  width: calc(100% - 32px); max-width: 728px; margin: 64px auto 0; padding: 24px 0 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--border-strong);
  font-size: 15px; color: var(--text-2);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot p { margin: 0; }

@media (max-width: 480px) {
  .hero { padding-top: 48px; }
  .hero-logo { width: 168px; }
  .lead { font-size: 17px; }
  h2 { font-size: 20px; margin-top: 40px; }
  .doc h1 { font-size: 27px; }
}
