.po-product-tool {
  --tool-ink: #15231d;
  --tool-paper: #fffef9;
  --tool-accent: #cdea81;
  color: var(--tool-ink);
}

/* Terminal commands must not inherit the global inline-code background. */
.po-pow-install__command {
  display: block;
  padding: 0;
  background: transparent;
  color: #6ee7b7;
  font-size: 0.875rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

.po-scanner-page--code {
  --tool-accent: #8ea2ff;
}

.po-scanner-page--site {
  --tool-accent: #efc653;
}

.po-product-tool .glass-solid,
.po-product-tool .glass-card,
.po-product-tool .content-surface {
  border: 1px solid rgba(21, 35, 29, 0.18);
  border-radius: 0.75rem;
  background: var(--tool-paper);
  box-shadow: 0 24px 52px -48px rgba(21, 35, 29, 0.95);
  backdrop-filter: none;
}

.po-product-tool .tilt {
  transform: none;
}

.po-product-tool .po-product-tool-hero {
  min-height: clamp(32rem, 62vw, 43rem);
  border: 0;
  border-radius: 0.9rem;
  background:
    linear-gradient(
      118deg,
      color-mix(in srgb, var(--tool-accent) 14%, transparent),
      transparent 45%
    ),
    var(--tool-ink);
  box-shadow: 0 32px 64px -48px rgba(21, 35, 29, 0.95);
}

.po-scanner-hero {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  text-align: left;
}

.po-scanner-hero .eyebrow {
  border-color: color-mix(in srgb, var(--tool-accent) 55%, transparent);
  border-radius: 0.4rem;
  color: var(--tool-accent);
  background: color-mix(in srgb, var(--tool-accent) 10%, transparent);
}

.po-scanner-hero h1 {
  max-width: 12ch;
  color: #fffef9;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-align: left;
}

.po-scanner-hero > p {
  max-width: 42rem;
  margin-inline: 0;
  color: rgba(255, 254, 249, 0.66);
  text-align: left;
}

.po-scanner-hero > div {
  width: 100%;
  max-width: 46rem;
  margin-inline: 0;
}

.po-scanner-hero form > div:first-child {
  padding: 0.4rem;
  border: 1px solid rgba(255, 254, 249, 0.2);
  border-radius: 0.65rem;
  background: rgba(255, 254, 249, 0.08);
}

.po-scanner-hero input {
  height: 3.4rem;
  border: 0;
  border-radius: 0.4rem;
  color: var(--tool-ink);
  background: #fffef9;
}

.po-scanner-hero button {
  height: 3.4rem;
  border-radius: 0.4rem;
  color: var(--tool-ink);
  background: var(--tool-accent);
  box-shadow: none;
}

.po-scanner-hero form > p:last-child {
  color: rgba(255, 254, 249, 0.52);
}

.po-scanner-hero > div:last-child {
  justify-content: flex-start;
  max-width: none;
  color: rgba(255, 254, 249, 0.67);
}

.po-scanner-hero > div:last-child .text-muted-foreground {
  color: inherit;
}

.po-scanner-hero > div:last-child svg {
  color: var(--tool-accent);
}

.po-product-tool .po-pow-hero {
  --tool-accent: #cdea81;
  display: flex;
  align-items: center;
  background: linear-gradient(118deg, rgba(205, 234, 129, 0.12), transparent 48%), var(--tool-ink);
}

.po-pow-hero > .absolute {
  display: none;
}

.po-pow-hero h1 {
  color: #fffef9;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.po-pow-hero h1 span {
  color: var(--tool-accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.po-pow-hero button {
  border-radius: 0.45rem;
  color: var(--tool-ink);
  background: var(--tool-accent);
  box-shadow: none;
}

.po-pow-foundation__figure {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr);
  overflow: hidden;
  border: 1px solid var(--tool-ink);
  border-radius: 0.7rem;
  background: var(--tool-ink);
  box-shadow: 0 28px 60px -48px rgba(21, 35, 29, 0.9);
}

.po-pow-foundation__visual {
  position: relative;
  min-width: 0;
  background: #d9eda3;
}

.po-pow-foundation__label {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(21, 35, 29, 0.3);
  border-radius: 0.3rem;
  color: var(--tool-ink);
  background: rgba(255, 254, 249, 0.9);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.po-pow-foundation__image {
  display: block;
  width: 100%;
  height: auto;
}

.po-pow-foundation__caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: rgba(255, 254, 249, 0.72);
}

.po-pow-foundation__caption h3 {
  margin: 0 0 1rem;
  color: #fffef9;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.po-pow-foundation__caption > p:not(.po-pow-foundation__eyebrow) {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.po-pow-foundation__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--tool-accent);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.po-pow-foundation__contrast {
  display: grid;
  gap: 0;
  margin: 1.6rem 0;
  border-block: 1px solid rgba(255, 254, 249, 0.16);
}

.po-pow-foundation__contrast div {
  padding-block: 1rem;
}

.po-pow-foundation__contrast div + div {
  border-top: 1px solid rgba(255, 254, 249, 0.16);
}

.po-pow-foundation__contrast dt {
  margin-bottom: 0.35rem;
  color: var(--tool-accent);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.po-pow-foundation__contrast dd {
  margin: 0;
  color: rgba(255, 254, 249, 0.68);
  font-size: 0.84rem;
  line-height: 1.5;
}

.po-pow-foundation__caption > strong {
  color: #fffef9;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.po-product-tool main section {
  border-color: rgba(21, 35, 29, 0.16);
}

.po-product-tool main section:not(.bg-slate-950) h2 {
  color: var(--tool-ink);
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.po-product-tool main section .eyebrow {
  border-radius: 0.4rem;
}

.po-product-tool main section.bg-muted\/30 {
  background: #e6ebdf;
}

.po-product-tool main section.bg-slate-950 {
  background: var(--tool-ink);
}

.po-product-tool main section .glass-card,
.po-product-tool main section .glass-solid {
  border-radius: 0.65rem;
}

.po-product-tool main section [class*='rounded-xl'],
.po-product-tool main section [class*='rounded-2xl'],
.po-product-tool main section [class*='rounded-glass'] {
  border-radius: 0.55rem;
}

.po-tool-result-page main {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.po-tool-result-page .content-surface {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.po-tool-result-page .content-surface::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 0.35rem;
  background: linear-gradient(90deg, #5370ff 0 58%, #cdea81 58%);
}

.po-tool-result-page .content-surface h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
}

@media (max-width: 640px) {
  .po-product-tool-hero {
    min-height: 35rem;
    padding: 1.4rem;
  }

  .po-scanner-hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.7rem);
  }

  .po-scanner-hero form > div:first-child {
    padding: 0;
    border: 0;
    background: none;
  }

  .po-scanner-hero button,
  .po-scanner-hero input {
    width: 100%;
  }

  .po-scanner-hero > div:last-child {
    gap: 0.55rem 1rem;
  }

  .po-pow-hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }

  .po-pow-foundation__figure {
    grid-template-columns: minmax(0, 1fr);
  }

  .po-pow-foundation__caption {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .po-product-tool .tilt {
    transition: none;
  }
}
