/* ==========================================================================
   zMailers.com — page styles
   Shares tokens, base, layout and components with zOneStopShop.com and
   zLegalSolutions.com. Only what is specific to this site lives here.
   ========================================================================== */

/* The Mailing Services lockup carries a second line, so it runs a little larger than the main-site logo */
.brand__logo { height: 46px; }
@media (max-width: 599px) { .brand__logo { height: 36px; } }
.site-footer__logo { height: 46px; }

/* --------------------------------------------------------------------------
   Hero: headline left, the postage ladder right, on a press sheet
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
  background: var(--paper);
}
.hero .sheet { padding: clamp(1.75rem, 4vw, 3.5rem) clamp(.5rem, 2vw, 2rem); }
.hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: 6fr 5fr; } }
.hero__title { max-width: none; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 3.9rem); }
.hero__lead {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem);
  line-height: 1.4;
  max-width: 40ch;
  color: var(--blue);
  font-weight: 700;
}
.hero__lead span { display: block; color: var(--slate); margin-top: .5rem; font-size: .85em; font-weight: 400; }
.hero__actions { margin-top: clamp(1.5rem, 3vw, 2rem); }

/* The postage ladder: a table that draws itself as bars */
.ladder {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 0 rgba(11,31,63,.08), 0 24px 40px -28px rgba(11,31,63,.6);
}
.ladder h2 { font-size: 1.05rem; margin: 0 0 .15rem; }
.ladder__sub { font-size: .85rem; color: var(--slate); margin: 0 0 1rem; }
.ladder table { width: 100%; border-collapse: collapse; }
.ladder caption { display: none; }
.ladder th, .ladder td { text-align: left; padding: .3rem 0; font-size: .9rem; vertical-align: middle; }
.ladder th { font-weight: 700; color: var(--ink); width: 46%; padding-right: .75rem; line-height: 1.2; }
.ladder th small { display: block; font-weight: 400; color: var(--slate); font-size: .78rem; }
.ladder td { position: relative; }
.ladder .bar {
  display: flex; align-items: center; gap: .5rem;
}
.ladder .bar i {
  display: block; height: 14px; border-radius: 0 4px 4px 0;
  background: var(--blue);
  width: calc(var(--w) * 1%);
  min-width: 4px;
  transition: width .6s ease;
}
.ladder tr.is-base .bar i { background: var(--mark); }
.ladder tr.is-best .bar i { background: var(--green-deep); }
.ladder .bar b { font-weight: 900; color: var(--ink); white-space: nowrap; font-size: .95rem; }
.ladder tbody tr + tr th, .ladder tbody tr + tr td { border-top: 1px solid var(--stock); }
.ladder__group th { padding-top: .75rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mark); width: auto; }
.ladder__note { margin: .9rem 0 0; font-size: .78rem; color: var(--slate); line-height: 1.4; }
.ladder__note a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Five levers (tiles on blue) reuse .caps__grid/.cap; numbered variant
   -------------------------------------------------------------------------- */
.levers { counter-reset: lever; }
.levers .cap { counter-increment: lever; display: block; }
.levers .cap h3 { margin-bottom: .4rem; }
.levers .cap h3::before {
  content: counter(lever, decimal-leading-zero);
  display: block; font-size: .8rem; letter-spacing: .1em; color: var(--green-deep); margin-bottom: .35rem; font-weight: 900;
}

/* --------------------------------------------------------------------------
   Formats: six cards, icon + copy
   -------------------------------------------------------------------------- */
.formats {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .formats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .formats { grid-template-columns: repeat(3, 1fr); } }
.format {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.25rem 1.35rem;
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start;
}
.format svg { width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.format h3 { font-size: 1.1rem; margin-bottom: .3rem; color: var(--blue); }
.format p { font-size: .95rem; }
.format p a { font-weight: 600; }

/* --------------------------------------------------------------------------
   How it works: three numbered steps (white h3 on blue)
   -------------------------------------------------------------------------- */
.how {
  list-style: none;
  counter-reset: how;
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { counter-increment: how; border-top: 3px solid var(--green); padding-top: 1rem; }
.how h3 { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .5rem; color: var(--paper); }
.how h3::before {
  content: counter(how);
  flex: none; margin-top: .05em;
  width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center;
  background: var(--green); color: var(--ink);
  font-size: .95rem; font-weight: 900;
  border-radius: 50%;
}
.how p { font-size: .97rem; }

/* --------------------------------------------------------------------------
   One building: photo beside copy
   -------------------------------------------------------------------------- */
.split {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split__media { margin: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--stock); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: .75rem; }
.split .facts { list-style: none; margin-top: 1.25rem; display: grid; gap: .6rem; }
.split .facts li { padding-left: 1.4rem; position: relative; font-size: .97rem; }
.split .facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--green); }

/* --------------------------------------------------------------------------
   Who we mail for
   -------------------------------------------------------------------------- */
