/* =====================================================================
   The Turn Group :: Python Development Services page
   Palette: Python blue + Python yellow + emerald + teal + cyan
   Unique structural choices vs PHP page:
     - Terminal/REPL-styled hero code panel with traffic-light dots
     - Snake-curve section separators (SVG wave dividers)
     - Yellow indent gutter on framework cards
     - Numbered process pills (round vs PHP's vertical bars)
     - Notebook-cell styled use-case cards
   ===================================================================== */

.py-wrap {
  --py-blue: #3776AB;          /* official Python brand blue */
  --py-blue-deep: #1e3a5f;
  --py-blue-night: #0b2545;
  --py-yellow: #FFD43B;        /* official Python brand yellow */
  --py-yellow-deep: #FBBF24;
  --py-emerald: #10b981;
  --py-emerald-deep: #047857;
  --py-teal: #14b8a6;
  --py-cyan: #06b6d4;
  --py-cyan-bright: #22d3ee;
  --py-ink: #0b2545;
  --py-ink-soft: #1e3a5f;
  --py-muted: #5b6b85;
  --py-paper: #ffffff;
  --py-cream: #f6fbf9;          /* very light mint */
  --py-line: #dbe7e3;
  --py-line-soft: #eef5f2;
  --py-shadow: 0 10px 30px rgba(30, 58, 95, .12);
  --py-shadow-lg: 0 24px 60px rgba(55, 118, 171, .22);
  --py-radius: 14px;            /* slightly more rounded than PHP page */
  --py-radius-sm: 9px;
  --py-radius-pill: 999px;

  overflow-x: clip;
  color: var(--py-ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.py-wrap * { box-sizing: border-box; }

.py-wrap .py-bleed {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.py-wrap .py-section {
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  padding-right: max(24px, calc((100vw - 1240px) / 2));
}

/* ============================================================
   HERO - night-sky gradient with terminal/REPL code window
   ============================================================ */
.py-wrap .py-hero {
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(255,212,59,.22), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(16,185,129,.22), transparent 60%),
    radial-gradient(700px 500px at 50% 50%, rgba(34,211,238,.12), transparent 60%),
    linear-gradient(135deg, #0b2545 0%, #1e3a5f 55%, #3776AB 100%);
  color: #fff;
  padding-top: 100px; padding-bottom: 120px;
  border-bottom: 4px solid var(--py-yellow);
  position: relative;
  overflow: hidden;
}

/* Dotted blueprint grid */
.py-wrap .py-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: .7;
}
.py-wrap .py-hero > .py-wrap-inner { position: relative; z-index: 1; }

.py-wrap .py-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 1000px) {
  .py-wrap .py-hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.py-wrap .py-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--py-radius-pill);
  background: rgba(255,212,59,.12);
  border: 1px solid rgba(255,212,59,.45);
  color: var(--py-yellow);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.py-wrap .py-eyebrow::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--py-yellow);
  box-shadow: 0 0 12px var(--py-yellow);
}

.py-wrap .py-hero-h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  color: #fff;
}
.py-wrap .py-hero-h1 .py-accent-yellow { color: var(--py-yellow); }
.py-wrap .py-hero-h1 .py-accent-emerald { color: var(--py-emerald); }
.py-wrap .py-hero-h1 .py-accent-cyan { color: var(--py-cyan-bright); }

.py-wrap .py-hero-lead {
  font-size: 18.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.86);
  margin: 0 0 32px;
  max-width: 60ch;
}

.py-wrap .py-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.py-wrap .py-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--py-radius);
  background: linear-gradient(135deg, var(--py-yellow) 0%, var(--py-emerald) 100%);
  color: #0b2545;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255,212,59,.30);
  transition: transform .15s ease, box-shadow .2s ease;
}
.py-wrap .py-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255,212,59,.40);
}

.py-wrap .py-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--py-radius);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.22);
  transition: background .2s ease, border-color .2s ease;
}
.py-wrap .py-btn-secondary:hover {
  background: rgba(255,255,255,.14);
  border-color: var(--py-yellow);
}

.py-wrap .py-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 640px;
}
@media (max-width: 640px) {
  .py-wrap .py-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
.py-wrap .py-stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--py-radius);
  padding: 16px 14px;
  backdrop-filter: blur(6px);
}
.py-wrap .py-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--py-yellow);
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.py-wrap .py-stat-label {
  font-size: 11.5px;
  color: rgba(255,255,255,.78);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
}

