/* ---------------------------------------------------------------------------
   Ovotone — ovotone.com
   Palette and type sampled from Design/Basic Redirect Page Design.png
   (4320x2592 = a 1440x864 layout at 3x): bg #F9F9F9, ink #333333, muted #6A6A6A.
--------------------------------------------------------------------------- */

@font-face {
  font-family: "Jakarta";
  src: url("assets/JakartaSansDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("assets/JakartaSansDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("assets/JakartaSansDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f9f9f9;
  --ink: #333333;
  --muted: #6a6a6a;
  --rule: #e4e4e4;
  --doc-width: 560px;
  --page-width: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.logo-svg { display: block; fill: currentColor; }

/* --- Landing page ------------------------------------------------------- */

/* The landing page is a column: main takes the free height, the footer sits
   under it. body carries the column so <footer> can live outside <main>. */
body.home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 0;
}

/* The design places the lockup at ~37% of the viewport height and the product
   links at ~65%. Three zero-basis spacers split all free space in the design's
   own proportions, so the rhythm holds at any window height; the min-heights
   keep short windows from collapsing the groups into each other. */
.landing .spacer-top { flex: 5.5 1 0; min-height: 56px; }
.landing .spacer-mid { flex: 2.9 1 0; min-height: 56px; }
.landing .spacer-bot { flex: 3.1 1 0; min-height: 48px; }

.lockup { text-align: center; }

.lockup .logo-svg {
  width: min(382px, 72vw);
  height: auto;
  margin: 0 auto;
}

.tagline {
  margin: 16px 0 0;
  line-height: 1.2;
  font-size: clamp(22px, 2.2vw + 12px, 29px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.products {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  line-height: 1.25;
  font-size: clamp(19px, 1.2vw + 12px, 22px);
}

.products a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.products a .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

@media (hover: hover) {
  .products a:hover { opacity: 0.62; }
  .products a:hover .arrow { transform: translateX(4px); }
}

.products a:focus-visible,
.site-footer a:focus-visible,
.site-header a:focus-visible,
.doc a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  width: 100%;
  padding: 24px 24px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 40px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.site-footer a { text-decoration: none; }

@media (hover: hover) {
  .site-footer a:hover { color: var(--ink); }
}

/* --- Document pages (privacy / terms) ----------------------------------- */

.site-header {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .logo-svg { width: 96px; height: auto; }

.site-header .support {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

@media (hover: hover) {
  .site-header .support:hover { color: var(--muted); }
}

.doc {
  max-width: var(--doc-width);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 3vw + 14px, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc .updated {
  margin: 0 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.doc h2 {
  margin: 40px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 26px 0 6px;
  font-size: 15px;
  font-weight: 500;
}

.doc p,
.doc li {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.75;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.doc li { margin-bottom: 6px; }

.doc a { color: inherit; }

.doc strong { font-weight: 500; }

.doc .lead {
  font-size: 15.5px;
  color: var(--ink);
}

.doc hr {
  margin: 48px 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.doc .back {
  display: inline-block;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

@media (hover: hover) {
  .doc .back:hover { color: var(--ink); }
}

@media (max-width: 520px) {
  .site-footer { gap: 6px 24px; font-size: 13px; }
  .doc { padding-top: 32px; }
}

/* Honour a reader's reduced-motion preference: the only motion here is the
   arrow nudge and the link fade, both purely decorative. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
