/* ============================================================
   Grow Local — A5 portrait print flyer (one front + one back)
   Trim: 148 × 210 mm · Bleed: 4 mm · Page: 156 × 218 mm
   Shopfront: Bottle / Bone / Gold Leaf · Fraunces / Archivo
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@page {
  size: 156mm 218mm;
  margin: 0;
}

html, body {
  width: 156mm;
  min-height: 218mm;
  margin: 0;
  padding: 0;
  background: #d9d4c8;
  font-family: var(--gl-font-body);
  color: var(--gl-ink);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ---- Page shell (trim + 4mm bleed) ---- */

.a5-page {
  position: relative;
  width: 156mm;
  height: 218mm;
  margin: 0 auto 12mm;
  background: var(--gl-bone);
  overflow: hidden;
  page-break-after: always;
  break-after: page;
}

.a5-page:last-of-type {
  margin-bottom: 0;
  page-break-after: auto;
  break-after: auto;
}

.a5-page__label {
  position: absolute;
  top: -7mm;
  left: 0;
  font-family: var(--gl-font-utility);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6558;
}

/* Crop marks sit on the trim line (4mm in from bleed edge) */
.a5-crop {
  position: absolute;
  width: 5mm;
  height: 5mm;
  pointer-events: none;
  z-index: 5;
}
.a5-crop::before,
.a5-crop::after {
  content: "";
  position: absolute;
  background: #1a1a1a;
}
.a5-crop--tl { top: 4mm; left: 4mm; }
.a5-crop--tr { top: 4mm; right: 4mm; }
.a5-crop--bl { bottom: 4mm; left: 4mm; }
.a5-crop--br { bottom: 4mm; right: 4mm; }

.a5-crop--tl::before, .a5-crop--tr::before,
.a5-crop--bl::before, .a5-crop--br::before {
  width: 5mm; height: 0.2mm; top: 0; left: 0;
}
.a5-crop--tl::after, .a5-crop--tr::after,
.a5-crop--bl::after, .a5-crop--br::after {
  width: 0.2mm; height: 5mm; top: 0; left: 0;
}
.a5-crop--tr::before { left: auto; right: 0; }
.a5-crop--tr::after { left: auto; right: 0; }
.a5-crop--bl::before { top: auto; bottom: 0; }
.a5-crop--bl::after { top: auto; bottom: 0; }
.a5-crop--br::before { top: auto; bottom: 0; left: auto; right: 0; }
.a5-crop--br::after { top: auto; bottom: 0; left: auto; right: 0; }

/* Flyer face fills the bleed page; Bottle bands bleed to edge */
.a5-face {
  width: 156mm;
  height: 218mm;
  display: flex;
  flex-direction: column;
  background: var(--gl-bone);
  overflow: hidden;
}

.a5-band { flex: 0 0 auto; }

.a5-eyebrow {
  font-family: var(--gl-font-utility);
  font-size: 8pt;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gl-gold);
  line-height: 1.3;
  text-align: center;
}

/* Safe horizontal inset: 4mm bleed + ~5mm from trim = 9mm from page edge */
.a5-inset-x {
  padding-left: 9mm;
  padding-right: 9mm;
}

/* ---- Front — Band 1: fascia (bleeds) ---- */

.a5-band--fascia {
  flex: 0 0 28mm;
  background: var(--gl-bottle);
  border-top: 0.5px solid var(--gl-gold);
  border-bottom: 0.5px solid var(--gl-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2mm;
  padding: 5mm 10mm 4.5mm;
  text-align: center;
}

.a5-fascia__wordmark {
  font-family: var(--gl-font-display);
  font-size: 18pt;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--gl-bone);
}

.a5-fascia__rule {
  width: 42mm;
  height: 0.5px;
  background: var(--gl-gold);
}

/* ---- Front — Band 2: hook ---- */

.a5-band--hook {
  background: var(--gl-bone);
  padding: 6mm 10mm 3mm;
}

.a5-h1 {
  font-family: var(--gl-font-display);
  font-weight: 600;
  font-size: 17pt;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--gl-ink);
  max-width: 128mm;
  margin-bottom: 0;
}

.a5-h1__line2 {
  display: block;
  font-size: 0.82em;
  margin-top: 1.4mm;
}

.a5-h1--arm-b {
  font-size: 19pt;
  line-height: 1.08;
  margin-bottom: 2.5mm;
}

