/* Steady's site: the app's shell tokens (ios/Steady/Design/Palette.swift)
   and type (Inter Tight), served from here so the site makes no requests to
   anyone else. Text is never coloured; the accent is for focus only. */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --fill: #EFEFEC;
  --ink: #111214;
  --ink-mute: #6B6C71;
  --hairline: #E3E3DF;
  --accent: #3E5C9E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F11;
    --surface: #191A1D;
    --fill: #232428;
    --ink: #F5F5F3;
    --ink-mute: #8B8C92;
    --hairline: #2B2C30;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
}
.skip:focus { left: 16px; }

.top {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

main { flex: 1; width: 100%; }

/* One-screen landing. */
.hero {
  max-width: 720px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero img { width: 128px; height: 128px; border-radius: 29px; }
.hero h1 {
  margin: 28px 0 8px;
  font-size: clamp(44px, 9vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero p { margin: 0; font-size: 20px; color: var(--ink-mute); max-width: 28ch; }

/* Stand-in until launch, when Apple's official badge replaces it. */
.badge {
  margin-top: 32px;
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-mute);
}

/* Long-form pages: the privacy policy and support. */
.page { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; }
.page h1 { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.page h2 { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 40px 0 8px; }
.page h3 { font-size: 17px; font-weight: 600; margin: 24px 0 4px; }
.page p, .page li { max-width: 65ch; }
.page ul { padding-left: 22px; }
.page li + li { margin-top: 6px; }
.meta { color: var(--ink-mute); margin: 0 0 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 4px 20px;
}
.card > h2:first-child { margin-top: 20px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
th { font-weight: 600; }

details { border-bottom: 1px solid var(--hairline); padding: 14px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; }

footer {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-mute);
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
footer p { margin: 4px 0; }
