/* DoScroll website. Colors and type follow the app's light scheme in src/lib/theme.ts. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --base: #ffffff;
  --surface: #f6f8fa;
  --raised: #edf1f5;
  --text: #0b1116;
  --dim: #5a6b7c;
  --border: #e3e8ed;
  --border-raised: #cbd5de;
  --accent: #0b1116;
  --on-accent: #ffffff;
  --focus: #2f6fed;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--dim); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 16px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  border-radius: 12px;
  z-index: 10;
}
.skip:focus { left: 24px; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 28px; width: auto; display: block; }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 0;
}
.site-nav a[aria-current="page"] { text-decoration: underline; }

/* Main */
main { padding: 64px 0 96px; }

h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin: 56px 0 24px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 16px;
}
p { margin: 0 0 20px; }
ul, ol { margin: 0 0 20px; padding-left: 24px; }
li { margin-bottom: 12px; }

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
}
.meta { color: var(--dim); font-size: 15px; margin-bottom: 48px; }
.dim { color: var(--dim); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin: 40px 0;
}
.card h2 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.pill {
  display: inline-block;
  background: var(--raised);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--raised);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
details {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
details:last-of-type { border-bottom: 1px solid var(--border); }
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
}
details[open] summary { margin-bottom: 16px; }

/* Button */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 14px;
  min-height: 52px;
}
.button:hover { color: var(--on-accent); opacity: 0.88; }

.center { text-align: center; }
.confirm { padding-top: 48px; }
.confirm .lead { margin-bottom: 40px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  color: var(--dim);
  font-size: 15px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 16px; }
.site-footer a { color: var(--dim); }
.site-footer p { margin: 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  main { padding: 48px 0 72px; }
  h1 { font-size: 32px; }
  h2 { font-size: 20px; margin-top: 48px; }
  .lead { font-size: 18px; }
  .card { padding: 24px; border-radius: 16px; }
  .brand img { height: 24px; }
  .site-nav { gap: 20px; }
}

/* The name set as type, in the app's wordmark face (Inter Bold), with no bird: the bird was the
   old mark and is being retired. Same treatment in the header and on the card. */
.wordmark { font-family: Inter, -apple-system, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.035em; color: var(--ink, #0E1116); line-height: 1; }
.brand .wordmark { font-size: 26px; }
@media (max-width: 640px) { .brand .wordmark { font-size: 22px; } }
.brand { gap: 10px; }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; display: block; }
@media (max-width: 640px) { .brand .mark { width: 28px; height: 28px; border-radius: 7px; } }
.brand { display: inline-flex !important; flex-direction: row; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; }
