/* ─── EcoTrace product page styles ─────────────────────────── */

/* Hero */
.et-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.et-hero-inner { display: flex; flex-direction: column; gap: 1.4rem; }

.et-product-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.et-product-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.et-product-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.et-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  width: fit-content;
}

.et-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.et-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
}

.et-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.et-free {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -0.5rem;
}

/* Fake editor */
.et-editor {
  background: #1e2a1e;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(45,106,79,0.18);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.et-editor-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: #161e16;
}

.et-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.et-dot.red    { background: #ff5f57; }
.et-dot.yellow { background: #febc2e; }
.et-dot.green  { background: #28c840; }

.et-filename {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-left: 0.4rem;
  flex: 1;
}

.et-grade {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: var(--sans);
}

.et-editor-body {
  padding: 1.2rem 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.et-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.8;
}
.et-line.muted { opacity: 0.4; }

.et-ln { color: rgba(255,255,255,0.2); min-width: 1.2rem; text-align: right; font-size: 0.75rem; }
.et-code { flex: 1; }
.et-tag  { color: #7ec8a4; }
.et-attr { color: #89d4f5; }
.et-str  { color: #f0c27f; }

.et-squiggle {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  cursor: default;
  white-space: nowrap;
}
.et-squiggle.warning { background: rgba(254,188,46,0.15); color: #febc2e; }
.et-squiggle.error   { background: rgba(255,95,87,0.15);  color: #ff5f57; }

.et-fix-hint {
  margin-top: 0.6rem;
  background: rgba(255,255,255,0.05);
  border-radius: 7px;
  padding: 0.5rem 0.8rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--sans);
}
.et-fix-hint kbd {
  background: rgba(255,255,255,0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  color: #fff;
}

/* Grade colors (shared) */
.grade-a { background: #d8f3dc; color: #1b4332; }
.grade-b { background: #d8eef3; color: #1a3a4a; }
.grade-c { background: #fef3c7; color: #78350f; }
.grade-d { background: #ffedd5; color: #7c2d12; }
.grade-f { background: #fee2e2; color: #7f1d1d; }

/* Grade strip */
.et-grades {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.et-grades h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ink);
  margin: 0.5rem 0 0.8rem;
}

.et-grades-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.et-grade-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.et-grade-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 80px;
  padding: 1rem 0;
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
}
.et-grade-pill span {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
}

/* Features */
.et-features {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.et-features h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ink);
  margin: 0.5rem 0 3rem;
}

.et-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.et-feature-card {
  background: #fff;
  border: 1px solid var(--green-pale);
  border-radius: 14px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.et-feature-card:hover {
  box-shadow: 0 8px 30px rgba(45,106,79,0.1);
  transform: translateY(-2px);
}

.et-feature-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
}
.et-feature-icon svg { width: 100%; height: 100%; }

.et-feature-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}

.et-feature-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.et-feature-card kbd {
  background: var(--green-pale);
  color: var(--green);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* CLI section */
.et-cli {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.et-cli-left { display: flex; flex-direction: column; gap: 1.2rem; }

.et-cli-left h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ink);
}

.et-cli-left p { font-size: 1rem; line-height: 1.7; color: var(--muted); }

.et-cli-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Terminal */
.et-terminal {
  background: #1e2a1e;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(45,106,79,0.15);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.et-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: #161e16;
}

.et-terminal-body {
  padding: 1.2rem 1.4rem 1.4rem;
  font-size: 0.82rem;
  line-height: 1.9;
}

.et-terminal-body p { margin: 0; }

.t-prompt { color: #7ec8a4; }
.t-cmd    { color: #89d4f5; }
.t-arg    { color: #f0c27f; }
.t-out    { color: rgba(255,255,255,0.6); padding-left: 1rem; }
.t-muted  { opacity: 0.45; }
.t-fail   { color: #ff5f57; }

.t-grade-a { color: #28c840; font-weight: 600; }
.t-grade-b { color: #89d4f5; font-weight: 600; }
.t-grade-c { color: #febc2e; font-weight: 600; }
.t-grade-f { color: #ff5f57; font-weight: 600; }

/* Bottom CTA */
.et-cta {
  text-align: center;
  padding: 6rem 3rem;
  background: var(--green);
  color: #d8f3dc;
}

.et-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 0.8rem;
}

.et-cta p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.et-cta .et-actions { justify-content: center; }

.et-cta .btn-primary {
  background: #fff;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.et-cta .btn-primary:hover { background: var(--green-pale); }

.et-cta .btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}
.et-cta .btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .et-hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .et-feature-grid { grid-template-columns: 1fr 1fr; }
  .et-cli { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .et-hero, .et-grades, .et-features, .et-cli { padding-left: 1.5rem; padding-right: 1.5rem; }
  .et-feature-grid { grid-template-columns: 1fr; }
  .et-grade-row { gap: 0.6rem; }
  .et-grade-pill { width: 64px; font-size: 1.4rem; }
}
