/* Court timeline page. Loads after the design's styles.css and the tool's own timeline.css. */

/* The tool reads its own token names; give them the design palette, scoped to its mounts. */
#timeline-cta, #timeline-visual, #timeline-app, #timeline-price {
  --background: #fff; --surface: #fff; --surface-muted: #f6f6f4; --border: #e8e7e2;
  --ink: #161d29; --muted: #6b7180; --subtle: #8b9099;
  --primary: #102b4a; --primary-pressed: #1c3d63; --primary-soft: #e7eef6;
  --gold-soft: #fff1d7; --gold-pressed: #a96a0c;
  --green: #21874d; --green-soft: #e4f5ea; --blue: #0f62b4; --blue-soft: #e3f0ff;
  --font-sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --font-display: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --shadow-sm: 0 1px 2px rgba(16, 29, 46, .05);
  --shadow-md: 0 4px 28px rgba(16, 29, 46, .08);
  --shadow-lg: 0 24px 60px -24px rgba(16, 29, 46, .28);
}

/* ── Hero ── */
.ct-hero .rot { min-height: 0; }
.ct-cta { max-width: none; justify-items: center; text-align: center; margin-top: 34px; gap: 14px; }
.ct-cta .tl-cta__drop { justify-content: center; gap: 14px; padding: 12px 14px; margin: 0; border-radius: 999px; }
.ct-cta .tl-cta__drop.is-dragging { background: var(--primary-soft); }
.tl-cta__button, .tl-closing__button {
  min-height: 50px; padding: 0 26px; border-radius: 999px; font: 450 15px/1 var(--font-sans); letter-spacing: -.01em;
  box-shadow: 0 10px 24px -12px rgba(16, 43, 74, .55);
}
.tl-cta__button svg { width: 17px; height: 17px; }
.tl-cta__or { font-size: 14px; color: var(--subtle); }
.tl-cta__secondary { min-height: 50px; border-radius: 999px; border: 0; background: var(--surface-muted); font-weight: 450; padding: 0 24px; }
.ct-cta .tl-cta__row { justify-content: center; }
.ct-cta .tl-cta__price { font-size: 14px; color: var(--muted); }
.ct-cta .tl-cta__price strong { font-weight: 500; }
.ct-cta .tl-cta__court { justify-content: center; font-size: 13px; }
.tl-link { font-weight: 500; }

.ct-stage { position: relative; max-width: 780px; margin: 64px auto 0; padding: 0 28px; }
.ct-stage .prop { position: absolute; z-index: 0; width: 300px; top: 40px; mix-blend-mode: multiply; pointer-events: none; }
.ct-prop-l { left: -290px; transform: rotate(-5deg); }
.ct-prop-r { right: -280px; top: 90px !important; transform: rotate(5deg); }
.ct-stage .tl-hero__visual { position: relative; z-index: 1; min-height: 0; }
.ct-stage .tl-visual__glow { opacity: .45; }
.ct-stage .tl-visual__doc { border-radius: 10px; }
.ct-stage .tl-visual__chip { font-weight: 500; }

.ct-apps { margin: 56px auto 0; padding: 0 16px; text-align: center; }
.ct-apps p { font-size: 13px; color: var(--fg-2); margin-bottom: 12px; }
.ct-apps__list { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: var(--panel); border-radius: 26px; padding: 6px; max-width: 100%; }
.ct-apps__list span { display: inline-flex; align-items: center; gap: 7px; background: #fff; border-radius: 999px; padding: 8px 14px 8px 11px; font-size: 13.5px; color: var(--fg); box-shadow: 0 1px 2px rgba(16, 29, 46, .05); }
.ct-apps__list svg { flex: none; }

/* ── The tool ── */
.ct-tool { padding-top: 72px; }
.ct-tool:has(#timeline-app:empty) { display: none; }
#timeline-app { font-size: 15px; letter-spacing: -.011em; }
#timeline-app h2, #timeline-app h3, .tl-stat strong, .tl-price__amount, .tl-group-title {
  font-weight: 400 !important; letter-spacing: -.035em;
}
#timeline-app .tl-panel__head h2, #timeline-app .tl-check__head h2, #timeline-app .tl-empty h2 { font-size: 30px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 0; font: 450 14px/1 var(--font-sans, "Inter", sans-serif); letter-spacing: -.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, transform .25s var(--ease);
}
.button:active { transform: scale(.97); }
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover { background: var(--navy-hover); }
.button.secondary, #timeline-app .button.secondary { background: var(--panel); color: var(--fg); border: 0; }
.button.secondary:hover { background: var(--panel-hover); }
#timeline-app .button { min-height: 44px; font-size: 14px; }
/* On a grey panel the secondary button is white, like the homepage tab pills. */
#timeline-app :is(.tl-panel, .tl-check, .tl-docs, .tl-empty) .button.secondary { background: #fff; box-shadow: 0 1px 2px rgba(16, 29, 46, .05); }
#timeline-app :is(.tl-panel, .tl-check, .tl-docs) .button.secondary:hover { background: #fbfbfa; }

