/* The four entry points use the colours and paper motifs from their examples. */
.example-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-decoration: none;
}
.tile > strong { margin-top: .55rem; font: 700 1.25rem/1.2 Quicksand, sans-serif; }
.tile > strong::after { content: " →"; color: var(--teal); }
.tile > span:last-child { color: var(--ink); font-weight: 400; }
.tile-preview {
  position: relative;
  display: grid;
  place-items: center;
  height: 7.8rem;
  overflow: hidden;
  border-radius: .35rem;
  background: var(--canvas);
}
.tile-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-receipt img { object-position: center 75%; }
.tile-source img { object-position: center 38%; }
.tile-receipt, .lab-receipt { --canvas: #e7dfce; }
.tile-mail, .lab-mail { --canvas: #e6d9de; }
.tile-order, .lab-order { --canvas: #dce9e2; }
.tile-source, .lab-source { --canvas: #e1dfeb; }
.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2rem, 6vw, 5.75rem);
}
.case-intro { padding-block: clamp(.15rem, 1.8vw, 1.7rem); }
.case-back { display: inline-block; margin-bottom: 1.55rem; color: var(--teal); }
.case-follow { border-top: 1px solid var(--line); }
.lab {
  background: var(--canvas);
  padding: clamp(1rem, 2.5vw, 2rem);
  border-radius: .5rem;
  color: var(--ink);
}
.lab-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .3rem 1rem;
  padding-bottom: 1rem;
  color: var(--plum);
  font: 700 1.35rem/1.2 Quicksand, sans-serif;
}
.lab-heading small { font: 400 .8rem/1.3 Mulish, sans-serif; color: #524952; }
.doc-label, .expense caption {
  display: block;
  margin-bottom: .7rem;
  color: var(--teal);
  font: 700 .8rem/1.3 Mulish, sans-serif;
}
.receipt-scan { display: block; width: min(100%, 18rem); height: auto; margin: 0 auto 1.25rem; }
.demo-action, .order-steps details { border: 0; padding: 0; }
.demo-action summary, .mail-switch, .order-steps summary {
  color: var(--plum); background: #fffdf8; padding: .8rem 1rem;
  border-radius: .22rem; font-weight: 700;
}
.demo-action[open] > summary { border-radius: .22rem .22rem 0 0; }
.demo-action > a { display: inline-block; margin-top: .85rem; }
.expense { width: 100%; border-collapse: collapse; background: white; text-align: left; }
.expense caption { display: table-caption; margin: 0; padding: 1rem 1rem .25rem; text-align: left; background: white; }
.expense td, .expense th { padding: .55rem 1rem; }
.expense th { border-bottom: 1px solid var(--line); font-weight: 400; font-size: .87rem; }
.expense tr > :last-child { text-align: right; }
.mail-original, .mail-copy, .extracted, .step-body { background: #fffdf8; padding: clamp(.85rem, 2vw, 1.35rem); }
.mail-original, .mail-copy { font-family: Georgia, serif; line-height: 1.45; }
.mail-original { border-top: 2px solid #bcaaba; }
.mail-copy { border-top: 3px solid var(--teal); }
.mail-original p, .mail-copy p { overflow-wrap: anywhere; margin: .28rem 0; }
.mail-switch { display: flex; align-items: center; gap: .65rem; margin: .9rem 0; background: transparent; padding: .35rem 0; cursor: pointer; }
.mail-switch input { width: 1.2rem; height: 1.2rem; margin: 0; flex: none; accent-color: var(--teal); }
.mail-editor:has(input:checked) .mail-address { display: none; }
.order-steps { margin: 0; padding-left: 1.65rem; }
.order-steps li { padding-left: .3rem; margin-bottom: .6rem; }
.order-steps li::marker { color: var(--teal); font-weight: 700; }
.step-body { border-top: 1px solid var(--line); }
.extracted { margin-bottom: 1rem; }
.extracted blockquote { margin: 0; font: 1.28rem/1.5 Georgia, serif; }
.extracted mark { background: #fae2af; color: #382b26; }
.contract-page { position: relative; }
.contract-page img { display: block; width: 100%; height: auto; }
.contract-page span {
  /* Block coordinates on page 3 of the 410 × 480 pt sample PDF. */
  position: absolute; left: 6.64%; top: 36.10%; width: 69.1%; height: 7.86%;
  outline: 2px dashed var(--teal); outline-offset: 2px;
}
@media (max-width: 62rem) {
  .example-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .case-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .case-intro .actions { margin-bottom: 0; }
  .case-hero .lab, .hero .lab { max-width: 34rem; }
}
@media (max-width: 32rem) {
  .example-menu { grid-template-columns: 1fr; }
  .tile {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    column-gap: .85rem;
    align-items: start;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
  }
  .tile-preview { grid-row: span 2; width: 100%; height: 100%; min-height: 4.5rem; }
}

.sector-heading { margin-top: 2.25rem; }
.sector-links { margin-top: 1rem; }
.trade-paper {
  align-self: center;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  padding: clamp(1rem, 3vw, 2.25rem);
  box-shadow: 4px 5px 0 #e5ded4;
}
.trade-paper-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; color: var(--teal); }
.trade-paper h2 { margin: 1rem 0; font: 700 clamp(1.7rem, 3vw, 2.75rem)/1.1 Georgia, serif; }
.trade-paper dl { margin: 0; }
.trade-paper dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.trade-paper dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.sector-hero .eyebrow { margin-bottom: .7rem; }

.tax-copy .tax-marker, .tax-copy:has(input:checked) .tax-address { display: none; }
.tax-copy:has(input:checked) .tax-marker { display: inline; }

@media (max-width: 48rem) {
  .case-hero { grid-template-columns: minmax(0, 1fr); }
  .case-hero h1, .page-head h1, .case-follow h2 { hyphens: auto; overflow-wrap: anywhere; }
}

.illustrated-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.illustration { max-width: 33rem; }
.illustration img, .sample-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .35rem;
}
.illustration figcaption {
  margin-top: .65rem;
  padding-inline-start: .8rem;
  border-inline-start: 2px solid var(--teal);
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.45;
}
.sample-image { margin-bottom: 1rem; }
h2 + .illustration, .team-offer .illustration { margin-top: 1.25rem; }
.cost-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}
@media (max-width: 48rem) {
  .illustrated-head, .cost-example { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
