/* Jacob's Orbit website. Colours from src/theme/tokens.ts: lime = done, neon blue = links/focus,
   brand purple #ED1597 = "new here" (#FF6FCB for small text on dark). No red. */

@font-face { font-family: Inter; src: url(/fonts/Inter_400Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter_600SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter_700Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --black0: #0E1114;
  --black2: #20252A;
  --text: #E7ECE5;
  --muted: #A9B0C2;
  --lime: #C7F23A;
  --cyan: #20D9D1;
  --magenta: #ED1597;
  --magenta-text: #FF6FCB;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(14, 17, 20, 0.62);
  --edge: rgba(255, 255, 255, 0.14);
  --radius: 24px;
  --gutter: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--black0);
  overflow-x: hidden;
}
main { flex: 1; width: 100%; }

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

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: var(--gutter); z-index: 10; background: var(--black0); padding: 8px 12px; }

/* Header floats over the sky: transparent, no bar. */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(var(--gutter), calc((100% - 960px) / 2)) 12px;
  /* Glass, like the app's ScrollHeader: content scrolls under it and stays readable. */
  background: linear-gradient(180deg, rgba(14, 17, 20, 0.72), rgba(14, 17, 20, 0.45));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 8px; }
.top nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.top nav a[aria-current="page"] { border-color: var(--cyan); color: var(--cyan); }

main { max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) 32px; }

.glass {
  background: var(--glass-strong);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; }
h1 { font-size: clamp(32px, 7vw, 48px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 12px; }
.lede { font-size: 19px; color: var(--text); max-width: 34ch; }
.muted { color: var(--muted); font-size: 15px; }

/* Home */
.hero { text-align: center; padding: 40px 0 28px; display: flex; flex-direction: column; align-items: center; }
.hero-icon { border-radius: 26px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); margin-bottom: 20px; }
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--magenta); color: var(--magenta-text);
  background: rgba(237, 21, 151, 0.12); font-weight: 600; font-size: 15px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }

.tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 8px 0 24px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.tile h2 { margin-top: 14px; }
.tile p { color: var(--muted); font-size: 15px; margin: 0; }
.ring {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--edge);
}

.ring.done { color: var(--lime); }

.rocket { display: block; width: 160px; height: auto; margin: 8px auto 24px; transform: rotate(-18deg); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)); }
.hero .rocket { margin: 0 auto 20px; }
.note { padding: 20px; text-align: center; }
.note p:last-child { margin: 0; }

/* Minimal home (April, 2026-11-07): her words, logo, rocket, no background art or feature list. */
.page-home main {
  display: grid; place-items: center;
  background: radial-gradient(closest-side, rgba(199, 242, 58, 0.10), rgba(32, 217, 209, 0.04) 55%, transparent 100%) center / min(900px, 140vw) min(900px, 140vw) no-repeat;
}
.hero-min { padding: 48px 0 64px; }
.rocket-min { width: 120px; margin: 0 auto 28px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.wordmark { font-size: clamp(44px, 11vw, 104px); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px; }
.lime-dot { display: inline-block; width: 0.17em; height: 0.17em; border-radius: 50%; background: var(--lime); margin-left: 0.04em; }
.hero-min .lede { max-width: 30ch; text-wrap: balance; margin: 0 auto 32px; color: var(--muted); font-size: clamp(18px, 2.6vw, 24px); }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 24px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.touch { color: var(--text); text-decoration: none; padding: 10px 20px; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-weight: 600; font-size: 15px; }
.touch:hover { border-color: var(--cyan); color: var(--cyan); }

/* Support */
.page-head { padding: 32px 0 16px; }
.card { padding: 20px; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.big-link { font-size: 20px; font-weight: 600; word-break: break-all; }

/* Privacy */
.policy { padding: 24px 20px; margin-top: 16px; }
@media (min-width: 640px) { .policy { padding: 36px 40px; } }
.policy .updated { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.policy h2 { margin-top: 32px; padding-top: 4px; scroll-margin-top: 80px; }
.policy h2:first-of-type { margin-top: 8px; }
.policy ul { padding-left: 22px; margin: 0 0 12px; }
.policy li { margin-bottom: 8px; }
.policy strong { color: #fff; }
.policy em { font-style: normal; font-weight: 600; color: var(--text); }

.policy .toc { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { display: inline-block; font-size: 14px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--edge); text-decoration: none; }

table.providers { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
table.providers th, table.providers td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--edge); }
table.providers th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

/* On phones each provider becomes its own small card, label beside each value. */
@media (max-width: 639px) {
  table.providers thead { position: absolute; left: -9999px; }
  table.providers, table.providers tbody, table.providers tr, table.providers td { display: block; width: 100%; }
  table.providers tr { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--edge); border-radius: 16px; padding: 6px 14px; margin-bottom: 10px; }
  table.providers td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  table.providers td:last-child { border-bottom: 0; }
  table.providers td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; padding-top: 2px; }
  table.providers td:first-child { font-weight: 700; color: #fff; font-size: 16px; }
}

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 24px max(var(--gutter), calc((100% - 960px) / 2)) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted); font-size: 15px;
}
.foot p { margin: 0; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--text); }
@media (max-width: 480px) { .foot { justify-content: center; text-align: center; } }

@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.45; } }
}