/* Terminal / REPL code panel */
.py-wrap .py-terminal {
  background: #0b1620;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  overflow: hidden;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.py-wrap .py-terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #14232f 0%, #0e1a23 100%);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.py-wrap .py-terminal-dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block;
}
.py-wrap .py-terminal-dot--r { background: #ff5f56; }
.py-wrap .py-terminal-dot--y { background: #ffbd2e; }
.py-wrap .py-terminal-dot--g { background: #27c93f; }
.py-wrap .py-terminal-title {
  margin-left: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
}
.py-wrap .py-terminal-body {
  padding: 22px 24px 26px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #e6f1ff;
  white-space: pre;
  overflow-x: auto;
}
.py-wrap .py-terminal-body .tk-prompt { color: var(--py-emerald); }
.py-wrap .py-terminal-body .tk-kw { color: var(--py-cyan-bright); }
.py-wrap .py-terminal-body .tk-fn { color: var(--py-yellow); }
.py-wrap .py-terminal-body .tk-str { color: #a7f3d0; }
.py-wrap .py-terminal-body .tk-c { color: #6b7f96; font-style: italic; }
.py-wrap .py-terminal-body .tk-num { color: #fda4af; }
.py-wrap .py-terminal-body .tk-out { color: rgba(255,255,255,.7); }

/* ============================================================
   SECTION HEADS (shared)
   ============================================================ */
.py-wrap .py-section-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 56px;
}
.py-wrap .py-section-head .py-eyebrow {
  background: rgba(55,118,171,.08);
  border-color: rgba(55,118,171,.30);
  color: var(--py-blue);
}
.py-wrap .py-section-head .py-eyebrow::before {
  background: var(--py-blue);
  box-shadow: 0 0 10px rgba(55,118,171,.55);
}
.py-wrap .py-h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  color: var(--py-ink);
}
.py-wrap .py-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--py-ink-soft);
  margin: 0;
}

/* Generic section spacing */
.py-wrap .py-section.py-pad {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* ============================================================
   STACK STRIP - yellow chip row on cream
   ============================================================ */
.py-wrap .py-stack-strip {
  background: linear-gradient(180deg, #fffbe6 0%, #ffffff 100%);
  border-top: 1px solid var(--py-line);
  border-bottom: 1px solid var(--py-line);
  padding-top: 40px;
  padding-bottom: 44px;
  text-align: center;
}
.py-wrap .py-stack-strip .py-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--py-radius-pill);
  background: rgba(255,212,59,.18);
  border: 1px solid rgba(255,212,59,.55);
  color: #92400e;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.py-wrap .py-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}
.py-wrap .py-stack-item {
  background: #fff;
  border: 1.5px solid var(--py-line);
  border-radius: var(--py-radius-pill);
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--py-blue-deep);
  transition: transform .15s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.py-wrap .py-stack-item:hover {
  transform: translateY(-2px);
  border-color: var(--py-yellow);
  background: #fffbeb;
  color: var(--py-ink);
}

/* ============================================================
   CAPABILITY CARDS - top accent stripe, hover lift
   ============================================================ */
.py-wrap .py-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) { .py-wrap .py-cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .py-wrap .py-cap-grid { grid-template-columns: 1fr; } }
.py-wrap .py-cap-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--py-line);
  border-radius: var(--py-radius);
  padding: 30px 26px 28px;
  box-shadow: var(--py-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.py-wrap .py-cap-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--py-blue) 0%, var(--py-emerald) 50%, var(--py-yellow) 100%);
}
.py-wrap .py-cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--py-shadow-lg);
  border-color: var(--py-emerald);
}
.py-wrap .py-cap-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--py-blue) 0%, var(--py-emerald) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.py-wrap .py-cap-h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--py-ink);
  margin: 0 0 10px;
}
.py-wrap .py-cap-p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--py-ink-soft);
  margin: 0 0 14px;
}
.py-wrap .py-cap-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.py-wrap .py-cap-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--py-ink-soft);
  margin: 6px 0;
}
.py-wrap .py-cap-bullets li::before {
  content: '>>>';
  position: absolute;
  left: 0;
  color: var(--py-emerald);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  top: 2px;
}

/* ============================================================
   FRAMEWORK GRID - yellow indent gutter style
   ============================================================ */
