/* ============================================================
   BERLIN COMPONENTS — global scope
   Promoted from home-abs.css per Brief #1 (2026-05-06).
   These classes are now available to all surfaces, not only
   body.home-abs. Subsequent Berlin migrations (blog, forms,
   pricing, etc.) reuse these definitions directly.
   ============================================================ */

:root {
  --pk-abs-black: #202A37;
  --pk-abs-text: #202A37;
  --pk-abs-text-soft: #525252;
  --pk-abs-text-faint: #737373;
  --pk-abs-white: #FFFFFF;
  --pk-abs-surface: #FFFFFF;
  --pk-abs-surface-alt: #F5F5F5;
  --pk-abs-surface-warm: #FAFAF8;
  --pk-abs-border: #E5E5E5;
  --pk-abs-border-strong: #D4D4D4;
  --pk-abs-green: #17A24C;
  --pk-abs-green-bright: #17A24C;
  --pk-abs-green-hover: #2A6C4C;
  --pk-abs-green-light: #D6F0DC;
  --pk-abs-green-lighter: #EAF7EE;
  --pk-abs-red: #D83351;
  --pk-abs-red-soft: #F8DCE2;
  --pk-abs-yellow: #E89030;
  --pk-abs-warning-soft: #FBE4CE;

  --pk-abs-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pk-abs-container: 1280px;
  --pk-abs-r-sm: 8px;
  --pk-abs-r: 12px;
  --pk-abs-r-lg: 20px;
  --pk-abs-r-xl: 28px;
  --pk-abs-hero-qr-size: 72px;
  --pk-abs-final-qr-size: 88px;

  /* Page entry — header → first content. Matches home-abs .hero top padding. */
  --pk-page-gutter-x: 32px;
  --pk-page-entry-y: 56px;

  /* Homepage non-ATF section h2 — one ramp (matches problem / clutter section). */
  --pk-abs-section-h2: clamp(40px, 5.2vw, 60px);
  /* In-article / utility-page section headings (cornerstone, mailer singles). */
  --pk-abs-article-h2: clamp(26px, 3.2vw, 32px);
}

.eyebrow {
  font-family: var(--pk-abs-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1;
  color: var(--pk-abs-green-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow.on-light { color: var(--pk-abs-green);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: -0.01em;
  white-space: nowrap;
  height: 52px;
}

.btn-primary { background: var(--pk-abs-green-bright); color: var(--pk-abs-white); border-color: var(--pk-abs-green-bright);
}

.btn-primary:hover { background: var(--pk-abs-green-hover); border-color: var(--pk-abs-green-hover); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(23, 162, 76, 0.28);
}

.btn-large { padding: 18px 36px; font-size: 17px; height: 58px;
}

/* FAQ */

.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--pk-abs-border);
}

.faq-item {
  border-bottom: 1px solid var(--pk-abs-border);
  transition: background 0.18s;
}

.faq-item:hover { background: var(--pk-abs-surface-warm);
}

.faq-summary {
  padding: 28px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker { display: none;
}

.faq-summary h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  flex: 1;
  margin: 0;
  color: var(--pk-abs-text);
}

.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--pk-abs-border);
  display: grid; place-items: center;
  transition: all 0.22s ease;
}

.faq-icon svg { width: 14px; height: 14px; stroke: var(--pk-abs-text); stroke-width: 2.4; fill: none; transition: transform 0.22s ease;
}

.faq-item[open] .faq-icon { background: var(--pk-abs-green-bright); border-color: var(--pk-abs-green-bright);
}

.faq-item[open] .faq-icon svg { stroke: var(--pk-abs-white); transform: rotate(45deg);
}

.faq-answer {
  padding: 0 8px 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pk-abs-text-soft);
  font-weight: 500;
  max-width: 720px;
}

.faq-answer p + p { margin-top: 14px;
}

.faq-answer a { color: var(--pk-abs-green); font-weight: 600;
}

.faq-answer a:hover { text-decoration: underline;
}

/* Rich text inside ACF answers: main.css `*` resets font-style/weight; global ABS h* rules
   would scale editor headings like hero titles. Scope sane prose here until a shared .prose block exists. */
.faq-answer em,
.faq-answer i {
  font-style: italic;
}

.faq-answer strong,
.faq-answer b {
  font-weight: 700;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0.75em 0;
  padding-left: 1.35em;
  list-style-position: outside;
}

.faq-answer ul {
  list-style-type: disc;
}

.faq-answer ol {
  list-style-type: decimal;
}

.faq-answer li {
  margin: 0.35em 0;
}

.faq-answer li > ul,
.faq-answer li > ol {
  margin-top: 0.35em;
  margin-bottom: 0.35em;
}

.faq-answer h1,
.faq-answer h2,
.faq-answer h3,
.faq-answer h4,
.faq-answer h5,
.faq-answer h6 {
  font-family: var(--pk-abs-sans);
  color: var(--pk-abs-text);
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 1.15em 0 0.5em;
}

.faq-answer h1:first-child,
.faq-answer h2:first-child,
.faq-answer h3:first-child,
.faq-answer h4:first-child,
.faq-answer h5:first-child,
.faq-answer h6:first-child {
  margin-top: 0;
}

