/* Scorcio product page: design P1 "Lifecycle" in the dashboard's colours (light only).
   Plain CSS, no build step. Sora is self-hosted (fonts/, OFL licence next to it); body text uses
   the system font. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sora-latin-600-normal.woff2") format("woff2");
}

:root {
  --ground: #f4f4f3;
  --panel: #ffffff;
  --line: #dededb;
  --tree: #c6c6c2;
  --text: #171717;
  --text-2: #404040;
  --muted: #666666;
  --accent: #2f62c9;
  --accent-hover: #244fa6;
  --on-accent: #ffffff;
  --soon-line: #a8a8a4;
  --soon-tag: #e6e6e3;
  --soon-tag-text: #3f3f3d;
  --chip-line: #d2d2ce;

  /* Status colours, as in the dashboard (light). */
  --todo: #9a9a9a;
  --todo-bg: #f2f2f1;
  --todo-text: #454545;
  --todo-line: #dadad7;
  --in-progress: #5b8def;
  --in-progress-bg: #eef3fb;
  --in-progress-text: #2a4a8f;
  --in-progress-line: #c9d8f0;
  --done: #4cb26e;
  --done-bg: #eef7f0;
  --done-text: #23643a;
  --done-line: #c5e3cd;
  --merged: #9477e0;
  --merged-bg: #f3f0fa;
  --merged-text: #5a3c9e;
  --merged-line: #d9d0f0;
  --released: #45afa2;
  --released-bg: #edf7f5;
  --released-text: #1f625c;
  --released-line: #c2e2dc;
  --retired: #8a8a8a;
  --retired-segment: #c9c9c5;

  --font-title: "Sora", system-ui, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
}
.skip-link:focus {
  top: 16px;
  color: var(--on-accent);
}

/* --- Type --- */

.h {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text);
}
.h-1 {
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h-2 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h-3 {
  margin: 18px 0 4px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* --- Small parts --- */

.i {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}
.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  text-decoration: none;
}
.button-small {
  min-height: 44px;
  padding: 0 16px;
}
/* "Download · coming soon" is a label, not a link. */
.soon {
  gap: 10px;
  color: var(--text-2);
  border: 1px dashed var(--soon-line);
}
.soon-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--soon-tag-text);
  background: var(--soon-tag);
  border-radius: 999px;
  padding: 2px 9px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot-todo {
  background: var(--todo);
}
.dot-in-progress {
  background: var(--in-progress);
}
.dot-done {
  background: var(--done);
}
.dot-merged {
  background: var(--merged);
}
.dot-released {
  background: var(--released);
}
.dot-retired {
  box-shadow: inset 0 0 0 1.5px var(--retired);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.pill-lg {
  font-size: 23px;
  line-height: 1.3;
  padding: 8px 22px;
  gap: 11px;
}
.pill-lg .dot {
  width: 11px;
  height: 11px;
}
.pill-todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  box-shadow: inset 0 0 0 1px var(--todo-line);
}
.pill-todo .dot {
  background: var(--todo);
}
.pill-in-progress {
  background: var(--in-progress-bg);
  color: var(--in-progress-text);
  box-shadow: inset 0 0 0 1px var(--in-progress-line);
}
.pill-in-progress .dot {
  background: var(--in-progress);
}
.pill-done {
  background: var(--done-bg);
  color: var(--done-text);
  box-shadow: inset 0 0 0 1px var(--done-line);
}
.pill-done .dot {
  background: var(--done);
}
.pill-merged {
  background: var(--merged-bg);
  color: var(--merged-text);
  box-shadow: inset 0 0 0 1px var(--merged-line);
}
.pill-merged .dot {
  background: var(--merged);
}
.pill-released {
  background: var(--released-bg);
  color: var(--released-text);
  box-shadow: inset 0 0 0 1px var(--released-line);
}
.pill-released .dot {
  background: var(--released);
}
.pill-retired {
  background: var(--todo-bg);
  color: var(--todo-text);
  box-shadow: inset 0 0 0 1px var(--todo-line);
}
.pill-retired .dot {
  box-shadow: inset 0 0 0 1.5px var(--retired);
}
.pill-lg.pill-retired .dot {
  box-shadow: inset 0 0 0 2px var(--retired);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--chip-line);
  border-radius: 6px;
  padding: 2px 6px;
}
.tag-panel {
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 4px 9px;
}