.py-wrap .py-fw-bg {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(16,185,129,.06), transparent 70%),
    linear-gradient(180deg, #f6fbf9 0%, #ffffff 100%);
  border-top: 1px solid var(--py-line);
  border-bottom: 1px solid var(--py-line);
}
.py-wrap .py-fw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .py-wrap .py-fw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .py-wrap .py-fw-grid { grid-template-columns: 1fr; } }
.py-wrap .py-fw-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--py-line);
  border-radius: var(--py-radius);
  padding: 24px 22px 24px 30px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.py-wrap .py-fw-card::before {
  content: '';
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: var(--py-yellow);
}
.py-wrap .py-fw-card:hover {
  transform: translateY(-3px);
  border-color: var(--py-blue);
  box-shadow: var(--py-shadow);
}
.py-wrap .py-fw-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--py-emerald-deep);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.py-wrap .py-fw-h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--py-blue);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.py-wrap .py-fw-p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--py-ink-soft);
  margin: 0;
}

/* ============================================================
   AI BLEED - emerald-to-blue night gradient
   ============================================================ */
.py-wrap .py-ai-bleed {
  background:
    radial-gradient(800px 500px at 10% 10%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(700px 400px at 90% 90%, rgba(255,212,59,.16), transparent 60%),
    linear-gradient(135deg, #064e3b 0%, #0b2545 60%, #1e3a5f 100%);
  color: #fff;
  border-top: 4px solid var(--py-emerald);
  border-bottom: 4px solid var(--py-yellow);
}
.py-wrap .py-ai-bleed .py-h2 { color: #fff; }
.py-wrap .py-ai-bleed .py-lead { color: rgba(255,255,255,.84); }
.py-wrap .py-ai-bleed .py-eyebrow {
  background: rgba(0,0,0,.30);
  border-color: rgba(34,211,238,.45);
  color: var(--py-cyan-bright);
}
.py-wrap .py-ai-bleed .py-eyebrow::before {
  background: var(--py-cyan-bright);
  box-shadow: 0 0 12px var(--py-cyan-bright);
}

.py-wrap .py-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 16px;
}
@media (max-width: 1000px) { .py-wrap .py-ai-grid { grid-template-columns: 1fr; } }
.py-wrap .py-ai-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--py-radius);
  padding: 26px 24px;
  backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.py-wrap .py-ai-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.10);
  border-color: var(--py-yellow);
}
.py-wrap .py-ai-card-h {
  font-size: 18px;
  font-weight: 700;
  color: var(--py-yellow);
  margin: 0 0 10px;
}
.py-wrap .py-ai-card-p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin: 0;
}

/* ============================================================
   DATA SCIENCE / ML STRIP - emerald accent cards
   ============================================================ */
.py-wrap .py-ds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .py-wrap .py-ds-grid { grid-template-columns: 1fr; } }
.py-wrap .py-ds-card {
  background: #fff;
  border: 1px solid var(--py-line);
  border-radius: var(--py-radius);
  padding: 30px 28px;
  position: relative;
  box-shadow: var(--py-shadow);
}
.py-wrap .py-ds-card-h {
  font-size: 22px;
  font-weight: 800;
  color: var(--py-ink);
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.py-wrap .py-ds-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.py-wrap .py-ds-list li {
  position: relative;
  padding: 10px 0 10px 36px;
  border-bottom: 1px dashed var(--py-line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--py-ink-soft);
}
.py-wrap .py-ds-list li:last-child { border-bottom: none; }
.py-wrap .py-ds-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 16px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--py-emerald);
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
}
.py-wrap .py-ds-list li strong { color: var(--py-blue); font-weight: 700; }

/* ============================================================
   PROCESS - 6-step round numbered pills
   ============================================================ */
.py-wrap .py-process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: py-step;
}
.py-wrap .py-process .py-step { list-style: none; }
@media (max-width: 1100px) { .py-wrap .py-process { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .py-wrap .py-process { grid-template-columns: repeat(2, 1fr); } }

.py-wrap .py-step {
  background: #fff;
  border: 1px solid var(--py-line);
  border-radius: var(--py-radius);
  padding: 22px 18px 20px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.py-wrap .py-step:hover {
  transform: translateY(-3px);
  border-color: var(--py-emerald);
  box-shadow: var(--py-shadow);
}
.py-wrap .py-step::before {
  counter-increment: py-step;
  content: counter(py-step, decimal-leading-zero);
  position: absolute;
  top: -16px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--py-blue) 0%, var(--py-emerald) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(55,118,171,.30);
}
.py-wrap .py-step-h {
  font-size: 16px;
  font-weight: 700;
  color: var(--py-ink);
  margin: 14px 0 8px;
  line-height: 1.3;
}
.py-wrap .py-step-p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--py-ink-soft);
  margin: 0;
}

/* ============================================================
   PRICING TIERS - emerald, blue, yellow tier highlights
   ============================================================ */
