/* ---------- PRODUCTS: /products cards, the standard product page, and the "Our products" row on /projects ---------- */

/* badges (type, pricing, status) */
.prd-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.prd-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--line-strong); color: var(--fg-dim);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.prd-badge.price { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }
.prd-badge.status { color: #17100a; background: var(--grad); border-color: transparent; }

/* icon (or first letter) */
.prd-icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover;
  background: var(--bg-elev-2); border: 1px solid var(--line);
}
.prd-icon-empty { display: grid; place-items: center; font: 600 22px "Jost", var(--sans); color: var(--accent-text); }

/* filter tabs */
.prd-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.prd-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--fg-dim);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.prd-tab:hover { color: var(--fg); border-color: var(--line-strong); }
.prd-tab span { opacity: .55; }
.prd-tab.on { color: #17100a; background: var(--grad); border-color: transparent; font-weight: 500; }

/* list cards */
.prd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 20px; }
.prd-card {
  display: flex; flex-direction: column; gap: 16px; padding: 24px;
  border: 1px solid var(--line); background: var(--bg-elev); border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.prd-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.prd-card.featured { border-color: var(--accent); }
.prd-head { display: flex; align-items: center; gap: 16px; }
.prd-name { font: 600 24px/1.15 "Jost", var(--sans); letter-spacing: -0.01em; color: var(--fg); }
.prd-name a:hover { color: var(--accent-text); }
.prd-ver { display: inline-block; margin-top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
.prd-tagline { color: var(--fg-dim); line-height: 1.6; flex: 1; }
.prd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prd-actions .btn { padding: 12px 16px; }
.prd-empty { color: var(--fg-dim); font-family: var(--mono); font-size: 13px; }

/* ---------- standard product page ---------- */
.prd-hero { display: flex; align-items: center; gap: 24px; margin-bottom: 8px; }
.prd-hero .prd-icon { width: 88px; height: 88px; border-radius: 20px; }
.prd-hero .prd-icon-empty { font-size: 36px; }
.prd-hero-badges { margin: 0 0 18px; }
.prd-meta { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }
.prd-cover { margin-top: 48px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.prd-cover img { display: block; width: 100%; height: auto; }

.prd-sec { padding: 72px 0 0; }
.prd-sec:last-of-type { padding-bottom: 96px; }
.prd-sec-head { margin-bottom: 28px; }
.prd-sec-head h2 { font: 600 clamp(28px, 3.4vw, 42px)/1.1 "Jost", var(--sans); letter-spacing: -0.02em; }
.prd-body { max-width: 74ch; color: var(--fg-dim); font-size: 17px; line-height: 1.75; }
.prd-body p { margin-bottom: 16px; }
.prd-body strong { color: var(--fg); }

/* stats row */
.prd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prd-stat { padding: 24px; border-right: 1px solid var(--line); }
.prd-stat:last-child { border-right: 0; }
.prd-stat b { display: block; font: 600 34px/1 "Jost", var(--sans); color: var(--fg); }
.prd-stat span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }

/* screenshots */
.prd-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.prd-shots figure { margin: 0; }
.prd-shots a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: border-color .3s var(--ease); }
.prd-shots a:hover { border-color: var(--accent); }
.prd-shots img { display: block; width: 100%; height: auto; }
.prd-shots figcaption { margin-top: 10px; font-size: 14px; color: var(--fg-dim); }

/* features, steps, plans, testimonials: shared card */
.prd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.prd-box { padding: 24px; border: 1px solid var(--line); background: var(--bg-elev); border-radius: var(--radius); }
.prd-box h3 { font: 600 19px/1.25 "Jost", var(--sans); color: var(--fg); margin-bottom: 8px; }
.prd-box p { color: var(--fg-dim); line-height: 1.6; font-size: 15px; }
.prd-ficon { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; margin-bottom: 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-size: 18px; }
.prd-step-n { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent-text); }

.prd-plan { display: flex; flex-direction: column; gap: 14px; }
.prd-plan.highlight { border-color: var(--accent); box-shadow: 0 20px 50px -30px var(--accent); }
.prd-plan-price { font: 600 36px/1 "Jost", var(--sans); color: var(--fg); }
.prd-plan-price span { font: 400 14px var(--sans); color: var(--fg-faint); margin-left: 4px; }
.prd-plan ul { list-style: none; display: grid; gap: 8px; flex: 1; color: var(--fg-dim); font-size: 15px; }
.prd-plan li::before { content: "✓"; color: var(--accent-text); margin-right: 8px; }