.a5-sub {
  font-family: var(--gl-font-body);
  font-weight: 400;
  font-size: 9pt;
  line-height: 1.35;
  color: var(--gl-slate);
  max-width: 128mm;
  margin-top: 3mm;
}

/* ---- Front — Band 3: certainty ---- */

.a5-band--certainty {
  background: var(--gl-bone);
  padding: 2.5mm 10mm 3mm;
}

.a5-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.a5-points li {
  position: relative;
  padding-left: 4.5mm;
  margin-bottom: 1.6mm;
  font-family: var(--gl-font-body);
  font-size: 9pt;
  font-weight: 400;
  line-height: 1.3;
  color: var(--gl-ink);
}

.a5-points li:last-child { margin-bottom: 0; }

.a5-points li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: -0.3mm;
  color: var(--gl-gold);
  font-size: 12pt;
  font-weight: 700;
  line-height: 1;
}

/* ---- Front — Band 4: cost signal ---- */

.a5-band--cost {
  background: var(--gl-bone);
  border-top: 0.5px solid var(--gl-gold);
  padding: 3mm 10mm 3.2mm;
}

.a5-cost {
  font-family: var(--gl-font-body);
  font-weight: 400;
  font-size: 9.5pt;
  line-height: 1.32;
  color: var(--gl-ink);
}

/* ---- Front — Band 5: QR action ---- */

.a5-band--action {
  flex: 1 1 auto;
  background: var(--gl-bone);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5mm;
  padding: 4mm 10mm 5mm;
  min-height: 0;
}

.a5-qr-panel {
  flex: 0 0 auto;
  border: 0.75px solid var(--gl-gold);
  background: var(--gl-bone);
  padding: 2mm;
  border-radius: 0;
}

.a5-qr-panel .qr-target,
.a5-qr-panel img,
.a5-qr-panel canvas,
.a5-qr-panel table {
  display: block;
  width: 38mm !important;
  height: 38mm !important;
}

.a5-action {
  flex: 1 1 auto;
  font-family: var(--gl-font-body);
  font-size: 10.5pt;
  line-height: 1.3;
  color: var(--gl-ink);
}

.a5-action__lead {
  display: block;
  font-family: var(--gl-font-utility);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gl-gold);
  font-size: 12pt;
  margin-bottom: 1.2mm;
}

/* ---- Front — Band 6: contact (bleeds) ---- */

.a5-band--contact {
  flex: 0 0 auto;
  background: var(--gl-bottle);
  border-top: 0.5px solid var(--gl-gold);
  border-bottom: 0.5px solid var(--gl-gold);
  padding: 4.5mm 10mm 5.5mm;
}

.a5-signature {
  display: block;
  width: 30mm;
  height: auto;
  max-height: 12mm;
  margin-bottom: 2.2mm;
  object-fit: contain;
  object-position: left center;
}

.a5-contact-line {
  font-family: var(--gl-font-body);
  font-weight: 400;
  font-size: 10pt;
  line-height: 1.35;
  color: var(--gl-bone);
  margin-bottom: 1mm;
}

.a5-contact-line strong { font-weight: 600; }

.a5-contact-line .a5-middot {
  color: var(--gl-gold);
  margin: 0 0.28em;
}

.a5-contact-from {
  font-family: var(--gl-font-utility);
  font-weight: 600;
  font-size: 8pt;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gl-gold);
  margin-top: 2mm;
}

/* ---- Back — fill full page height ---- */

.a5-back {
  justify-content: stretch;
}

/* ---- Back — head band ---- */

