/* ============================================================
   style6.css — marketing site and blog.
   "Parcel Post" theme: Droplana as a courier service for client
   files. Manila-envelope paper, postal ink navy, airmail red +
   blue, rubber stamps, perforated postage frames, dotted flight
   routes. Bricolage Grotesque display over Inter body, IBM Plex
   Mono for tracking codes and labels.
   Requires style6-base.css loaded first; every token and
   component the marketing surface needs is overridden here so
   the app stylesheets stay untouched.
   ============================================================ */

/* ─── Tokens ────────────────────────────────────────────────── */
:root {
  /* SURFACES — manila envelope + white label stock */
  --color-surface-base: #f3ecdb;
  --color-surface-card: #fffdf6;
  --color-surface-solid: #fffdf6;
  --color-surface-subtle: #ede3cc;
  --color-surface-muted: #e3d5b4;
  /* TEXT — postal ink */
  --color-text-primary: #2b3247;
  --color-text-secondary: #5b6175;
  --color-text-strong: #161c30;
  /* BORDERS */
  --color-border-subtle: #ddd0b0;
  --color-border-strong: #c2b189;
  /* ACTION — airmail blue (remapped over the base's evergreen
     variables so inherited base rules turn postal too) */
  --color-evergreen: #24509e;
  --color-evergreen-deep: #1b3d7c;
  --color-brass: #a3772e;
  --gradient-action: linear-gradient(180deg, #2b5cb4 0%, #24509e 100%);
  --gradient-action-bright: linear-gradient(180deg, #3568c4 0%, #2b5cb4 100%);
  --color-action-primary: #24509e;
  --color-action-primary-hover: #1b3d7c;
  --color-info-bg: rgba(36, 80, 158, 0.08);
  --color-info-border: rgba(36, 80, 158, 0.28);
  --color-info-text: #1b3d7c;
  /* POSTAL extras */
  --postal-red: #c9402c;
  --postal-red-deep: #a5311f;
  --postal-navy: #1b2440;
  --postal-navy-deep: #131a30;
  --paper-hole: var(--color-surface-base);
  --stripe-airmail: repeating-linear-gradient(
    -45deg,
    #c9402c 0 12px,
    #fffdf6 12px 24px,
    #24509e 24px 36px,
    #fffdf6 36px 48px
  );

  --font-display: "Bricolage Grotesque", "Inter", -apple-system, sans-serif;

  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --max-width: 1080px;

  --shadow-card: 0 1px 2px rgba(22, 26, 48, 0.06), 0 4px 14px rgba(22, 26, 48, 0.06);
  --shadow-raised: 0 6px 22px rgba(22, 26, 48, 0.12);
  --shadow-deep: 0 24px 64px rgba(19, 26, 48, 0.24);
  --shadow-print: 4px 4px 0 var(--color-text-strong);
  --shadow-print-sm: 3px 3px 0 var(--color-text-strong);
}

/* ─── Base overrides ────────────────────────────────────────── */
body {
  background-color: var(--color-surface-base);
  background-image: url("/img/style6/grain.svg");
  background-attachment: scroll;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}

::selection {
  background: rgba(201, 64, 44, 0.24);
  color: var(--color-text-strong);
}

a:hover {
  text-decoration-color: var(--postal-red);
}

/* ─── Buttons — printed parcel labels ───────────────────────── */
.btn {
  border: 2px solid var(--color-text-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn--default {
  background: var(--color-action-primary);
  color: #fffdf6;
  box-shadow: var(--shadow-print-sm);
}
.btn--default:hover, a:hover .btn--default:hover {
  background: var(--color-action-primary-hover);
  box-shadow: var(--shadow-print);
  transform: translate(-1px, -1px);
  text-decoration: none;
}
.btn--default:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-text-strong);
}
.btn--outline {
  background: var(--color-surface-card);
  color: var(--color-text-strong);
  border-color: var(--color-text-strong);
  box-shadow: var(--shadow-print-sm);
}
.btn--outline:hover, a:hover .btn--outline:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text-strong);
  border-color: var(--color-text-strong);
  box-shadow: var(--shadow-print);
  transform: translate(-1px, -1px);
  text-decoration: none;
}
.btn--outline:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-text-strong);
}
.btn:focus-visible {
  outline: 3px solid var(--postal-red);
  outline-offset: 2px;
}
.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}
.btn--full {
  width: 100%;
}

