/* oovra.org landing page. Colours, radii and the primary button follow the app's tokens
   (src/app/tokens.css) and its sign-in door (src/app/hosted/onboard.css). System fonts only:
   the app's UI faces are bundled from npm, not shipped in public/fonts. */
:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg: #262a28;
  --fg-3: #4f5551;
  --fg-4: #646965;
  --accent: #4f6b1a;
  --accent-fg: #fff;
  --accent-hover: #445d16;
  --accent-edge: #3f5615;
  --mark-edge: transparent;
  --quiet-edge: rgb(0 0 0 / 0.18);
  --quiet-hover: rgb(0 0 0 / 0.05);
  --shot-shadow:
    0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(20 28 20 / 0.06),
    0 20px 60px -24px rgb(20 28 20 / 0.25);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18191b;
    --fg: #f2f2f3;
    --fg-3: #a8aaaf;
    --fg-4: #9a9ca2;
    --accent: #cfe879;
    --accent-fg: #141814;
    --accent-hover: #d9ee96;
    --accent-edge: #a6ba61;
    --mark-edge: rgb(255 255 255 / 0.14);
    --quiet-edge: rgb(255 255 255 / 0.22);
    --quiet-hover: rgb(255 255 255 / 0.08);
    --shot-shadow:
      0 0 0 1px rgb(255 255 255 / 0.09), 0 1px 2px rgb(0 0 0 / 0.35),
      0 30px 80px -24px rgb(0 0 0 / 0.65);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    400 15px/1.45 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* One centred column; on a desktop window the whole page fits without scrolling. */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.5vh, 44px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(32px, 5.5vh, 56px) 16px;
  text-align: center;
}
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: inherit;
  line-height: 1;
}
.logo svg {
  display: block;
}
/* The ink tile keeps its edge on the dark page, as on the app's sign-in screen. */
.logo-mark {
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--mark-edge);
}
.tagline {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.35;
  color: var(--fg-3);
}

/* The screenshot is 1440x900 (8:5). Its width follows the window's height so the button stays in view,
   never narrower than 520px (or the column) and never wider than 1120px. */
.hero {
  display: block;
  width: clamp(min(100%, 520px), calc((100vh - 376px) * 1.6), min(100%, 1120px));
  width: clamp(min(100%, 520px), calc((100dvh - 376px) * 1.6), min(100%, 1120px));
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shot-shadow);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.15),
    0 0 0 1px var(--accent-edge);
}
.button:hover {
  background: var(--accent-hover);
}
/* Sign up and Log in sit side by side and wrap only when the window is too narrow for both. */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
/* The second action: the page's own colours with an outline, in both themes. */
.button.quiet {
  background: transparent;
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--quiet-edge);
}
.button.quiet:hover {
  background: var(--quiet-hover);
}
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.note {
  margin: 0;
  font-size: 13px;
  color: var(--fg-4);
}

.legal {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--fg-4);
}
.legal a,
.doc a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover,
.doc a:hover {
  color: var(--fg);
}
.legal a:focus-visible,
.doc a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The privacy and terms pages: one readable column, left-aligned. */
main.doc {
  display: block;
  min-height: 0;
  max-width: 660px;
  margin: 0 auto;
  padding: 48px 20px 96px;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-3);
}
.doc h1 {
  margin: 28px 0 4px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--fg);
}
.doc h2 {
  margin: 36px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--fg);
}
.doc p,
.doc ul {
  margin: 0 0 14px;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 8px;
}
.doc strong {
  font-weight: 600;
  color: var(--fg);
}
.doc .back,
.doc .dated {
  margin: 0;
  font-size: 13px;
  color: var(--fg-4);
}
.doc .dated {
  margin-bottom: 22px;
}

@media (max-width: 600px) {
  .hero img {
    border-radius: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}
@media (forced-colors: active) {
  .button {
    border: 1px solid ButtonText;
  }
}
