/* Product demos for the feature pages (gratis-factuur-app, bonnen-scannen,
   btw-aangifte-software, bankkoppeling). One rule: the visitor sees the app
   doing the thing the page is about, in the first or second screen, large
   enough to read. Every mock below is an HTML copy of a real screen in
   apps/web (labels taken from apps/web/locales/nl.json), filled with example
   data. The still state is complete and readable; js/product-demo.js only
   adds highlights on top, and does nothing under prefers-reduced-motion.

   Built from the landing tokens so light and dark both follow. The app
   surfaces get two local tokens of their own (--pd-canvas, --pd-surface),
   redefined for dark below. */

:root {
  --pd-canvas: #f6f7f9;
  --pd-surface: #ffffff;
  --pd-line: rgba(15, 23, 42, 0.09);
  --pd-soft: #eef2f7;
  --pd-ok: #2e7d32;
  --pd-ok-soft: rgba(46, 125, 50, 0.1);
  --pd-warn: #b45309;
  --pd-warn-soft: rgba(245, 158, 11, 0.14);
  --pd-late: #c62828;
  --pd-blue-soft: rgba(21, 101, 192, 0.09);
  --pd-paper: #fffdf8;
  --pd-paper-ink: #1f2937;
}

[data-theme="dark"] {
  --pd-canvas: #0b1222;
  --pd-surface: #121b30;
  --pd-line: rgba(255, 255, 255, 0.08);
  --pd-soft: #1a2540;
  --pd-ok: #81c784;
  --pd-ok-soft: rgba(129, 199, 132, 0.14);
  --pd-warn: #fbbf24;
  --pd-warn-soft: rgba(251, 191, 36, 0.14);
  --pd-late: #ef9a9a;
  --pd-blue-soft: rgba(100, 181, 246, 0.12);
  /* Paper stays paper: a receipt is light in a dark room too, just dimmer. */
  --pd-paper: #e9e5dc;
  --pd-paper-ink: #1f2937;
}

/* ---------- Hero: text left, product right ---------- */

.pd-hero .landing-hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  max-width: 1200px;
  text-align: left;
}

.pd-hero .landing-hero-content {
  text-align: left;
}

.pd-hero .landing-hero-title {
  font-size: clamp(34px, 4.2vw, 54px);
}

.pd-hero .landing-hero-subtitle {
  margin-left: 0;
  margin-right: 0;
  max-width: 34em;
}

.pd-hero .landing-hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.pd-hero-note {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--landing-text-muted);
  max-width: 34em;
}

.pd-hero-note strong {
  color: var(--landing-text-secondary);
  font-weight: 600;
}

.pd-hero-visual {
  /* After the copy on a phone too: landing-modern gives the content column
     order 1 below 1024px, so the visual needs an explicit later slot. */
  order: 2;
  display: flex;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 1024px) {
  .pd-hero .landing-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .pd-hero .landing-hero-actions .landing-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Store badges ---------- */

.pd-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pd-stores a {
  display: inline-flex;
  border-radius: 10px;
}

.pd-stores img {
  height: 52px;
  width: auto;
  display: block;
}

.pd-or {
  margin: 16px 0 10px;
  font-size: 15px;
  color: var(--landing-text-muted);
}

.pd-or a {
  color: var(--landing-accent);
  font-weight: 600;
}

/* ---------- Phone frame ---------- */

.pd-phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  border-radius: 44px;
  padding: 10px;
  background: #0f172a;
  box-shadow: var(--landing-shadow-hero-img);
  flex: none;
}

[data-theme="dark"] .pd-phone {
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.5);
}

.pd-phone-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: var(--pd-canvas);
  aspect-ratio: 1082 / 2202;
}

.pd-phone-screen > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.pd-phone--sm {
  width: 220px;
  border-radius: 34px;
  padding: 8px;
}

.pd-phone--sm .pd-phone-screen {
  border-radius: 27px;
  aspect-ratio: 9 / 17.5;
}

/* Push notification laid over the hero phone */
.pd-push {
  position: absolute;
  left: -28px;
  right: 28px;
  top: 58%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--pd-surface);
  color: var(--landing-text);
  border: 1px solid var(--pd-line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  font-size: 13px;
  line-height: 1.35;
}

