/* Timeliner — timeliner.contact */

@font-face {
  font-family: "Nunito";
  src: url("/assets/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #fbfaff;
  --surface: #ffffff;
  --surface-2: #f2f0fb;
  --text: #1e1b3a;
  --muted: #555273;
  --line: #e4e1f2;
  --link: #3c5bc8;
  --brand-a: #5b84e8;
  --brand-b: #9b6be0;
  --runner: #ffd640;
  --zone: #3fbf72;
  --zone-soft: #d6f5e2;
  --zone-text: #17673a;
  --late: #e0603a;
  --track: #ebe8f7;
  --done: #c9c4e6;
  --shadow: 0 1px 2px rgb(30 27 58 / 6%), 0 8px 24px rgb(30 27 58 / 6%);

  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13122a;
    --surface: #1c1a36;
    --surface-2: #24223f;
    --text: #f2f1fa;
    --muted: #b6b3cf;
    --line: #2f2c4d;
    --link: #a3b6ff;
    --zone: #4fd486;
    --zone-soft: #1f4a33;
    --zone-text: #b5f0cc;
    --late: #ff8a63;
    --track: #2b2948;
    --done: #4a4670;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-a); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.5rem, 4.5vw, 1.9rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
p { margin: 0 0 1rem; }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--surface); padding: 0.5rem 1rem; border-radius: 10px; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--measure); }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 1.1rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding-top: 2.5rem; padding-bottom: 1rem; text-align: center; }
.hero .lede { font-size: clamp(1.15rem, 3.6vw, 1.35rem); color: var(--muted); max-width: 34rem; margin: 0 auto 1.5rem; }
.pill {
  display: inline-block; padding: 0.45rem 1rem; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 0.95rem;
}
.hero-icon {
  width: 96px; height: 96px; border-radius: 22px; margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgb(91 132 232 / 35%);
}

/* Sections */
section { padding: 2.5rem 0; }
.section-alt { background: var(--surface-2); }
.eyebrow {
  display: block; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.4rem;
}

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff; font-weight: 800;
  margin-bottom: 0.6rem;
}

/* Timeline illustration */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 1.25rem 1rem 1rem; box-shadow: var(--shadow); max-width: 44rem; margin: 2rem auto 0;
}
.demo + .demo { margin-top: 1rem; }
.demo-title { display: flex; justify-content: space-between; gap: 1rem; font-weight: 800; margin-bottom: 0.9rem; font-size: 0.98rem; }
.demo-title .when { color: var(--muted); font-weight: 700; }
.demo-title .late { color: var(--late); }
.bar {
  position: relative; display: flex; align-items: stretch; height: 46px;
  background: var(--track); border-radius: 999px; padding: 5px; gap: 4px;
}
.seg {
  display: flex; align-items: center; justify-content: center; min-width: 0;
  border-radius: 999px; font-size: 0.78rem; font-weight: 800; color: var(--text);
  background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 0.5rem;
}
.seg.done { background: var(--done); color: var(--text); }
.seg.overrun { background: repeating-linear-gradient(135deg, var(--late) 0 6px, transparent 6px 12px); color: transparent; }
.seg.zone { background: var(--zone-soft); color: var(--zone-text); box-shadow: inset 0 0 0 2px var(--zone); }
.runner-slot { position: relative; flex: 0 0 0; margin: 0 -2px; z-index: 1; }
.runner {
  position: absolute; top: 50%; left: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; background: var(--runner); border: 4px solid #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
}
.finish { text-align: right; color: var(--muted); font-size: 0.85rem; font-weight: 700; margin-top: 0.5rem; }
.demo-caption { color: var(--muted); font-size: 0.95rem; margin: 0.75rem 0 0; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--zone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Pricing */
.price { font-size: 1.6rem; font-weight: 800; margin: 0.2rem 0 0.5rem; }
.card.featured { border: 2px solid var(--brand-b); }
.small { font-size: 0.93rem; color: var(--muted); }

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.9rem 1.1rem; margin-bottom: 0.7rem;
}
summary { cursor: pointer; font-weight: 800; list-style-position: outside; }
summary::marker { color: var(--brand-b); }
details[open] summary { margin-bottom: 0.6rem; }
details > :last-child { margin-bottom: 0.2rem; }
details ol, details ul, .prose ul { padding-left: 1.3rem; margin: 0 0 1rem; }
details li, .prose li { margin-bottom: 0.35rem; }

.contact-box {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff;
  border-radius: var(--radius); padding: 1.4rem 1.4rem 0.6rem; margin: 1.5rem 0 2rem;
}
.contact-box a { color: #fff; font-weight: 800; }

.page-head { padding: 1.5rem 0 0.5rem; }
.meta { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.75rem; }
.site-footer a { color: var(--muted); font-weight: 700; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

@media (max-width: 30rem) {
  .seg { font-size: 0.7rem; padding: 0 0.3rem; }
  .bar { height: 42px; }
}

/* Leave room for the runner either side of it */
.seg:has(+ .runner-slot) { padding-right: 18px; }
.runner-slot + .seg { padding-left: 18px; }