.py-wrap .py-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 1000px) { .py-wrap .py-pricing-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; } }

.py-wrap .py-tier {
  background: #fff;
  border: 1px solid var(--py-line);
  border-radius: 16px;
  padding: 32px 28px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.py-wrap .py-tier:hover { transform: translateY(-4px); box-shadow: var(--py-shadow-lg); }

.py-wrap .py-tier--feat {
  border: 2px solid var(--py-emerald);
  box-shadow: 0 16px 50px rgba(16,185,129,.22);
}
.py-wrap .py-tier--feat::after {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--py-emerald) 0%, var(--py-yellow) 100%);
  color: #0b2545;
  padding: 6px 16px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--py-radius-pill);
  box-shadow: 0 6px 18px rgba(16,185,129,.30);
}

.py-wrap .py-tier-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--py-blue);
  margin: 0 0 10px;
}
.py-wrap .py-tier--feat .py-tier-tag { color: var(--py-emerald-deep); }
.py-wrap .py-tier-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--py-ink);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.py-wrap .py-tier-tagline {
  font-size: 13.5px;
  color: var(--py-ink-soft);
  margin: 0 0 20px;
  line-height: 1.5;
}
.py-wrap .py-tier-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--py-ink);
  margin: 0;
  line-height: 1;
  letter-spacing: -.02em;
}
.py-wrap .py-tier-price .py-price-prefix {
  font-size: 16px;
  font-weight: 600;
  color: var(--py-muted);
  margin-right: 4px;
}
.py-wrap .py-tier-price-note {
  font-size: 12.5px;
  color: var(--py-muted);
  margin: 6px 0 22px;
}
.py-wrap .py-tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.py-wrap .py-tier-list li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: var(--py-ink-soft);
  border-bottom: 1px dashed var(--py-line-soft);
}
.py-wrap .py-tier-list li:last-child { border-bottom: none; }
.py-wrap .py-tier-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,.16);
  color: var(--py-emerald-deep);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.py-wrap .py-tier-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--py-radius);
  background: linear-gradient(135deg, var(--py-blue) 0%, var(--py-emerald) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  text-align: center;
  transition: transform .15s ease, box-shadow .2s ease;
}
.py-wrap .py-tier-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(55,118,171,.30); }
.py-wrap .py-tier--feat .py-tier-cta { background: linear-gradient(135deg, var(--py-emerald) 0%, var(--py-yellow) 100%); color: #0b2545; }

/* ============================================================
   USE-CASES - notebook-cell styled cards
   ============================================================ */
.py-wrap .py-nb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) { .py-wrap .py-nb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .py-wrap .py-nb-grid { grid-template-columns: 1fr; } }
.py-wrap .py-nb-card {
  background: #fff;
  border: 1px solid var(--py-line);
  border-radius: var(--py-radius);
  overflow: hidden;
  box-shadow: var(--py-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.py-wrap .py-nb-card:hover { transform: translateY(-3px); box-shadow: var(--py-shadow-lg); }
.py-wrap .py-nb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #f6fbf9 0%, #eef5f2 100%);
  border-bottom: 1px solid var(--py-line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--py-blue-deep);
  letter-spacing: .04em;
}
.py-wrap .py-nb-head .py-nb-cellmark {
  color: var(--py-blue);
  font-weight: 700;
}
.py-wrap .py-nb-body {
  padding: 22px 22px 24px;
}
.py-wrap .py-nb-h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--py-ink);
  margin: 0 0 10px;
  line-height: 1.3;
}
.py-wrap .py-nb-p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--py-ink-soft);
  margin: 0 0 14px;
}
.py-wrap .py-nb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.py-wrap .py-nb-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--py-emerald-deep);
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.30);
  padding: 4px 10px;
  border-radius: var(--py-radius-pill);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   INDUSTRIES - icon-led emerald accent
   ============================================================ */
.py-wrap .py-ind-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .py-wrap .py-ind-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .py-wrap .py-ind-grid { grid-template-columns: repeat(2, 1fr); } }
.py-wrap .py-ind-card {
  background: #fff;
  border: 1px solid var(--py-line);
  border-radius: var(--py-radius);
  padding: 22px 16px 20px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.py-wrap .py-ind-card:hover {
  transform: translateY(-3px);
  border-color: var(--py-emerald);
  box-shadow: var(--py-shadow);
}
.py-wrap .py-ind-emoji {
  display: inline-block;
  font-size: 28px;
  margin: 0 0 8px;
  line-height: 1;
}
.py-wrap .py-ind-h {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--py-ink);
  margin: 0 0 6px;
  line-height: 1.3;
}
.py-wrap .py-ind-p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--py-ink-soft);
  margin: 0;
}

