/* Caseknot — home page. Classes are prefixed ck-; the palette and type live in theme.css.
   Spacing: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96. */

.ck-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ck-board { --text: #FFF6E3; --text-2: rgba(246, 235, 208, .86); --text-3: rgba(246, 235, 208, .7); }

/* ---------- hero ---------- */
.ck-hero {
  padding: 72px 0 96px; text-align: center;
  background: radial-gradient(64% 520px at 50% 0, rgba(196, 98, 58, .13), transparent 72%);
}
.ck-hero-copy { max-width: 880px; margin: 0 auto 64px; }
.ck-hero-icon { width: 112px; height: 112px; margin: 0 auto 24px; filter: drop-shadow(0 16px 24px rgba(110, 39, 17, .32)); }
.ck-hero .display { margin: 0; }
.ck-hero .lead { margin: 24px auto 0; max-width: 700px; }
.ck-soon {
  display: inline-flex; align-items: center; gap: 12px; margin: 32px 0 0; padding: 12px 24px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  font-size: 16px; font-weight: 600; line-height: 24px; color: var(--text); text-align: left;
}
.ck-soon-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ck-board-1); box-shadow: 0 0 0 4px rgba(196, 98, 58, .2); }
@media (prefers-reduced-motion: no-preference) {
  .ck-soon-dot { animation: ck-pulse 2.8s ease-in-out infinite; }
  @keyframes ck-pulse { 50% { box-shadow: 0 0 0 7px rgba(196, 98, 58, .06); } }
}
.ck-hero-for { margin: 16px 0 0; font-size: 15px; color: var(--text-3); }

/* the folder the app window sits in */
.ck-folder {
  margin: 0; padding: 0 28px 28px; border-radius: 28px; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .25), var(--shadow-lg);
}
.ck-folder-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; padding: 0 4px; }
.ck-folder-label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ck-folder-label .ck-case { font-size: 22px; line-height: 28px; color: #FFF6E3; }
.ck-folder-label .ck-mono { font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: rgba(246, 235, 208, .76); }
.ck-knot { display: block; height: auto; }
.ck-folder .ck-knot { flex: 0 0 auto; width: 120px; }
.ck-folder .ck-window { box-shadow: 0 0 0 1px rgba(60, 18, 6, .5), 0 24px 48px -24px rgba(40, 12, 4, .7); }

/* ---------- sections ---------- */
.ck-sec { padding: 96px 0; }
.ck-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; margin-bottom: 48px; }
.ck-head > :nth-child(2) { padding-top: 42px; }   /* lines up with the heading, below the stamp */
.ck-head .h2 { margin: 0; }
.ck-head .lead { margin: 16px 0 0; max-width: 560px; }
.ck-head > :nth-child(2) > .lead:first-child { margin-top: 0; }
.ck-head-solo, .ck-head-center { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ck-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.ck-head-center .lead { margin-left: auto; margin-right: auto; }

.ck-window { transition: transform .25s ease; }
a.ck-window:hover { transform: translateY(-2px); }

/* a docket list: label left, what it means right */
.ck-points { list-style: none; margin: 0; padding: 0; }
.ck-points li {
  display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr); gap: 4px 24px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 24px; color: var(--text-2);
}
.ck-points li:last-child { border-bottom: 1px solid var(--line); }
.ck-points li > span:first-child { font-weight: 600; color: var(--text); }
.ck-points code, .ck-bates span {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; padding: 2px 6px; border-radius: 5px;
  color: var(--accent); background: var(--ck-tint); border: 1px solid var(--ck-tint-line);
}

/* cards */
.ck-grid { display: grid; gap: 24px; }
.ck-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ck-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ck-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ck-grid + .ck-window { margin-top: 48px; }
.ck-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.ck-card-lg { padding: 32px; }
.ck-card h3, .ck-note h3, .ck-plan h3 { font-family: var(--font); font-size: 18px; font-weight: 650; line-height: 24px; letter-spacing: -0.01em; margin: 0; }
.ck-card .ck-ico + h3 { margin-top: 8px; }
.ck-card p, .ck-note p { margin: 0; font-size: 16px; line-height: 24px; color: var(--text-2); }
.ck-ico {
  display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  color: var(--accent); background: var(--ck-tint); border: 1px solid var(--ck-tint-line);
}
.ck-ico svg { width: 22px; height: 22px; }