.input:focus {
  border-color: var(--color-action-primary);
  box-shadow: 0 0 0 3px rgba(36, 80, 158, 0.18);
}

/* ─── Airmail edge — the signature stripe ───────────────────── */
.airmail-edge {
  height: 10px;
  background: var(--stripe-airmail);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* ─── Site header — post-office counter ─────────────────────── */
.site-header {
  background: rgba(243, 236, 219, 0.88);
  border-bottom: none;
  padding: 0.5rem 0.5rem 0.75rem;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--stripe-airmail);
  opacity: 0.9;
}
.site-nav__cta {
  font-size: 0.8125rem;
  padding: 0.5rem 1.125rem;
}

/* ─── Hero — the delivery ───────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5.5rem;
  background-image: url("/img/style6/routes.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  top: -3rem;
  right: -4rem;
  width: 420px;
  height: 420px;
  background: url("/img/style6/postmark.svg") no-repeat center / contain;
  transform: rotate(12deg);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 3.5rem;
  align-items: center;
}
.hero__inner > * {
  min-width: 0;
}
.hero__text {
  text-align: left;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--postal-red-deep);
  border: 1.5px solid currentColor;
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.5rem;
  transform: rotate(-1.2deg);
}
.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--color-text-strong);
  margin-bottom: 1.5rem;
  padding-top: 0;
  padding-bottom: 0;
}
.hero__title em {
  font-style: normal;
  color: var(--color-action-primary);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.12em;
  background: var(--postal-red);
  border-radius: 2px;
  transform: rotate(-0.5deg);
}
.hero__sub {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 0 2rem;
  line-height: 1.7;
}
h2.hero__sub {
  font-size: 2.125rem;
  line-height: normal;
  padding-top: 1rem;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero__link-cta {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-evergreen-deep);
  text-decoration: none;
}
.hero__link-cta:hover {
  color: var(--postal-red-deep);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.hero__fineprint {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}
.hero--center {
  text-align: center;
}
.hero--center .hero__title {
  margin-left: auto;
  margin-right: auto;
}
.hero--center .hero__sub {
  margin-left: auto;
  margin-right: auto;
}
.hero--center .hero__actions {
  justify-content: center;
}

/* Hero visual — the parcel */
.hero__visual {
  position: relative;
}
.hero__visual .shot-frame {
  transform: rotate(1.4deg);
}
.hero__visual .shot-frame:hover {
  transform: rotate(0.4deg) translateY(-4px);
}

/* ─── Screenshot frames — browser windows on label stock ───── */
.shot-frame {
  background: var(--color-surface-card);
  border: 2px solid var(--color-text-strong);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-deep), var(--shadow-print);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.875rem;
  background: var(--color-surface-subtle);
  border-bottom: 2px solid var(--color-text-strong);
}
.shot-frame__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-surface-card);
  border: 1.5px solid var(--color-text-strong);
  flex-shrink: 0;
}
.shot-frame__dot--red { background: var(--postal-red); }
.shot-frame__dot--blue { background: var(--color-action-primary); }
.shot-frame__url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  padding: 0.12rem 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Postage stamp badge ───────────────────────────────────── */
.stamp {
  display: inline-block;
  padding: 7px;
  background-image: radial-gradient(circle 3.5px, transparent 3.4px, var(--color-surface-card) 3.6px);
  background-size: 15px 15px;
  background-position: -7.5px -7.5px;
  filter: drop-shadow(2px 3px 4px rgba(19, 26, 48, 0.28));
}
.stamp__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: var(--color-surface-card);
  border: 1.5px solid var(--color-action-primary);
  padding: 0.6rem 0.8rem 0.5rem;
}
.stamp__inner img {
  width: 34px;
  height: 34px;
}
.stamp__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-action-primary);
  line-height: 1;
}
.stamp__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
}
.stamp--hero {
  position: absolute;
  top: -2.25rem;
  right: -0.75rem;
  transform: rotate(6deg);
  z-index: 2;
}

