/* ============================================================
   Kitt — Product detail page (LIGHT theme)
   Shared layout for every product; only content differs.
   Reuses the light visual language of home / about / services.
   ============================================================ */

/* ---------- shared bits ---------- */
.pd-eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; color: var(--muted);
  font-weight: 500; text-transform: uppercase;
}
.pd-eyebrow.accent { color: var(--accent); }
.pd-section-title {
  font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1.02;
  color: var(--ink); margin: 18px 0 56px;
}

/* ---------- HERO ---------- */
.pd-hero {
  padding: 168px 0 96px;
  border-bottom: 1px solid var(--line);
}
.pd-crumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; color: var(--muted);
  margin-bottom: 48px;
  opacity: 0; animation: fade-up .8s .05s cubic-bezier(.2,.7,.2,1) forwards;
}
.pd-crumb a { color: var(--muted); transition: color .2s; }
.pd-crumb a:hover { color: var(--ink); }
.pd-crumb .here { color: var(--ink-2); }

.pd-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 72px; align-items: center;
}
.pd-hero-text > * {
  opacity: 0; animation: fade-up 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.pd-eyebrow { animation-delay: .1s; }
.pd-hero-text h1 {
  font-weight: 900; letter-spacing: -0.05em;
  font-size: clamp(52px, 8vw, 112px); line-height: 0.92;
  color: var(--ink); margin: 22px 0 28px;
  animation-delay: .2s;
}
.pd-hero-text h1 .light { font-weight: 300; color: var(--muted); }
.pd-tagline {
  font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75;
  color: var(--ink-2); max-width: 520px;
  margin-bottom: 32px; animation-delay: .35s;
}
.pd-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 44px; animation-delay: .45s;
}
.pd-pills span {
  font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; color: var(--ink-2); letter-spacing: 0.04em;
}
.pd-actions {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  animation-delay: .55s;
}
.pd-back {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding-bottom: 4px; border-bottom: 1px solid var(--muted-2);
  transition: color .2s, border-color .2s;
}
.pd-back:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- HERO VISUAL (light product mockup) ---------- */
.pd-visual {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: 24px; overflow: hidden;
  background: #ffffff; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.22);
  opacity: 0; animation: fade-up 1.1s .35s cubic-bezier(.2,.7,.2,1) forwards;
}
.pd-visual .bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #ffffff 0%, #f4f5f7 100%);
}
.pd-visual .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.pd-visual .mark {
  position: absolute; left: 32px; top: 30px;
  font-size: 40px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--ink); line-height: 1;
}
.pd-visual .mark .light { font-weight: 300; color: var(--muted); }
.pd-visual .index {
  position: absolute; left: 32px; bottom: 30px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--muted);
}
/* floating "order rows" suggesting the product UI */
.pd-mock {
  position: absolute; right: 28px; bottom: 64px;
  width: min(58%, 280px); display: flex; flex-direction: column; gap: 10px;
}
.pd-mock-row {
  display: flex; align-items: center; gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.12);
  animation: pd-float 5s ease-in-out infinite;
}
.pd-mock-row:nth-child(2) { animation-delay: .6s; margin-right: 18px; }
.pd-mock-row:nth-child(3) { animation-delay: 1.2s; }
.pd-mock-row span {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: var(--accent);
}
.pd-mock-row b {
  display: block; height: 7px; border-radius: 4px; flex: 1;
  background: #dcdee2;
}
.pd-mock-row:nth-child(2) b { max-width: 70%; }
.pd-mock-row:nth-child(3) b { max-width: 85%; }
@keyframes pd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ---------- PROBLEM ---------- */
.pd-problem { padding: 112px 0; border-bottom: 1px solid var(--line); }
.pd-problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start; margin-top: 22px;
}
.pd-problem h2 {
  font-weight: 800; letter-spacing: -0.045em;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05;
  color: var(--ink);
}
.pd-problem-body p {
  font-size: 16px; line-height: 1.85; color: var(--ink-2);
}
.pd-problem-body p + p { margin-top: 20px; }