.pd-push img {
  width: 30px;
  height: auto;
  flex: none;
  margin-top: 2px;
}

.pd-push b {
  display: block;
  font-size: 13px;
}

.pd-push small {
  display: block;
  color: var(--landing-text-muted);
  font-size: 12px;
}

@media (max-width: 420px) {
  .pd-push {
    left: 8px;
    right: 8px;
  }
}

/* ---------- HTML app screens (inside a phone) ---------- */

.pd-app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--pd-canvas);
  color: var(--landing-text);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.pd-app p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.pd-app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px 9px;
  background: var(--pd-surface);
  border-bottom: 1px solid var(--pd-line);
  font-size: 11.5px;
}

.pd-app-top b {
  font-size: 12.5px;
  color: var(--landing-text);
}

.pd-app-top span {
  color: var(--landing-accent);
}

.pd-app-top i {
  width: 18px;
}

.pd-app-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
}

.pd-stepbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  font-size: 9px;
  white-space: nowrap;
  color: var(--landing-text-muted);
}

.pd-stepbar span {
  border-top: 3px solid var(--pd-line);
  padding-top: 4px;
}

.pd-stepbar span.is-done,
.pd-stepbar span.is-on {
  border-color: var(--landing-accent);
}

.pd-stepbar span.is-on {
  color: var(--landing-accent);
  font-weight: 600;
}

.pd-app .pd-app-h {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--landing-text);
}

.pd-app .pd-app-sub {
  margin: -4px 0 0;
  color: var(--landing-text-muted);
  font-size: 11px;
}

.pd-card {
  background: var(--pd-surface);
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  overflow: hidden;
}

.pd-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--pd-line);
}

.pd-row:first-child {
  border-top: 0;
}

.pd-row small {
  display: block;
  color: var(--landing-text-muted);
  font-size: 10.5px;
}

.pd-row .pd-amt {
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pd-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--pd-soft);
  color: var(--landing-text-secondary);
  font-size: 10px;
  font-weight: 500;
}

.pd-total {
  padding: 10px;
}

.pd-total strong {
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.pd-total small {
  display: block;
  color: var(--landing-text-muted);
  font-size: 10.5px;
}

.pd-app .pd-note {
  margin: 0;
  font-size: 10.5px;
  color: var(--landing-text-muted);
}

.pd-app-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 9px 12px 12px;
  background: var(--pd-surface);
  border-top: 1px solid var(--pd-line);
}

.pd-app-foot span {
  text-align: center;
  padding: 7px 4px;
  border-radius: 9px;
  background: var(--pd-soft);
  font-size: 11px;
  font-weight: 600;
}

.pd-app-foot span.is-primary {
  background: #1565c0;
  color: #fff;
}

.pd-app-foot--one {
  grid-template-columns: 1fr;
}

.pd-sent {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  gap: 10px;
}

.pd-sent-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pd-ok-soft);
  color: var(--pd-ok);
}

.pd-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 11px;
}

.pd-switch em {
  font-style: normal;
  color: var(--pd-ok);
  font-weight: 600;
}

/* ---------- Steps as small phones ---------- */

.pd-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.pd-steps > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.pd-steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--landing-text);
}

.pd-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--landing-text-muted);
}

.pd-steps .pd-step-text {
  max-width: 260px;
}

@media (max-width: 1100px) {
  .pd-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

@media (max-width: 560px) {
  /* On a phone the four phones become a swipe row: one step per screen
     width, the next one peeking in so it is clear there is more. */
  .pd-steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin: 0 -16px;
    padding: 4px 16px 12px;
  }

  .pd-steps > li {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
}

/* ---------- Plain list instead of a card wall ---------- */

.pd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  max-width: 980px;
  margin: 0 auto;
}

.pd-list > div {
  padding: 18px 0;
  border-top: 1px solid var(--landing-border-hover);
}

.pd-list h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--landing-text);
}

.pd-list p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--landing-text-muted);
}

.pd-list a {
  color: var(--landing-accent);
}