/* ─── Sticker + rubber stamp ────────────────────────────────── */
.sticker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fffdf6;
  background: var(--postal-red);
  border: 2px solid var(--color-text-strong);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  box-shadow: var(--shadow-print-sm);
  transform: rotate(-2.5deg);
}
.sticker--hero {
  position: absolute;
  bottom: -1.1rem;
  left: 6%;
  z-index: 2;
}
.rubber {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--postal-red-deep);
  border: 2px solid currentColor;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  transform: rotate(-1.6deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
}
.rubber--blue {
  color: var(--color-evergreen-deep);
  transform: rotate(1.2deg);
}

/* ─── Trust strip — the counter stamps ──────────────────────── */
.trust-strip {
  padding-top: 1.75rem;
  padding-bottom: 1.5rem;
  background: var(--color-surface-card);
  border-bottom: 1px solid var(--color-border-subtle);
}
.trust-strip__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem 1.25rem;
  margin: 0;
  padding: 0;
}
.trust-strip__list li {
  list-style: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-evergreen-deep);
  border: 2px solid currentColor;
  border-radius: 4px;
  padding: 0.35rem 0.8rem;
  opacity: 0.85;
}
.trust-strip__list li:nth-child(odd) {
  transform: rotate(-1.4deg);
}
.trust-strip__list li:nth-child(even) {
  transform: rotate(1.1deg);
  color: var(--postal-red-deep);
}
.trust-strip__note {
  margin: 1rem 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-secondary);
}

/* ─── Sections ──────────────────────────────────────────────── */
.section--alt {
  background: var(--color-surface-subtle);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}
.section__heading {
  font-size: clamp(1.625rem, 3.4vw, 2.375rem);
  padding-top: 0;
  margin-bottom: 0.25rem;
  padding-bottom: 0;
}
.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--postal-red-deep);
  margin: 0 0 0.75rem;
}
.section__eyebrow::before {
  content: "▸ ";
  color: var(--color-action-primary);
}
.section__lead {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  max-width: 640px;
  margin-bottom: 2rem;
}
.section__note {
  color: var(--color-text-secondary);
  margin-top: 1.5rem;
}
.section__gap {
  margin-top: 1.5rem;
}

/* ─── Tracking timeline (how it works) ──────────────────────── */
.tracking {
  margin-top: 2rem;
  background: var(--color-surface-card);
  border: 2px solid var(--color-text-strong);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-print);
  overflow: hidden;
}
.tracking__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.5rem;
  background: var(--color-surface-subtle);
  border-bottom: 2px solid var(--color-text-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.tracking__head strong {
  color: var(--color-text-strong);
}
.tracking__status {
  color: var(--color-evergreen-deep);
  font-weight: 700;
}
.tracking__list {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}
main .tracking__list li {
  list-style: none;
  margin: 0;
  position: relative;
  padding-top: 1.4rem;
}
.tracking__item::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0.55rem;
  right: -1.5rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border-strong) 0 6px, transparent 6px 12px);
}
.tracking__item:last-child::before {
  right: 0;
}
.tracking__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-surface-card);
  border: 3px solid var(--color-action-primary);
}
.tracking__item--done::after {
  background: var(--color-action-primary);
}
.tracking__item--delivered::after {
  background: var(--postal-red);
  border-color: var(--postal-red);
}
.tracking__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--postal-red-deep);
  margin: 0 0 0.35rem;
}
.tracking__title {
  font-size: 1.125rem;
  padding: 0;
  margin: 0 0 0.35rem;
}
.tracking__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ─── Showcase — big screenshots with callouts ──────────────── */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}
.showcase > * {
  min-width: 0;
}
.showcase--flip {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.showcase--flip .showcase__media {
  order: 2;
}
.showcase__media {
  position: relative;
  min-width: 0;
}
.showcase__media .shot-frame {
  transform: rotate(-0.8deg);
}
.showcase--flip .showcase__media .shot-frame {
  transform: rotate(0.8deg);
}
.showcase__media .rubber {
  position: absolute;
  top: -0.8rem;
  right: 1.25rem;
  z-index: 2;
  background: var(--color-surface-base);
}
.showcase__points {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
main .showcase__points li {
  list-style: none;
  margin: 0;
  padding-left: 1.9rem;
  position: relative;
  color: var(--color-text-secondary);
}
main .showcase__points li strong {
  color: var(--color-text-strong);
}
.showcase__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-surface-card);
  background: var(--color-action-primary);
  border-radius: 50%;
}