.a5-band--headband {
  flex: 0 0 13mm;
  background: var(--gl-bottle);
  border-top: 0.5px solid var(--gl-gold);
  border-bottom: 0.5px solid var(--gl-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 9mm;
  text-align: center;
}

.a5-band--headband .a5-eyebrow {
  font-size: 7.6pt;
  letter-spacing: 0.12em;
  line-height: 1.25;
}

/* ---- Back — tool list ---- */

.a5-tool-list {
  flex: 1 1 auto;
  background: var(--gl-bone);
  list-style: none;
  margin: 0;
  padding: 2mm 10mm 1mm;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.a5-tool {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3mm;
  padding: 2.6mm 0;
  border-bottom: 0.5px solid var(--gl-gold);
}

.a5-tool__num {
  flex: 0 0 7mm;
  font-family: var(--gl-font-utility);
  font-weight: 700;
  font-size: 10pt;
  line-height: 1.15;
  color: var(--gl-gold);
}

.a5-tool__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4mm;
  min-width: 0;
}

.a5-tool__name {
  font-family: var(--gl-font-display);
  font-weight: 600;
  font-size: 10pt;
  line-height: 1.15;
  color: var(--gl-ink);
}

.a5-tool__name em {
  font-style: italic;
  font-weight: 400;
  font-size: 8pt;
  color: var(--gl-slate);
}

.a5-tool__benefit {
  font-family: var(--gl-font-body);
  font-weight: 400;
  font-size: 7.5pt;
  line-height: 1.25;
  color: var(--gl-slate);
}

/* ---- Back — downsell ---- */

.a5-downsell {
  flex: 0 0 auto;
  padding: 3.2mm 10mm 2.8mm;
  font-family: var(--gl-font-body);
  font-style: italic;
  font-size: 8.5pt;
  line-height: 1.3;
  color: var(--gl-slate);
}

/* ---- Back — useful box ---- */

.a5-useful {
  flex: 1 1 auto;
  margin: 0 10mm;
  padding: 3.5mm 3.5mm 3mm;
  border: 0.75px solid var(--gl-gold);
  background: var(--gl-bone);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.a5-useful__head {
  font-family: var(--gl-font-utility);
  font-weight: 600;
  font-size: 7.2pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gl-gold);
  line-height: 1.3;
  margin-bottom: 2.2mm;
}

.a5-useful__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.a5-useful__list li {
  font-family: var(--gl-font-body);
  font-size: 8.5pt;
  line-height: 1.35;
  color: var(--gl-ink);
  margin-bottom: 1.2mm;
}

.a5-useful__list li:last-child {
  margin-bottom: 0;
}

.a5-useful__note {
  font-family: var(--gl-font-body);
  font-size: 7pt;
  line-height: 1.3;
  color: var(--gl-slate);
  margin-top: 1.4mm;
}

/* ---- Back — scan row under checklist ---- */

.a5-scan {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4.5mm;
  margin: 3.5mm 10mm 0;
  padding: 0;
}

.a5-scan__qr {
  flex: 0 0 auto;
  width: 24mm;
  height: 24mm;
  background: var(--gl-bone);
  border: 0.5px solid var(--gl-gold);
  padding: 1mm;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a5-scan__qr .qr-target,
.a5-scan__qr img,
.a5-scan__qr canvas,
.a5-scan__qr table {
  width: 22mm !important;
  height: 22mm !important;
}

.a5-scan__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.a5-scan__lead {
  display: block;
  font-family: var(--gl-font-utility);
  font-weight: 700;
  font-size: 9.5pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gl-brass);
  line-height: 1.15;
  margin-bottom: 1.2mm;
}

.a5-scan__sub {
  display: block;
  font-family: var(--gl-font-body);
  font-size: 9pt;
  line-height: 1.25;
  color: var(--gl-ink);
}

/* ---- Back — value line ---- */

.a5-value {
  flex: 0 0 auto;
  padding: 4mm 10mm 3.5mm;
  font-family: var(--gl-font-body);
  font-size: 9.5pt;
  line-height: 1.35;
  color: var(--gl-ink);
}

/* ---- Back — closing ---- */

.a5-closing {
  flex: 0 0 auto;
  background: var(--gl-bone);
  border-top: 1px solid var(--gl-gold);
  padding: 5mm 10mm 7mm;
  margin-top: auto;
}

.a5-closing__q {
  font-family: var(--gl-font-display);
  font-weight: 600;
  font-size: 11pt;
  line-height: 1.15;
  color: var(--gl-ink);
  margin-bottom: 1.2mm;
}

.a5-closing__a {
  font-family: var(--gl-font-body);
  font-weight: 400;
  font-size: 8.5pt;
  line-height: 1.3;
  color: var(--gl-ink);
  margin-bottom: 2.4mm;
}

.a5-closing__url {
  font-family: var(--gl-font-utility);
  font-weight: 600;
  font-size: 8pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gl-gold);
}

/* ---- Screen-only hint ---- */

.screen-hint {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gl-bottle);
  color: var(--gl-bone);
  border: 0.5px solid var(--gl-gold);
  font-family: var(--gl-font-body);
  font-size: 13px;
  padding: 8px 16px;
  z-index: 999;
  max-width: 92vw;
  text-align: center;
}

@media print {
  html, body { background: none; width: 156mm; }
  .screen-hint { display: none !important; }
  .a5-page { margin: 0; }
  .a5-page__label { display: none !important; }
  .a5-crop { display: none !important; }
}