.audiences {
  list-style: none;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 600px) { .audiences { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .audiences { grid-template-columns: repeat(3, 1fr); } }
.audiences li { border-top: 3px solid var(--green); padding-top: .9rem; }
.audiences h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.audiences p { font-size: .95rem; }
.audiences a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Resource cards (home teaser and the hub)
   -------------------------------------------------------------------------- */
.res-grid {
  list-style: none;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 600px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .res-grid { grid-template-columns: repeat(4, 1fr); } }
.res-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .res-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .res-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.res {
  display: block;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.15rem 1.2rem;
  color: inherit; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.res:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -18px rgba(11,31,63,.5); border-color: var(--slate-light); text-decoration: none; }
.res__kicker { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); font-weight: 900; margin-bottom: .35rem; }
.res h3 { font-size: 1.05rem; color: var(--blue); margin-bottom: .3rem; }
.res p { font-size: .92rem; color: var(--slate); }
.res__more { display: inline-block; margin-top: .6rem; font-weight: 700; color: var(--blue); font-size: .9rem; }
.section--blue .res { border-color: transparent; }

/* Outside links list */
.linklist { list-style: none; display: grid; gap: .75rem; }
.linklist li { padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); display: grid; gap: .2rem; }
.linklist a { font-weight: 700; }
.linklist a::after { content: " ↗"; font-weight: 400; color: var(--mark); font-size: .85em; }
.linklist span { font-size: .92rem; color: var(--slate); }
.linkgroups { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .linkgroups { grid-template-columns: repeat(3, 1fr); } }
.linkgroups h3 { margin-bottom: .75rem; font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Testimonials: postage-savings stories
   -------------------------------------------------------------------------- */
.stories { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .stories { grid-template-columns: 1fr 1fr; } }
.story {
  margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-card); padding: 1.5rem 1.5rem 1.4rem;
  display: grid; gap: .9rem;
}
.story__stat { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 900; color: var(--blue); line-height: 1; letter-spacing: -.01em; }
.story__stat small { display: block; font-size: .85rem; font-weight: 700; color: var(--green-deep); letter-spacing: .06em; text-transform: uppercase; margin-top: .4rem; }
.story blockquote { margin: 0; }
.story blockquote p { font-size: 1.02rem; color: var(--ink); }
.story figcaption { font-size: .9rem; color: var(--slate); }
.story figcaption strong { color: var(--ink); }
.is-placeholder { outline: 2px dashed var(--green); outline-offset: 4px; }
.is-placeholder .story__stat, .is-placeholder blockquote p, .is-placeholder figcaption { color: var(--mark); }

/* --------------------------------------------------------------------------
   Inner pages: page head, article measure, tables, callouts
   -------------------------------------------------------------------------- */
.page-head { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); background: var(--paper); }
.page-head .crumbs { font-size: .85rem; color: var(--slate); margin-bottom: 1rem; }
.page-head .crumbs a { font-weight: 600; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 1rem; max-width: 60ch; }
.page-head .meta { margin-top: .75rem; font-size: .85rem; color: var(--mark); }
.article { max-width: 72ch; min-width: 0; }
.article h2 { margin-top: clamp(2rem, 4vw, 2.75rem); margin-bottom: .6rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.5rem; margin-bottom: .4rem; font-size: 1.15rem; }
.article p + p, .article ul + p, .article ol + p, .article table + p { margin-top: .9rem; }
.article ul, .article ol { padding-left: 1.25rem; display: grid; gap: .45rem; margin-top: .6rem; }
.article li::marker { color: var(--green-deep); font-weight: 900; }
.callout {
  margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--green);
  background: var(--stock); border-radius: 0 var(--radius) var(--radius) 0;
}
.callout strong { color: var(--blue); }
.callout .actions { margin-top: .9rem; }
.callout--ink { background: var(--ink); color: var(--paper); border-color: var(--green); }
.callout--ink strong { color: var(--green); }
.callout--ink a:not(.btn) { color: var(--paper); }

.table-wrap { overflow-x: auto; margin-top: .9rem; -webkit-overflow-scrolling: touch; }
.rate-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.rate-table th, .rate-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rate-table thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); border-bottom: 2px solid var(--rule); }
.rate-table td.num, .rate-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-table td.num b { color: var(--blue); font-weight: 900; }
.rate-table tr.is-group td { background: var(--stock); font-weight: 700; color: var(--blue); }
.rate-table small { color: var(--slate); }
@media (max-width: 599px) {
  .rate-table--compact { min-width: 0; }
  .rate-table--compact th:nth-child(2), .rate-table--compact td:nth-child(2) { display: none; }
}
.fine { font-size: .85rem; color: var(--slate); margin-top: .75rem; }

