/* packman-website — shared styles for internal content pages
 * (pricing, partners, about, contact, faqs, blog, academy,
 *  for-makers, for-retailers, features/*, legal/*).
 *
 * Paired with home.css (for the sticky nav + footer) and base.css.
 */

/* ---------- Page shell ---------- */

main.page-main {
  padding-top: 96px;
}

.page-hero {
  padding: 80px 24px 48px;
  text-align: center;
  background:
    radial-gradient(800px 300px at 50% -80px, rgba(210, 248, 1, 0.55) 0%, rgba(210, 248, 1, 0) 70%),
    linear-gradient(180deg, rgba(44, 42, 89, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(210, 248, 1, 0.4);
  border: 1px solid rgba(44, 42, 89, 0.15);
}

.page-hero h1 {
  margin: 0 auto 14px;
  max-width: 760px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.page-hero h1 .accent {
  color: var(--brand-secondary);
  font-style: italic;
}

[dir="rtl"] .page-hero h1 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  letter-spacing: 0;
}

[dir="rtl"] .page-hero h1 .accent {
  font-style: normal;
}

.page-hero p.lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.page-hero .cta-row {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Generic content section ---------- */

.content-section {
  padding: 72px 24px;
}

.content-section.alt {
  background: linear-gradient(180deg, rgba(210, 248, 1, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
}

.content-inner {
  width: min(1080px, 100%);
  margin-inline: auto;
}

.content-inner.narrow {
  max-width: 760px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}

.section-title .accent {
  color: var(--brand-secondary);
}

.section-body {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 640px;
}

.section-title.center,
.section-body.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Card grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.p-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(44, 42, 89, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.p-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 42, 89, 0.2);
  box-shadow: 0 18px 40px rgba(44, 42, 89, 0.1);
}

.p-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: var(--brand-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.p-card .ic svg {
  width: 22px;
  height: 22px;
}

.p-card h4 {
  margin: 4px 0 0;
  font-size: 17px;
  color: var(--brand-secondary);
  font-weight: 700;
}

.p-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
}

.plan {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(44, 42, 89, 0.04);
  position: relative;
}

.plan.featured {
  border-color: var(--brand-secondary);
  box-shadow: 0 20px 50px rgba(44, 42, 89, 0.18);
  transform: translateY(-6px);
}

.plan .plan-tag {
  position: absolute;
  top: -12px;
  inset-inline-start: 28px;
  background: var(--brand-secondary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.plan h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.plan .plan-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.plan .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--brand-secondary);
  flex-wrap: wrap;
}

.plan .price .currency {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-secondary);
  opacity: 0.75;
}

.plan .price .amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan .price .per {
  font-size: 14px;
  color: var(--ink-muted);
}

.plan .price-note {
  margin: -4px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.plan ul.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan ul.plan-features li {
  position: relative;
  padding-inline-start: 24px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.plan ul.plan-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 2px #fff;
}

.plan .plan-cta {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--brand-secondary);
  color: var(--brand-secondary);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}

.plan.featured .plan-cta {
  background: var(--brand-secondary);
  color: #fff;
}

.plan .plan-cta:hover {
  background: var(--brand-secondary);
  color: #fff;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .plan.featured {
    transform: none;
  }
}

/* ---------- FAQ accordion ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-solid);
  overflow: hidden;
}

.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}

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

.faq-item > summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--brand-secondary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] > summary::after {
  content: "−";
}

.faq-item .faq-a {
  padding: 0 20px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(44, 42, 89, 0.05);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-secondary);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 4px var(--ring);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-tile {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.contact-tile h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--brand-secondary);
  font-weight: 700;
}

.contact-tile p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.contact-tile a {
  color: var(--brand-secondary);
  font-weight: 600;
}

/* ---------- Blog ---------- */

.blog-featured {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #3d3b74 100%);
  color: #fff;
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(44, 42, 89, 0.25);
}

.blog-featured h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.blog-featured .kicker {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

.blog-featured p {
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.blog-featured .bf-art {
  height: 220px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 70% 40%, var(--brand) 0%, var(--brand-deep) 60%, #7a9000 100%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-featured {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(44, 42, 89, 0.1);
}

.blog-card .thumb {
  height: 160px;
  background: linear-gradient(135deg, #ffe4aa 0%, #eaa65d 100%);
}

.blog-card.t2 .thumb { background: linear-gradient(135deg, #e5e0ff 0%, #6d64c5 100%); }
.blog-card.t3 .thumb { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); }
.blog-card.t4 .thumb { background: linear-gradient(135deg, #ffd28a 0%, #e8902a 100%); }
.blog-card.t5 .thumb { background: linear-gradient(135deg, #cfe9ff 0%, #2c80c5 100%); }
.blog-card.t6 .thumb { background: linear-gradient(135deg, #ffd1e2 0%, #c53d83 100%); }

.blog-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-card .tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  font-weight: 600;
}

.blog-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.blog-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.blog-card .meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ---------- Stats row ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
  border-radius: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.stat .n {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--brand-secondary);
  letter-spacing: -0.02em;
}

.stat .l {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-muted);
}

@media (max-width: 780px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Feature page hero visual ---------- */

.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-split .text h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.feature-split .text h2 .accent {
  color: var(--brand-secondary);
}

.feature-split .text p {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.65;
}

.feature-split .visual {
  min-height: 320px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #3d3b74 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(44, 42, 89, 0.22);
}

.feature-split .visual.alt {
  background: linear-gradient(135deg, #ffd28a 0%, #e8902a 100%);
  box-shadow: 0 24px 60px rgba(232, 144, 42, 0.22);
}

.feature-split .visual.mint {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 60%, #7a9000 100%);
  box-shadow: 0 24px 60px rgba(210, 248, 1, 0.3);
}

.feature-split .visual.violet {
  background: linear-gradient(135deg, #e5e0ff 0%, #6d64c5 100%);
  box-shadow: 0 24px 60px rgba(109, 100, 197, 0.22);
}

.feature-split .visual::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal (dense text pages) ---------- */

.legal-body {
  max-width: 780px;
  margin-inline: auto;
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
}

.legal-body h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  color: var(--brand-secondary);
}

.legal-body h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--ink);
}

.legal-body p {
  margin: 0 0 14px;
  color: var(--ink-muted);
}

.legal-body ul {
  padding-inline-start: 22px;
  margin: 0 0 14px;
  color: var(--ink-muted);
}

.legal-body ul li {
  margin-bottom: 6px;
}

.legal-body .updated {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

/* ---------- Inline CTA band ---------- */

.cta-band {
  margin: 80px auto;
  width: min(1080px, calc(100% - 48px));
  padding: 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #3d3b74 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 24px 60px rgba(44, 42, 89, 0.22);
}

.cta-band h3 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.cta-band .btn-primary {
  background: var(--brand);
  color: var(--brand-secondary);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
}

.cta-band .btn-primary:hover {
  background: #fff;
}

/* ---------- Active nav link ---------- */

.site-nav .nav-links a.is-active {
  color: var(--brand-secondary);
  font-weight: 700;
}

/* ---------- Ghost / secondary button (used on page heroes) ---------- */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-secondary);
  border: 1px solid var(--brand-secondary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: var(--brand-secondary);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Pricing: country + cycle switcher ---------- */

.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  margin: 0 0 28px;
}

.country-switch,
.cycle-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(44, 42, 89, 0.05);
  gap: 2px;
}

.country-pill,
.cycle-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.country-pill .flag {
  font-size: 16px;
  line-height: 1;
}

.country-pill:hover,
.cycle-pill:hover {
  background: rgba(44, 42, 89, 0.06);
}

.country-pill.is-active,
.cycle-pill.is-active {
  background: var(--brand-secondary);
  color: #fff;
}

.cycle-save {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cycle-pill.is-active .cycle-save {
  background: #fff;
  color: var(--brand-secondary);
}

/* ---------- Pricing value pills (under hero) ---------- */

.pricing-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 32px;
}

.pricing-pills .pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--brand-secondary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(44, 42, 89, 0.04);
}

/* ---------- Single-plan pricing layout ---------- */

.pricing-grid.single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  max-width: 560px;
  margin-inline: auto;
}

.pricing-grid.single .plan {
  padding: 36px 32px;
}

.plan-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.plan-ctas .plan-cta {
  margin-top: 0;
  flex: 1 1 180px;
}

.plan-cta--ghost {
  background: transparent !important;
  color: var(--brand-secondary) !important;
}

.plan-cta--ghost:hover {
  background: var(--brand-secondary) !important;
  color: #fff !important;
}

.plan-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  text-align: center;
  padding: 12px 14px;
  background: rgba(210, 248, 1, 0.18);
  border-radius: 12px;
}

.plan-note--alt {
  background: rgba(44, 42, 89, 0.05);
}

/* ---------- Partners grid ---------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partner-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.partner-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f8f8fc;
}

.partner-copy {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.partner-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-secondary);
  box-shadow: 0 16px 40px rgba(44, 42, 89, 0.1);
}

.partner-card h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.partner-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  flex: 1;
}

.partner-link {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border: 1px solid rgba(44, 42, 89, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.partner-link:hover {
  background: rgba(210, 248, 1, 0.3);
  border-color: rgba(44, 42, 89, 0.28);
  text-decoration: none;
}

@media (max-width: 960px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
  .plan-ctas .plan-cta {
    flex: 1 1 100%;
  }
}