@media (max-width: 760px) {
  .pd-list {
    grid-template-columns: 1fr;
  }
}

/* Short prose block (price, honest notes) */
.pd-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.65;
  color: var(--landing-text-secondary);
}

.pd-prose p {
  margin: 0 0 14px;
}

.pd-prose a {
  color: var(--landing-accent);
}

/* ---------- FAQ as one column of open/close questions ---------- */

.pd-faq {
  max-width: 820px;
  margin: 0 auto;
}

.pd-faq details {
  border-top: 1px solid var(--landing-border-hover);
}

.pd-faq details:last-child {
  border-bottom: 1px solid var(--landing-border-hover);
}

.pd-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  min-height: 44px;
}

.pd-faq summary::-webkit-details-marker {
  display: none;
}

.pd-faq summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--landing-accent);
  flex: none;
}

.pd-faq details[open] summary::after {
  content: "\2212";
}

.pd-faq summary .landing-feature-title {
  margin: 0;
  font-size: 18px;
}

.pd-faq details > p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--landing-text-muted);
}

.pd-faq details > p a {
  color: var(--landing-accent);
}

/* ---------- Receipt demo (bonnen-scannen) ---------- */

.pd-scan {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  width: 100%;
  max-width: 640px;
}

.pd-receipt {
  position: relative;
  width: 214px;
  padding: 18px 16px 22px;
  background: var(--pd-paper);
  color: var(--pd-paper-ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 36px rgba(15, 23, 42, 0.16);
  transform: rotate(-2deg);
  border-radius: 3px;
  overflow: hidden;
}

.pd-receipt::after {
  /* torn bottom edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 8px;
  background: radial-gradient(circle at 5px 8px, var(--landing-bg-section) 4px, transparent 4.5px) 0 0 / 10px 8px repeat-x;
}

.pd-r-head {
  text-align: center;
  margin-bottom: 8px;
}

.pd-r-head b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.pd-r-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.pd-r-sep {
  border-top: 1px dashed rgba(31, 41, 55, 0.45);
  margin: 6px 0;
}

.pd-r-total {
  font-weight: 700;
  font-size: 12.5px;
}

.pd-r-mark {
  border-radius: 3px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.pd-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
  opacity: 0;
}

.pd-extract {
  width: 100%;
}

.pd-extract-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--landing-text);
  border-bottom: 1px solid var(--pd-line);
}

.pd-extract-status small {
  white-space: nowrap;
  font-weight: 500;
  color: var(--landing-text-muted);
  font-size: 12px;
}

.pd-progress {
  height: 4px;
  background: var(--pd-soft);
}

.pd-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--pd-ok);
  transition: width 0.4s linear;
}

.pd-fields {
  margin: 0;
  padding: 4px 12px 8px;
}

.pd-field {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 6px;
  margin: 0 -6px;
  border-radius: 8px;
  border-top: 1px solid var(--pd-line);
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.pd-field:first-child {
  border-top: 0;
}

.pd-field dt {
  color: var(--landing-text-muted);
  font-size: 13px;
}

.pd-field dd {
  margin: 0;
  font-weight: 600;
  color: var(--landing-text);
  font-variant-numeric: tabular-nums;
}

.pd-field dd small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--pd-warn);
}

.pd-extract-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--pd-line);
  font-size: 12.5px;
  color: var(--landing-text-muted);
}

.pd-btn {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 9px;
  background: #1565c0;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.pd-btn--ghost {
  background: var(--pd-soft);
  color: var(--landing-text-secondary);
}

/* Highlight states, driven by js/product-demo.js */
.pd-hl {
  background: var(--pd-blue-soft);
}

.pd-r-mark.pd-hl {
  background: rgba(21, 101, 192, 0.16);
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.35);
}

@media (max-width: 640px) {
  .pd-scan {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
  }

  .pd-receipt {
    transform: none;
    width: 200px;
    font-size: 10.5px;
  }
}

/* ---------- Btw-aangifte sheet (btw-aangifte-software) ---------- */

.pd-vat {
  width: 100%;
  max-width: 620px;
  background: var(--pd-surface);
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  box-shadow: var(--landing-shadow-hero-img);
  color: var(--landing-text);
  text-align: left;
  overflow: hidden;
}

.pd-vat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 10px;
}