/* Page layout with a sticky side panel (table of contents / CTA) */
.with-aside { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.with-aside > * { min-width: 0; }
@media (min-width: 960px) { .with-aside { grid-template-columns: minmax(0, 1fr) 280px; gap: 4rem; align-items: start; } }
.side { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 960px) { .side { position: sticky; top: calc(var(--header-h) + 1rem); } }
.side > div { border-top: 3px solid var(--green); padding-top: 1rem; }
.side h2 { font-size: 1rem; margin-bottom: .6rem; }
.side ol, .side ul { list-style: none; display: grid; gap: .35rem; font-size: .92rem; }
.side a { font-weight: 600; }
.side p { font-size: .92rem; }

/* --------------------------------------------------------------------------
   Calculators (postage comparison, mail date planner)
   -------------------------------------------------------------------------- */
.calc {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-card);
  padding: clamp(1.25rem, 3vw, 2rem); margin-top: 1.5rem;
}
.calc h2, .calc h3 { margin-top: 0; }
.calc__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 640px) { .calc__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .calc__grid--3 { grid-template-columns: repeat(3, 1fr); } }
.calc .field label { font-weight: 700; color: var(--blue); font-size: .92rem; display: block; margin-bottom: .3rem; }
.calc .field input, .calc .field select { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.calc .field input:focus, .calc .field select:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--blue); }
.calc__check { margin-top: 1rem; font-size: .95rem; }
.calc__check label { display: inline-flex; gap: .55rem; align-items: center; font-weight: 700; color: var(--blue); cursor: pointer; }
.calc__check input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); margin: 0; }
.calc__out { margin-top: 1.5rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .calc__out { grid-template-columns: repeat(3, 1fr); } }
.calc__tile { background: var(--stock); border-radius: var(--radius); padding: 1rem 1.1rem; }
.calc__tile b { display: block; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.8rem); font-weight: 900; color: var(--blue); line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc__tile.is-best b { color: var(--green-deep); }
.calc__tile span { display: block; font-size: .85rem; color: var(--slate); margin-top: .25rem; }
.calc__tile small { display: block; font-size: .8rem; color: var(--mark); margin-top: .35rem; }
.calc__note { margin-top: 1rem; font-size: .85rem; color: var(--slate); }

/* Planner timeline */
.timeline { list-style: none; margin-top: 1.5rem; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .9rem; padding-bottom: 1.1rem; position: relative; }
.timeline li::before { content: ""; width: .9rem; height: .9rem; border-radius: 50%; background: var(--blue); margin-top: .3rem; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: .4rem; top: 1.1rem; bottom: -.2rem; width: 2px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline li.is-goal::before { background: var(--green); }
.timeline b { display: block; color: var(--blue); font-size: 1.05rem; }
.timeline span { font-size: .92rem; color: var(--slate); }

/* --------------------------------------------------------------------------
   Mailpiece checklist: zone diagram and checklist
   -------------------------------------------------------------------------- */
.zones { margin: 1.25rem 0 0; }
.zones svg { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.zones figcaption { font-size: .85rem; color: var(--slate); margin-top: .5rem; }
.checklist { list-style: none; padding: 0; display: grid; gap: .6rem; margin-top: .75rem; }
.checklist li { position: relative; padding-left: 1.7rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-deep); font-weight: 900; }
.spec-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 700px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
.spec { background: var(--stock); border-radius: var(--radius); padding: 1rem 1.1rem; }
.spec h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.spec dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; font-size: .92rem; }
.spec dt { color: var(--slate); }
.spec dd { font-weight: 700; color: var(--ink); }

/* Glossary */
.glossary { display: grid; gap: 1.1rem; margin-top: 1rem; }
.glossary div { border-top: 1px solid var(--rule); padding-top: .8rem; }
.glossary dt { font-weight: 900; color: var(--blue); font-size: 1.05rem; }
.glossary dd { margin-top: .25rem; font-size: .97rem; }
.glossary__nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.glossary__nav a { font-weight: 700; padding: .25rem .55rem; border: 1px solid var(--rule); border-radius: 4px; font-size: .9rem; }

/* FAQ */
.faq { display: grid; gap: .5rem; margin-top: 1rem; }
.faq details { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; color: var(--blue); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 900; color: var(--green-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details > p, .faq details > ul { padding: 0 1.1rem 1rem; font-size: .95rem; }
.faq details > ul { margin: 0; padding-left: 2.2rem; }

/* Quote page */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 4fr; gap: 4rem; align-items: start; } }
.quote-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote-form legend { padding: 0; font-weight: 600; color: var(--blue); font-size: .95rem; margin-bottom: .5rem; }
.quote-form .form-grid + .form-grid, .quote-form .form-grid + fieldset, .quote-form fieldset + .form-grid, .quote-form fieldset + fieldset { margin-top: 1.5rem; }
.quote-form__submit { margin-top: 1.75rem; }
.quote-form__fine { margin-top: .9rem; font-size: .875rem; }
.aside { display: grid; gap: 1.5rem; align-content: start; }
.aside > div { border-top: 3px solid var(--green); padding-top: 1rem; }
.aside h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.aside p { font-size: .97rem; }
.aside a { font-weight: 600; }
.aside ul { list-style: none; display: grid; gap: .4rem; font-size: .95rem; }

/* Thank-you and not-found pages */
.thanks { padding-block: clamp(3rem, 7vw, 6rem) var(--section-y); }
.thanks h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem); max-width: 14ch; }
.thanks .lead { margin-top: 1.25rem; }
.thanks ol { margin-top: 1.5rem; padding-left: 1.2rem; display: grid; gap: .5rem; max-width: 60ch; }
.thanks .actions { margin-top: 2rem; }

/* Closing band */
.closing h2 { max-width: 20ch; }
.closing .actions { margin-top: 1.5rem; }
