/* ==========================================================================================================
   Design v2 cards (stage 2 onwards): the card (spec §5.4), feature-area link cards (full and compact), design cards,
   quote cards (§5.7, P1), the toolbox grid (§6.3 #8; used from stage 3). Kit source: design/redesign/kit/css/
   gp-cards.css -> static/css/gp-cards.css, loaded by pages/_marketing_base.html after gp-sections.css. Scoped to
   body.gp-v2; v1 properties of the kept classes (components.css, marketing.css) are reset where v2 differs.
   White, radius 24, 2 px line, no shadow, no lift.
   ========================================================================================================== */
.gp-v2 .card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; overflow: visible;
  padding: var(--gp-card-pad); background: var(--card); border: var(--gp-border); border-radius: var(--gp-radius-card);
  box-shadow: none;
}
.gp-v2 .card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 20px;
  border-radius: var(--gp-radius-button); background: var(--gp-accent-tint); --icon-surface: var(--gp-accent-tint);
}
.gp-v2 .card__icon .icon { width: 32px; height: 32px; }
.gp-v2 .card__title { margin: 0; font-size: var(--gp-fs-card-h3); line-height: var(--gp-lh-card-h3); letter-spacing: var(--gp-ls-card-h3); }
.gp-v2 .card__text { margin: 8px 0 0; flex: 0 1 auto; font-size: var(--gp-fs-small); line-height: var(--gp-lh-small); color: var(--text); }
.gp-v2 .card--link { transition: border-color var(--gp-dur-colour) var(--gp-ease); }
.gp-v2 .card--link:hover { transform: none; box-shadow: none; border-color: var(--gp-action); }
.gp-v2 .card--link:focus-within { outline: none; }
.gp-v2 .area-card__link { color: inherit; text-decoration: none; }
.gp-v2 .area-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--gp-radius-card); }
.gp-v2 .area-card__link:focus-visible { outline: none; }
.gp-v2 .area-card__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; } /* the ring follows the card radius (A-3) */
.gp-v2 .area-card__more { margin-top: auto; padding-top: 20px; font-size: 15px; }
.gp-v2 .card--link:hover .area-card__more::after { margin-left: var(--gp-arrow-shift); }