.ck-types, .ck-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.ck-types li, .ck-tags li {
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 6px;
  color: var(--text-2); background: var(--bg-card); border: 1px solid var(--line-2);
}
.ck-tags { margin-top: auto; padding-top: 16px; }
.ck-tags li { background: transparent; }

.ck-redact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: center; margin-top: auto; padding-top: 16px; }
.ck-redact span { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--text-3); }
.ck-redact i { display: block; height: 16px; width: 72%; border-radius: 2px; background: #10161D; }
.ck-redact i.s { width: 44%; }
@media (prefers-color-scheme: dark) { .ck-redact i { background: #000; box-shadow: 0 0 0 1px var(--line-2); } }

.ck-bates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto !important; padding-top: 16px; }
.ck-bates b { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; padding: 2px 8px; border-radius: 4px; color: var(--text); border: 1px solid var(--line-2); }

.ck-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.ck-checks li { position: relative; padding-left: 32px; font-size: 16px; line-height: 24px; color: var(--text-2); }
.ck-checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ck-board-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23FFF6E3'%3E%3Cpath d='M8.2 13.6 4.8 10.2l1.2-1.2 2.2 2.2 5.8-5.8 1.2 1.2z'/%3E%3C/svg%3E") center/14px no-repeat;
}

.ck-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 24px 32px; border-radius: 20px; border: 1px dashed var(--line-2); }
.ck-note h3 { margin-bottom: 4px; }