/* ---------- FEATURES ---------- */
.pd-features { padding: 112px 0; border-bottom: 1px solid var(--line); }
.pd-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.pd-feature {
  background: var(--paper); padding: 40px;
  transition: background .3s;
}
.pd-feature:hover { background: #fbfbfb; }
.pd-feature-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--accent);
  background: #fff;
  margin-bottom: 28px;
}
.pd-feature h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 12px;
}
.pd-feature p {
  font-size: 14.5px; line-height: 1.75; color: var(--ink-2);
}

/* ---------- FLOW ---------- */
.pd-flow { padding: 112px 0; border-bottom: 1px solid var(--line); }
.pd-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  position: relative;
}
.pd-step {
  position: relative; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pd-step::before {
  content: ""; position: absolute; left: 0; top: -1px;
  width: 40px; height: 2px; background: var(--ink);
}
.pd-step-n {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.1em; margin-bottom: 20px;
}
.pd-step h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 12px;
}
.pd-step p {
  font-size: 14.5px; line-height: 1.75; color: var(--ink-2);
}

/* ---------- HIGHLIGHTS (signature differentiators) ---------- */
.pd-highlights { padding: 112px 0; border-bottom: 1px solid var(--line); }
.pd-highlight-list { display: flex; flex-direction: column; }
.pd-highlight {
  display: grid; grid-template-columns: 160px 1fr 200px;
  gap: 48px; align-items: center;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.pd-highlight:first-child { border-top: none; }
.pd-highlight-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--accent); font-weight: 500;
}
.pd-highlight-main h3 {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 700;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 12px;
}
.pd-highlight-main p {
  font-size: 15.5px; line-height: 1.75; color: var(--ink-2); max-width: 560px;
}
.pd-highlight-stat { text-align: right; }
.pd-highlight-stat strong {
  display: block; font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  letter-spacing: -0.04em; color: var(--ink); line-height: 1;
}
.pd-highlight-stat span {
  display: block; margin-top: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- CAPABILITIES (grouped matrix) ---------- */
.pd-caps { padding: 112px 0; border-bottom: 1px solid var(--line); }
.pd-cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.pd-cap-group { background: var(--paper); padding: 36px 34px; }
.pd-cap-group h3 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 500; margin-bottom: 22px;
}
.pd-cap-group ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pd-cap-group li {
  position: relative; padding-left: 18px;
  font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
}
.pd-cap-group li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* ---------- PRICING ---------- */
.pd-pricing { padding: 112px 0; border-bottom: 1px solid var(--line); }
.pd-pricing-head { max-width: 720px; margin: 18px 0 0; }
.pd-pricing-head h2 {
  font-weight: 800; letter-spacing: -0.045em;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; color: var(--ink);
}
.pd-pricing-head p {
  font-size: 16px; line-height: 1.75; color: var(--ink-2);
  margin-top: 18px; max-width: 600px;
}
.pd-pricing-note {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; margin-bottom: 56px;
  font-size: 13px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px;
}
.pd-pricing-note::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.pd-plan-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  align-items: start;
}
.pd-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.pd-plan.is-popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(244,141,101,0.06) 0%, rgba(244,141,101,0.01) 38%, var(--paper) 100%);
  box-shadow: 0 40px 70px -34px rgba(244,141,101,0.5);
}
@media (min-width: 1101px) { .pd-plan.is-popular { transform: translateY(-12px); } }
.pd-plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #ffffff;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.pd-plan-name {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent); margin-bottom: 12px;
}
.pd-plan-for {
  font-size: 13px; line-height: 1.55; color: var(--muted);
  min-height: 40px; margin-bottom: 24px;
}
.pd-plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.pd-plan-price strong {
  font-size: clamp(30px, 3vw, 38px); font-weight: 800;
  letter-spacing: -0.04em; color: var(--ink);
}
.pd-plan-price span { font-size: 13px; color: var(--muted); }
.pd-plan-quota {
  background: #f4f4f5;
  border-radius: 12px; padding: 16px 18px; margin-bottom: 26px;
}
.pd-plan.is-popular .pd-plan-quota { background: rgba(244,141,101,0.1); }
.pd-plan-quota .q-label {
  font-size: 12px; color: var(--ink-2); margin-bottom: 4px;
}
.pd-plan-quota .q-value {
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 8px;
}
.pd-plan-quota .q-sub {
  font-size: 11.5px; line-height: 1.5; color: var(--muted);
}
.pd-plan-features {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 28px; flex: 1;
}
.pd-plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.pd-plan-features li svg {
  flex: none; margin-top: 3px; color: var(--accent);
}
.pd-plan-features li span {
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
}
.pd-plan-features li span strong { color: var(--ink); font-weight: 700; }
.pd-plan-annual {
  font-size: 12.5px; color: var(--muted); padding-top: 20px;
  border-top: 1px solid var(--line); margin-bottom: 20px;
}
.pd-plan-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--ink); color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, gap .2s;
}
.pd-plan-cta:hover { gap: 12px; background: var(--ink); color: var(--paper); }
.pd-plan.is-popular .pd-plan-cta {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.pd-plan.is-popular .pd-plan-cta:hover { background: #000; }

.pd-pricing-notes {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line);
}
.pd-pricing-notes li {
  position: relative; padding-left: 16px;
  font-size: 12.5px; color: var(--muted);
}
.pd-pricing-notes li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* ---------- CTA (page-local; light, matches contact section) ---------- */
.cta-section {
  text-align: center; padding: 128px 0;
}
.cta-section h2 {
  font-weight: 900; font-size: clamp(40px, 7vw, 88px);
  letter-spacing: -0.05em; line-height: 0.95; margin-bottom: 32px;
  color: var(--ink);
}
.cta-section h2 .fade { color: var(--muted-2); }
.cta-section p {
  font-size: 15px; color: var(--ink-2);
  max-width: 560px; margin: 0 auto 48px; line-height: 1.7;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--paper);
  padding: 8px 8px 8px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .25s cubic-bezier(.2,.7,.2,1); will-change: transform;
}
.cta-primary .arrow {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: grid; place-items: center; transition: transform .3s;
}
.cta-primary:hover .arrow { transform: rotate(-45deg); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* pricing: 4 -> 2 columns on mid widths */
@media (max-width: 1100px) {
  .pd-plan-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pd-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .pd-problem-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-feature-grid { grid-template-columns: 1fr; }
  .pd-steps { grid-template-columns: 1fr; gap: 0; }
  .pd-step { padding: 28px 0; border-top: 1px solid var(--line); }

  .pd-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-highlight {
    grid-template-columns: 1fr; gap: 16px; align-items: start;
    padding: 32px 0;
  }
  .pd-highlight-stat { text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .pd-highlight-stat span { margin-top: 0; }
}

@media (max-width: 768px) {
  .pd-hero { padding: 120px 0 64px; }
  .pd-crumb { margin-bottom: 32px; }
  .pd-hero-text h1 { font-size: clamp(48px, 14vw, 80px); margin: 16px 0 22px; }
  .pd-tagline { max-width: 100%; }
  .pd-pills { margin-bottom: 32px; }
  .pd-actions { gap: 20px; }
  .pd-visual .mark { font-size: 30px; left: 24px; top: 24px; }
  .pd-visual .index { left: 24px; bottom: 24px; }

  .pd-problem, .pd-features, .pd-flow,
  .pd-highlights, .pd-caps, .pd-pricing { padding: 72px 0; }
  .pd-section-title { margin-bottom: 36px; }
  .pd-feature { padding: 32px; }

  .pd-cap-grid { grid-template-columns: 1fr; }
  .pd-cap-group { padding: 28px 26px; }
  .pd-plan-grid { grid-template-columns: 1fr; gap: 16px; }
  .pd-plan.is-popular { transform: none; }
  .pd-plan-for { min-height: 0; }
  .pd-pricing-note { margin-bottom: 40px; }
  .pd-pricing-notes { gap: 6px 0; flex-direction: column; }

  .cta-section { padding: 88px 0; }
  .cta-section h2 { font-size: clamp(32px, 9vw, 56px); margin-bottom: 20px; }
  .cta-section p { margin-bottom: 32px; }
  .cta-primary { padding: 7px 7px 7px 24px; font-size: 14px; gap: 10px; }
  .cta-primary .arrow { width: 36px; height: 36px; }
}
