:root {
  --ink: #1c1b19;
  --paper: #faf8f4;
  --line: #ddd8cf;
  --moss: #4a5d45;
  --moss-dark: #35402f;
  --max-width: 640px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

body.home .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
}

body.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.home footer.site-foot {
  border: none;
  margin: 2rem 0 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

.logo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 0 1.25rem;
}

p {
  margin: 0 0 1.1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--moss-dark);
  max-width: 60ch;
}

a {
  color: var(--moss-dark);
}

a:hover {
  color: var(--moss);
}

footer.site-foot {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  color: #948d7d;
}

/* Epic Planner app page */

body.doc {
  --brand-ink: #26282c;
  --brand-grey: #5f6064;
  --brand-muted: #6b6e75;
  --brand-cyan: #4de6f7;
  --brand-teal: #00707f;
  --brand-line: #e3e5e8;
  --brand-alt: #f5f7f8;
  --radius: 10px;
  background: #fff;
  color: var(--brand-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

body.doc a {
  color: var(--brand-teal);
}

body.doc a:hover {
  color: var(--brand-ink);
}

body.doc .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

body.doc .prose {
  max-width: 760px;
}

/* Header */

body.doc .topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--brand-line);
}

body.doc .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
}

body.doc .topbar-brand {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

/* The logo file has generous whitespace; crop to the wordmark band. */
body.doc .topbar-brand img {
  display: block;
  width: 190px;
  height: 21px;
  object-fit: cover;
  margin-left: -15px;
}

body.doc .topbar-nav {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

body.doc .topbar-nav::-webkit-scrollbar {
  display: none;
}

body.doc .topbar-nav a {
  color: var(--brand-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

body.doc .topbar-nav a:hover,
body.doc .topbar-nav a:focus-visible {
  color: var(--brand-ink);
  border-bottom-color: var(--brand-cyan);
}

/* Anchored sections land below the sticky header. */
body.doc section[id] {
  scroll-margin-top: 64px;
}

/* Hero */

body.doc .hero {
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(77, 230, 247, 0.18), transparent 70%),
    linear-gradient(180deg, #f7fbfc 0%, #fff 100%);
  border-bottom: 1px solid var(--brand-line);
  padding: 5rem 0 4.5rem;
}

body.doc .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

body.doc .eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

body.doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.doc .hero-tagline {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--brand-grey);
}

body.doc .hero-lede {
  margin: 0 0 2rem;
  max-width: 46ch;
  color: var(--brand-muted);
}

body.doc .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.doc .btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.doc .btn-primary {
  background: var(--brand-ink);
  color: #fff;
  border: 1px solid var(--brand-ink);
}

body.doc .btn-primary:hover {
  background: #000;
  color: #fff;
}

body.doc .btn-secondary {
  background: #fff;
  color: var(--brand-ink);
  border: 1px solid var(--brand-line);
}

body.doc .btn-secondary:hover {
  border-color: var(--brand-grey);
  color: var(--brand-ink);
}

/* Decorative timeline */

body.doc .timeline {
  --tl-cols: 32% repeat(3, 1fr);
  --tl-row: 38px;
  padding: 0.9rem 1rem 1rem;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  box-shadow: 0 20px 40px -24px rgba(38, 40, 44, 0.35);
}

body.doc .tl-row {
  display: grid;
  grid-template-columns: var(--tl-cols);
  align-items: center;
  position: relative;
  height: var(--tl-row);
}

body.doc .tl-row > * {
  grid-row: 1;
}

body.doc .tl-head {
  height: auto;
  padding-bottom: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

body.doc .tl-head > div:not(.tl-label-head) {
  padding-left: 0.5rem;
}

body.doc .tl-body {
  position: relative;
  border-top: 1px solid var(--brand-line);
}

/* Sprint column shading and dividers behind the bars. */
body.doc .tl-body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32%;
  right: 0;
  background:
    linear-gradient(90deg, var(--brand-line) 1px, transparent 1px) 0 0 / calc(100% / 3) 100%,
    linear-gradient(90deg, transparent 33.333%, var(--brand-alt) 33.333%, var(--brand-alt) 66.666%, transparent 66.666%);
}

body.doc .tl-body .tl-row + .tl-row {
  border-top: 1px solid #f0f1f3;
}

body.doc .tl-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 0.75rem;
}

body.doc .tl-label i {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 2px solid var(--brand-cyan);
}

body.doc .tl-label span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #d5d9de;
}

body.doc .tl-bar {
  position: relative;
  z-index: 1;
  height: 16px;
  margin: 0 5px;
  border-radius: 5px;
  background: #c8f3f9;
  border: 1px solid #9fe7f1;
  border-left: 4px solid var(--brand-cyan);
}

/* Elbow connector from the bar in the row above. */
body.doc .tl-bar-linked::before {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 50%;
  width: 14px;
  height: calc(var(--tl-row) - 8px);
  border-left: 1.5px solid var(--brand-grey);
  border-bottom: 1.5px solid var(--brand-grey);
  border-bottom-left-radius: 4px;
  margin-bottom: -0.75px;
  margin-right: 1px;
}

body.doc .tl-bar-linked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  margin-top: -3.5px;
  border: 3.5px solid transparent;
  border-left: 4px solid var(--brand-grey);
}