/* question and sourced answer */
.ck-qa { margin: 0; padding: 24px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ck-head > .ck-qa:nth-child(2) { padding-top: 24px; margin-top: 42px; }
.ck-qa p { margin: 0; }
.ck-qa .ck-mono { display: block; margin-bottom: 4px; font-size: 11px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ck-qa-q { padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 24px; color: var(--text-2); }
.ck-qa-a { padding: 16px 0; font-family: var(--font-serif); font-size: 20px; line-height: 28px; color: var(--text); }
.ck-qa-a sup { margin-left: 2px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent); }
.ck-qa-s { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; line-height: 20px; color: var(--text-2); }
.ck-qa-s b { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; color: #FFF6E3; background: var(--ck-board-2); }
.ck-qa figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 13px; line-height: 20px; color: var(--text-3); }

/* ---------- the three parts ---------- */
.ck-act { padding: 96px 0 0; text-align: center; }
.ck-act + .ck-sec { padding-top: 64px; }
.ck-act-rule { display: flex; align-items: center; gap: 24px; }
.ck-act-rule::before, .ck-act-rule::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.ck-act-tab { display: grid; place-items: center; width: 112px; height: 56px; border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 16px -8px rgba(110, 39, 17, .6); }
.ck-act-tab svg { display: block; width: 76px; height: auto; }
.ck-act-no { margin: 32px 0 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.ck-act-title { margin: 8px 0 0; font-family: var(--font-serif); font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }
.ck-act-sub { margin: 16px auto 0; max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-2); }

/* ---------- privacy (ink) ---------- */
.ck-ink {
  background: #15212E;
  --text: #F4EEE1; --text-2: #BCC5CF; --text-3: #8A96A4; --line: rgba(246, 235, 208, .12); --line-2: rgba(246, 235, 208, .22);
  --bg-card: rgba(255, 255, 255, .045); --accent: #E9936C; --ck-tint: rgba(233, 147, 108, .1); --ck-tint-line: rgba(233, 147, 108, .38);
  --shadow-sm: none;
  color: var(--text);
}
@media (prefers-color-scheme: dark) { .ck-ink { background: #131C27; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } }
.ck-more { margin: 32px 0 0; font-weight: 600; }
.ck-more a { color: var(--accent); }

/* ---------- pricing ---------- */
.ck-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.ck-plan { display: flex; flex-direction: column; padding: 32px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ck-plan-pro { border-color: var(--ck-tint-line); border-top: 4px solid var(--ck-board-2); padding-top: 29px; box-shadow: var(--shadow-lg); }
.ck-price { min-height: 72px; margin: 16px 0 0; font-size: 16px; line-height: 24px; color: var(--text-2); }
.ck-price b { margin-right: 4px; font-family: var(--font-serif); font-size: 40px; line-height: 44px; letter-spacing: -0.02em; color: var(--text); }
.ck-price span { display: block; margin-top: 4px; font-size: 15px; color: var(--text-3); }
.ck-plan-sub { min-height: 48px; margin: 8px 0 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 24px; color: var(--text-2); box-sizing: content-box; }
.ck-plan .ck-checks { margin-top: 8px; }

.ck-table-wrap { max-width: 920px; margin: 48px auto 0; overflow-x: auto; }
.ck-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.ck-table th, .ck-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ck-table thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border-bottom-color: var(--line-2); }
.ck-table tbody th { width: 40%; font-weight: 600; color: var(--text); }
.ck-table td { width: 30%; color: var(--text-2); }
.ck-reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; max-width: 920px; margin: 32px auto 0; padding: 0 16px; }
.ck-reqs p { margin: 0; font-size: 14px; line-height: 22px; color: var(--text-3); }
.ck-reqs b { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }

/* ---------- closing band ---------- */
.ck-close { padding: 96px 0; }
.ck-close-band { padding: 64px 24px; border-radius: 32px; text-align: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .25), var(--shadow-lg); }
.ck-close-band .ck-knot { width: 176px; margin: 0 auto 24px; }
.ck-close-band .display { margin: 0; font-size: clamp(36px, 5.2vw, 64px); }
.ck-soon-light { background: rgba(255, 246, 227, .12); border-color: rgba(246, 235, 208, .42); box-shadow: none; color: #FFF6E3; }
.ck-soon-light .ck-soon-dot { background: var(--ck-string); box-shadow: 0 0 0 4px rgba(246, 235, 208, .2); animation: none; }
.ck-close-name { margin: 24px 0 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 235, 208, .76); }
.ck-close-links { display: flex; justify-content: center; gap: 32px; margin: 16px 0 0; font-size: 15px; }
.ck-close-links a { color: rgba(246, 235, 208, .88); }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
  .ck-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ck-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ck-head > :nth-child(2), .ck-head > .ck-qa:nth-child(2) { padding-top: 0; margin-top: 0; }
  .ck-head > .ck-qa:nth-child(2) { padding-top: 24px; }
  .ck-grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ck-hero { padding: 48px 0 64px; }
  .ck-hero-copy { margin-bottom: 48px; }
  .ck-hero-icon { width: 96px; height: 96px; }
  .ck-soon { padding: 12px 20px; border-radius: 16px; font-size: 15px; }
  .ck-folder { padding: 0 12px 12px; border-radius: 20px; margin: 0 -8px; }
  .ck-folder-head { min-height: 72px; padding: 12px 4px; }
  .ck-folder-label .ck-case { font-size: 17px; line-height: 24px; }
  .ck-folder-label .ck-mono { font-size: 11px; }
  .ck-folder .ck-knot { width: 84px; }
  .ck-sec, .ck-close { padding: 64px 0; }
  .ck-head { margin-bottom: 32px; }
  .ck-act { padding-top: 64px; }
  .ck-act + .ck-sec { padding-top: 48px; }
  .ck-grid { gap: 16px; }
  .ck-grid-2, .ck-plans { grid-template-columns: minmax(0, 1fr); }
  .ck-grid + .ck-window { margin-top: 32px; }
  .ck-card-lg, .ck-plan { padding: 24px; }
  .ck-plan-pro { padding-top: 21px; }
  .ck-price, .ck-plan-sub { min-height: 0; }
  .ck-note { padding: 24px; }
  .ck-reqs { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .ck-table { font-size: 14px; line-height: 20px; }
  .ck-table th, .ck-table td { padding: 12px 8px; }
  .ck-close-band { padding: 48px 20px; border-radius: 24px; }
  .ck-close-band .ck-knot { width: 136px; }
}
@media (max-width: 520px) {
  .ck-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .ck-points li { grid-template-columns: minmax(0, 1fr); }
}

/* a plain section followed by a part heading: one gap, not two */
.ck-sec:not(.soft):has(+ .ck-act) { padding-bottom: 0; }