/* feature areas: full grid (funktioner) and the compact row (feature pages) */
.gp-v2 .area-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .gp-v2 .area-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 992px) { .gp-v2 .area-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the full grid wraps as a centred flex row, so a short last row is centred (funktioner: 3 + 2, QA P3-4, spec §6.2) */
@media (min-width: 768px) {
  .gp-v2 .gp-areas:not(.gp-areas--compact) .area-cards { display: flex; flex-wrap: wrap; justify-content: center; }
  .gp-v2 .gp-areas:not(.gp-areas--compact) .area-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (min-width: 992px) { .gp-v2 .gp-areas:not(.gp-areas--compact) .area-card { flex-basis: calc((100% - 48px) / 3); } }
.gp-v2 .gp-areas--compact .area-cards { display: flex; gap: 12px; }
.gp-v2 .gp-areas--compact .area-card > * { flex: none; }
.gp-v2 .gp-areas--compact .area-card { flex: 0 0 72%; padding: 24px; }
.gp-v2 .gp-areas--compact .card__icon { margin-bottom: 16px; }
.gp-v2 .gp-areas--compact .card__title { font-size: 18px; line-height: 24px; }
@media (min-width: 768px) {
  .gp-v2 .gp-areas--compact .area-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
    overflow: visible; margin: 0; padding: 0; }
  .gp-v2 .gp-areas--compact .area-card { flex: auto; }
}
@media (min-width: 768px) and (max-width: 1099px) { .gp-v2 .gp-areas--compact .area-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- design cards: stone well with the 350 × 400 thumbnail; a swipe row on phones ---- */
.gp-v2 .design-cards.gp-swipe { display: flex; gap: 12px; }
.gp-v2 .design-card { display: flex; flex-direction: column; padding: 10px 10px 20px; background: var(--card);
  border: var(--gp-border); border-radius: var(--gp-radius-card); }
.gp-v2 .design-card > * { flex: none; }
.gp-v2 .gp-swipe > .design-card { flex-basis: 72%; }
.gp-v2 .design-card__media { display: block; overflow: hidden; aspect-ratio: 350 / 360; border-radius: 16px; background: var(--well);
  box-shadow: none; transform: none; }
.gp-v2 .design-card__media:hover { transform: none; box-shadow: none; }
.gp-v2 .design-card__img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 0;
  transition: transform 400ms var(--gp-ease); }
.gp-v2 .design-card:hover .design-card__img { transform: scale(1.03); }
.gp-v2 .design-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 18px 10px 0; flex: 1; }
.gp-v2 .design-card__name { margin: 0; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.gp-v2 .design-card__text { margin-top: 4px; font-size: var(--gp-fs-small); line-height: var(--gp-lh-small); color: var(--muted); }
.gp-v2 .design-card__price { margin-top: 6px; }
.gp-v2 .design-card__demo { margin-top: auto; padding-top: 14px; font-size: 15px; }
.gp-v2 .gp-designs .btn-row { margin-top: var(--gp-intro-gap); }
@media (min-width: 768px) {
  .gp-v2 .design-cards.gp-swipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible;
    margin: 0; padding: 0; }
}
@media (min-width: 1100px) { .gp-v2 .design-cards.gp-swipe { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .gp-v2 .design-card__img { transition: none; }
  .gp-v2 .design-card:hover .design-card__img { transform: none; }
}

/* ---- quote cards (P1): white card, the gold quote mark, the full quote, a 56 px round photo ---- */
.gp-v2 .quote-grid.gp-swipe { display: flex; gap: 12px; }
.gp-v2 .gp-quote {
  display: flex; flex-direction: column; gap: 0; height: auto; margin: 0; padding: var(--gp-card-pad);
  background: var(--gp-page); border: var(--gp-border); border-radius: var(--gp-radius-card);
}
.gp-v2 .gp-quote::before {
  content: "\201C"; display: block; width: auto; height: 30px; margin-bottom: 12px;
  background: none; -webkit-mask: none; mask: none;
  color: var(--gp-dot); font-size: 64px; line-height: 64px; font-weight: 600;
}
.gp-v2 .gp-quote .testimonial__quote { flex: 1; margin: 0; font-size: var(--gp-fs-quote); line-height: var(--gp-lh-quote);
  font-weight: var(--gp-fw-quote); color: var(--gp-ink); }
.gp-v2 .gp-quote .testimonial__quote p { margin: 0; }
.gp-v2 .gp-quote .testimonial__quote p + p { margin-top: 1em; }
.gp-v2 .gp-quote .testimonial__author { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 20px;
  border-top: var(--gp-border); }
.gp-v2 .gp-quote .testimonial__avatar { width: 56px; height: 56px; flex: none; border-radius: var(--gp-radius-avatar); object-fit: cover; }
.gp-v2 .gp-quote .testimonial__name { display: block; font-style: normal; font-size: 15px; line-height: 20px; font-weight: 600;
  color: var(--gp-heading); }
.gp-v2 .gp-quote .testimonial__role { display: block; font-size: 14px; line-height: 20px; color: var(--gp-muted); }
.gp-v2 .gp-quote a.testimonial__role { display: inline-block; color: var(--gp-link); text-decoration: underline;
  text-underline-offset: 3px; }
.gp-v2 .gp-quote a.testimonial__role:hover { color: var(--gp-link-hover); }
@media (min-width: 768px) {
  .gp-v2 .quote-grid.gp-swipe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; overflow: visible;
    margin: 0; padding: 0; }
}

/* ---- toolbox (feature pages, stage 3): white compact cards in a stone tray; phones: a list with lines ---- */
.gp-v2 .gp-toolbox { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.gp-v2 .gp-toolbox__item { margin: 0; padding: 20px 0; border: 0; border-top: var(--gp-border); border-radius: 0; background: none; }
.gp-v2 .gp-toolbox__item:last-child { border-bottom: var(--gp-border); }
.gp-v2 .gp-toolbox .feature__head { display: flex; align-items: center; gap: 16px; margin: 0; }
.gp-v2 .gp-toolbox__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: var(--gp-radius-button); background: var(--gp-page); --icon-surface: var(--gp-page); }
.gp-v2 .gp-toolbox .feature__icon { width: 32px; height: 32px; }
.gp-v2 .gp-toolbox .feature__title { margin: 0; font-size: 18px; line-height: 24px; letter-spacing: -0.01em; }
.gp-v2 .gp-toolbox .feature__text { margin: 10px 0 0; padding-left: 64px; font-size: var(--gp-fs-small); line-height: var(--gp-lh-small);
  color: var(--text); }
@media (min-width: 768px) {
  .gp-v2 .gp-toolbox { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .gp-v2 .gp-toolbox__item, .gp-v2 .gp-toolbox__item:last-child { padding: 28px; border: var(--gp-border);
    border-radius: var(--gp-radius-card); background: var(--gp-page); }
  .gp-v2 .gp-toolbox .feature__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .gp-v2 .gp-toolbox__icon { background: var(--gp-accent-tint); --icon-surface: var(--gp-accent-tint); }
  .gp-v2 .gp-toolbox .feature__title { font-size: 20px; line-height: 26px; }
  .gp-v2 .gp-toolbox .feature__text { padding-left: 0; }
}
@media (min-width: 992px) { .gp-v2 .gp-toolbox { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