/* --- Header --- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand,
.site-nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand {
  color: var(--text);
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.brand:hover {
  color: var(--text);
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-size: 15px;
}
.site-nav a:not(.button) {
  color: var(--text-2);
}
.site-nav a:not(.button):hover {
  color: var(--accent-hover);
}

/* --- Hero --- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 48px 64px;
  align-items: center;
  padding-top: clamp(40px, 5.5vw, 80px);
  padding-bottom: clamp(64px, 8vw, 116px);
}
.hero-text {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 26em;
}
.hero .actions {
  margin-top: 30px;
}

.chart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 36px;
}
/* Segments in degrees: in progress 4, todo 13, done 5, merged 2, released 1, retired 1 (of 26). */
.donut {
  width: min(280px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    var(--in-progress) 0deg 55.4deg,
    var(--todo) 55.4deg 235.4deg,
    var(--done) 235.4deg 304.6deg,
    var(--merged) 304.6deg 332.3deg,
    var(--released) 332.3deg 346.2deg,
    var(--retired-segment) 346.2deg 360deg
  );
}
.donut-hole {
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.donut-n {
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.donut-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.legend {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
  min-width: 160px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend .dot {
  width: 9px;
  height: 9px;
}
.legend-name {
  flex: 1;
}
.legend li > span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* --- The tree line: one node per status --- */

.spine {
  --pad: clamp(22px, 5vw, 68px);
  margin-left: 6px;
  padding-left: var(--pad);
}
.node {
  position: relative;
  padding-bottom: clamp(72px, 8.5vw, 124px);
}
.node:last-child {
  padding-bottom: clamp(56px, 6vw, 88px);
}
.node::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--pad));
  border-left: 1.5px solid var(--tree);
}
.node:last-child::before {
  display: none;
}
.node::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-1 * var(--pad));
  width: calc(var(--pad) - 10px);
  height: 23px;
  border-left: 1.5px solid var(--tree);
  border-bottom: 1.5px solid var(--tree);
  border-bottom-left-radius: 10px;
}
.node-status {
  display: flex;
  margin-bottom: 30px;
}

/* --- todo · Four views --- */

.views {
  list-style: none;
  margin-top: 38px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 32px 28px;
}
.view-body {
  font-size: 15px;
  color: var(--text-2);
}

/* A small piece of the app, drawn in HTML and CSS. */
.snip {
  height: 140px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  font-size: 13px;
}
.snip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.snip-count {
  font-weight: 400;
  color: var(--muted);
}

.due-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.due-task {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.due-date {
  flex: none;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--chip-line);
}
.due-overdue {
  color: #b4322e;
  background: #fbefee;
  box-shadow: none;
}
.flag {
  fill: currentColor;
}
.flag-urgent {
  color: #d9534f;
}
.flag-high {
  color: #e0853a;
}
.flag-normal {
  color: #5aa7dc;
}

.tree {
  list-style: none;
  margin-left: 12px;
  padding: 0 0 0 14px;
}
.tree li {
  position: relative;
  padding: 4px 0;
  color: var(--text-2);
}
.tree li::after {
  content: "";
  position: absolute;
  top: 0;
  left: -14px;
  width: 10px;
  height: 13px;
  border-left: 1px solid var(--tree);
  border-bottom: 1px solid var(--tree);
  border-bottom-left-radius: 5px;
}
.tree li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
  border-left: 1px solid var(--tree);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-done {
  color: var(--muted);
  text-decoration: line-through;
}
.box {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 3.5px;
  display: grid;
  place-items: center;
  border: 1.5px solid #a1a1a1;
  background: var(--panel);
}
.box-on {
  border: 0;
  background: var(--accent);
}
.box svg,
.tick svg {
  fill: none;
  stroke: var(--on-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.box svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.4;
}

.doc {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-2);
}
.doc .i {
  color: var(--muted);
}

.read-only {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 18px;
  color: var(--text-2);
}
.read-only strong {
  color: var(--text);
  font-weight: 600;
}

/* --- in progress · Live --- */

.live {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 32px 56px;
  align-items: center;
}
.log {
  list-style: none;
  padding: 6px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  font-size: 14.5px;
}
.log li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  padding: 13px 0;
}
.log li + li {
  border-top: 1px solid var(--line);
}
.log-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.log-who {
  flex: 0 0 92px;
  font-weight: 600;
  color: var(--text);
}
.log-who-app {
  color: var(--in-progress-text);
}
.log-what {
  flex: 1 1 220px;
  color: var(--text-2);
}

.figures {
  list-style: none;
  margin-top: 52px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px 36px;
}
.figure-n {
  display: block;
  font-size: clamp(46px, 4.8vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.figure-label {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

/* --- done · Security --- */

.claims {
  list-style: none;
  margin-top: 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 0 56px;
}
.claims li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 5px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.tick svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
.claim-title {
  font-size: 17px;
  font-weight: 600;
}
.claims p {
  margin-top: 2px;
  font-size: 15px;
  color: var(--text-2);
}

/* --- merged · How it's built, as a service --- */

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 36px 56px;
}
.about p {
  color: var(--text-2);
  max-width: 28em;
}
.h-about {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --- released · Demo --- */

.h-demo {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.demo-text {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-2);
}
#demo .actions {
  margin-top: 28px;
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 26px;
  padding-bottom: 34px;
  font-size: 14px;
  color: var(--muted);
}
/* Underlined at rest: the link colour alone is too close to the grey text around it. */
.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-inner > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

/* --- 404 --- */

.not-found {
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(96px, 12vw, 160px);
}
.not-found .node-status {
  margin-bottom: 26px;
}
.not-found .hero-text {
  margin-top: 20px;
}
.not-found .actions {
  margin-top: 30px;
}
.button-ghost {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--panel);
}
.button-ghost:hover {
  color: var(--accent-hover);
  text-decoration: none;
}
