/* Tockward website. One stylesheet for every page; light and dark follow the
   visitor's system setting. Colours match the app (src/views.js). */
:root {
  --bg: #f7f9fc; --surface: #ffffff; --surface-2: #f0f3f9; --text: #0f1b33; --muted: #56627a; --faint: #8a94a8;
  --line: #e3e8f0; --brand: #1d6cf2; --brand-ink: #ffffff; --brand-soft: #e6efff; --navy: #0b1730;
  --ok: #1f9d55; --bad: #dc3d3d; --warn: #c97d06;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 27, 51, .05), 0 8px 24px rgba(15, 27, 51, .06);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c; --surface: #111829; --surface-2: #0d1424; --text: #e7ecf6; --muted: #a3aec4; --faint: #7887a8;
    --line: #1f2a40; --brand: #4d8dff; --brand-ink: #061024; --brand-soft: #15284d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
code, pre { font-family: var(--mono); font-size: 14px; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
pre { background: var(--navy); color: #dbe4f5; border-radius: 12px; padding: 16px 18px; overflow-x: auto; line-height: 1.55; margin: 0; }
pre .c { color: #7f8db0; } pre .k { color: #7fb0ff; } pre .s { color: #9fe0b5; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
/* Grid and flex children may shrink below their content (long code lines
   scroll inside their own box instead of widening the page). */
.hero .wrap > *, .split > *, .demo > *, .grid > *, .steps > *, .plans > * { min-width: 0; }
body { overflow-x: hidden; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand .ring { stroke: var(--text); } .brand .hands { stroke: var(--brand); }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { color: var(--muted); font-size: 15px; } .nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }
.top .actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top .login { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .nav { display: none; } .top .wrap { gap: 12px; } .top .login { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 10px; font-weight: 650; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); } .btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); } .btn-ghost:hover { border-color: var(--faint); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { font-size: 14px; color: var(--faint); margin-top: 14px; }
@media (max-width: 900px) { .hero { padding: 48px 0 32px; } .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }

/* Product picture in the hero: a crontab line and the dashboard it feeds */
.demo { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.board { padding: 6px 0; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 12px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted); }
.board-head strong { color: var(--text); font-size: 14px; }
.row { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; font-size: 14px; }
.row + .row { border-top: 1px solid var(--line); }
.row small { display: block; color: var(--faint); font-size: 12px; }
.row .when { color: var(--muted); font-size: 13px; text-align: right; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 20%, transparent); }
.dot.wait { background: var(--faint); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; font-size: 14px; }
.alert .icon { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 16px; }
.alert small { display: block; color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
@media (max-width: 600px) { section { padding: 52px 0; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.step pre { font-size: 12.5px; padding: 12px 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.feature { padding: 24px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 900px) { .grid, .grid.two { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split ul { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 10px; }
.split li { padding-left: 28px; position: relative; color: var(--muted); }
.split li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%231d6cf2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.split li strong { color: var(--text); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Mac menu bar picture */
.menubar { overflow: hidden; }
.menubar .bar { display: flex; justify-content: flex-end; gap: 16px; align-items: center; padding: 6px 14px; font-size: 13px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--muted); }
.menubar .bar .me { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.menubar .menu { margin: 0 14px 14px auto; width: min(300px, 100%); padding: 6px 0; font-size: 13.5px; }
.menubar .menu .row { padding: 7px 14px; grid-template-columns: 9px 1fr auto; }
.menubar .menu .sep { height: 1px; background: var(--line); margin: 6px 0; }
.menubar .menu .item { padding: 6px 14px; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { padding: 28px; display: flex; flex-direction: column; }
.plan.pop { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 28px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .for { color: var(--muted); font-size: 14px; margin: 0 0 18px; min-height: 2.8em; }
.price { font-size: 40px; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-alt { color: var(--muted); font-size: 14px; margin: 6px 0 0; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 9px; font-size: 15px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.8 2.8 6.2-6.4' fill='none' stroke='%231f9d55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan li.no { color: var(--faint); } .plan li.no::before { background: none; content: "–"; top: 0; left: 4px; }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.table-wrap { overflow-x: auto; margin-top: 48px; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Closing call to action */
.closing { text-align: center; }
.closing .card { padding: 48px 24px; background: var(--navy); border-color: var(--navy); color: #e7ecf6; }
.closing h2 { color: #fff; }
.closing p { color: #a9b7d3; max-width: 560px; margin: 0 auto 26px; font-size: 17px; }
.closing .btn-primary { background: #4d8dff; color: #061024; }

/* Docs */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 0 80px; }
.docs nav { position: sticky; top: 88px; align-self: start; font-size: 14px; display: grid; gap: 4px; }
.docs nav strong { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 14px 0 4px; }
.docs nav strong:first-child { margin-top: 0; }
.docs nav a { color: var(--muted); padding: 3px 0; } .docs nav a:hover { color: var(--text); text-decoration: none; }
.docs article { min-width: 0; max-width: 760px; }
.docs h1 { font-size: 38px; }
.docs h2 { font-size: 26px; margin: 48px 0 12px; padding-top: 8px; scroll-margin-top: 80px; }
.docs h3 { margin: 28px 0 8px; scroll-margin-top: 80px; }
.docs p, .docs li { color: var(--muted); } .docs p strong, .docs li strong { color: var(--text); }
.docs pre { margin: 14px 0 18px; }
.docs table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0 18px; }
.docs th, .docs td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs th { color: var(--faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.docs td:first-child { white-space: nowrap; }
.callout { background: var(--brand-soft); border-radius: 10px; padding: 12px 16px; color: var(--text); font-size: 15px; margin: 16px 0; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 0; padding-top: 32px; } .docs nav { display: none; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer .brand { font-size: 17px; margin-bottom: 10px; }
footer h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { color: var(--muted); } footer a:hover { color: var(--text); }
footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .about { grid-column: 1 / -1; } }
