/* Orbit's site. Colors match the app (mobile/src/theme/colors.ts). */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/HankenGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/HankenGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ground: #F4F5F1;
  --surface: #FFFFFF;
  --line: #DCDFE5;
  --ink: #1C2433;
  --ink-muted: #5B6475;
  --action: #3A5BD9;
  --action-text: #2C46AE;
  --action-soft: #E6EAFA;
  --due: #B87516;
  --due-soft: #F6EAD6;
  --done: #2F7D5B;
  --done-soft: #E2F0E9;
  --display: "Hanken Grotesk", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #151A24;
    --surface: #1E2430;
    --line: #323A4A;
    --ink: #E9ECF2;
    --ink-muted: #A3ACBD;
    --action: #4A68E0;
    --action-text: #A9B9FF;
    --action-soft: #26304F;
    --due: #E0A040;
    --due-soft: #3A2E1C;
    --done: #2A7A55;
    --done-soft: #1D3A2E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
a { color: var(--action-text); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header: the name on the left, the other language on the right. */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font: 700 1.25rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); max-width: 14ch; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1.5rem; letter-spacing: -0.01em; }
p, ul { margin: 0.75rem 0 0; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

/* Home */
.hero { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 0 3.5rem; }
.lede { font-size: 1.2rem; color: var(--ink-muted); max-width: 34rem; margin-top: 1.25rem; }
.soon { display: inline-block; margin-top: 1.75rem; padding: 0.6rem 1rem; border-radius: 999px; background: var(--action-soft); color: var(--action-text); font: 600 1rem/1.2 var(--display); }
.orbit { width: 100%; max-width: 26rem; justify-self: center; }
.orbit .ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.orbit .you { fill: var(--ink); }
.orbit .ontime { fill: var(--action); }
.orbit .done { fill: var(--done); }
.orbit .due { fill: var(--due); }
.orbit .halo { fill: none; stroke: var(--due); stroke-width: 2; opacity: 0.45; }
@media (prefers-reduced-motion: no-preference) {
  .orbit .halo { animation: halo 2.8s ease-out 0.4s 3; transform-origin: center; transform-box: fill-box; }
  @keyframes halo { from { transform: scale(0.6); opacity: 0.7; } to { transform: scale(1.6); opacity: 0; } }
}
@media (min-width: 52rem) { .hero { grid-template-columns: 1.2fr 1fr; padding: 4rem 0 5rem; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.steps li { margin: 0; background: var(--ground); padding: 1.5rem 0; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 1rem; }
.steps .n { font: 700 1.5rem/1.2 var(--display); color: var(--ink-muted); }
.steps h3 { margin: 0; }
.steps p { margin: 0.35rem 0 0; color: var(--ink-muted); max-width: 38rem; }
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); border: 0; background: none; gap: 2rem; }
  .steps li { grid-template-columns: 1fr; padding: 1.5rem 0 0; border-top: 2px solid var(--ink); }
  .steps .n { margin-bottom: 0.75rem; }
}
.promise { margin: 3.5rem 0 0; padding: 1.5rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--line); max-width: 44rem; }
.promise p:first-child { margin-top: 0; }

/* Text pages: privacy policy, support, confirmation */
.doc { max-width: 42rem; padding: 2rem 0 1rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); max-width: none; }
.updated { color: var(--ink-muted); margin-top: 0.5rem; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

.notice { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: 1rem; background: var(--done-soft); }
.notice.problem { background: var(--due-soft); }
.notice h2 { margin: 0; font-size: 1.25rem; }
.notice p { margin-top: 0.4rem; }
[hidden] { display: none !important; }

footer { margin-top: 4rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 0.95rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer p { margin-top: 0.75rem; }