/* ─── Feature grid — address labels ─────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-grid .flexblock {
  padding: 1.5rem;
  border: 1.5px solid var(--color-text-strong);
  border-radius: var(--radius);
  background-color: var(--color-surface-card);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-print-sm);
}
.feature-grid__item {
  position: relative;
  padding: 1.5rem;
  border: 1.5px solid var(--color-text-strong);
  border-radius: var(--radius);
  background-color: var(--color-surface-card);
  box-shadow: var(--shadow-print-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-grid__item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--color-text-strong);
}
.feature-grid__item h3 {
  font-size: 1.1875rem;
  padding-top: 0;
  margin-bottom: 0.5rem;
}
.feature-grid__item h3 a {
  color: var(--color-text-strong);
}
.feature-grid__item h3 a:hover {
  color: var(--color-action-primary);
  text-decoration-color: var(--postal-red);
}
.feature-grid__item p {
  color: var(--color-text-secondary);
  margin: 0.5rem 0 0;
}
.feature-grid__item ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.feature-grid__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--postal-red-deep);
  margin-bottom: 0.6rem;
}

/* ─── Steps numerals (legacy markdown pages) ────────────────── */
span.steps-strip__num {
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-action-primary);
  margin-bottom: 0.75rem;
  pointer-events: none;
  user-select: none;
}

/* ─── Pricing — the rate card ───────────────────────────────── */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  align-items: start;
}
.pricing-card {
  position: relative;
  padding: 2rem 1.5rem;
  border: 2px solid var(--color-text-strong);
  border-radius: var(--radius);
  background-color: var(--color-surface-card);
  box-shadow: var(--shadow-print-sm);
}
.pricing-card--featured {
  box-shadow: var(--shadow-print), var(--shadow-raised);
}
.pricing-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--stripe-airmail);
  border-bottom: 2px solid var(--color-text-strong);
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}
.pricing-card__name {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.625rem;
  color: var(--postal-red-deep);
}
.pricing-card--featured .pricing-card__name {
  margin-top: 0.5rem;
}
.pricing-card__price {
  font-size: 3rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--color-text-strong);
}
.pricing-card__price .state-tax {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-left: 0.5rem;
}
.pricing-card__period {
  font-size: 1.35rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-text-secondary);
}
.pricing-card__features {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-text-primary);
}
.pricing-note {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  max-width: 640px;
  margin: 1.5rem auto 0;
  text-align: center;
}

/* ─── Tables — manifest sheets ──────────────────────────────── */
table {
  width: 100%;
  border-collapse: separate;
  font-family: inherit;
  font-size: 0.95rem;
  border: 2px solid var(--color-text-strong);
  border-radius: var(--radius-sm);
  border-spacing: 0;
  overflow: hidden;
  background: var(--color-surface-card);
  box-shadow: var(--shadow-print-sm);
}
th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
}
th {
  background: var(--postal-navy);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0ead7;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:nth-child(even) td {
  background: rgba(237, 227, 204, 0.4);
}
.comparison-table th:first-child {
  width: 40%;
}

/* ─── FAQ — counter questions ───────────────────────────────── */
.faq__group {
  font-size: 1.125rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 2rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}
.faq {
  border-bottom: 1.5px dashed var(--color-border-strong);
  padding: 0.875rem 0;
}
.faq > summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.12s;
}
.faq > summary:hover {
  color: var(--color-action-primary);
}
.faq > summary::-webkit-details-marker {
  display: none;
}
.faq > summary::after {
  content: "+";
  color: var(--postal-red);
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}
.faq[open] > summary::after {
  content: "−";
}
.faq > p {
  color: var(--color-text-secondary);
  margin-top: 0.625rem;
}
.faq > p + p {
  margin-top: 0.625rem;
}

