/* Sections */
.p-section { padding: clamp(62px, 8.5vw, 108px) 0; }
.p-section--soft { background: linear-gradient(180deg, rgba(18, 31, 25, 0.32), rgba(11, 18, 16, 0)); }
.p-section--tight { padding-top: 0; }

.p-section-head { max-width: 720px; }

/* Showcase: catalog is the first screen */
.p-showcase { padding: clamp(36px, 5.5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.p-showcase-head { max-width: 760px; margin-bottom: 34px; }

.p-showcase-title {
  margin-top: 12px;
  font-family: var(--p-font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.p-showcase-lead {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--p-muted);
  font-size: 1.05rem;
}

.p-showcase .p-services { margin-top: 0; }

/* Before/after examples */
.p-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.p-example {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-lg);
  background: var(--p-surface);
}

.p-example-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.p-example-pair > div { position: relative; }

.p-example-pair img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: #fff;
}

.p-example-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 18, 16, 0.82);
  color: var(--p-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.p-example figcaption {
  margin-top: 12px;
  color: var(--p-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.p-examples-note {
  margin-top: 16px;
  color: var(--p-muted-2);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .p-examples { grid-template-columns: 1fr; }
}

.p-group + .p-group { margin-top: 46px; }

.p-group-title {
  margin: 0 0 18px;
  color: var(--p-muted-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.p-section-title {
  margin-top: 14px;
  font-family: var(--p-font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.p-section-lead {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--p-muted);
  font-size: 1.02rem;
}

/* Service cards */
.p-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.p-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-lg);
  background: var(--p-surface);
  transition: transform .25s ease, border-color .25s ease;
}

.p-card:hover { transform: translateY(-4px); border-color: rgba(116, 227, 163, 0.3); }

.p-services--ready { grid-template-columns: 1fr; }

.p-services--soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* The working product: wide card, one per group */
.p-card--wide {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.p-card--wide .p-card-media { height: auto; min-height: 260px; }

.p-card--wide .p-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.p-card--wide .p-card-body { justify-content: center; }

@media (max-width: 900px) {
  .p-card--wide { grid-template-columns: 1fr; }
  .p-card--wide .p-card-media { height: clamp(185px, 46vw, 240px); min-height: 0; }
  .p-services--soon { grid-template-columns: 1fr; }
}

.p-card-media {
  position: relative;
  height: clamp(185px, 17vw, 225px);
  overflow: hidden;
  background: #0d1713;
}

.p-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 18, 16, 0.5));
  pointer-events: none;
}

.p-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-card--hiksi .p-card-media img { object-position: center top; }

/* Cards for products in development: taller media, Hiksi portrait stays uncropped */
.p-services--soon .p-card-media { height: clamp(240px, 28vw, 358px); }

/* Products that are not launched yet: dimmer, but still readable */
.p-card--muted { background: rgba(15, 25, 21, 0.72); }
.p-card--muted .p-card-media img { filter: saturate(.55) brightness(.82); }
.p-card--muted .p-card-kicker,
.p-card--muted .p-card-price { color: var(--p-muted); }
.p-card--muted:hover { transform: translateY(-2px); border-color: var(--p-line); }

.p-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.p-card-kicker {
  color: var(--p-muted-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.p-card-title {
  margin-top: 6px;
  font-family: var(--p-font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.p-card-text {
  margin-top: 10px;
  color: var(--p-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.p-card-price {
  margin-top: 18px;
  color: var(--p-accent);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-card-note {
  margin-top: 6px;
  color: var(--p-muted-2);
  font-size: 0.84rem;
  line-height: 1.5;
}

.p-card-cta { margin-top: auto; padding-top: 20px; }

/* Steps */
.p-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.p-step {
  padding: 28px 26px;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-lg);
  background: linear-gradient(180deg, rgba(18, 31, 25, 0.62), rgba(13, 23, 18, 0.42));
}

.p-step-num {
  font-family: var(--p-font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: rgba(116, 227, 163, 0.45);
  letter-spacing: -0.04em;
}

.p-step h3 { margin-top: 16px; font-size: 1.06rem; font-weight: 650; }
.p-step p { margin-top: 8px; color: var(--p-muted); font-size: 0.94rem; }

.p-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(116, 227, 163, 0.2);
  border-radius: var(--p-radius-md);
  background: rgba(116, 227, 163, 0.07);
}

.p-callout p { color: var(--p-muted); font-size: 0.92rem; max-width: 68ch; }

/* Panels and splits */
.p-panel {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(116, 227, 163, 0.18);
  border-radius: var(--p-radius-xl);
  background:
    radial-gradient(640px 300px at 88% 0%, rgba(116, 227, 163, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(22, 39, 30, 0.76), rgba(13, 23, 18, 0.72));
  overflow: hidden;
}

.p-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.p-panel h2 {
  margin-top: 12px;
  font-family: var(--p-font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.p-panel p { margin-top: 12px; color: var(--p-muted); }

.p-list { display: grid; gap: 10px; margin-top: 18px; }
.p-list li {
  position: relative;
  padding-left: 22px;
  color: var(--p-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.p-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-accent);
  box-shadow: 0 0 12px rgba(116, 227, 163, 0.55);
}

.p-fact-box {
  padding: 22px;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-md);
  background: rgba(11, 18, 16, 0.46);
}

.p-fact-box h3 { font-size: 1rem; font-weight: 650; }
.p-fact-box p { margin-top: 8px; font-size: 0.9rem; }

.p-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.p-split--reverse .p-art { order: -1; }

.p-art {
  margin: 0;
  border: 1px solid var(--p-line-strong);
  border-radius: var(--p-radius-xl);
  overflow: hidden;
  background: var(--p-surface-solid);
  box-shadow: var(--p-shadow);
}

.p-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1216 / 832;
  object-fit: cover;
}

.p-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.p-tag-list li {
  padding: 7px 13px;
  border: 1px solid var(--p-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--p-muted);
  font-size: 0.85rem;
}

.p-note {
  margin-top: 18px;
  color: var(--p-muted-2);
  font-size: 0.88rem;
}

.p-note a { color: var(--p-accent); text-decoration: none; border-bottom: 1px solid rgba(116, 227, 163, 0.35); }

/* Feature grid for service pages */
.p-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.p-feature {
  padding: 24px;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-lg);
  background: var(--p-surface);
}

.p-feature h2,
.p-feature h3 { font-size: 1.04rem; font-weight: 650; }
.p-feature p { margin-top: 8px; color: var(--p-muted); font-size: 0.93rem; }

/* FAQ */
.p-faq { display: grid; gap: 10px; margin-top: 34px; max-width: 860px; }

.p-faq-item {
  border: 1px solid var(--p-line);
  border-radius: 14px;
  background: var(--p-surface);
}

.p-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 22px;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.98rem;
}

.p-faq-item summary::-webkit-details-marker { display: none; }

.p-faq-item summary::after {
  content: "+";
  color: var(--p-accent);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  flex: none;
}

.p-faq-item[open] summary::after { content: "−"; }

.p-faq-a { padding: 0 22px 20px; color: var(--p-muted); font-size: 0.94rem; }
.p-faq-a a { color: var(--p-accent); text-decoration: none; border-bottom: 1px solid rgba(116, 227, 163, 0.35); }