.faq-answer h1 { font-size: 1.35rem; font-weight: 700; }
.faq-answer h2 { font-size: 1.2rem; font-weight: 700; }
.faq-answer h3 { font-size: 1.05rem; font-weight: 700; }
.faq-answer h4 { font-size: 1rem; font-weight: 600; }
.faq-answer h5,
.faq-answer h6 { font-size: 0.95rem; font-weight: 600; }

/* PROSE — shared body copy for articles, mailer singles, ACF HTML blocks */

.pk-prose {
  font-family: var(--pk-abs-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--pk-abs-text);
  font-weight: 400;
}

.pk-prose h2 {
  font-size: var(--pk-abs-article-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--pk-abs-text);
}

.pk-prose h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 1.35em 0 0.5em;
  color: var(--pk-abs-text);
}

.pk-prose h4 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 1.15em 0 0.5em;
  color: var(--pk-abs-text);
}

.pk-prose p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 14px;
  color: var(--pk-abs-text-soft);
  font-weight: 400;
}

.pk-prose p:last-child {
  margin-bottom: 0;
}

.pk-prose p strong,
.pk-prose strong {
  color: var(--pk-abs-text);
  font-weight: 700;
}

/* Link color wins when bold is inside the anchor (DMAchoice / OptOutPrescreen). */
.pk-prose a strong {
  color: inherit;
  font-weight: 600;
}

.pk-prose a {
  color: var(--pk-abs-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(23, 162, 76, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s;
}

.pk-prose a:hover {
  text-decoration-color: var(--pk-abs-green);
}

.pk-prose ul,
.pk-prose ol {
  padding-left: 1.35em;
  margin: 0.75em 0 1.25em;
}

.pk-prose li {
  margin-bottom: 0.5em;
  font-size: 17px;
  line-height: 1.65;
  color: var(--pk-abs-text-soft);
}

/* COMPARISON TABLE — cornerstone + mailer DIY vs PK */

.pk-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
}

.pk-comparison-table thead {
  background: var(--pk-abs-surface-warm);
}

.pk-comparison-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pk-abs-text-faint);
  border-bottom: 2px solid var(--pk-abs-border-strong);
  vertical-align: bottom;
}

.pk-comparison-table thead th.pk-comparison-th--title {
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--pk-abs-text);
}

.pk-comparison-table td {
  padding: 16px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pk-abs-text);
  border-bottom: 1px solid var(--pk-abs-border);
  vertical-align: top;
  font-weight: 500;
}

.pk-comparison-table td *,
.pk-comparison-table th * {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.pk-comparison-table td p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: inherit;
}

.pk-comparison-table tbody tr:last-child td,
.pk-comparison-table tbody tr:last-child th[scope="row"] {
  border-bottom: none;
}

.pk-comparison-table tbody th[scope="row"] {
  text-align: left;
  padding: 16px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pk-abs-text-faint);
  background: var(--pk-abs-surface-warm);
  border-bottom: 1px solid var(--pk-abs-border);
  vertical-align: top;
}

.pk-comparison-table tbody tr.pk-row-highlight {
  background: var(--pk-abs-green-lighter);
}

.pk-comparison-table tbody tr.pk-row-highlight td {
  border-bottom-color: var(--pk-abs-green-light);
}

.pk-comparison-table tbody tr.pk-row-highlight td:first-child {
  border-left: 3px solid var(--pk-abs-green);
  padding-left: 9px;
}

.pk-comparison-table th.pk-col-highlight,
.pk-comparison-table td.pk-col-highlight {
  background: var(--pk-abs-green-lighter);
}

.pk-comparison-table thead th.pk-col-highlight {
  color: var(--pk-abs-green);
  border-bottom: 1px solid var(--pk-abs-green-light);
}

.pk-comparison-table small {
  display: block;
  font-size: 11px;
  color: var(--pk-abs-text-faint);
  margin-top: 4px;
  font-weight: 400;
}

/* FINAL CTA */

.final-cta {
  background: var(--pk-abs-black);
  color: var(--pk-abs-white);
  border-radius: var(--pk-abs-r-xl);
  position: relative;
  overflow: hidden;
  max-width: var(--pk-abs-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  min-height: 460px;
}

.final-cta-content { padding: 80px 64px; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center;
}

.final-cta .eyebrow { color: var(--pk-abs-green-bright); margin-bottom: 22px;
}

.final-cta h2,
body.home-abs .final-cta h2,
body.page-template-page-cornerstone .final-cta h2 { color: var(--pk-abs-white); font-size: var(--pk-abs-section-h2); margin-bottom: 22px; letter-spacing: -0.04em; line-height: 1.05;
}

.final-cta h2 .accent,
body.home-abs .final-cta h2 .accent,
body.page-template-page-cornerstone .final-cta h2 .accent { color: var(--pk-abs-green-bright);
}

.final-cta p { font-size: 19px; color: rgba(255,255,255,0.72); max-width: 480px; margin: 0 0 32px; font-weight: 500; line-height: 1.5;
}

.final-cta-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
}