/* ─── Contact list ──────────────────────────────────────────── */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}
.contact-list a {
  color: var(--color-evergreen-deep);
  text-decoration: underline;
  text-decoration-color: var(--postal-red);
  text-underline-offset: 0.22em;
}

/* ─── Footer CTA — night dispatch ───────────────────────────── */
.footer-cta {
  text-align: center;
}
.footer-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
}
.footer-cta__heading {
  font-size: clamp(1.625rem, 3.4vw, 2.5rem);
  padding-top: 0;
}
.footer-cta__sub {
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 520px;
}
.footer-cta__fineprint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin: 0;
}
.footer-cta--dark {
  position: relative;
  background: var(--postal-navy);
  background-image: url("/img/style6/routes-night.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-top: 2px solid var(--color-text-strong);
  border-bottom: none;
}
.footer-cta--dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--stripe-airmail);
}
.footer-cta--dark .footer-cta__heading {
  color: #f7f2e2;
}
.footer-cta--dark .footer-cta__sub {
  color: rgba(247, 242, 226, 0.82);
}
.footer-cta--dark .footer-cta__fineprint {
  color: rgba(247, 242, 226, 0.6);
}
.footer-cta--dark .btn--default {
  background: var(--postal-red);
  border-color: #f7f2e2;
  color: #fffdf6;
  box-shadow: 3px 3px 0 rgba(247, 242, 226, 0.9);
}
.footer-cta--dark .btn--default:hover {
  background: var(--postal-red-deep);
  box-shadow: 4px 4px 0 rgba(247, 242, 226, 0.9);
}

/* ─── Site footer — the colophon / customs form ─────────────── */
.site-footer {
  border-top: 2px solid var(--color-text-strong);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  background: var(--color-surface-subtle);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
}
.site-footer__heading {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--postal-red-deep);
  margin-bottom: 0.75rem;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer__links a {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.12s;
}
.site-footer__links a:hover {
  color: var(--color-action-primary);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1.5px dashed var(--color-border-strong);
}
.site-footer__copy {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  opacity: 0.85;
  margin: 0;
}
.site-footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ─── Blog — the gazette ────────────────────────────────────── */
.blog-header {
  padding: 3rem 0 2rem;
  border-bottom: 2px solid var(--color-text-strong);
  margin-bottom: 2.5rem;
}
.blog-header__title {
  font-size: 2.75rem;
  color: var(--color-text-strong);
  margin: 0 0 0.5rem;
  padding-top: 0;
}
.blog-header__sub {
  color: var(--color-text-secondary);
  margin: 0;
}
.blog-header__back {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}
.blog-header__back a {
  color: var(--color-evergreen-deep);
}
.blog-empty {
  color: var(--color-text-secondary);
  padding: 2rem 0;
}
.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  border: 1.5px solid var(--color-text-strong);
  border-radius: var(--radius);
  background: var(--color-surface-card);
  box-shadow: var(--shadow-print-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--color-text-strong);
}
.blog-card__image-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1.5px solid var(--color-text-strong);
}
.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.blog-card__date {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--postal-red-deep);
  margin: 0;
}
.blog-card__title {
  font-size: 1.1875rem;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}
.blog-card__title a {
  color: var(--color-text-strong);
  text-decoration: none;
}
.blog-card__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--postal-red);
}
.blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin: 0;
  flex: 1;
}
.blog-card__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.blog-card__tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--color-info-bg);
  color: var(--color-evergreen-deep);
  border: 1px solid var(--color-info-border);
  border-radius: var(--radius-pill);
  padding: 0.125rem 0.625rem;
  list-style-type: none;
}
.blog-card__read-more {
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-evergreen-deep);
  text-decoration: none;
  margin-top: 0.25rem;
}
.blog-card__read-more:hover {
  text-decoration: underline;
  text-decoration-color: var(--postal-red);
}