.pd-vat-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--landing-text-muted);
}

.pd-vat-title {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.pd-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--pd-blue-soft);
  color: var(--landing-accent);
  white-space: nowrap;
}

.pd-badge--ok {
  background: var(--pd-ok-soft);
  color: var(--pd-ok);
}

.pd-vat-table {
  margin: 0 16px;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}

.pd-vat-group {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 6.2rem 5.6rem;
  gap: 8px;
  padding: 6px 10px;
  background: var(--pd-soft);
  color: var(--landing-text-muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pd-vat-group span:first-child {
  grid-column: 1 / 3;
}

.pd-vat-group span:not(:first-child) {
  text-align: right;
}

.pd-vat-row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 6.2rem 5.6rem;
  gap: 8px;
  padding: 7px 10px;
  border-top: 1px solid var(--pd-line);
  align-items: baseline;
  transition: background-color 0.3s ease;
}

.pd-vat-row b {
  color: var(--landing-accent);
  font-variant-numeric: tabular-nums;
}

.pd-vat-row span {
  min-width: 0;
}

.pd-vat-row em {
  font-style: normal;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pd-vat-row em.is-empty {
  color: var(--landing-text-faint);
}

.pd-vat-row--sum {
  background: var(--pd-blue-soft);
  font-weight: 600;
}

.pd-vat-fold {
  padding: 7px 10px;
  border-top: 1px solid var(--pd-line);
  color: var(--landing-text-muted);
  font-size: 12px;
}

.pd-vat-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 16px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #1565c0;
  color: #fff;
}

.pd-vat-total small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
}

.pd-vat-total strong {
  white-space: nowrap;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.pd-vat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 16px 14px;
  font-size: 12.5px;
  color: var(--landing-text-muted);
}

.pd-vat-actions .pd-lock {
  margin-left: auto;
}

@media (max-width: 560px) {
  .pd-vat-head,
  .pd-vat-actions {
    padding-left: 12px;
    padding-right: 12px;
  }

  .pd-vat-table,
  .pd-vat-total {
    margin-left: 10px;
    margin-right: 10px;
  }

  .pd-vat-table {
    font-size: 12px;
  }

  .pd-vat-group,
  .pd-vat-row {
    grid-template-columns: 2rem minmax(0, 1fr) 4.6rem 4.2rem;
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ---------- Bank review list (bankkoppeling) ---------- */

.pd-bank {
  width: 100%;
  max-width: 600px;
  background: var(--pd-surface);
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  box-shadow: var(--landing-shadow-hero-img);
  color: var(--landing-text);
  text-align: left;
  overflow: hidden;
}

.pd-bank-head {
  padding: 14px 16px 0;
}

.pd-bank-head h3 {
  margin: 0;
  font-size: 17px;
  color: var(--landing-text);
}

.pd-bank-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--landing-text-muted);
}

.pd-bank-bulk {
  padding: 10px 16px;
  border-bottom: 1px solid var(--pd-line);
}

.pd-bank-bulk .pd-btn {
  display: block;
  text-align: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.pd-bank-bulk .pd-btn.pd-hl {
  box-shadow: 0 0 0 2px #1565c0;
}

.pd-tabs {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  border-bottom: 1px solid var(--pd-line);
  font-size: 13px;
  color: var(--landing-text-muted);
}

.pd-tabs span {
  padding: 6px 0 8px;
}

.pd-tabs span.is-on {
  color: var(--landing-text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #1565c0;
}

.pd-tabs i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.pd-bank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-tx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--pd-line);
  transition: background-color 0.3s ease, opacity 0.4s ease;
}

.pd-tx:first-child {
  border-top: 0;
}

.pd-tx-name {
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
}

.pd-tx-name small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--landing-text-muted);
}

.pd-tx-amt {
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pd-tx-amt.is-in {
  color: var(--pd-ok);
}

.pd-tx-sugg {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--landing-text-secondary);
}

.pd-tx-sugg > span:first-child {
  min-width: 0;
}