.final-qr-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 12px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  transition: all 0.18s ease;
}

.final-qr-desktop:hover { border-color: var(--pk-abs-green-bright); background: rgba(23, 162, 76, 0.08);
}

.final-qr-desktop img {
  width: var(--pk-abs-final-qr-size); height: var(--pk-abs-final-qr-size);
  display: block;
  border-radius: 8px;
  background: var(--pk-abs-black);
  padding: 6px;
}

.final-qr-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.final-qr-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--pk-abs-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.final-qr-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  line-height: 1.2;
}

.final-badges-mobile { display: none; gap: 10px; flex-wrap: wrap; align-items: center;
}

.final-cta .reassure {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
}

.final-cta .reassure svg { width: 14px; height: 14px; stroke: var(--pk-abs-green-bright); stroke-width: 2.5; fill: none;
}

.final-cta-image {
  background-size: cover;
  background-position: center;
  background-color: #2C2C2C;
  position: relative;
}

.final-cta-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--pk-abs-black) 0%, transparent 30%);
}

@media (max-width: 1024px) {
  .final-cta { grid-template-columns: 1fr; min-height: auto;
  }
  .final-cta-image { height: 280px;
  }
  .final-cta-image::after { background: linear-gradient(0deg, var(--pk-abs-black) 0%, transparent 50%);
  }
}

@media (max-width: 720px) {
  .final-cta-content { padding: 56px 28px;
  }
  .faq-summary h3 { font-size: 17px;
  }
  .faq-summary { padding: 22px 4px;
  }
}

/* ---- Shared thin mobile sticky app bar (mailer singles + directory) ---- */
.pk-berlin-sticky-app {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid var(--pk-abs-border, #e5e7eb);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.pk-berlin-sticky-app__copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.pk-berlin-sticky-app__copy strong {
  display: block;
  font: 700 13px/1.25 var(--pk-abs-sans, Roboto, sans-serif);
  color: var(--pk-abs-text, #202a37);
  margin: 0 0 2px;
}

.pk-berlin-sticky-app__copy span {
  display: block;
  font: 400 11.5px/1.2 var(--pk-abs-sans, Roboto, sans-serif);
  color: var(--pk-abs-text-faint, #6b7280);
}

.pk-berlin-sticky-app__btn {
  flex-shrink: 0;
  margin-left: auto;
  font: 700 13px/1 var(--pk-abs-sans, Roboto, sans-serif);
  color: #fff;
  background: var(--pk-abs-green-bright, #17a24c);
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  box-shadow: 0 2px 8px rgba(23, 162, 76, 0.3);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.pk-berlin-sticky-app__btn:hover {
  background: var(--pk-abs-green-hover, #14924a);
  color: #fff;
}

@media (max-width: 1024px) {
  body.pk-mdir-hub .pk-berlin-sticky-app,
  body.pk-mdir-category .pk-berlin-sticky-app {
    display: flex;
  }

  body.pk-mdir-hub,
  body.pk-mdir-category {
    padding-bottom: 68px;
  }
}

@media (max-width: 860px) {
  body.pk-mailer-single .pk-berlin-sticky-app {
    display: flex;
  }

  body.pk-mailer-single {
    padding-bottom: 68px;
  }
}

/* ============================================================
   WC NOTICES / TOASTS — Berlin canon (sitewide)
   Beats WooCommerce plugin pink/blue and legacy main.css toasts.
   ============================================================ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
ul.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-message,
.woocommerce-NoticeGroup .woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-error,
.woocommerce-NoticeGroup-checkout .woocommerce-message,
.woocommerce-NoticeGroup-checkout .woocommerce-info,
.woocommerce-NoticeGroup-checkout .woocommerce-error,
.wc-block-components-notice-banner {
  border-radius: 10px !important;
  border: none !important;
  padding: 14px 18px !important;
  font-size: 15px !important;
  font-family: var(--pk-abs-sans, "Roboto", -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
  list-style: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after {
  display: none !important;
  content: none !important;
}

.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-NoticeGroup-checkout .woocommerce-message,
.wc-block-components-notice-banner.is-success {
  background: var(--pk-abs-green-lighter, #EAF7EE) !important;
  color: var(--pk-abs-green, #17A24C) !important;
}

.woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-NoticeGroup-checkout .woocommerce-info,
.wc-block-components-notice-banner.is-info {
  background: var(--pk-abs-surface-alt, #F5F5F5) !important;
  color: var(--pk-abs-text-soft, #525252) !important;
}

.woocommerce-error,
ul.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-NoticeGroup-checkout .woocommerce-error,
.wc-block-components-notice-banner.is-error {
  background: var(--pk-abs-red-soft, #F8DCE2) !important;
  color: var(--pk-abs-black, #202A37) !important;
}

.woocommerce-error li {
  list-style: none !important;
  color: #202A37 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.55 !important;
}

.woocommerce-message a,
.woocommerce-info a {
  color: var(--pk-abs-green, #17A24C) !important;
  font-weight: 600 !important;
}

.woocommerce-error a {
  color: var(--pk-abs-red, #D83351) !important;
  font-weight: 600 !important;
}