/* Blog post */
.blog-post {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.blog-post__article {
  min-width: 0;
}
.blog-post__featured {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-text-strong);
  box-shadow: var(--shadow-print-sm);
  display: block;
  margin-bottom: 2rem;
}
.blog-post__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-text-strong);
}
.blog-post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.blog-post__date {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--postal-red-deep);
}
.blog-post__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.blog-post__tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--color-info-bg);
  color: var(--color-evergreen-deep);
  border: 1px solid var(--color-info-border);
  border-radius: var(--radius-pill);
  padding: 0.125rem 0.625rem;
}
.blog-post__content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-primary);
}
.blog-post__content p {
  margin: 0 0 1.25rem;
}
.blog-post__content ul,
.blog-post__content ol {
  margin: 0 0 1.25rem 1.5rem;
}
.blog-post__content li {
  margin-bottom: 0.375rem;
}
.blog-post__content a {
  color: var(--color-evergreen-deep);
  text-decoration: underline;
  text-decoration-color: var(--postal-red);
  text-underline-offset: 0.22em;
}
.blog-post__content a:hover {
  color: var(--color-action-primary);
}
.blog-post__content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-surface-subtle);
  color: var(--color-evergreen-deep);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.375rem;
  padding: 0.1em 0.4em;
}
.blog-post__content pre {
  background: var(--postal-navy);
  color: #e9e6dc;
  border: 2px solid var(--color-text-strong);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.blog-post__content pre code {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
}
.blog-post__content blockquote {
  border-left: 4px solid var(--postal-red);
  background: var(--color-info-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 1.25rem;
  padding: 0.625rem 1rem;
  color: var(--color-text-secondary);
  font-style: italic;
}
.blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-text-strong);
}

/* Blog sidebar */
.blog-post__sidebar {
  position: sticky;
  top: 5.5rem;
  border: 1.5px solid var(--color-text-strong);
  border-radius: var(--radius);
  background: var(--color-surface-card);
  box-shadow: var(--shadow-print-sm);
  padding: 1.25rem;
}
.blog-sidebar__heading {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--postal-red-deep);
  margin: 0 0 1rem;
}
.blog-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.blog-sidebar__post {
  display: flex;
  flex-direction: column;
}
.blog-sidebar__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: opacity 0.15s;
}
.blog-sidebar__card:hover {
  opacity: 0.85;
}
.blog-sidebar__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border-subtle);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.blog-sidebar__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.blog-sidebar__post--active .blog-sidebar__link {
  font-weight: 600;
  color: var(--color-text-strong);
}
.blog-sidebar__date {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
}
.blog-sidebar__link {
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  text-decoration: none;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .blog-post {
    grid-template-columns: 1fr;
  }
  .blog-post__sidebar {
    position: static;
  }
}

