:root {
  --bg-top: #f6f1e7;
  --bg-bottom: #d6e7ef;
  --card: rgba(255, 252, 246, 0.88);
  --panel: rgba(255, 255, 255, 0.56);
  --line: rgba(49, 61, 75, 0.14);
  --text: #1f2933;
  --muted: #52606d;
  --accent: #bd5d38;
  --accent-dark: #934121;
  --accent-soft: rgba(189, 93, 56, 0.14);
  --result-soft: rgba(245, 250, 252, 0.78);
  --shadow: 0 24px 64px rgba(31, 41, 51, 0.14);
  --radius: 28px;
  --sans: "Averta", "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(189, 93, 56, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(56, 122, 141, 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
}

body::before {
  top: -100px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: rgba(189, 93, 56, 0.18);
}

body::after {
  bottom: -80px;
  left: -20px;
  width: 240px;
  height: 240px;
  background: rgba(56, 122, 141, 0.15);
}

button,
input {
  font: inherit;
}

.page {
  padding: 16px;
}

.page-shell {
  width: min(100%, 1700px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.card {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.brand-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.edge-notes {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
}

.edge-notes-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-list {
  display: grid;
  gap: 8px;
}

.note-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.note-item strong {
  font-size: 0.84rem;
}

.note-item p {
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.84rem;
}

.eyebrow,
.hint,
.intro,
.panel-head p,
.field span,
.result-row span,
.result-row small {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h2 {
  font-size: 1.22rem;
  line-height: 1.1;
}

h3 {
  font-size: 0.96rem;
}

.intro {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 560px;
}

code {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.08);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-size: 0.84em;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.panel-head {
  display: grid;
  gap: 6px;
}

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

.button-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.88rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

input:focus {
  outline: 2px solid transparent;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

button {
  min-height: 50px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fffaf2;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
  box-shadow: 0 16px 30px rgba(147, 65, 33, 0.24);
}

button:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.secondary-button {
  min-width: 170px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

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

.result-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(56, 122, 141, 0.18);
  border-radius: 20px;
  background: var(--result-soft);
}

.result-block h3 {
  line-height: 1.2;
}

.result-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 2px;
}

.result-row--stacked {
  grid-template-columns: 1fr;
  row-gap: 6px;
}

.result-row span {
  line-height: 1.25;
  font-size: 0.88rem;
}

.result-row strong,
.result-row small {
  justify-self: end;
  text-align: right;
}

.result-row strong {
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
}

.result-row--stacked strong,
.result-row--stacked small {
  justify-self: start;
  text-align: left;
}

.result-row--stacked strong {
  white-space: normal;
}

.result-copy {
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--muted);
}

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

.hint {
  font-size: 0.84rem;
  line-height: 1.35;
}

.panel-head p {
  font-size: 0.86rem;
  line-height: 1.35;
}

.hidden {
  display: none;
}

@media (max-width: 920px) {
  .page-shell,
  .workspace-grid,
  .result {
    grid-template-columns: 1fr;
  }

  .edge-notes {
    position: static;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 24px;
    border-radius: 22px;
  }

  .brand-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .panel {
    padding: 18px;
  }

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

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

  .result-row strong,
  .result-row small {
    justify-self: start;
    text-align: left;
    white-space: normal;
  }
}