/* The step bar works like the hero tabs on the homepage. */
.tl-steps { background: var(--panel); border: 0; border-radius: 999px; padding: 4px; gap: 4px; box-shadow: none; margin-bottom: 28px; }
.tl-step button { border-radius: 999px; padding: 10px 16px; font-weight: 450; color: var(--fg-2); justify-content: center; }
.tl-step--current button { background: #fff; color: var(--fg); box-shadow: 0 3px 18px rgba(16, 29, 46, .08); }
.tl-step--current .tl-step__number { background: var(--navy); color: #fff; }
.tl-step__number { font-weight: 500; }

/* Grey panels with white cards inside, as on the homepage. */
.tl-panel, .tl-check, .tl-docs { background: var(--panel); border: 0; box-shadow: none; border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.tl-row { border: 0; box-shadow: 0 1px 2px rgba(16, 29, 46, .04); border-radius: 20px; }
.tl-row.is-checked { background: rgba(255, 255, 255, .55); }
.tl-row__date { font-weight: 600; }
.tl-check__group { font-weight: 600; letter-spacing: .05em; }
.tl-check__group span { background: #fff; }
.tl-tile { border: 0; border-radius: 16px; background: #fff; }
/* A screenshot's summary: a scrim dark enough for white text over a light app screenshot,
   and the bottom gap as a border, where the clamped fifth line can't peek through. */
.tl-tile .tl-tile__text { padding: 26px 10px 0; border-bottom: 10px solid transparent; background: linear-gradient(rgba(16, 29, 46, 0), rgba(16, 29, 46, .9) 24px, rgba(16, 29, 46, .94)); }
.tl-stat { background: #fff; border-radius: 18px; }
.tl-stat span { font-weight: 500; }
.tl-incident { border-color: #e6e5e0; }
.tl-segmented { border: 0; background: #fff; border-radius: 999px; padding: 3px; }
.tl-segmented button { border-radius: 999px; font-weight: 450; background: transparent; }
.tl-segmented button.is-active { background: var(--navy); }
.tl-progress { background: #fff; }
.tl-limit { border-radius: 20px; }
.tl-field { font-weight: 500; }
.tl-field input, .tl-field select, .tl-field textarea, .tl-incident textarea { border-radius: 12px; border-color: var(--line); }
.tl-page { border: 0; border-radius: 8px; }
.tl-case, .tl-price, .tl-guide { border: 0; box-shadow: none; border-radius: 22px; }
.tl-case.is-incomplete { box-shadow: 0 0 0 1.5px rgba(201, 134, 25, .45); }
.tl-badge, .tl-tag { font-weight: 500; }

/* ── Pricing: the tool's price card sits in the left half of the panel ── */
.ct-price .l { justify-content: center; }
#timeline-price .tl-pricing__card { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
#timeline-price .tl-pricing__label { font-size: 14px; font-weight: 400; letter-spacing: -.01em; text-transform: none; color: var(--fg-2); }
#timeline-price .tl-pricing__amount { font-size: clamp(56px, 6vw, 76px); font-weight: 400; letter-spacing: -.06em; margin: 14px 0 10px; }
#timeline-price .tl-pricing__sub { font-size: 17px; letter-spacing: -.02em; color: var(--fg); }
#timeline-price .tl-pricing__list { border-top: 1px solid #e6e5e0; }
#timeline-price .tl-pricing__list li { color: #4b5260; font-size: 14.5px; }
#timeline-price .tl-pricing__list li::before {
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c98619' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
#timeline-price .tl-cta__button { width: auto; }
.ct-promise { color: var(--fg-2); font-size: 14.5px; line-height: 1.6; margin-top: 10px; }
.ct-promise a { color: var(--fg); }
.ct-price .inc { margin-top: 14px; }

/* ── Details bento ── */
.fmts { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.fmt { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 11px 14px; box-shadow: 0 1px 2px rgba(16, 29, 46, .04); }
.fmt .fl { font-family: var(--emoji); font-size: 20px; line-height: 1; }
.fmt b { display: block; font-weight: 500; font-size: 14px; letter-spacing: -.015em; }
.fmt small { display: block; font-size: 12.5px; color: var(--fg-2); }
.ct-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: center; }
.ct-shot { position: relative; background: #fff; border-radius: 14px; padding: 26px 10px 12px; display: flex; flex-direction: column; gap: 5px; height: 104px; }
.ct-shot i { display: block; height: 8px; border-radius: 4px; background: #e6e6ea; width: 72%; }
.ct-shot i.me { background: #3b8bf6; align-self: flex-end; width: 58%; }
.ct-shot span { position: absolute; top: 7px; left: 8px; font-size: 10px; font-weight: 600; color: var(--green); }
.ct-shot:nth-child(3n) span { color: var(--blue); }
.ct-reading { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ct-reading .bar { width: 100%; max-width: 260px; background: #fff; margin: 0; }
.ct-reading .bar i { background: linear-gradient(90deg, var(--blue), #4d94e6); }
.in .ct-reading .bar i { width: 66%; }
.ct-stack { position: relative; height: 96px; }
.ct-stack i { position: absolute; top: 0; width: 64px; height: 88px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -8px rgba(16, 29, 46, .3); }
.ct-stack i:nth-child(1) { left: 0; transform: rotate(-8deg); }
.ct-stack i:nth-child(2) { left: 40px; transform: rotate(-4deg); }
.ct-stack i:nth-child(3) { left: 80px; }
.ct-stack i:nth-child(4) { left: 120px; transform: rotate(4deg); }
.ct-stack i:nth-child(5) { left: 160px; transform: rotate(8deg); }
.ct-stack i::before { content: ""; position: absolute; left: 10px; right: 16px; top: 18px; height: 7px; border-radius: 4px; background: #e6e6ea; box-shadow: 18px 14px 0 -1px #3b8bf6, 0 28px 0 #e6e6ea; }

/* ── Three documents ── */
.ct-show { padding: 56px 0 0; }
.ct-papers-box .fit { width: 980px; }
.ct-papers { position: relative; height: 470px; }
.paper { position: absolute; top: 20px; width: 330px; height: 430px; background: #fff; border-radius: 8px; padding: 26px 24px; font-family: Arial, Helvetica, sans-serif; color: #16202e;
  box-shadow: 0 0 0 .5px rgba(16, 35, 63, .12), 0 6px 12px -4px rgba(16, 35, 63, .08), 0 22px 40px -14px rgba(16, 35, 63, .18), 0 56px 100px -36px rgba(16, 35, 63, .3);
  transition: transform .8s var(--ease); }
.p-chrono { left: 20px; transform: rotate(-5deg); z-index: 1; }
.p-exhibit { left: 325px; transform: translateY(-8px); z-index: 3; }
.p-word { left: 630px; transform: rotate(5deg); z-index: 2; }
.ct-show:hover .p-chrono { transform: rotate(-7deg) translateX(-14px); }
.ct-show:hover .p-word { transform: rotate(7deg) translateX(14px); }
.p-court { text-align: center; font-size: 9.5px; color: #5b6472; }
.p-title { text-align: center; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 11.5px; margin: 6px 0 14px; }
.paper table { width: 100%; border-collapse: collapse; font-size: 8.6px; line-height: 1.4; }
.paper th, .paper td { border: 1px solid #dce0e6; padding: 5px 6px; text-align: left; vertical-align: top; }
.paper th { background: #f4f5f7; }
.paper td:nth-child(2) { white-space: nowrap; }
.paper td:last-child { font-weight: 700; color: var(--navy); }
.p-label { font-weight: 700; font-size: 22px; padding-bottom: 6px; border-bottom: 1.5px solid #1d2733; margin-bottom: 6px; }
.p-meta { font-size: 10px; color: #5b6472; margin-bottom: 14px; }
.p-chat { display: grid; gap: 8px; padding: 16px 12px; border-radius: 12px; background: #efe9e1; }
.p-chat span { max-width: 82%; padding: 8px 10px; border-radius: 12px 12px 12px 4px; font-size: 11.5px; line-height: 1.35; background: #fff; justify-self: start; }
.p-chat .is-out { background: #d9fdd3; justify-self: end; border-radius: 12px 12px 4px 12px; }
.p-hash { margin-top: 16px; font: 9.5px/1.3 ui-monospace, Menlo, monospace; color: #6b7380; letter-spacing: .04em; }
.p-bar { display: flex; align-items: center; gap: 8px; margin: -26px -24px 22px; padding: 12px 16px; background: #f3f5f9; border-radius: 8px 8px 0 0; font-size: 11px; color: #3a4250; border-bottom: 1px solid #e3e7ee; }
.p-bar span { background: #2b579a; color: #fff; font-weight: 700; font-size: 9px; letter-spacing: .1em; padding: 3px 6px; border-radius: 4px; }
.p-lines i { display: block; height: 7px; border-radius: 4px; background: #e9ecf1; margin-bottom: 11px; }
.p-lines p { font-family: "Times New Roman", Georgia, serif; font-size: 12.5px; line-height: 1.5; margin: 14px 0 18px; }
.p-lines s { color: #b2392b; }
.p-lines ins { color: #1e7a44; text-decoration: underline; }
.caret { display: inline-block; width: 1.5px; height: 14px; background: #16202e; vertical-align: -2px; margin-left: 1px; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ct-docs3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 34px clamp(24px, 5vw, 64px) 52px; text-align: center; }
.ct-docs3 h3 { font-size: 24px; font-weight: 400; letter-spacing: -.04em; }
.ct-docs3 p { color: var(--fg-2); margin-top: 6px; font-size: 15px; line-height: 1.55; }

/* ── Steps minis ── */
.ct-drop { border: 1.5px dashed #d6d4cc; border-radius: 14px; padding: 14px; display: grid; gap: 10px; justify-items: center; }
.ct-drop span { font-size: 12.5px; color: var(--app-muted); }
.ct-mini { display: flex; gap: 8px; }
.ct-mini b { width: 46px; height: 62px; border-radius: 8px; background: var(--app-bg); padding: 10px 6px; display: flex; flex-direction: column; gap: 4px; }
.ct-mini i { display: block; height: 5px; border-radius: 3px; background: #dcdce2; width: 76%; }
.ct-mini i.me { background: #3b8bf6; align-self: flex-end; width: 60%; }
.ct-row { background: var(--app-bg); border-radius: 12px; padding: 12px; }
.ct-row small { font-size: 12px; font-weight: 700; color: var(--app-muted); }
.ct-row p { font-size: 13.5px; line-height: 1.45; margin-top: 3px; }
.ct-row__acts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 10px; }
.ct-row__acts .navybtn { height: 36px; font-size: 13px; margin: 0; border-radius: 10px; }
.ct-row__acts .fld { height: 36px; margin: 0; justify-content: center; font-weight: 700; font-size: 13px; padding: 0; border-radius: 10px; }
.ct-faq-intro { color: var(--fg-2); margin-top: 12px; }
.ct-faq-intro a, #faq .a a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .ct-docs3 { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .ct-stage { margin-top: 44px; padding: 0 12px; }
  .ct-stage .prop { width: 220px; }
  .ct-prop-l { left: -170px; }
  .ct-prop-r { right: -170px; }
  .ct-cta .tl-cta__drop { padding: 0; }
  .ct-apps__list { border-radius: 22px; }
  .ct-tool { padding-top: 48px; }
  .tl-step button { padding: 8px 4px; }
  .ct-shots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
