/* Court timeline page and tool. Uses the site tokens from /styles.css. */

:root { --tl-ease: cubic-bezier(0.23, 1, 0.32, 1); }


#timeline-app { max-width: 1200px; margin: 0 auto; padding: 0 40px; font-size: 15px; color: var(--ink); }
#timeline-app button { font: inherit; }
.tl-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Steps */
.tl-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: none; }
.tl-step { flex: 1; }
.tl-step button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); font-weight: 600; cursor: pointer; text-align: left; }
.tl-step button:disabled { cursor: default; opacity: 0.55; }
.tl-step__number { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-muted); color: var(--muted); font-size: 13px; flex: none; }
.tl-step--current button { border-color: var(--primary); color: var(--ink); box-shadow: var(--shadow-sm); }
.tl-step--current .tl-step__number { background: var(--primary); color: var(--surface); }
.tl-step--done .tl-step__number { background: var(--green-soft); color: var(--green); }

/* Panels and shared bits */
.tl-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); }
.tl-panel h2, .tl-empty h2, .tl-card h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.tl-panel__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.tl-panel__head h2 { font-size: 26px; margin: 0 0 4px; }
.tl-panel__head p { color: var(--muted); margin: 0; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tl-actions--end { justify-content: flex-end; margin-top: 24px; }
.tl-actions__spacer { flex: 1; }
#timeline-app .button { min-height: 46px; padding: 0 20px; font-size: 15px; border: 0; }
#timeline-app .button.secondary { border: 1px solid var(--border); }
#timeline-app .button:disabled { opacity: 0.45; cursor: default; transform: none; }
#timeline-app label.button { cursor: pointer; }
.tl-link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: none; }
.tl-link:hover { text-decoration: underline; }
.tl-help { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 6px 0 0; display: block; }
.tl-help--warn { color: var(--gold-pressed); }
.tl-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tl-badge--ok { background: var(--green-soft); color: var(--green); }
.tl-badge--warn { background: var(--gold-soft); color: var(--gold-pressed); }
.tl-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.tl-notice { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; }
.tl-notice--info { background: var(--blue-soft); color: #0b4f92; }
.tl-notice--success { background: var(--green-soft); color: #18663a; }
.tl-notice--error { background: #fdeceb; color: #a12d24; }
.tl-busy { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.tl-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--primary); animation: tl-spin 0.8s linear infinite; display: inline-block; }
.tl-spinner--large { width: 36px; height: 36px; border-width: 3px; margin-bottom: 12px; }
@keyframes tl-spin { to { transform: rotate(360deg); } }
.tl-empty { text-align: center; padding: 56px 28px; }
.tl-empty h2 { font-size: 26px; margin-bottom: 6px; }
.tl-empty p { color: var(--muted); margin-bottom: 18px; }
.tl-empty .tl-actions { justify-content: center; }


/* Fields */
.tl-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
.tl-field > span:first-child { color: var(--ink); }
.tl-field--inline { display: inline-flex; align-items: center; gap: 10px; }
.tl-field input, .tl-field select, .tl-field textarea, .tl-incident textarea { width: 100%; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid rgba(16, 35, 63, 0.16); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.tl-field--inline select { width: auto; }
.tl-field textarea, .tl-incident textarea { resize: vertical; line-height: 1.5; }
.tl-field input:focus, .tl-field select:focus, .tl-field textarea:focus, .tl-incident textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.tl-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tl-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.tl-field-grid .tl-field--inline { display: grid; }
.tl-field-grid .tl-field--inline select { width: 100%; }

/* Reading */
.tl-progress { height: 8px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; margin-bottom: 18px; }
.tl-progress span { display: block; height: 100%; background: var(--green); transition: width 0.3s ease; }
.tl-limit { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--gold-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.tl-limit div { display: grid; gap: 2px; }
.tl-limit span { color: var(--muted); font-size: 14px; }
.tl-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tl-tile { position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-muted); aspect-ratio: 3 / 4; }
.tl-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tl-tile__status { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); }
.tl-tile--read .tl-tile__status { color: var(--green); }
.tl-tile--reading .tl-tile__status { color: var(--blue); }
.tl-tile--failed .tl-tile__status { color: #a12d24; }
.tl-tile--queued img { opacity: 0.55; }
.tl-tile__text { position: absolute; inset: auto 0 0 0; padding: 22px 10px 10px; font-size: 12px; line-height: 1.4; color: var(--surface); background: linear-gradient(transparent, rgba(16, 35, 63, 0.88)); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Review */
.tl-zoom { padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-muted); overflow: hidden; cursor: zoom-in; max-height: 560px; }
.tl-zoom img { display: block; width: 100%; height: auto; min-height: 240px; background: var(--surface-muted); }
.tl-zoom img[src] { min-height: 0; }
#timeline-app img:not([src]) { visibility: hidden; }
.tl-card__body { display: grid; gap: 14px; align-content: start; }
.tl-card__body h3 { font-size: 22px; margin: 0; }
.tl-date-hint { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: -6px; }
.tl-date-hint .tl-help { margin: 0; }
.tl-warnings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-warnings li { background: var(--gold-soft); color: #7a4f0c; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.tl-warnings li.is-info { background: var(--blue-soft); color: #0b4f92; }
.tl-transcript { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.tl-transcript summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.tl-transcript ol { list-style: none; padding: 10px 0 0; margin: 0; display: grid; gap: 8px; }
.tl-bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; background: var(--surface-muted); font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-bubble--right { justify-self: end; background: var(--primary-soft); }
.tl-bubble--center { justify-self: center; text-align: center; background: var(--background); }
.tl-bubble__meta { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.tl-card__actions { padding-top: 4px; border-top: 1px solid var(--border); padding-top: 14px; }

/* Timeline */
.tl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tl-stat { background: var(--surface-muted); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.tl-stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.tl-stat strong { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.tl-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.tl-segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tl-segmented button { background: var(--surface); border: 0; padding: 8px 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tl-segmented button.is-active { background: var(--primary); color: var(--surface); }
.tl-group-title { font-family: var(--font-display); font-size: 19px; margin: 22px 0 4px; }
.tl-group-title span { color: var(--muted); font-family: var(--font-sans); font-size: 14px; }
.tl-incidents { list-style: none; margin: 0; padding: 0; }
.tl-incident { display: grid; grid-template-columns: 130px minmax(0, 1fr) 90px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.tl-incident:last-child { border-bottom: 0; }
.tl-incident.is-disputed { background: linear-gradient(90deg, var(--gold-soft), transparent 40%); }
.tl-incident__date { font-weight: 700; font-size: 14px; display: grid; gap: 2px; align-content: start; }
.tl-incident__date span { font-weight: 500; color: var(--muted); }
.tl-incident__body p { margin: 0 0 8px; line-height: 1.55; }
.tl-incident__body .tl-actions { margin-top: 8px; }
.tl-incident__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; }
.tl-thumbs { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-weight: 600; }
.tl-thumbs img { width: 26px; height: 34px; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--border); }
.tl-incident__ref { text-align: right; font-weight: 700; color: var(--primary); font-size: 14px; }

/* Documents */
.tl-docs { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tl-docs__preview { display: grid; gap: 20px; }
.tl-page { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-md); padding: 36px 40px 44px; font-family: Arial, Helvetica, sans-serif; color: #111; font-size: 12px; line-height: 1.5; min-height: 420px; user-select: none; }
.tl-page__court { text-align: center; font-size: 12px; }
.tl-page__case { text-align: center; margin: 4px 0 10px; }
.tl-page__title { text-align: center; font-weight: 700; letter-spacing: 0.08em; font-size: 14px; margin: 6px 0; }
.tl-page__meta { text-align: center; color: #444; font-size: 11px; margin-bottom: 14px; }
.tl-page table { width: 100%; border-collapse: collapse; }
.tl-page th, .tl-page td { border: 1px solid #cfcfcf; padding: 6px 8px; text-align: left; vertical-align: top; }
.tl-page th { background: #f3f3f3; font-weight: 700; }
.tl-page td:first-child, .tl-page th:first-child { width: 34px; }
.tl-page td:nth-child(2) { width: 92px; }
.tl-page td:last-child { width: 62px; }
.tl-page__more { text-align: center; color: #666; margin-top: 10px; font-style: italic; }
.tl-page.is-preview::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-30deg, transparent 0 60px, rgba(16, 35, 63, 0.04) 60px 62px); pointer-events: none; }
.tl-watermark { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 92px; font-weight: 700; color: rgba(16, 35, 63, 0.1); transform: rotate(-24deg); pointer-events: none; letter-spacing: 0.1em; }
.tl-exhibit { display: grid; gap: 6px; justify-items: center; }
.tl-exhibit__label { font-weight: 700; font-size: 18px; }
.tl-exhibit__meta { color: #444; font-size: 11px; text-align: center; }
.tl-exhibit img { max-height: 300px; max-width: 70%; border: 1px solid #ddd; margin: 8px 0; }
.tl-page.is-preview .tl-exhibit img { filter: blur(1.5px); }
.tl-exhibit__hash { font-family: Courier, monospace; font-size: 10px; color: #444; }
.tl-docs__side { display: grid; gap: 14px; position: sticky; top: 96px; }
.tl-price { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-md); display: grid; gap: 12px; }
.tl-price__amount { font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1; }
.tl-price__note { color: var(--muted); font-weight: 600; }
.tl-price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-price li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.tl-price li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--green-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.2 7 10.5l4.5-5' fill='none' stroke='%2321874D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tl-price .button { width: 100%; }
.tl-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--border); }
.tl-file:first-child { border-top: 0; padding-top: 4px; }
.tl-file strong { font-size: 15px; }
.tl-file__tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tl-file p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.tl-price .tl-file .button { width: auto; padding: 9px 16px; font-size: 14px; }
.tl-note { background: var(--blue-soft); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.tl-note p { margin: 4px 0 0; }
.tl-note--warn { background: var(--gold-soft); }




/* Check: one line per entry, the form only when editing */
.tl-check__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.tl-check__head h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 0 0 4px; }
.tl-check__head p { margin: 0; color: var(--muted); }
.tl-check__group { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 24px 0 8px; font-weight: 700; }
.tl-check__group span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--surface-muted); font-size: 12px; margin-left: 4px; letter-spacing: 0; }
.tl-check__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.tl-row.is-checked { background: var(--surface-muted); box-shadow: none; }
.tl-row.is-excluded .tl-row__body { opacity: 0.55; }
.tl-row__thumb { width: 56px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); padding: 0; background: var(--surface-muted); cursor: zoom-in; }
.tl-row__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tl-row__thumb--manual { display: grid; place-items: center; font-size: 10px; font-weight: 600; text-align: center; color: var(--muted); cursor: default; line-height: 1.2; padding: 4px; }
.tl-row__body { min-width: 0; }
.tl-row__date { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tl-row__date.is-missing { color: #8a5a00; }
.tl-row__tag { font-weight: 600; font-size: 11px; background: var(--gold-soft); color: #7a4b00; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.tl-row__summary { margin: 0; line-height: 1.45; }
.tl-row__warning { margin: 4px 0 0; font-size: 13px; color: #7a4b00; line-height: 1.4; }
.tl-row__actions { display: flex; gap: 8px; align-items: center; }
.tl-row__actions .button { padding: 9px 16px; font-size: 14px; }
.tl-row__done { font-size: 14px; font-weight: 700; color: var(--green); }
.tl-row__done::before { content: "\2713  "; }
.tl-edit { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 22px; border-top: 1px solid var(--border); padding-top: 16px; }
.tl-edit__image { display: grid; gap: 6px; align-content: start; }

@media (max-width: 960px) {
  .tl-zoom { max-height: 380px; }
  .tl-docs { grid-template-columns: minmax(0, 1fr); }
  .tl-docs__side { position: static; order: -1; }
}

@media (max-width: 640px) {
  #timeline-app { padding: 0 16px; }
  .tl-steps { gap: 4px; }
  .tl-step button { justify-content: center; padding: 10px 6px; font-size: 12px; flex-direction: column; gap: 4px; }
  .tl-panel { padding: 18px; border-radius: 16px; }
  .tl-incident { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tl-incident__ref { text-align: left; }
  .tl-page { padding: 22px 16px 30px; font-size: 11px; min-height: 0; }
  .tl-watermark { font-size: 56px; }
  .tl-row { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .tl-row__thumb { width: 48px; height: 62px; }
  .tl-row__actions { grid-column: 2; }
  .tl-edit { grid-template-columns: minmax(0, 1fr); }
  .tl-edit .tl-zoom { max-height: 320px; }
}

/* Details for the documents, at the top of the Documents sidebar */
.tl-case { background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }
.tl-case.is-incomplete { box-shadow: 0 0 0 1.5px rgba(201, 134, 25, 0.45), var(--shadow-sm); }
.tl-case h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.tl-case__intro { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tl-case .tl-field-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tl-case__note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ── Page ───────────────────────────────────────────────────────────────── */

.tl-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-pressed); }
.tl-kicker::before { content: ""; width: 20px; height: 1.5px; border-radius: 1px; background: currentColor; }

/* Hero: the upload action on the left, a filled-in example on the right */
.tl-hero { position: relative; overflow: hidden; padding: 44px 0 80px; background:
  radial-gradient(48% 62% at 82% 36%, rgba(201, 134, 25, 0.11), transparent 72%),
  radial-gradient(40% 50% at 64% 88%, rgba(15, 98, 180, 0.07), transparent 72%),
  var(--background); }
.tl-hero__inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 64px; align-items: center; }
.tl-hero .breadcrumb { margin-bottom: 40px; }
.tl-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 22px; color: var(--ink); text-wrap: balance; }
.tl-hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--gold-pressed); }
.tl-hero__lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 33rem; margin: 0 0 34px; text-wrap: pretty; }

.tl-cta { display: grid; gap: 16px; max-width: 32rem; }
.tl-cta__drop { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; cursor: pointer; padding: 10px; margin: -10px; border-radius: 24px; border: 1.5px dashed transparent; transition: border-color 200ms ease, background-color 200ms ease; }
.tl-cta__drop.is-dragging { border-color: var(--primary); background: var(--primary-soft); }
.tl-cta__button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 30px; border: 0; border-radius: 16px; background: var(--primary); color: #fff; font: 600 17px/1 var(--font-sans); letter-spacing: -0.005em; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 26px -10px rgba(16, 43, 74, 0.6); transition: transform 160ms var(--tl-ease), background-color 200ms ease, box-shadow 200ms ease; }
.tl-cta__button:active, .tl-cta__drop:active .tl-cta__button { transform: scale(0.97); }
.tl-cta__drop:focus-within .tl-cta__button, .tl-cta__button:focus-visible { outline: 3px solid rgba(201, 134, 25, 0.55); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .tl-cta__button:hover, .tl-cta__drop:hover .tl-cta__button { background: var(--primary-pressed); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 32px -12px rgba(16, 43, 74, 0.7); }
}
.tl-cta__or { color: var(--subtle); font-size: 15px; }
@media (pointer: coarse) { .tl-cta__or { display: none; } }
.tl-cta__price { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.tl-cta__price strong { color: var(--ink); font-weight: 600; }
.tl-cta__court { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--subtle); }
.tl-cta__court .tl-link, .tl-cta__court label.tl-link { font-size: 14px; }
.tl-cta__sep { color: rgba(16, 35, 63, 0.25); }
.tl-cta__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tl-cta__secondary { display: inline-flex; align-items: center; min-height: 58px; padding: 0 24px; border-radius: 16px; border: 1px solid rgba(16, 35, 63, 0.14); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; transition: transform 160ms var(--tl-ease); }
.tl-cta__secondary:active { transform: scale(0.97); }
.tl-cta__soon { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; line-height: 1.6; color: var(--muted); box-shadow: var(--shadow-sm); }
.tl-cta__soon strong { color: var(--ink); }
.tl-cta__soon a { font-weight: 600; }

.tl-hero__visual { position: relative; min-height: 520px; }
.tl-visual { position: relative; height: 520px; perspective: 1800px; }
/* Light behind the stack and a contact shadow under it, so the sheets sit in a space */
.tl-visual__glow { position: absolute; inset: 4% 0 6% 6%; pointer-events: none; background: radial-gradient(42% 46% at 32% 36%, rgba(201, 134, 25, 0.26), transparent 72%), radial-gradient(46% 50% at 76% 70%, rgba(15, 98, 180, 0.2), transparent 72%); filter: blur(44px); }
.tl-visual__floor { position: absolute; left: 10%; right: 4%; bottom: -22px; height: 46px; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(16, 35, 63, 0.24), transparent 72%); filter: blur(14px); }
.tl-visual__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
/* Layered shadows: a hairline edge, light catching the top, a close contact shadow and a
   wide ambient one, the way a sheet of paper sits on a surface */
.tl-visual__doc { position: absolute; background: #fff; border-radius: 14px; font-family: Arial, Helvetica, sans-serif; color: #16202e; box-shadow: 0 0 0 0.5px rgba(16, 35, 63, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(16, 35, 63, 0.05), 0 6px 12px -4px rgba(16, 35, 63, 0.08), 0 22px 40px -14px rgba(16, 35, 63, 0.18), 0 56px 100px -36px rgba(16, 35, 63, 0.32); }
.tl-visual__doc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(155deg, rgba(255, 255, 255, 0) 52%, rgba(16, 35, 63, 0.04) 100%); }
.tl-visual__doc--chrono { top: 10px; left: 0; width: 86%; padding: 28px 26px 30px; transform: translateZ(0) rotate(-1.6deg); }
.tl-visual__court { text-align: center; font-size: 10.5px; color: #5b6472; }
.tl-visual__title { text-align: center; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; margin: 6px 0 16px; }
.tl-visual table { width: 100%; border-collapse: collapse; font-size: 10.5px; line-height: 1.45; }
.tl-visual th, .tl-visual td { border: 1px solid #dce0e6; padding: 6px 7px; text-align: left; vertical-align: top; }
.tl-visual th { background: #f4f5f7; font-weight: 700; }
.tl-visual td:first-child { width: 24px; }
.tl-visual td:nth-child(2) { width: 74px; white-space: nowrap; }
.tl-visual td:last-child { width: 40px; font-weight: 700; color: var(--primary); }
.tl-visual__doc--exhibit { right: 0; bottom: 6px; width: 50%; padding: 18px 18px 16px; border-radius: 18px; transform: translateZ(70px) rotate(2.2deg); }
.tl-visual__label { font-weight: 700; font-size: 20px; padding-bottom: 6px; border-bottom: 1.5px solid #1d2733; margin-bottom: 6px; }
.tl-visual__meta { font-size: 10.5px; color: #5b6472; margin-bottom: 10px; }
.tl-visual__chat { display: grid; gap: 6px; padding: 12px 10px; border-radius: 12px; background: #efe9e1; box-shadow: inset 0 0 0 0.5px rgba(16, 35, 63, 0.08), inset 0 1px 3px rgba(16, 35, 63, 0.06); }
.tl-visual__chat span { max-width: 84%; padding: 6px 9px; border-radius: 12px 12px 12px 4px; font-size: 11px; line-height: 1.35; background: #fff; justify-self: start; box-shadow: 0 1px 1px rgba(16, 35, 63, 0.08); }
.tl-visual__chat .is-out { border-radius: 12px 12px 4px 12px; }
.tl-visual__chat .is-out { background: #d9fdd3; justify-self: end; }
.tl-visual__hash { margin-top: 10px; font: 10px/1.3 ui-monospace, Menlo, monospace; color: #6b7380; letter-spacing: 0.04em; }
/* Frosted glass: the sheet behind shows through, with a bright top edge where light catches it */
.tl-visual__chip { position: absolute; display: inline-flex; gap: 8px; align-items: center; padding: 9px 15px 9px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.58); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); border: 0.5px solid rgba(255, 255, 255, 0.8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 0.5px rgba(16, 35, 63, 0.1), 0 12px 28px -10px rgba(16, 35, 63, 0.38); font-size: 13px; font-weight: 600; letter-spacing: 0.005em; color: var(--ink); white-space: nowrap; transform: translateZ(110px); }
@media (prefers-reduced-transparency: reduce) {
  .tl-visual__chip { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.tl-visual__chip span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; }
.tl-visual__chip--words { left: -20px; bottom: 132px; }
@media (prefers-reduced-motion: no-preference) {
  .tl-visual__doc, .tl-visual__chip { animation: tl-rise 700ms var(--tl-ease) both; }
  .tl-visual__doc--exhibit { animation-delay: 110ms; }
  .tl-visual__chip--words { animation-delay: 260ms; }
}
@keyframes tl-rise { from { opacity: 0; translate: 0 14px; } }

/* Trust strip */
.tl-proof { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 0 30px; }
.tl-proof__inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.tl-proof__item { display: flex; gap: 14px; align-items: flex-start; }
.tl-proof__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.tl-proof__item strong { display: block; font-size: 16px; margin: 2px 0 4px; color: var(--ink); }
.tl-proof__item p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.tl-proof__apps { max-width: 1200px; margin: 28px auto 0; padding: 0 40px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--subtle); }
.tl-proof__apps span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--background); border: 1px solid var(--border); color: var(--muted); font-weight: 500; }
.tl-proof__apps svg { flex: none; }

/* The tool, once something has been added */
.tl-app-section { padding: 48px 0 88px; }
.tl-app-section:has(#timeline-app:empty) { display: none; }

/* Sections */
.tl-section { padding: 104px 0; }
.tl-section--white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tl-section__inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.tl-section h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 48px; max-width: 22ch; color: var(--ink); text-wrap: balance; }

.tl-steps-explained { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(16, 35, 63, 0.12); }
.tl-steps-explained li { padding: 30px 28px 0 0; }
.tl-steps-explained--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-steps-explained--three p { font-size: 16.5px; }
/* Product facts as big numbers, in place of testimonials we don't have yet */
.tl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 56px 0 0; }
.tl-stats div { background: var(--surface); border-radius: 22px; padding: 26px 26px 24px; box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }
.tl-stats dt { font-family: var(--font-display); font-size: clamp(38px, 4vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.tl-stats dd { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.tl-steps-explained li + li { padding-left: 28px; border-left: 1px solid var(--border); }
.tl-steps-explained__no { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-pressed); margin-bottom: 20px; }
.tl-steps-explained h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.tl-steps-explained p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 15.5px; }

.tl-deliverables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tl-deliverable { background: var(--background); border: 1px solid var(--border); border-radius: 24px; padding: 26px 26px 30px; }
.tl-deliverable h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 24px 0 8px; }
.tl-deliverable p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 15.5px; }
.tl-deliverable__art { height: 156px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 18px 36px -24px rgba(16, 35, 63, 0.35); display: grid; align-content: center; gap: 9px; padding: 0 24px; }
.tl-deliverable__art--chrono span { height: 13px; border-radius: 4px; background: linear-gradient(90deg, #dfe4ea 0 10%, transparent 10% 14%, #e8ecf0 14% 34%, transparent 34% 38%, #eff1f4 38% 84%, transparent 84% 88%, #f5d9a8 88%); }
.tl-deliverable__art--exhibit b { width: 32%; height: 14px; border-radius: 4px; background: var(--primary); }
.tl-deliverable__art--exhibit i { width: 70%; height: 20px; border-radius: 10px; background: #efe9e1; }
.tl-deliverable__art--exhibit i:nth-of-type(2) { justify-self: end; width: 56%; background: #d9fdd3; }
.tl-deliverable__art--word { place-items: center; background: repeating-linear-gradient(180deg, #fff 0 22px, #f0f2f5 22px 24px); }
.tl-deliverable__art--word b { padding: 9px 14px; border-radius: 10px; background: var(--primary); color: #fff; font: 700 14px/1 var(--font-sans); letter-spacing: 0.12em; box-shadow: 0 12px 24px -10px rgba(16, 43, 74, 0.6); }

.tl-pricing__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; align-items: center; }
.tl-pricing__copy h2 { margin-bottom: 18px; }
.tl-pricing__copy > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 32rem; margin: 0; }
.tl-pricing__card { background: var(--surface); border-radius: 28px; padding: 36px; box-shadow: 0 0 0 1px var(--border), var(--shadow-lg); }
.tl-pricing__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tl-pricing__amount { margin: 10px 0 6px; font-family: var(--font-display); font-size: 68px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.tl-pricing__sub { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }
.tl-pricing__list { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.tl-pricing__list li { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }
.tl-pricing__list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--green-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.2 7 10.5l4.5-5' fill='none' stroke='%2321874D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tl-pricing__card .tl-cta__button { width: 100%; }

.tl-faq { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 72px; align-items: start; }
.tl-faq__intro h2 { margin-bottom: 16px; }
.tl-faq__intro p:last-child { color: var(--muted); line-height: 1.6; margin: 0; }
.tl-faq .faq-list { margin: 0; max-width: none; }

.tl-closing { position: relative; overflow: hidden; background: var(--primary); color: #fff; padding: 96px 0; text-align: center; }
.tl-closing::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(40% 50% at 50% 50%, rgba(201, 134, 25, 0.28), transparent 70%); pointer-events: none; }
.tl-closing__inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.tl-closing h2 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 14px; color: #fff; text-wrap: balance; }
.tl-closing p { margin: 0 0 32px; color: rgba(255, 255, 255, 0.76); font-size: 18px; line-height: 1.55; }
.tl-closing__button { min-height: 58px; padding: 0 32px; border: 0; border-radius: 16px; background: #fff; color: var(--primary); font: 600 17px/1 var(--font-sans); cursor: pointer; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.55); transition: transform 160ms var(--tl-ease); }
.tl-closing__button:active { transform: scale(0.97); }

/* Tool chrome: a quieter step bar and softer panels */
.tl-steps { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 6px; gap: 6px; box-shadow: var(--shadow-sm); }
.tl-step button { border: 0; background: transparent; border-radius: 13px; padding: 10px 12px; transition: background-color 200ms ease, color 200ms ease; }
.tl-step--current button { background: var(--primary); color: #fff; box-shadow: none; }
.tl-step--current .tl-step__number { background: rgba(255, 255, 255, 0.18); color: #fff; }
.tl-panel { border-radius: 24px; box-shadow: 0 0 0 1px var(--border), var(--shadow-md); border: 0; }
.tl-row { border-radius: 18px; transition: box-shadow 200ms ease; }
#timeline-app .button { transition: transform 160ms var(--tl-ease), background-color 200ms ease; }
#timeline-app .button:active { transform: scale(0.97); }

@media (max-width: 1080px) {
  .tl-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tl-hero__visual { max-width: 600px; width: 100%; margin: 0 auto; }
  .tl-proof__inner { gap: 24px; }
  .tl-steps-explained { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .tl-steps-explained li:nth-child(3) { padding-left: 0; border-left: 0; }
  .tl-steps-explained--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-steps-explained--three li:nth-child(3) { padding-left: 28px; border-left: 1px solid var(--border); }
  .tl-deliverables { grid-template-columns: minmax(0, 1fr); }
  .tl-pricing__inner, .tl-faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 640px) {
  .tl-hero { padding: 20px 0 48px; }
  .tl-hero__inner { padding: 0 20px; gap: 40px; }
  .tl-hero .breadcrumb { margin-bottom: 22px; }
  .tl-hero h1 { font-size: 38px; }
  .tl-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 32px; }
  .tl-stats div { display: flex; align-items: baseline; gap: 14px; padding: 18px 20px; }
  .tl-stats dt { font-size: 34px; min-width: 124px; white-space: nowrap; }
  .tl-stats dd { margin: 0; }
  .tl-hero__lede { font-size: 17px; margin-bottom: 26px; }
  .tl-cta__drop { display: block; padding: 0; margin: 0; }
  .tl-cta__button { width: 100%; }
  .tl-cta__row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tl-cta__secondary { justify-content: center; }
  .tl-cta__sep { display: none; }
  .tl-cta__court label.tl-link { flex-basis: 100%; }
  .tl-hero__visual, .tl-visual { min-height: 0; height: 470px; }
  .tl-visual__doc--chrono { width: 94%; padding: 18px 14px 20px; }
  .tl-visual table { font-size: 9px; }
  .tl-visual tbody tr:nth-child(n + 4) { display: none; }
  .tl-visual td:nth-child(2) { width: 58px; }
  .tl-visual__doc--exhibit { width: 64%; padding: 14px; transform: rotate(2.2deg); }
  .tl-visual__label { font-size: 15px; white-space: nowrap; }
  .tl-visual__meta { font-size: 9.5px; }
  /* No tilt on touch screens, so the stack stays flat and keeps its true size */
  .tl-visual { perspective: none; }
  .tl-visual__stage { transform-style: flat; transform: none; }
  .tl-visual__chip { transform: none; }
  .tl-visual__chip--words { left: 0; top: 350px; bottom: auto; }
  .tl-proof { padding: 28px 0 24px; }
  .tl-proof__inner { grid-template-columns: minmax(0, 1fr); padding: 0 20px; gap: 20px; }
  .tl-proof__apps { padding: 0 20px; justify-content: flex-start; }
  .tl-section { padding: 68px 0; }
  .tl-section__inner { padding: 0 20px; }
  .tl-section h2 { margin-bottom: 30px; }
  .tl-steps-explained { grid-template-columns: minmax(0, 1fr); }
  .tl-steps-explained li, .tl-steps-explained li + li { padding: 22px 0; border-left: 0; }
  .tl-steps-explained li + li { border-top: 1px solid var(--border); }
  .tl-steps-explained--three li:nth-child(3) { padding-left: 0; border-left: 0; }
  .tl-steps-explained--three .tl-steps-explained__no { margin-bottom: 8px; }
  .tl-pricing__card { padding: 26px 22px; }
  .tl-pricing__amount { font-size: 56px; }
  .tl-closing { padding: 68px 0; }
  .tl-step button { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 12px; }
}

/* How to use your documents: the same words as the guide PDF */
.tl-guide { background: var(--surface); border-radius: 20px; padding: 24px 26px; box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }
.tl-guide__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.tl-guide h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0; }
.tl-guide__head .tl-link { font-size: 14px; }
.tl-guide__section { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border); }
.tl-guide h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tl-guide__files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 0; }
.tl-guide__files dt { font-weight: 700; font-size: 15px; }
.tl-guide__files dd { margin: 3px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tl-guide ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.55; }
@media (max-width: 640px) {
  .tl-guide { padding: 20px 18px; }
  .tl-guide__files { grid-template-columns: minmax(0, 1fr); }
}
