:root {
  --pe-bg:     #feeee8;
  --pe-border: #f8c8b0;
  --pe-text:   #903018;
  --pe-mid:    #d05a30;
  --pe-dark:   #5a1c0c;
}

/* ---- HERO ---- */
.app-hero {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem 1.1rem;
}
.app-hero--peach {
  background: var(--pe-bg);
  border-bottom-color: var(--pe-border);
}
.app-hero__inner { max-width: 1100px; margin: 0 auto; }
.app-hero__title {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
  color: var(--pe-text); letter-spacing: -.02em;
  margin: 0 0 .5rem; line-height: 1.2;
}
.app-hero__desc {
  font-size: .9rem; color: var(--color-text-secondary);
  max-width: 660px; line-height: 1.6; margin: 0 0 .85rem;
}
.app-hero__chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.hero-chip {
  display: inline-flex; align-items: center;
  padding: .22rem .65rem; font-size: .72rem; font-weight: 700;
  background: var(--color-surface); border: 1.5px solid var(--pe-border);
  border-radius: var(--radius-full); color: var(--pe-text); white-space: nowrap;
}

/* ---- LAYOUT ---- */
.app-wrap {
  display: flex; gap: 1.5rem; align-items: flex-start;
  max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem;
}
.pane-in {
  width: 340px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.pane-out { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }

.card {
  background: var(--color-surface); border: 1px solid var(--pe-border);
  border-radius: var(--radius-xl); padding: 1rem 1.125rem;
}
.card-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--pe-text); margin: 0 0 .75rem;
}

.field { margin-bottom: .7rem; }
.field:last-child { margin-bottom: 0; }
label.lbl {
  display: block; font-size: .72rem; font-weight: 600;
  color: var(--color-text-muted); margin-bottom: .28rem;
}

select.sel, input.num-in {
  width: 100%; box-sizing: border-box; padding: .4rem .6rem; font-size: .8rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg); color: var(--color-text); transition: border-color .15s;
}
select.sel:focus, input.num-in:focus { outline: none; border-color: var(--pe-mid); }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pitch-row { display: flex; align-items: center; gap: .4rem; }
.pitch-row input { width: 100%; }
.pitch-row .slash { font-weight: 800; color: var(--pe-text); }
.in-suffix { font-size: .75rem; color: var(--color-text-muted); white-space: nowrap; }

/* segmented toggles */
.seg {
  display: flex; border: 1.5px solid var(--pe-border);
  border-radius: var(--radius-md); overflow: hidden;
}
.seg button {
  flex: 1; padding: .34rem .4rem; font-size: .72rem; font-weight: 600;
  background: none; border: none; cursor: pointer; color: var(--color-text-muted);
  transition: background .15s, color .15s;
}
.seg button.active { background: var(--pe-bg); color: var(--pe-text); }

/* ---- OUTPUT ---- */
.pitch-readout {
  display: flex; gap: 1rem; align-items: stretch;
  background: var(--color-surface); border: 1px solid var(--pe-border);
  border-radius: var(--radius-xl); padding: 1.25rem;
}
.pitch-readout svg { flex-shrink: 0; }
.readout-stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-content: center; }
.ro-cell { background: var(--pe-bg); border: 1px solid var(--pe-border); border-radius: var(--radius-md); padding: .55rem .7rem; }
.ro-lbl { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); margin-bottom: .15rem; }
.ro-val { font-size: 1.4rem; font-weight: 800; color: var(--pe-dark); line-height: 1; }

.result-card {
  background: var(--color-surface); border: 1px solid var(--pe-border);
  border-radius: var(--radius-xl); padding: 1rem 1.125rem;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.stat-cell { background: var(--pe-bg); border: 1px solid var(--pe-border); border-radius: var(--radius-md); padding: .55rem .65rem; }
.stat-lbl { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); margin-bottom: .2rem; }
.stat-val { font-size: 1.35rem; font-weight: 800; color: var(--pe-dark); line-height: 1.05; }
.stat-val.sm { font-size: 1rem; }
.stat-sub { font-size: .64rem; color: var(--color-text-muted); margin-top: .15rem; }

.kv { display: flex; flex-direction: column; gap: .25rem; }
.kv-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; padding: .3rem .1rem; border-bottom: 1px dashed var(--color-border);
}
.kv-row:last-child { border-bottom: none; }
.kv-lbl { color: var(--color-text-secondary); }
.kv-val { font-weight: 700; color: var(--pe-text); }

/* cost summary */
.cost-grid { display: flex; flex-direction: column; gap: .2rem; }
.cost-row {
  display: flex; justify-content: space-between; font-size: .82rem; padding: .25rem 0;
  border-bottom: 1px solid var(--color-border); color: var(--color-text-secondary);
}
.cost-row:last-child { border-bottom: none; }
.cost-total { font-weight: 800; color: var(--pe-text); font-size: .95rem; border-top: 1.5px solid var(--pe-border); padding-top: .35rem; }
.cost-total span:last-child { font-size: 1.05rem; }

/* ---- LEARN MORE ---- */
.learn-more{max-width:820px;margin:1.25rem auto 0;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-xl);padding:1.1rem 1.5rem}
.learn-more-title{font-size:1.1rem;font-weight:800;color:var(--pe-text);margin:0 0 .75rem}
.learn-more h3{font-size:1rem;font-weight:800;color:var(--color-text-primary);margin:1.1rem 0 .5rem}
.learn-more p{font-size:.88rem;line-height:1.65;color:var(--color-text-secondary);margin:0 0 .75rem}
.learn-more a{color:var(--pe-text)}
.learn-more .faq-item{margin-bottom:.75rem}
.learn-more .faq-q{font-size:.88rem;font-weight:700;color:var(--color-text-primary);margin:0 0 .25rem}
.learn-more-meta{font-size:.72rem;color:var(--color-text-muted);margin-top:1rem}

@media (max-width: 820px) {
  .app-wrap { flex-direction: column; }
  .pane-in { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pitch-readout { flex-direction: column; align-items: center; }
  .readout-stats { width: 100%; }
}
