/* Inner pages for the Case PDF marketing site.
   Wire: copy guide.css and the html into landing/, and replace ../../../landing/ with nothing. */

.wrap {
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 28px var(--gutter) 8px;
  container-type: inline-size;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-3);
}
h1 {
  margin: 10px 0 16px;
  max-width: 14em;
  font-size: clamp(40px, 4.4vw, 56px);
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
}
h1 em { font-style: normal; color: var(--accent); }
.lede {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.65;
  max-width: 36ch;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.pills .lab {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-right: 2px;
  padding: 0;
  background: none;
  box-shadow: none;
}
.pills a, .pills > span {
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
  background: rgba(224,116,47,.12);
  border-radius: 999px;
  padding: 5px 10px;
}
.pills > span { color: var(--ink-3); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pills a:hover { background: rgba(224,116,47,.22); }

.intro {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr);
  gap: 40px 56px;
  align-items: center;
}
.intro.solo { grid-template-columns: minmax(0, 40rem); max-width: none; }
.intro.solo:has(> h1:only-child) h1 {
  margin: 0 0 4px;
  font-size: 32px;
}

.steps { list-style: none; margin-top: 8px; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line); }
.steps .n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  padding-top: 3px;
}
.steps b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.steps span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.steps a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.cta { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 0 22px; border-radius: var(--radius-sm);
}
.btn.solid { background: var(--accent); color: #fff; }
.btn.solid:hover { background: var(--accent-deep); }
.quiet { color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.quiet:hover { color: var(--ink); }

.local {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
}
.local a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.local a:hover { color: var(--accent-deep); }
.screen { min-width: 0; }
.screen h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#when h2, #documents h2,
#steps > h2, .outcome h2, #portal h2, #hyderabad h2, .film h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}
#steps { margin-top: 72px; }
.group h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.with-side {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 12px 56px;
  align-items: start;
  margin-top: 72px;
}
.page-nav {
  position: sticky;
  top: 108px;
  align-self: start;
  display: flex;
  flex-direction: column;
  margin-top: 64px;
  margin-left: -20px;
}
.page-nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--line);
}
.page-nav a:hover { color: var(--ink); border-left-color: var(--ink-3); }
#screen, #steps, #when, #result, #documents, #order, #portal, #hyderabad { scroll-margin-top: 84px; }
.frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.cursor, .beats { display: none; }
.cursor {
  position: absolute;
  z-index: 4;
  left: 28%;
  top: 34%;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 2px rgba(16,24,40,.28));
  animation: walk 8s ease-in-out infinite;
  pointer-events: none;
}
.cursor i {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: tap 8s ease-in-out infinite;
}
.beats {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 52px;
  z-index: 4;
  height: 28px;
  margin: 0;
  pointer-events: none;
}
.beats span {
  position: absolute;
  left: 0;
  bottom: 0;
  white-space: nowrap;
  background: #101828;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 8px;
  opacity: 0;
}
.beats span:nth-child(1) { animation: beat 8s infinite; }
.beats span:nth-child(2) { animation: beat 8s infinite; animation-delay: -5.4s; }
.beats span:nth-child(3) { animation: beat 8s infinite; animation-delay: -2.7s; }
@keyframes walk {
  0%, 12% { left: 30%; top: 36%; }
  38%, 50% { left: 52%; top: 44%; }
  72%, 86% { left: 78%; top: 82%; }
  100% { left: 30%; top: 36%; }
}
@keyframes tap {
  0%, 32% { opacity: 0; transform: scale(.5); }
  42% { opacity: 1; transform: scale(1); }
  54% { opacity: 0; transform: scale(1.7); }
  100% { opacity: 0; }
}
@keyframes beat {
  0%, 8% { opacity: 0; }
  14%, 30% { opacity: 1; }
  38%, 100% { opacity: 0; }
}
.frame img { display: block; width: 100%; height: auto; background: #f6f4f1; }
.frame figcaption, .figure figcaption {
  padding: 10px 14px 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

.when, .outcome, .jump, .docs, .note, .path, .groups, .film {
  margin-top: var(--section);
}
.deck { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0 0 20px; max-width: 62ch; }
.when ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}
.when li { padding: 0; }
.when ul:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.when ul:has(> li:only-child) { grid-template-columns: minmax(0, 68ch); }
.when b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.when b:last-child { margin-bottom: 0; }
.when span { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.outcome { max-width: 62ch; }
.outcome p { color: var(--ink-2); font-size: 17px; line-height: 1.65; }

.jump {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
}
.jump a.next { margin-left: auto; }
.jump a:hover { color: var(--ink); }

.pro {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(224,116,47,.12);
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  vertical-align: 2px;
}

.groups, .group { display: flex; flex-direction: column; }
.groups { margin-top: 12px; }
.group { margin-top: var(--section); }
.catalog {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 8px;
}
.catalog .groups { margin-top: 0; display: grid; }
.catalog .group { margin-top: 0; grid-area: 1 / 1; }
.catalog-nav {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}
.catalog-nav input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.catalog-nav label {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.catalog-nav label:hover { background: #faf9f7; color: var(--ink); }
.catalog-nav input:checked + label {
  background: rgba(224, 116, 47, .1);
  color: var(--ink);
  font-weight: 600;
}
.catalog-nav input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.catalog:has(#show-prepare:checked) .group:not(#prepare),
.catalog:has(#show-book:checked) .group:not(#book),
.catalog:has(#show-file:checked) .group:not(#file) { visibility: hidden; pointer-events: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 18px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card img, .card .ph {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  background: #f4f2ef;
  border-bottom: 1px solid var(--line);
}
.card .ph { display: none; }
.card:not(:has(img)) { padding-top: 18px; }
.card .n, .card strong, .card > span:last-child { margin-left: 16px; margin-right: 16px; }
.card .n { margin-top: 14px; }
.card:hover { border-color: #d0d5dd; }
.card .n { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.card strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.card > span:last-child { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.film-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.docs ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.docs li {
  padding: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.docs li b { display: block; letter-spacing: -.02em; }

.path ol { list-style: none; display: flex; flex-direction: column; max-width: 680px; }
.path li + li { border-top: 1px solid var(--line); }
.path a, .path .stay {
  display: grid;
  grid-template-columns: 128px 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
}
.path img, .path .ph {
  width: 128px;
  height: 76px;
  object-fit: cover;
  object-position: left top;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f6f4f1;
}
.path .ph { display: flex; align-items: flex-end; padding: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #f6f4f1; }
.path .n { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-3); padding-top: 2px; }
.path strong { font-size: 16px; letter-spacing: -.02em; }
.path span { display: block; margin-top: 3px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.path a:hover strong { color: var(--accent-deep); }

.note {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.note h2 { font-size: 22px; letter-spacing: -.03em; color: var(--ink); font-family: var(--sans); font-weight: 600; margin-bottom: 8px; }
.note p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.note p + p { margin-top: 8px; }
.hyd { margin-top: 18px; background: #fffaf6; scroll-margin-top: 84px; }

.figure { padding: 22px 18px 0; }
.outline, .ocr, .oldnum { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 280px; }
.side {
  width: 168px;
  align-self: stretch;
  background: #f7f4f1;
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 4px;
}
.side span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 8px;
  border-radius: 8px;
}
.side span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(16,24,40,.04); }
.pagelets { flex: 1; padding: 28px 22px; display: flex; flex-direction: column; gap: 10px; }
.pagelets i, .bars i {
  display: block; height: 8px; border-radius: 99px; background: #ece9e4;
}
.pagelets i:nth-child(1) { width: 72%; background: #f3d3b8; }
.pagelets i:nth-child(2) { width: 92%; }
.pagelets i:nth-child(3) { width: 80%; }
.pagelets i:nth-child(4) { width: 64%; }

.ocr .sheet, .oldnum .sheet {
  width: 148px;
  min-height: 196px;
  background: #fff;
  border: 1px solid #e7e5e1;
  border-radius: 8px;
  box-shadow: 0 18px 40px -24px rgba(16,24,40,.5);
  padding: 16px 14px;
}
.bars { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.bars i:nth-child(3) { width: 55%; }
.sheet p { font-size: 12px; line-height: 1.45; color: var(--ink); margin-top: 8px; }
.sheet .tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ink-3);
  font-weight: 600;
}
.to { color: var(--accent); font-weight: 700; font-size: 18px; }
.oldnum .sheet { position: relative; }
.markbox {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1.5px dashed var(--accent);
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(224,116,47,.08);
}

body:has(> .foot.slim) { padding-bottom: 76px; }
.foot.slim {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 35;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(var(--page), 100%);
  margin: 0;
  padding: 16px var(--gutter) 18px;
  background: color-mix(in srgb, var(--bg) 94%, white);
  backdrop-filter: blur(14px);
}
.foot.slim .mail { align-self: flex-end; margin: 0; color: var(--ink-3); font-weight: 500; text-decoration: none; font-size: 12.5px; }
.foot.slim .mail:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@container (max-width: 740px) {
  .intro:not(.solo) { grid-template-columns: 1fr; gap: 28px; }
  .intro:not(.solo) .screen { max-width: 720px; }
}
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .catalog-nav {
    position: sticky;
    top: 96px;
    z-index: 25;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .when ul,
  .when ul:has(> li:nth-child(2):last-child),
  .when ul:has(> li:only-child),
  .film-grid, .docs ul { grid-template-columns: 1fr; }
  .wrap { padding: 20px 20px 8px; }
}
@media (max-width: 760px) {
  .with-side { grid-template-columns: 1fr; gap: 8px; margin-top: 48px; }
  .page-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 18px;
    margin-top: 8px;
    margin-left: 0;
  }
  .page-nav a { border-left: 0; padding: 8px 0; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .path a, .path .stay { grid-template-columns: 1fr; }
  .path img, .path .ph { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .foot.slim { padding-left: 20px; padding-right: 20px; }
  .foot.slim .mail { align-self: flex-start; }
  h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}