/* ─── Prose page layout (vs / for / legal) ──────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}
.page-layout--full {
  grid-template-columns: 1fr;
}
.page-layout__content {
  min-width: 0;
}
.page-layout__content h2 {
  margin-top: 2rem;
}
.page-layout__content h3 {
  margin-top: 1.5rem;
}
.page-layout__sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-sidebar-card {
  padding: 1.25rem;
  border: 1.5px solid var(--color-text-strong);
  border-radius: var(--radius);
  background: var(--color-surface-card);
  box-shadow: var(--shadow-print-sm);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.page-sidebar-card__heading {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--postal-red-deep);
  margin: 0;
  padding: 0;
}
.page-sidebar-card__body {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}
.page-sidebar-card__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.page-sidebar-card__links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.12s;
}
.page-sidebar-card__links a:hover {
  color: var(--color-action-primary);
}
@media (max-width: 800px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-layout__sidebar {
    position: static;
  }
}

/* ─── Login — the counter window ────────────────────────────── */
.login-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-image: url("/img/style6/routes.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}
.login-wrap {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.75rem;
  background: var(--color-surface-card);
  border: 2px solid var(--color-text-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-print), var(--shadow-raised);
}
.login__sub {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.login-section h1,
.login-section h2 {
  padding-top: 0.6em;
}
.login-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-evergreen-deep);
  border: 1.5px dashed var(--color-info-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  background: var(--color-info-bg);
}
.login-section .portal-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.spaces-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.spaces-card {
  display: block;
  flex: 1;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface-base);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.spaces-card:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-text-strong);
}
.spaces-remove {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s, background 0.15s;
}
.spaces-remove:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-subtle);
}
.spaces-hint {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* ─── Important info (404, sent, expired) ───────────────────── */
.important-info {
  background-image: url("/img/style6/routes.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}
.important-info__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  color: var(--postal-red);
}
.important-info__heading {
  font-family: var(--font-display);
}

/* ─── Legacy portal-demo card (kept for markdown pages) ─────── */
.portal-demo {
  background: var(--color-surface-card);
  border: 2px solid var(--color-text-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-print), var(--shadow-raised);
  overflow: hidden;
  font-size: 0.875rem;
  max-width: 380px;
  margin-left: auto;
}
.portal-demo__header {
  padding: 0.75rem 1rem;
  border-bottom: 1.5px solid var(--color-text-strong);
  background: var(--color-surface-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.portal-demo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--postal-red);
  flex-shrink: 0;
}
.portal-demo__title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-strong);
}
.portal-demo__files {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}
.portal-demo__file {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
}
.portal-demo__file-name {
  flex: 1;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-demo__file-dl {
  color: var(--color-evergreen-deep);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.portal-demo__messages {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}
.portal-demo__bubble {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  border-radius: 0.75rem;
  max-width: 85%;
}
.portal-demo__bubble--in {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border-subtle);
  border-bottom-left-radius: 0.25rem;
  color: var(--color-text-primary);
  align-self: flex-start;
}
.portal-demo__bubble--out {
  background: var(--color-action-primary);
  color: #fffdf6;
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
  margin-left: auto;
}
.portal-demo__footer {
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-demo__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* ─── Page-load moment: hero stamps itself in ───────────────── */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes stamp-thunk {
  0% {
    opacity: 0;
    transform: rotate(6deg) scale(1.7);
  }
  70% {
    opacity: 1;
    transform: rotate(6deg) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: rotate(6deg) scale(1);
  }
}
.hero__text > * {
  animation: hero-rise 0.5s ease-out backwards;
}
.hero__text > *:nth-child(2) { animation-delay: 0.06s; }
.hero__text > *:nth-child(3) { animation-delay: 0.12s; }
.hero__text > *:nth-child(4) { animation-delay: 0.18s; }
.hero__text > *:nth-child(5) { animation-delay: 0.24s; }
.hero__visual {
  animation: hero-rise 0.6s ease-out 0.15s backwards;
}
.stamp--hero {
  animation: stamp-thunk 0.45s ease-out 0.75s backwards;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .showcase,
  .showcase--flip {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .showcase--flip .showcase__media {
    order: 0;
  }
}
@media (max-width: 760px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
  .hero::before {
    width: 280px;
    height: 280px;
    right: -6rem;
    opacity: 0.7;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .hero__text {
    text-align: center;
  }
  .hero__eyebrow {
    transform: rotate(0deg);
  }
  .hero__sub {
    margin: 0 auto 2rem;
  }
  .hero__actions {
    justify-content: center;
  }
  .stamp--hero {
    top: -1.9rem;
    right: 0.25rem;
    transform: rotate(6deg) scale(0.82);
    transform-origin: top right;
  }
  .tracking__list {
    grid-template-columns: 1fr;
  }
  .tracking__item::before {
    display: none;
  }
}

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .shot-frame,
  .feature-grid__item,
  .blog-card,
  .btn {
    transition: none;
  }
  .hero__text > *,
  .hero__visual,
  .stamp--hero {
    animation: none;
  }
  .btn--default:hover,
  .btn--outline:hover,
  .feature-grid__item:hover,
  .blog-card:hover {
    transform: none;
  }
}
