:root {
  color: #292721;
  background: #f5f0e8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.card {
  width: min(100%, 720px);
  background: #fffdf9;
  border: 1px solid #e4ded4;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(52, 45, 33, 0.08);
  padding: clamp(24px, 5vw, 48px);
}

.brand { color: #806044; font-weight: 750; text-decoration: none; }
.eyebrow { margin: 32px 0 8px; color: #806044; font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.08; }
h2 { margin-top: 0; font-size: 1.25rem; }
p { color: #615d55; line-height: 1.65; }

.stack { display: grid; gap: 12px; margin-top: 28px; }
label { font-weight: 700; }
input {
  width: 100%;
  border: 1px solid #cbc3b7;
  border-radius: 10px;
  background: #fff;
  padding: 13px 14px;
  color: inherit;
  font: inherit;
}
input:focus { outline: 3px solid rgba(128, 96, 68, .18); border-color: #806044; }

button, .button {
  display: inline-block;
  width: fit-content;
  border: 0;
  border-radius: 10px;
  background: #2f4939;
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: #22372b; }
.tool-grid { display: grid; gap: 16px; margin-top: 28px; }
.tool-card { border: 1px solid #e4ded4; border-radius: 14px; padding: 22px; }
.alert { margin: 20px 0; border-radius: 10px; background: #f8e8e3; color: #812f25; padding: 13px 15px; line-height: 1.5; }
.demo-access-code {
  margin-top: 24px;
  border: 1px solid #d8cdbf;
  border-radius: 12px;
  background: #f7f2ea;
  padding: 18px 20px;
}
.demo-access-code__label { display: block; color: #62503e; font-size: .85rem; font-weight: 750; }
.demo-access-code__value { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.demo-access-code code { color: #2f4939; font-size: 1.25rem; font-weight: 750; letter-spacing: .04em; }
.copy-code-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #c9bcad;
  border-radius: 8px;
  background: #fffdf9;
  color: #62503e;
  padding: 0;
}
.copy-code-button:hover { background: #eee5d9; color: #2f4939; }
.copy-code-button:focus-visible { outline: 3px solid rgba(128, 96, 68, .22); outline-offset: 2px; }
.copy-code-button.is-copied { border-color: #78917f; background: #e8f0e9; color: #2f4939; }
.copy-code-status { display: block; min-height: 1.25em; margin-top: 4px; color: #2f4939; font-size: .8rem; font-weight: 700; }
.demo-access-code p { margin: 8px 0 0; font-size: .92rem; }
.demo-instructions {
  margin-top: 28px;
  border: 1px solid #d8cdbf;
  border-radius: 14px;
  background: #f7f2ea;
  padding: 22px;
}
.demo-instructions h2 { margin-bottom: 14px; }
.demo-steps { display: grid; gap: 10px; margin: 0 0 20px; padding-left: 22px; color: #615d55; line-height: 1.5; }
.demo-steps strong { color: #292721; }
.sample-download-button {
  display: inline-block;
  border: 1px solid #2f4939;
  border-radius: 10px;
  background: transparent;
  color: #2f4939;
  padding: 11px 17px;
  font-weight: 750;
  text-decoration: none;
}
.sample-download-button:hover { background: #e8eee9; }
.demo-result {
  margin-top: 28px;
  border-top: 1px solid #e4ded4;
  padding-top: 24px;
}
.demo-result h2 { margin: 22px 0 12px; }
.hint { margin: -4px 0 8px; font-size: .88rem; }
.back-link, .secondary-link { color: #62503e; font-weight: 650; }
.secondary-link { display: block; margin-top: 20px; }

@media (max-width: 520px) {
  .page-shell { align-items: start; padding: 12px; }
  .card { border-radius: 14px; padding: 24px 20px; }
  button, .button { width: 100%; text-align: center; }
  .copy-code-button { width: 34px; }
  .sample-download-button { width: 100%; text-align: center; }
}
