/* Colors mirror artflow-5-nextjs-armadillo/src/theme/theme.constants.ts */
@font-face {
  font-family: "Outfit";
  src: url("assets/outfit-latin.woff2") format("woff2");
  font-weight: 400 700; /* trimmed: weights 400-700, Latin characters used on the page */
  font-display: swap;
}

:root {
  --bg: #0F101B;          /* dark-primary */
  --panel: #171A27;       /* dark-tertiary */
  --panel-hi: #272A39;    /* dark-quarternary */
  --text: #FFFFFF;        /* light-primary */
  --muted: #A4A4B0;       /* light-secondary */
  --faint: #565663;       /* light-tertiary */
  --line: #2A2E40;        /* line-secondary */
  --accent: #695EE9;      /* MUI primary */
  --accent-text: #897FFF; /* accent-4 */
  --accent-soft: #CBC8F5; /* accent-5 */
  --accent-deep: #252554; /* accent-1 */
  --warn: #EDA95A;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Soft brand glow behind the hero, from the logo's palette.
   Full-viewport layer with circular gradients sized in vmin, so they never stretch
   and each fades to transparent before reaching an edge of the layer. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle 80vmin at 28% 16%, rgba(105, 94, 233, .28), transparent 70%),
    radial-gradient(circle 60vmin at 74% 6%, rgba(245, 24, 150, .14), transparent 70%),
    radial-gradient(circle 60vmin at 55% 42%, rgba(94, 169, 254, .10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.top, main, .foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.top { padding-top: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 600; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 24px; }

/* Main view: the closure notice fills the first screen */
.hero {
  min-height: calc(100svh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 72px;
}
.hero h1 { max-width: 16ch; }
.hero .lede { color: var(--muted); font-size: 20px; margin: 20px 0 0; max-width: 46ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.hero-links a:first-child { background: var(--accent); border-color: var(--accent); }
.hero-links a:hover { border-color: var(--accent-text); }
.hero-links a:first-child:hover { background: #5348DF; }
.hero-links a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
@media (max-width: 520px) { .hero-links a { width: 100%; justify-content: space-between; } }

h3.sub { font-size: 18px; margin: 48px 0 24px; }

/* Milestone image slots; replace .ph with <img> once screenshots exist */
.shot { margin: 12px 0 4px; max-width: 520px; }
.shot img, .shot video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.shot .ph {
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-align: center;
  padding: 12px;
}
.shot .ph code { color: var(--faint); font-size: 12px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 { font-size: clamp(34px, 7vw, 54px); letter-spacing: -.01em; }
.story { margin-top: 24px; max-width: 62ch; }
.story p { margin: 0 0 16px; color: var(--muted); font-size: 18px; }
.story .sign { color: var(--accent-soft); font-size: 16px; font-weight: 500; margin-top: 8px; }

.block { padding: 40px 0; border-top: 1px solid var(--line); }
h2 { font-size: 22px; margin-bottom: 28px; }

/* Vertical timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 22px 32px; }
/* Line runs dot to dot, so it stops at the last dot */
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px; top: 19px; bottom: -7px;
  width: 2px;
  background: var(--accent);
}
.timeline li:nth-last-child(2)::after { background: linear-gradient(var(--accent), var(--muted)); }
.timeline li:last-child { padding-bottom: 0; }
/* Extra gap before the shutdown item (double the usual 22px) */
.timeline li:nth-last-child(2) { padding-bottom: 44px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline time { display: block; color: var(--accent-text); font-size: 14px; font-weight: 500; }
.timeline p { margin: 2px 0 0; }
.timeline .end::before { background: var(--muted); border-color: var(--muted); }
.timeline .end time { color: var(--muted); }

.thanks p { margin: 0; font-size: 24px; font-weight: 500; text-align: center; }

/* Alternatives */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card.featured { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-deep), var(--panel) 60%); }
.card .suits { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.card.featured .suits { color: var(--accent-soft); }
.card h3 { font-size: 20px; }
.card p { margin: 10px 0 18px; color: var(--muted); font-size: 15px; }
/* Control-to-convenience axis above the cards */
.spectrum {
  display: flex;
  justify-content: space-between;
  margin: -12px 0 16px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft)) top / 100% 2px no-repeat;
}

details { margin-top: auto; }
/* Desktop: share rows across cards so buttons stay level when a card expands */
@media (min-width: 720px) {
  .card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .card details { margin-top: 0; }
}
summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: " +"; }
details[open] summary::after { content: " \2212"; }
summary:hover { background: #5348DF; }
summary:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.options { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.options li { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.options a { color: var(--accent-text); text-decoration: none; }
.options a:hover { text-decoration: underline; }
.options span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.options mark.todo { font-size: 12px; }

.go {
  margin-top: auto;
  align-self: flex-start;
  color: var(--text);
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.go:hover { background: #5348DF; }
.go:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.foot { padding-bottom: 48px; color: var(--muted); font-size: 15px; }
.foot::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 40px; }
.foot p { margin: 0 0 6px; }
.fine { color: var(--faint); font-size: 13px; }
.foot a, .foot .email { color: var(--accent-text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 2px; }

/* Unfilled placeholders: deliberately loud so they can't ship unnoticed */
mark.todo {
  background: rgba(237, 169, 90, .15);
  color: var(--warn);
  border: 1px dashed var(--warn);
  border-radius: 4px;
  padding: 0 4px;
}
.go mark.todo { background: none; border: 0; color: var(--text); padding: 0; }