body.doc .tl-bar-lifted {
  z-index: 2;
  transform: translate(-14px, -3px) rotate(-2deg);
  box-shadow: 0 8px 14px -6px rgba(38, 40, 44, 0.45);
}

body.doc .tl-bar-ghost {
  background: transparent;
  border: 1.5px dashed #c3c7cd;
}

/* Sections */

body.doc .section {
  padding: 4.5rem 0;
}

body.doc .section-alt {
  background: var(--brand-alt);
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

body.doc h2 {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.doc h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--brand-cyan);
  border-radius: 2px;
}

body.doc h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

body.doc p {
  margin: 0 0 1.1rem;
}

body.doc ul {
  padding-left: 1.25rem;
  margin: 0 0 1.1rem;
}

body.doc li {
  margin-bottom: 0.4rem;
}

body.doc li::marker {
  color: var(--brand-teal);
}

body.doc .callout {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-left: 4px solid var(--brand-cyan);
  border-radius: var(--radius);
}

body.doc .section:not(.section-alt) .callout {
  background: var(--brand-alt);
}

/* Feature cards */

body.doc .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

body.doc .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

body.doc .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

body.doc .card {
  flex: 0 1 calc((100% - 2.5rem) / 3);
  min-width: 240px;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.doc .card:hover {
  border-color: #cfd3d8;
  box-shadow: 0 12px 24px -18px rgba(38, 40, 44, 0.4);
}

body.doc .card h3 {
  margin: 0 0 0.5rem;
}

body.doc .card p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.95rem;
}

/* Steps */

body.doc .steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

body.doc .steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 0 0 1.75rem 3.5rem;
  min-height: 2.25rem;
}

body.doc .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand-ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

body.doc .steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--brand-line);
}

body.doc .steps li:last-child {
  padding-bottom: 0;
}

/* Permissions table */

body.doc .table-card {
  margin: 1.5rem 0;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
}

body.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

body.doc th,
body.doc td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--brand-line);
}

body.doc tbody tr:last-child td {
  border-bottom: none;
}

body.doc th {
  background: #fafbfc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

body.doc td:first-child {
  white-space: nowrap;
}

body.doc code {
  font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  font-size: 0.85em;
  padding: 0.15em 0.45em;
  background: #eef1f3;
  border-radius: 4px;
  color: var(--brand-ink);
}

/* Roadmap */

body.doc .status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

body.doc .status-card {
  padding: 1.5rem;
  background: var(--brand-alt);
  border: 1px dashed #cfd3d8;
  border-radius: var(--radius);
}

body.doc .status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--brand-line);
  color: var(--brand-teal);
}

body.doc .status-card h3 {
  margin: 0 0 0.35rem;
}

body.doc .status-card p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.95rem;
}

body.doc .note {
  font-size: 0.93rem;
  color: var(--brand-muted);
}

/* Report an issue */

body.doc .cta-panel {
  padding: 2.5rem;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  text-align: center;
}

body.doc .cta-panel .section-title {
  margin-bottom: 1.25rem;
}

body.doc .cta-hint {
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

body.doc .cta-list {
  display: inline-block;
  margin: 0 0 2rem;
  text-align: left;
  color: var(--brand-muted);
}

body.doc .btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

/* Legal */

body.doc .legal + .legal {
  border-top: 1px solid var(--brand-line);
}

body.doc .legal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

body.doc .pill {
  margin: 0.35rem 0 0;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-muted);
  background: var(--brand-alt);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
}

/* Footer */

body.doc .doc-foot {
  padding: 2rem 0;
  background: var(--brand-alt);
  border-top: 1px solid var(--brand-line);
  font-size: 0.875rem;
  color: var(--brand-muted);
}

body.doc .doc-foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

body.doc .doc-foot p {
  margin: 0;
}

body.doc .doc-foot nav {
  display: flex;
  gap: 1.25rem;
}

body.doc .doc-foot a {
  color: var(--brand-muted);
  text-decoration: none;
}

body.doc .doc-foot a:hover {
  color: var(--brand-ink);
}

@media (max-width: 860px) {
  body.doc .hero {
    padding: 3.5rem 0 3rem;
  }
  body.doc .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  body.doc .card {
    flex: 1 1 240px;
  }
}

@media (max-width: 640px) {
  body.doc .container {
    padding: 0 1rem;
  }
  body.doc .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }
  body.doc .topbar-nav {
    width: 100%;
    gap: 1.25rem;
  }
  body.doc section[id] {
    scroll-margin-top: 96px;
  }
  body.doc .section {
    padding: 3rem 0;
  }
  body.doc h2 {
    font-size: 1.5rem;
  }
  body.doc .timeline {
    --tl-cols: 28% repeat(3, 1fr);
    --tl-row: 32px;
    padding: 0.7rem 0.6rem 0.6rem;
  }
  body.doc .tl-head {
    font-size: 0.6rem;
  }
  body.doc .tl-head > div:not(.tl-label-head) {
    padding-left: 0.3rem;
  }
  body.doc .tl-body::before {
    left: 28%;
  }
  body.doc .tl-label i {
    display: none;
  }
  body.doc td:first-child {
    white-space: normal;
    word-break: break-word;
  }
  body.doc .cta-panel {
    padding: 1.75rem 1.25rem;
  }
  body.doc .btn-lg {
    display: block;
    font-size: 0.95rem;
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
