@font-face {
  font-family: Onest;
  src: url('/assets/onest.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #171226;
  --surface: #241c33;
  --field: #30263f;
  --text: #fff5e6;
  --muted: #c4b6d0;
  --line: #554461;
  --accent: #f5b765;
  font: 400 15px/1.5 Onest, sans-serif;
  color: var(--text);
  background: var(--page);
}

* { box-sizing: border-box; }
body { margin: 0; padding: 48px 24px 24px; min-height: 100svh; }
::selection { color: var(--page); background: var(--accent); }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; text-wrap: balance; }
p { color: var(--muted); }

.checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 864px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid #3f304e;
  border-radius: 24px;
  box-shadow: 0 24px 64px -24px #06020db3;
}
.course { padding: 20px 0 24px 20px; min-width: 0; }
.cover { display: block; width: 100%; height: auto; border-radius: 14px; }
.course-details { padding: 24px 16px 0 4px; }
h2 { font-size: 22px; line-height: 1.35; font-weight: 550; letter-spacing: -.02em; text-wrap: balance; }
.included { margin-top: 20px; color: #e1d4e8; line-height: 1.85; }
.included span { display: block; }
.platform-note { max-width: 32ch; margin-top: 20px; font-size: 12px; line-height: 1.5; }
.purchase { padding: 32px; min-width: 0; }
.intro { margin-top: 8px; font-size: 13px; }
.method-group { margin-top: 24px; }
.field-label, label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: #e1d4e8; }
.methods { display: flex; gap: 8px; }
.methods a {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #e1d4e8;
  font-weight: 550;
  text-decoration: none;
}
.methods a:hover { background: #382b48; border-color: #897496; }
.methods a[aria-current] { background: #f5b7651a; border-color: var(--accent); color: var(--accent); }
.method-note { margin-top: 8px; font-size: 12px; line-height: 1.5; }
form { display: grid; gap: 16px; margin-top: 20px; }
input, select, button { font: inherit; width: 100%; min-width: 0; min-height: 48px; border-radius: 10px; }
input, select { padding: 10px 12px; color: var(--text); background: var(--field); border: 1px solid var(--line); caret-color: var(--accent); }
input:hover, select:hover { border-color: #897496; }
input::placeholder { color: #bca9c9; opacity: 1; }
select { cursor: pointer; font-variant-numeric: tabular-nums; }
button, a.action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #251a1c;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button { margin-top: 4px; padding: 12px; }
button:hover, a.action:hover { background: #ffca84; }
button:active, a.action:active { background: #eaa752; }
button:disabled { opacity: .6; cursor: wait; }
.return-note { margin-top: 12px; font-size: 12px; line-height: 1.55; }
footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #3f304e;
  margin: 0 24px;
  padding: 8px 0;
}
footer a { display: flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
.message { max-width: 520px; margin: 4vh auto; padding: 28px; background: var(--surface); border: 1px solid #3f304e; border-radius: 20px; }
.message p { margin-top: 16px; }
.message .methods { margin-top: 20px; }
.message a.action { min-height: 48px; padding: 12px; margin: 20px 0; border-radius: 10px; }
.message small { color: var(--muted); font-size: 13px; }

@media (max-width: 700px) {
  body { padding: 16px 12px; }
  .checkout { max-width: 420px; grid-template-columns: 1fr; border-radius: 20px; }
  .course { padding: 12px 12px 0; }
  .cover { border-radius: 12px; }
  .course-details { padding: 12px 8px 0; }
  .course h2 { display: none; }
  .included { margin: 0; font-size: 12px; line-height: 1.6; }
  .included span { display: inline; }
  .included span + span::before { content: ' · '; }
  .platform-note { max-width: none; margin-top: 4px; font-size: 12px; }
  .purchase { padding: 20px; }
  h1 { font-size: 25px; }
  .intro { margin-top: 6px; }
  .method-group { margin-top: 20px; }
  form { margin-top: 16px; gap: 14px; }
  input, select { font-size: 16px; }
  footer { margin: 0 20px; padding: 4px 0; }
  .message { margin: 16px auto; padding: 24px; }
}
