/* ReceiptLab's original content, presented in the reference's clear blue system. */
.paper-home {
  container: receipt-home / inline-size;
  background: #fff;
}

.paper-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 38px;
  padding-block: 110px 90px;
}
.paper-hero-copy { min-width: 0; }
.paper-hero .eyebrow { margin-bottom: 20px; }
.paper-hero h1 {
  margin: 0 0 25px;
  font-family: var(--sans, 'Tally Sans', Arial, sans-serif);
  font-size: clamp(3rem, 4.2vw, 3.75rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.042em;
  color: var(--ink, #101828);
}
.paper-hero .hero-description {
  max-width: 550px;
  margin-bottom: 32px;
  color: var(--muted, #475467);
  font-size: 1.2rem;
  line-height: 1.55;
}
.paper-hero .hero-actions { gap: 12px; }
.paper-hero .hero-actions .button {
  min-height: 56px;
  padding: 15px 24px;
  font-size: 1rem;
  white-space: normal;
  text-align: center;
}
.paper-commercial-note {
  max-width: 460px;
  margin: 20px 0 0;
  color: var(--muted, #475467);
  font-size: .8125rem;
  line-height: 1.65;
}
.paper-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  color: var(--muted, #475467);
  font-size: .8125rem;
  line-height: 1.6;
}
.paper-hero-meta span { color: #98a2b3; }
.paper-hero-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  align-items: start;
  gap: 18px;
  min-width: 0;
  min-height: 600px;
  margin: 0;
  padding: 30px 25px 24px;
  background: var(--sky, #e1f2fc);
  border-radius: 20px;
}
.paper-hero-sheet {
  min-width: 0;
  width: 100%;
  max-width: 230px;
  justify-self: center;
  background: #fff;
  box-shadow: 0 4px 15px #1018280a;
}
.paper-hero-sheet img { display: block; width: 100%; height: auto; }
.paper-hero-stage figcaption {
  grid-column: 1 / -1;
  margin: 0;
  color: #426579;
  font-size: .8125rem;
  line-height: 1.5;
  text-align: center;
}

.paper-collection { padding-block: 0 76px; scroll-margin-top: 24px; }
.paper-home .section-heading {
  display: block;
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}
.paper-home .section-heading .eyebrow { margin-bottom: 13px; }
.paper-home .section-heading h2 {
  font-size: 2.125rem;
  line-height: 1.22;
  letter-spacing: -.032em;
  margin-bottom: 16px;
}
.paper-home .section-heading p:not(.eyebrow) { font-size: 1.0625rem; line-height: 1.6; }
.paper-gallery-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.paper-gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.paper-gallery-filters button {
  border: 1px solid transparent;
  border-radius: 30px;
  min-height: 44px;
  padding: 10px 20px;
  background: #fff;
  color: var(--muted, #475467);
  font-size: .875rem;
  line-height: 1.4;
}
.paper-gallery-filters button:hover { color: var(--blue, #007eb5); background: #f1f9fd; }
.paper-gallery-filters button[aria-pressed=true] { background: var(--blue, #007eb5); border-color: var(--blue, #007eb5); color: #fff; font-weight: 600; }
.paper-gallery-count { margin: 0; color: var(--muted, #475467); font-size: .8125rem; line-height: 1.5; }
.paper-gallery-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}
.paper-all-templates { grid-column: 1 / -1; justify-self: center; }
.paper-gallery-bottom .brand-notice { max-width: 820px; margin: 0; font-size: .8125rem; line-height: 1.65; }
.paper-gallery-bottom > .text-link { font-size: .875rem; }

.paper-demo { background: #f4faff; border: 0; padding-block: 70px; }
.paper-demo .demo-grid { max-width: 1080px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 85px; }
.paper-demo .demo-copy { min-width: 0; }
.paper-demo .eyebrow { margin-bottom: 17px; }
.paper-demo h2 { color: var(--ink, #101828); font-size: 2.625rem; letter-spacing: -.035em; line-height: 1.16; margin-bottom: 19px; }
.paper-demo .demo-copy > p:not(.eyebrow) { max-width: 435px; font-size: 1rem; color: var(--muted, #475467); line-height: 1.65; }
.paper-demo .demo-copy label, .paper-demo .demo-styles legend { color: #344054; font-size: .875rem; font-weight: 600; }
.paper-demo .demo-copy label { margin-top: 28px; }
.paper-demo .demo-copy input {
  min-height: 50px;
  border: 1px solid #b7c6d3;
  border-radius: 9px;
  background: #fff;
  color: var(--ink, #101828);
  font-size: 1rem;
  box-shadow: 0 1px 2px #10182806;
}
.paper-demo .demo-styles { gap: 8px; margin-block: 23px 27px; }
.paper-demo .demo-styles button { min-height: 44px; flex: 1 1 7rem; padding: 10px 12px; border-color: #bfd1de; border-radius: 30px; color: #475467; font-size: .8125rem; line-height: 1.45; }
.paper-demo .demo-styles button[aria-pressed=true] { color: #006c9f; background: #e1f2fc; border-color: #007eb5; box-shadow: inset 0 0 0 1px #007eb5; }
.paper-demo .demo-copy > .button { min-height: 50px; }
.paper-demo .demo-copy .small-note { margin: 14px 0 0; font-size: .8125rem; }
.paper-demo .demo-stage {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 25px 32px;
  gap: 18px;
  background: var(--sky, #e1f2fc);
  border-radius: 18px;
}
.paper-demo .demo-stage canvas { width: 256px; max-width: 100%; height: auto; max-height: none; object-fit: contain; box-shadow: 0 3px 12px #1018280a; }
.paper-demo-caption, .paper-demo-footnote { color: #426579; font-size: .75rem; line-height: 1.5; margin: 0; text-align: center; }
.paper-demo-caption { letter-spacing: .065em; font-weight: 600; }

.paper-how { padding-block: 84px 68px; }
.paper-how .section-heading { margin-bottom: 44px; }
.paper-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; text-align: center; }
.paper-steps article { min-width: 0; }
.paper-step-visual { display: flex; align-items: flex-start; justify-content: center; width: 104px; height: 124px; margin: 0 auto 22px; padding: 10px 14px 0; overflow: hidden; border-radius: 12px; background: var(--sky, #e1f2fc); }
.paper-step-visual img { display: block; width: 100%; height: auto; }
.paper-steps .step-number { margin: 0 0 11px; color: var(--blue, #007eb5); font-size: .75rem; font-weight: 600; letter-spacing: .06em; }
.paper-steps h3 { margin-bottom: 10px; font-size: 1.1875rem; line-height: 1.35; letter-spacing: -.02em; }
.paper-steps article > p:last-child { max-width: 350px; margin: 0 auto; color: var(--muted, #475467); font-size: .9375rem; line-height: 1.6; }
.paper-faq { display: block; max-width: 760px; padding-block: 16px 76px; }
.paper-faq > div:first-child { margin-bottom: 28px; text-align: center; }
.paper-faq .eyebrow { margin-bottom: 13px; }
.paper-faq h2 { font-size: 2.125rem; margin-bottom: 16px; line-height: 1.22; }
.paper-faq > div > p:not(.eyebrow) { margin-bottom: 7px; }
.paper-faq .faq-list { text-align: left; }
.paper-faq .faq-list summary { min-height: 68px; font-size: .9375rem; font-weight: 600; line-height: 1.5; padding-block: 20px; }
.paper-faq .faq-list summary > span { flex-shrink: 0; }
.paper-faq .faq-list details p { font-size: .9375rem; line-height: 1.65; }
.paper-closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 25px; padding-block: 24px 82px; }
.paper-closing h2 { margin: 0; font-size: 2.625rem; line-height: 1.16; }
.paper-closing .button { flex-shrink: 0; }

@media (max-width: 1150px) {
  .paper-hero { gap: 28px; padding-block: 80px; }
  .paper-hero .hero-actions .button { padding-inline: 19px; font-size: .9375rem; }
  .paper-hero-stage { min-height: 520px; padding: 28px 22px 22px; gap: 15px; }
  .paper-demo .demo-grid { gap: 50px; }
}

@media (max-width: 900px) {
  .paper-hero { grid-template-columns: minmax(0, 1fr); gap: 45px; padding-block: 54px 65px; }
  .paper-hero-copy { text-align: center; }
  .paper-hero h1 { font-size: 3.5rem; }
  .paper-hero .hero-description, .paper-commercial-note { margin-inline: auto; }
  .paper-hero .hero-actions, .paper-hero-meta { justify-content: center; }
  .paper-hero-stage { width: 100%; max-width: 600px; justify-self: center; }
  .paper-demo .demo-grid { gap: 30px; }
  .paper-demo h2 { font-size: 2.25rem; }
  .paper-demo .demo-stage { padding-inline: 22px; }
  .paper-steps { gap: 26px; }
  .paper-closing h2 { font-size: 2.25rem; }
}

@media (max-width: 650px) {
  .paper-hero { padding-block: 46px 55px; gap: 31px; }
  .paper-hero .eyebrow { font-size: .6875rem; letter-spacing: .075em; margin-bottom: 17px; }
  .paper-hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); line-height: 1.12; margin-bottom: 21px; }
  .paper-hero .hero-description { max-width: 430px; font-size: 1.0625rem; line-height: 1.6; margin-bottom: 24px; }
  .paper-hero .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; max-width: 420px; margin-inline: auto; }
  .paper-hero .hero-actions .button { width: 100%; min-height: 50px; padding: 12px 18px; font-size: .9375rem; }
  .paper-commercial-note { max-width: 420px; font-size: .75rem; line-height: 1.7; margin-top: 16px; }
  .paper-hero-meta { font-size: .75rem; gap: 7px; margin-top: 16px; }
  .paper-hero-stage { min-height: 0; padding: 20px 15px 17px; gap: 12px; border-radius: 15px; }
  .paper-hero-stage figcaption { font-size: .75rem; }
  .paper-collection { padding-bottom: 46px; }
  .paper-home .section-heading { margin-bottom: 27px; }
  .paper-home .section-heading h2, .paper-faq h2 { max-width: 420px; margin-inline: auto; font-size: 1.875rem; line-height: 1.24; }
  .paper-home .section-heading p:not(.eyebrow) { font-size: 1rem; }
  .paper-gallery-toolbar { gap: 12px; margin-bottom: 24px; }
  .paper-gallery-filters { gap: 5px; }
  .paper-gallery-filters button { padding-inline: 14px; font-size: .8125rem; }
  .paper-gallery-bottom { grid-template-columns: minmax(0, 1fr); gap: 19px; margin-top: 28px; text-align: center; }
  .paper-gallery-bottom > .text-link { justify-self: center; }
  .paper-gallery-bottom .brand-notice { font-size: .75rem; }
  .paper-demo { padding-block: 46px; }
  .paper-demo .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .paper-demo .demo-copy > .eyebrow, .paper-demo h2 { text-align: center; }
  .paper-demo h2 { font-size: 2.125rem; }
  .paper-demo .demo-copy > p:not(.eyebrow) { max-width: none; font-size: .9375rem; }
  .paper-demo .demo-copy > .button { width: 100%; }
  .paper-demo .demo-copy .small-note { font-size: .75rem; text-align: center; }
  .paper-demo .demo-stage { max-width: 430px; width: 100%; justify-self: center; padding: 22px; gap: 16px; }
  .paper-demo .demo-stage canvas { width: 264px; }
  .paper-how { padding-block: 55px 48px; }
  .paper-how .section-heading { margin-bottom: 35px; }
  .paper-steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .paper-step-visual { width: 90px; height: 110px; margin-bottom: 17px; padding-inline: 12px; }
  .paper-steps article > p:last-child { max-width: 320px; }
  .paper-faq { padding-block: 18px 45px; }
  .paper-faq > div:first-child { margin-bottom: 25px; }
  .paper-faq .faq-list summary { font-size: .9375rem; }
  .paper-closing { display: flex; flex-direction: column; align-items: flex-start; padding-block: 24px 60px; }
  .paper-closing h2 { max-width: 390px; font-size: 2.125rem; }
}

/* Reflow when text size grows, as well as when the viewport gets narrower. */
@container receipt-home (max-width: 56rem) {
  .paper-hero { grid-template-columns: minmax(0, 1fr); }
  .paper-hero-copy { text-align: center; }
  .paper-hero .hero-description, .paper-commercial-note { margin-inline: auto; }
  .paper-hero .hero-actions, .paper-hero-meta { justify-content: center; }
  .paper-hero-stage { max-width: 600px; width: 100%; justify-self: center; }
  .paper-demo .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .paper-demo .demo-copy, .paper-demo .demo-stage { max-width: 570px; width: 100%; justify-self: center; }
  .paper-demo .demo-copy > p:not(.eyebrow) { max-width: none; }
}
@container receipt-home (max-width: 35rem) {
  .paper-steps { grid-template-columns: minmax(0, 1fr); }
  .paper-gallery-bottom { grid-template-columns: minmax(0, 1fr); }
  .paper-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .paper-demo .demo-styles { flex-wrap: wrap; }
  .paper-hero h1, .paper-collection h2, .paper-demo h2, .paper-how h2, .paper-faq h2, .paper-closing h2 { overflow-wrap: anywhere; }
}