.pd-tx-sugg small {
  display: block;
  color: var(--landing-text-muted);
  font-size: 11.5px;
}

.pd-tx-btns {
  display: flex;
  gap: 6px;
}

.pd-tx-btns .pd-btn {
  padding: 5px 10px;
  font-size: 12px;
}

.pd-flag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--pd-warn-soft);
  color: var(--pd-warn);
}

.pd-tx.is-done {
  background: var(--pd-ok-soft);
}

.pd-tx.is-done .pd-tx-btns {
  visibility: hidden;
}

.pd-bank-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--pd-line);
  font-size: 12.5px;
  color: var(--landing-text-muted);
}

.pd-bank-foot b {
  color: var(--landing-text);
  font-variant-numeric: tabular-nums;
}

/* Caption under a demo */
.pd-caption {
  margin: 14px auto 0;
  max-width: 600px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--landing-text-muted);
  text-align: center;
}

.pd-visual-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pd-field,
  .pd-vat-row,
  .pd-tx,
  .pd-r-mark,
  .pd-progress i {
    transition: none;
  }
}

/* Step 1 of the invoice flow drawn in HTML (gratis-factuur-app): the
   client picker, with avatar initials and a radio like the app. */
.pd-search {
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--pd-soft);
  color: var(--landing-text-muted);
  font-size: 10.5px;
}

.pd-pick .pd-row {
  align-items: center;
  justify-content: flex-start;
  padding: 6px 8px;
}

.pd-pick-name {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.pd-pick-name small {
  font-weight: 400;
}

.pd-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}

.pd-av--blue {
  background: #1565c0;
}

.pd-av--green {
  background: #2e7d32;
}

.pd-av--grey {
  background: #64748b;
}

.pd-radio {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--landing-text-muted);
}

.pd-pick .is-picked {
  background: var(--pd-blue-soft);
}

.pd-pick .is-picked .pd-radio {
  border: 4px solid var(--landing-accent);
}

.pd-app .pd-plus {
  color: var(--landing-accent);
  font-weight: 600;
  font-size: 11px;
}

/* Receipt demo: the green bar only shows while the bon is being read
   (product-demo.js sets .pd-busy). At rest the card is finished. */
.pd-scan:not(.pd-busy) .pd-progress i {
  opacity: 0;
}

/* Left-aligned section heading on the feature pages, lined up with the
   content column under it instead of a centred heading over a grid.
   Same 980 column as .pd-list. */
.landing-section-header.pd-head-left {
  text-align: left;
  max-width: 980px;
  margin: 0 auto 28px;
}

/* Content under a left heading starts on the same edge (980 wide); prose
   keeps a readable line length inside that column. */
.pd-head-left + .pd-prose,
.pd-head-left + .pd-faq {
  max-width: 980px;
}

.pd-head-left + .pd-prose p {
  max-width: 720px;
}

.pd-head-left .landing-section-title {
  font-size: clamp(28px, 3.4vw, 40px);
}

.pd-head-left .landing-section-subtitle {
  margin: 0;
}

/* One column of rows, label left and text right, instead of a 2x2 grid
   of equal text blocks. */
.pd-list.pd-list--rows {
  grid-template-columns: 1fr;
}

.pd-list--rows > div {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 8px 32px;
  align-items: baseline;
}

.pd-list--rows h3 {
  margin: 0;
}

@media (max-width: 760px) {
  .pd-list--rows > div {
    grid-template-columns: 1fr;
  }
}

/* Numbered steps that read as a sequence: number in a circle on the left. */
.pd-seq {
  list-style: none;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  counter-reset: pdseq;
}

.pd-seq > li {
  counter-increment: pdseq;
  position: relative;
  padding: 0 0 22px 52px;
}

.pd-seq > li::before {
  content: counter(pdseq);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pd-blue-soft);
  color: var(--landing-accent);
  font-weight: 700;
}

.pd-seq > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background: var(--landing-border-hover);
}

.pd-seq h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--landing-text);
}

.pd-seq p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--landing-text-muted);
}

.pd-seq-note {
  max-width: 980px;
  margin: 8px auto 0;
  padding-left: 52px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--landing-text-muted);
}
