:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5d6872;
  --line: #d8dee5;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --accent: #d97706;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.1), transparent 36%),
    linear-gradient(240deg, rgba(217, 119, 6, 0.12), transparent 34%),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: stretch;
}

.intro {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  padding: 36px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.subcopy {
  max-width: 620px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.pay-link,
button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.pay-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
}

.pay-link.is-hidden {
  display: none;
}

.panel,
.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  align-self: center;
}

label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

input:focus,
select:focus,
button:focus,
.pay-link:focus {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

button:hover,
.pay-link:hover {
  background: var(--brand-strong);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.status.error {
  color: #b42318;
}

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.result-card {
  padding: 20px;
}

.card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.04rem;
  line-height: 1.35;
}

h3 {
  margin: 18px 0 8px;
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.description,
li,
.keywords {
  color: var(--muted);
  line-height: 1.62;
}

ul {
  margin: 0;
  padding-left: 18px;
}

.copy-button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  background: #172026;
  font-size: 0.88rem;
}

.copy-button:hover {
  background: #2d3a44;
}

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

  .intro {
    min-height: auto;
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding: 24px 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }

  .card-header {
    flex-direction: column;
  }
}