.prd-trial { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }

/* requirements */
.prd-req { max-width: 640px; border-top: 1px solid var(--line); }
.prd-req div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prd-req dt { color: var(--fg-dim); }
.prd-req dd { color: var(--fg); font-family: var(--mono); font-size: 14px; text-align: right; }
.prd-platforms { margin-top: 20px; }

/* testimonials */
.prd-stars { color: var(--accent-text); letter-spacing: 2px; margin-bottom: 12px; }
.prd-quote { color: var(--fg); line-height: 1.6; margin-bottom: 16px; }
.prd-who { font-size: 14px; color: var(--fg-dim); }
.prd-who a { color: var(--accent-text); }

/* FAQ + changelog (details/summary) */
.prd-faq { border-top: 1px solid var(--line); max-width: 860px; }
.prd-faq details { border-bottom: 1px solid var(--line); }
.prd-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
  font: 600 19px/1.3 "Jost", var(--sans); color: var(--fg); transition: color .2s var(--ease);
}
.prd-faq summary::-webkit-details-marker { display: none; }
.prd-faq summary:hover { color: var(--accent-text); }
.prd-faq summary::after { content: "+"; font: 300 24px var(--mono); color: var(--accent); transition: transform .3s var(--ease); }
.prd-faq details[open] summary::after { transform: rotate(45deg); }
.prd-faq .prd-ans { padding: 0 40px 24px 0; color: var(--fg-dim); line-height: 1.65; }
.prd-faq .prd-ans p + p { margin-top: 10px; }
.prd-faq .prd-ans ul { margin-left: 18px; display: grid; gap: 6px; }
.prd-log-date { font: 400 12px var(--mono); color: var(--fg-faint); letter-spacing: .06em; margin-left: 12px; }

/* related service + links */
.prd-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-elev); }
.prd-cta h2 { font: 600 clamp(24px, 3vw, 32px)/1.15 "Jost", var(--sans); }
.prd-cta p { margin-top: 8px; color: var(--fg-dim); }
.prd-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* "Our products" row on the Projects page */
.prd-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.prd-row-head h2 { font: 600 clamp(26px, 3vw, 36px)/1.1 "Jost", var(--sans); letter-spacing: -0.02em; }
.prd-row-head a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.prd-row-head a:hover { color: var(--accent-text); }
.prd-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.prd-mini a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--line); background: var(--bg-elev); border-radius: var(--radius);
  transition: border-color .3s var(--ease);
}
.prd-mini a:hover { border-color: var(--accent); }
.prd-mini .prd-icon { width: 44px; height: 44px; border-radius: 11px; }
.prd-mini .prd-icon-empty { font-size: 18px; }
.prd-mini b { display: block; font: 600 17px "Jost", var(--sans); color: var(--fg); }
.prd-mini span { display: block; font-size: 13px; color: var(--fg-dim); margin-top: 2px; }

@media (max-width: 600px) {
  .prd-grid, .prd-shots { grid-template-columns: 1fr; }
  .prd-card, .prd-box { padding: 20px; }
  .prd-hero { gap: 16px; }
  .prd-hero .prd-icon { width: 64px; height: 64px; border-radius: 16px; }
  .prd-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .prd-stat:last-child { border-bottom: 0; }
  .prd-cta { padding: 24px; }
  .prd-sec { padding-top: 56px; }
}

/* ---------- homepage "Our products" section and /products extras ---------- */
.prd-lead { margin-top: 16px; max-width: 560px; color: var(--fg-dim); font-size: 17px; line-height: 1.6; }
.prd-note { margin-top: 14px; max-width: 640px; color: var(--fg-faint); font-size: 15px; line-height: 1.6; }
.prd-grid-home { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.prd-wide { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 32px; }
.prd-wide-main { display: flex; flex-direction: column; gap: 16px; }
.prd-wide .prd-name { font-size: 30px; }
.prd-wide-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prd-wide-stats .prd-stat:last-child { border-right: 0; }
@media (max-width: 900px) {
  .prd-wide { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 600px) {
  .prd-grid-home { grid-template-columns: 1fr; }
  .prd-wide-stats .prd-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .prd-wide-stats .prd-stat:last-child { border-bottom: 0; }
}
