/* ETime marketing site — shared design system.
   A calm, workplace palette: slate ink, cool paper, and a deep teal accent.
   Not Hess System branding; ETime keeps its own look. */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --bg: #f3f6f8;
  --bg-raised: #e8eef2;
  --surface: #ffffff;
  --ink: #13202b;
  --ink-soft: #33434f;
  --muted: #586976;
  --accent: #1d6a86;
  --accent-deep: #134d62;
  --accent-tint: rgba(29, 106, 134, 0.10);
  --on-accent: #ffffff;
  --signal: #2f7d4f;
  --signal-tint: rgba(47, 125, 79, 0.12);
  --line: rgba(19, 32, 43, 0.12);
  --line-strong: rgba(19, 32, 43, 0.24);
  --shadow: rgba(19, 32, 43, 0.10);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --maxw: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e151b;
    --bg-raised: #131d25;
    --surface: #16212a;
    --ink: #e6edf2;
    --ink-soft: #c6d2db;
    --muted: #93a4b1;
    --accent: #6cc4dc;
    --accent-deep: #9ed9ea;
    --accent-tint: rgba(108, 196, 220, 0.12);
    --on-accent: #0b1318;
    --signal: #7fd19c;
    --signal-tint: rgba(127, 209, 156, 0.12);
    --line: rgba(230, 237, 242, 0.12);
    --line-strong: rgba(230, 237, 242, 0.24);
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --bg: #0e151b;
  --bg-raised: #131d25;
  --surface: #16212a;
  --ink: #e6edf2;
  --ink-soft: #c6d2db;
  --muted: #93a4b1;
  --accent: #6cc4dc;
  --accent-deep: #9ed9ea;
  --accent-tint: rgba(108, 196, 220, 0.12);
  --on-accent: #0b1318;
  --signal: #7fd19c;
  --signal-tint: rgba(127, 209, 156, 0.12);
  --line: rgba(230, 237, 242, 0.12);
  --line-strong: rgba(230, 237, 242, 0.24);
  --shadow: rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: Manrope, system-ui, sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-s); z-index: 10; }
.skip-link:focus { left: 16px; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 12px; }

/* ---------- Header ---------- */
.site-nav { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 Manrope, system-ui, sans-serif; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 560px) { .nav-links { gap: 2px 14px; font-size: 14px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border-radius: 12px;
  font: 700 15px/1.2 "Source Sans 3", system-ui, sans-serif; text-decoration: none;
  border: 1.5px solid var(--accent);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--accent-tint); color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--surface); color: var(--ink-soft); border-color: var(--line-strong); cursor: default; }
.btn .btn-label { display: grid; text-align: left; line-height: 1.15; }
.btn .btn-label small { font-weight: 600; font-size: 12px; color: var(--muted); }

.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.hero-sub { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 56ch; }
.hero-art { justify-self: center; width: min(100%, 420px); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-raised); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two, .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }

.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-deep); vertical-align: 2px; margin-left: 6px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--signal-tint);
  box-shadow: inset 0 0 0 1.5px var(--signal);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px;
  border: solid var(--signal); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checklist.no li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.checklist.no li::after { border: 0; width: 8px; height: 2px; background: var(--muted); left: 5px; top: 12px; transform: none; }

.split { display: grid; gap: 24px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }

.callout { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-m) var(--radius-m) 0; padding: 18px 22px; color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq details p { color: var(--ink-soft); }

/* ---------- Download band ---------- */
.band { text-align: center; }
.band .store-row { justify-content: center; }

/* ---------- Documents (support, privacy, terms, releases) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 16px 72px; }
@media (min-width: 720px) { .doc { padding: 56px 32px 88px; } }
.doc h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.doc h2 { font-size: clamp(1.35rem, 2.6vw, 1.65rem); margin-top: 2.2em; padding-top: 0.2em; scroll-margin-top: 88px; }
.doc h3 { margin-top: 1.6em; scroll-margin-top: 88px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 22px; margin: 24px 0; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.back-link { display: inline-block; font-size: 15px; font-weight: 600; text-decoration: none; margin-bottom: 20px; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 22px; margin: 24px 0 8px; }
.toc h2 { font-size: 1rem; margin: 0 0 8px; padding: 0; }
.toc ol { columns: 2 220px; column-gap: 28px; margin: 0; font-size: 15px; }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-family: Manrope, system-ui, sans-serif; font-size: 14px; color: var(--ink); background: var(--bg-raised); }
tr:last-child td { border-bottom: 0; }
td { color: var(--ink-soft); }

kbd, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--accent-tint); padding: 1px 6px; border-radius: 6px; }

/* Release notes */
.release { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 32px; }
.release h2 { margin-top: 0.8em; }
.release .num { font-variant-numeric: tabular-nums; color: var(--accent); margin-right: 8px; }
.release-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin: -4px 0 14px; }
.release-meta b { color: var(--ink-soft); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.meta-row b { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer-grid h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom a { color: var(--muted); }
