/* WebsiteTimeTrack – website. Dark by default, matching the logo's glow. */

:root {
    color-scheme: dark;
    --bg: #07090d;
    --panel: #11151c;
    --panel-2: #161b24;
    --line: #232a36;
    --fg: #eef1f6;
    --muted: #97a1b2;
    --accent: #2f8fff;
    --accent-soft: #1a5fb8;
    --ok: #3fa96b;
    --no: #d9534f;
    --radius: 12px;
    --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 0.88em;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 5px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
h2 { font-size: 28px; letter-spacing: -0.01em; }
h3 { font-size: 17px; }

/* --------------------------------------------------------------------- Nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(7, 9, 13, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    font-weight: 650;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }

.nav nav { display: flex; gap: 20px; }
.nav nav a { color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--fg); text-decoration: none; }

/* -------------------------------------------------------------------- Hero */

.hero {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 72px 24px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
    /* The blue glow of the logo continues behind the hero. */
    background: radial-gradient(ellipse 900px 460px at 60% 30%,
                rgba(47, 143, 255, 0.16), transparent 70%);
}

h1 {
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.lede { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 46ch; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--fg);
    font-weight: 600;
    font-size: 15px;
}
.btn:hover { background: var(--panel); text-decoration: none; border-color: #33415a; }
.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 6px 24px rgba(47, 143, 255, 0.28);
}
.btn.primary:hover { background: #4c9dff; border-color: #4c9dff; }

.badges { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; padding: 0; }
.badges li {
    font-size: 13px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 12px;
}

.hero-shot img {
    width: 360px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(47, 143, 255, 0.12);
}

/* ----------------------------------------------------------------- Screens */

.screens {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 24px 24px 72px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    align-items: start;
}

figure { margin: 0; }
figure img {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
}
figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

.wide { margin-top: 32px; }
.wide img { width: 100%; }

/* ---------------------------------------------------------------- Sections */

.section {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 64px 24px;
    border-top: 1px solid var(--line);
}
.section > h2 { margin-bottom: 8px; }
.section > .lede { margin-bottom: 32px; }
.section > h2 + .grid, .section > h2 + .cta { margin-top: 28px; }

.sub { margin: 40px 0 16px; color: var(--muted); font-weight: 600; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.grid article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.grid h3 { margin-bottom: 12px; }
.grid ul, .grid ol { margin: 0; padding-left: 20px; color: var(--muted); }
.grid li { margin: 5px 0; }
.grid li::marker { color: var(--accent-soft); }

.grid article.ok { border-color: rgba(63, 169, 107, 0.35); }
.grid article.ok li::marker { color: var(--ok); }
.grid article.no { border-color: rgba(217, 83, 79, 0.3); }
.grid article.no li::marker { color: var(--no); }

/* Steps — the four cards should fit on one row. */
.grid.steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.steps article { position: relative; padding-top: 22px; }
.grid.steps h4 { margin: 10px 0 6px; font-size: 16px; }
.grid.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.step {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* Permissions */
.perms { width: 100%; border-collapse: collapse; }
.perms td { padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.perms td:first-child { width: 190px; color: var(--fg); }

.note { color: var(--muted); font-size: 15px; margin-top: 24px; }

/* Prerequisite line above an install step list */
.req { color: var(--muted); font-size: 15px; margin: 0 0 14px; }

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

footer { border-top: 1px solid var(--line); background: var(--panel); }
.foot-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--fg); text-decoration: none; }
.copy { color: var(--muted); font-size: 14px; margin: 0; }

/* -------------------------------------------------------------------- Prose */

.prose { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
.prose h1 { font-size: 32px; margin-bottom: 8px; }
.prose h2 { font-size: 19px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose .updated { font-size: 14px; }

/* ------------------------------------------------------------------ Mobile */

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 36px; }
    .hero-shot { justify-self: center; }
    .nav { padding: 12px 16px; }
    .nav nav { gap: 14px; }
    .nav nav a { font-size: 14px; }
    .section { padding: 48px 20px; }
    .screens { padding: 16px 20px 48px; }
    .perms td:first-child { width: 130px; }
}

@media (max-width: 520px) {
    .nav .brand span { display: none; }
    h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}


/* ----------------------------------------------------------------- 404 page */
.nf-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
}
.nf-inner { max-width: 46ch; }
.nf-inner img { width: 76px; height: auto; margin: 0 auto 26px; }
.nf-code {
  font-size: clamp(4.5rem, 17vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
  opacity: 0.13;
}
.nf-inner h1 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: -0.3em 0 0.6rem; }
.nf-inner p { margin: 0 0 1.9rem; opacity: 0.75; }
