:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9e0e8;
  --surface: #ffffff;
  --page: #f5f7fa;
  --teal: #007f7a;
  --teal-dark: #045f5b;
  --gold: #c27c1a;
  --green: #237a46;
  --red: #b54708;
  --shadow: 0 18px 60px rgba(23, 32, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(rgba(13, 31, 42, 0.66), rgba(13, 31, 42, 0.78)),
    url("https://images.unsplash.com/photo-1556740758-90de374c12ad?auto=format&fit=crop&w=1800&q=80") center/cover;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: #aee7df;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hero-metrics div,
.panel,
.price-grid article,
.note-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero-metrics div {
  min-height: 108px;
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.hero-metrics span,
.price-grid span,
.details span,
.confidence span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: 2.2rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: #fff;
  background: var(--teal);
  cursor: pointer;
}

button:hover {
  background: var(--teal-dark);
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 170px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 127, 122, 0.16);
  border-color: var(--teal);
}

.input-panel {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  gap: 14px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.output-panel {
  position: sticky;
  top: 20px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.price-grid article {
  min-height: 104px;
  padding: 16px;
}

.price-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.7rem;
  color: var(--green);
}

.confidence {
  margin: 18px 0;
}

.confidence > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf2;
}

.bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transition: width 180ms ease;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.details strong {
  display: block;
  margin-top: 5px;
  font-size: 1.06rem;
}

.note-band {
  margin-top: 16px;
  padding: 16px;
  background: #fbfcfe;
}

.note-band h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: #475467;
  line-height: 1.6;
}

.caution {
  border-color: rgba(181, 71, 8, 0.3);
  background: #fff8ef;
}

@media (max-width: 940px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .output-panel {
    position: static;
  }

  .four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero,
  .panel {
    padding: 18px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .two,
  .four,
  .price-grid,
  .details {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    display: grid;
  }
}