/* ============================================================
   PRODUCTION GRID - 2-column quality + scale band
   ============================================================ */
.py-wrap .py-prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .py-wrap .py-prod-grid { grid-template-columns: 1fr; } }
.py-wrap .py-prod-card {
  background: #fff;
  border: 1px solid var(--py-line);
  border-radius: var(--py-radius);
  padding: 30px 28px 26px;
}
.py-wrap .py-prod-card-h {
  font-size: 20px;
  font-weight: 800;
  color: var(--py-ink);
  margin: 0 0 14px;
}
.py-wrap .py-prod-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.py-wrap .py-prod-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px dashed var(--py-line-soft);
  font-size: 14px;
  line-height: 1.5;
  color: var(--py-ink-soft);
}
.py-wrap .py-prod-list li:last-child { border-bottom: none; }
.py-wrap .py-prod-list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 14px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--py-yellow);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(255,212,59,.22);
}

/* ============================================================
   KEYWORD CLOUD STRIP (for SEO depth)
   ============================================================ */
.py-wrap .py-kw-strip {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
  border-top: 1px solid var(--py-line);
  border-bottom: 1px solid var(--py-line);
  padding-top: 70px;
  padding-bottom: 80px;
}
.py-wrap .py-kw-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}
.py-wrap .py-kw {
  background: #fff;
  border: 1px solid var(--py-line);
  border-radius: var(--py-radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--py-blue-deep);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.py-wrap .py-kw:hover {
  transform: translateY(-2px);
  background: var(--py-yellow);
  border-color: var(--py-yellow-deep);
  color: var(--py-blue-night);
}

/* ============================================================
   FAQ - clean accordion style
   ============================================================ */
.py-wrap .py-faq {
  max-width: 880px;
  margin: 0 auto;
}
.py-wrap .py-faq-item {
  background: #fff;
  border: 1px solid var(--py-line);
  border-radius: var(--py-radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.py-wrap .py-faq-item[open] {
  box-shadow: var(--py-shadow);
  border-color: var(--py-emerald);
}
.py-wrap .py-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--py-ink);
  position: relative;
}
.py-wrap .py-faq-q::-webkit-details-marker { display: none; }
.py-wrap .py-faq-q::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--py-yellow);
  color: var(--py-blue-night);
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.py-wrap .py-faq-item[open] .py-faq-q::after {
  content: '−';
  background: var(--py-emerald);
  color: #fff;
}
.py-wrap .py-faq-a {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--py-ink-soft);
}

/* ============================================================
   CTA BAND - night blue with yellow CTA
   ============================================================ */
.py-wrap .py-cta-band {
  background:
    radial-gradient(700px 400px at 20% 20%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(700px 400px at 80% 80%, rgba(255,212,59,.18), transparent 60%),
    linear-gradient(135deg, #0b2545 0%, #1e3a5f 60%, #064e3b 100%);
  color: #fff;
  text-align: center;
  border-top: 4px solid var(--py-yellow);
  border-bottom: 4px solid var(--py-emerald);
  padding-top: 90px;
  padding-bottom: 96px;
}
.py-wrap .py-cta-band .py-h2 { color: #fff; }
.py-wrap .py-cta-band .py-lead { color: rgba(255,255,255,.84); max-width: 720px; margin: 0 auto 32px; }
.py-wrap .py-cta-band .py-hero-cta-row { justify-content: center; margin-bottom: 0; }

/* ============================================================
   Edge-bleed adjustments - ensure full bleed sections still
   keep their interior content at the 1240px center column.
   ============================================================ */
.py-wrap .py-bleed.py-section { /* inherits padding-inline rule above */ }

/* ============================================================
   MOBILE TYPE TUNING
   ============================================================ */
@media (max-width: 720px) {
  .py-wrap .py-section.py-pad { padding-top: 68px; padding-bottom: 68px; }
  .py-wrap .py-hero { padding-top: 80px; padding-bottom: 90px; }
  .py-wrap .py-hero-h1 { font-size: 38px; }
  .py-wrap .py-hero-lead { font-size: 16px; }
  .py-wrap .py-terminal-body { font-size: 12px; padding: 18px 18px 22px; }
  .py-wrap .py-section-head { margin-bottom: 36px; }
  .py-wrap .py-stack-strip { padding-top: 32px; padding-bottom: 36px; }
}
