:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f2e8;
  --muted: #b8b8b8;
  --gold: #fcbf49;
  --gold-2: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(252, 191, 73, 0.10), transparent 28rem),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.page {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 24px 0;
}

.accept-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header document"
    "intro document"
    "action document";
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 13, 13, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.header,
.intro,
.action-bar {
  padding: 18px clamp(18px, 4vw, 30px);
}

.header {
  grid-area: header;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.logo {
  width: min(180px, 52vw);
  height: auto;
  display: block;
}

.header span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.intro {
  grid-area: intro;
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 22px;
  padding-bottom: 22px;
}

.kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fffaf0;
  max-width: 760px;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-copy {
  max-width: 740px;
  margin: 0;
  color: #dedede;
  font-size: 0.98rem;
  line-height: 1.5;
}

.document-panel {
  grid-area: document;
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: #1f1f1f;
}

.document-sheet {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 4px;
  background: #f8f5ee;
  color: #171717;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.document-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  text-align: center;
}

.document-header span {
  display: block;
  margin-bottom: 10px;
  color: #8a650f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-header h2 {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.document-sheet p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.72;
}

.document-sheet a {
  color: #7a5300;
  font-weight: 700;
}

.document-footer {
  display: grid;
  gap: 6px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  text-align: right;
  font-size: 0.94rem;
}

.document-footer span {
  color: #555;
}

.action-bar {
  grid-area: action;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.action-copy {
  display: grid;
  gap: 5px;
}

.action-copy a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.action-copy a:hover {
  color: var(--gold);
}

.action-copy p {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  color: #17120a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}

button:hover {
  filter: brightness(1.04);
}

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

@media (max-width: 860px) {
  .page {
    width: min(100% - 18px, 960px);
    align-items: flex-start;
    padding: 9px 0;
  }

  .accept-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "intro"
      "document"
      "action";
  }

  .header,
  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header span {
    align-self: flex-start;
  }

  .document-panel {
    height: 46vh;
    max-height: none;
    padding: 10px;
    border-left: 0;
    border-block: 1px solid var(--line);
  }

  .action-bar {
    gap: 12px;
  }

  button {
    width: 100%;
  }
}
