/* ══════════════════════════════════════════════════════════
   TOOL PAGE
═══════════════════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────── */
.tool-hero { padding: 100px 0 80px; }
.tool-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: 36px;
  font-variation-settings: 'opsz' 72;
}
.tool-hero h1 em { font-style: normal; font-weight: 600; color: var(--accent); }
.tool-hero .deck {
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 48px;
  font-weight: 300;
}
.tool-hero .deck strong { color: var(--ink); font-weight: 500; }
.tool-hero .hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── WORKFLOW STEPS ─────────────────────────── */
.workflow {
  padding: 120px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.workflow-steps {
  display: grid;
  gap: 0;
  margin-top: 64px;
}
.workflow-step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 60px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.workflow-step:last-child { border-bottom: 1px solid var(--line); }

.workflow-step-num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 72;
  font-style: italic;
}
.workflow-step-content h3 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.15;
  font-variation-settings: 'opsz' 72;
  margin-bottom: 14px;
}
.workflow-step-content h3 em { font-style: normal; font-weight: 600; color: var(--accent); }
.workflow-step-content p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.workflow-step-content p strong { color: var(--ink); font-weight: 500; }
.workflow-step-image {
  aspect-ratio: 4 / 3;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.workflow-step-image .img-slot { height: 100%; border: none; background: white; }
.workflow-step-image video,
.workflow-step-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* ─── CODE GENERATION ────────────────────────── */
.code-gen {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.code-gen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 56px;
}
.code-gen-text h2 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 72;
}
.code-gen-text h2 em { font-style: normal; font-weight: 600; color: var(--accent); }
.code-gen-text p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.code-gen-text p strong { color: var(--ink); font-weight: 500; }
.code-gen-platforms { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.platform-pill {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.platform-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.code-gen-image {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
}
.code-gen-image .img-slot {
  height: 100%;
  border: 1px dashed rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.6);
}
.code-gen-image video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* ─── FEATURE GRID ───────────────────────────── */
.features {
  padding: 120px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.feature {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  transition: all 0.2s;
}
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.feature-name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
  font-variation-settings: 'opsz' 72;
}
.feature-desc { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.feature-desc em { font-style: normal; font-weight: 600; color: var(--accent); }

/* ─── CUSTOMERS ──────────────────────────────── */
.customers {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.customers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.customer {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.customer-logo {
  height: 80px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
}
.customer-logo img {
  max-height: 100%;
  max-width: 280px;
  width: auto;
  display: block;
  object-fit: contain;
}
.customer-logo img.logo-large {
  max-height: 120px;
  max-width: 320px;
}

/* Typographic wordmarks — neutral placeholders until real logos are provided
   with the customer's permission. No brand-specific colors or stylings. */
.logo-wordmark {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  color: var(--ink);
}
.logo-wordmark .logo-accent {
  margin-left: 4px;
  font-weight: 300;
  color: var(--ink-mid);
  letter-spacing: 0;
}
.customer-quote {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
  font-variation-settings: 'opsz' 72;
  flex: 1;
}
.customer-quote::before {
  content: '"';
  color: var(--accent);
  font-weight: 600;
  margin-right: 4px;
}
.customer-author { display: flex; align-items: center; gap: 14px; }
.customer-meta { font-size: 14px; line-height: 1.4; }
.customer-meta strong { display: block; font-weight: 500; color: var(--ink); font-size: 15px; }
.customer-meta span { color: var(--ink-mid); }

/* ─── PRICING ────────────────────────────────── */
.pricing {
  padding: 120px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.pricing-grid-2-compact {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

/* Hero row — Start license, full width, prominent */
.pricing-hero {
  margin-top: 56px;
}
.plan-hero {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 48px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.plan-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.plan-hero .plan-step {
  font-size: 13px;
  letter-spacing: 0.08em;
}
.plan-hero .plan-name {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.05;
  font-variation-settings: 'opsz' 72;
}
.plan-hero .plan-tagline {
  font-size: 16px;
  color: var(--ink-mid);
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 36ch;
}
.plan-hero .plan-price {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 72;
}
.plan-hero .plan-cta {
  align-self: start;
}
.plan-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
}

/* Compact cards — Expand, Support — same visual language as hero, smaller scale */
.plan-compact {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 32px 32px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.plan-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.plan-compact .plan-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.3;
  font-variation-settings: 'opsz' 72;
  max-width: 30ch;
}
.plan-compact .plan-features {
  margin-bottom: 24px;
}
.plan-compact .plan-features li {
  font-size: 16px;
  padding: 8px 0 8px 24px;
}
.plan-compact .plan-features li::before {
  top: 8px;
}

/* Quiet CTA — text-button style for secondary plans */
.plan-cta-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 20px;
  font-size: 14px;
  align-self: start;
  text-align: left;
}
.plan-cta-quiet:hover {
  background: var(--ink);
  color: white;
}

.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.plan-step {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.plan.featured {
  border: 2px solid var(--accent);
  position: relative;
}
.plan.featured::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.plan-name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
  font-variation-settings: 'opsz' 72;
}
.plan-tagline { font-size: 15px; color: var(--ink-mid); margin-bottom: 32px; line-height: 1.5; }
.plan-price {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
  font-variation-settings: 'opsz' 72;
}
.plan-price-note { font-size: 14px; color: var(--ink-mid); margin-bottom: 32px; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex: 1;
}
.plan-features li {
  font-size: 16px;
  color: var(--ink-soft);
  padding: 10px 0 10px 28px;
  position: relative;
  line-height: 1.5;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-weight: 600;
}
.plan-features li.muted { color: var(--ink-mid); }
.plan-features li.muted::before { content: '–'; color: var(--ink-light); }

.plan-cta {
  background: var(--ink);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: background 0.15s;
}
.plan-cta:hover { background: var(--accent); }
.plan.featured .plan-cta { background: var(--accent); }
.plan.featured .plan-cta:hover { background: var(--accent-deep); }

.placeholder-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ─── COMPANY ────────────────────────────────── */
.company {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.company-block { max-width: 720px; }
.company-text {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-variation-settings: 'opsz' 72;
}
.company-text strong { color: var(--ink); font-weight: 500; }
.company-text + .company-text { margin-top: 20px; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .workflow-step { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .workflow-step-num { font-size: 36px; }
  .code-gen-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .customers-grid { grid-template-columns: 1fr; gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid-3 { grid-template-columns: 1fr; }
  .pricing-grid-2-compact { grid-template-columns: 1fr; }
  .plan-hero {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 32px;
  }
  .plan-hero .plan-name { font-size: 32px; }
  .plan-hero .plan-price { font-size: 44px; }
  .plan-features-grid { grid-template-columns: 1fr; }
  .workflow, .code-gen, .features, .customers, .pricing, .company { padding: 80px 0; }
}
