:root {
  color-scheme: dark;
  --background: #171719;
  --surface: #212124;
  --surface-raised: #29292d;
  --text: #f3f0e9;
  --muted: #aaa7a0;
  --accent: #d3a772;
  --accent-bright: #e5bf91;
  --line: #38383c;
  --danger: #e3a09a;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 18% 30%, rgb(120 86 55 / 12%), transparent 34rem),
    var(--background);
  color: var(--text);
}

a { color: var(--accent-bright); }

.site-header, main, footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-bright);
  font-family: Georgia, serif;
  font-size: 18px;
}

.header-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.header-link:hover, a:hover { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: center;
  gap: clamp(42px, 8vw, 112px);
  padding: 82px 0 96px;
}

.hero-copy { padding-bottom: 40px; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.hero-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgb(211 167 114 / 60%);
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 65px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.08;
}

h1 em {
  color: var(--accent-bright);
  font-family: Georgia, serif;
  font-weight: 500;
}

.hero-description {
  max-width: 430px;
  color: #c1beb8;
  font-size: 15px;
  line-height: 1.8;
}

.principle-list {
  display: grid;
  gap: 14px;
  margin-top: 43px;
  color: #d7d3cc;
  font-size: 13px;
}

.principle-list b {
  margin-right: 12px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .08em;
}

.form-card {
  padding: 34px;
  border: 1px solid #3a3938;
  border-radius: 12px;
  background: linear-gradient(145deg, #242426, #1d1d1f 75%);
  box-shadow: 0 26px 90px rgb(0 0 0 / 22%);
}

.form-card .eyebrow { margin-bottom: 10px; }

.form-card h2 {
  margin-bottom: 9px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.card-intro {
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.mode-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #1b1b1d;
}

.mode-switch[hidden] { display: none; }

.mode-button {
  flex: 1;
  padding: 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.mode-button.active {
  background: var(--surface-raised);
  color: var(--text);
}

.field-label {
  display: block;
  margin: 16px 0 7px;
  color: #e2dfd9;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

input[type="email"], input[type="password"], select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #414145;
  border-radius: 5px;
  outline: none;
  background: #19191b;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(211 167 114 / 12%);
}

.field-hint {
  margin: 6px 0 0;
  color: #8e8b86;
  font-size: 10px;
  line-height: 1.6;
}

.privacy-hint {
  padding: 10px 12px;
  border-left: 2px solid #9c7951;
  background: rgb(211 167 114 / 5%);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 9px;
  color: var(--accent-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.divider small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 8px;
}

.agreements {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.check-row {
  display: grid;
  grid-template-columns: 15px 1fr;
  align-items: start;
  gap: 9px;
  color: #c1beb8;
  font-size: 10px;
  line-height: 1.65;
}

.check-row input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.primary-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px;
  margin-top: 22px;
  border: 0;
  border-radius: 5px;
  background: var(--accent);
  color: #211b15;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.primary-button:hover { background: var(--accent-bright); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }

.form-message {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-footnote {
  margin: 9px 0 0;
  color: #85827e;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.privacy-footnote a { color: #aaa39a; }

.account-status { padding-top: 16px; }
.account-status[hidden] { display: none; }
.account-status .eyebrow { margin-bottom: 11px; }
.account-status h3 { margin-bottom: 8px; font-size: 22px; font-weight: 500; }
.account-status > p:not(.eyebrow):not(.status-email) { color: #c1beb8; font-size: 12px; line-height: 1.7; }

.checkout-note {
  display: grid;
  gap: 5px;
  padding: 13px;
  margin: 18px 0;
  border: 1px solid #62503c;
  border-radius: 5px;
  background: rgb(211 167 114 / 6%);
  color: var(--accent-bright);
  font-size: 11px;
  line-height: 1.6;
}

.checkout-note span { color: #c1beb8; }
.status-email { color: var(--muted); font-size: 11px; }

.payment-section {
  padding: 16px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(255 255 255 / 2%);
}

.payment-section[hidden] { display: none; }
.payment-section h4 { margin: 0 0 8px; font-size: 13px; }
.payment-instructions { color: #c1beb8; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.payment-section input[type="file"] { width: 100%; color: var(--muted); font: inherit; font-size: 10px; }
.receipt-confirm { margin-top: 15px; }

.text-button {
  display: block;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--accent-bright);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.text-button.danger { color: var(--danger); }

.admin-main { max-width: 760px; padding: 56px 0; }
.admin-card h1.admin-title { margin: 0 0 12px; font-size: 32px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 14px; }
.admin-toolbar h2 { margin: 0; font-size: 17px; font-weight: 500; }
.receipt-card { padding: 16px 0; border-top: 1px solid var(--line); }
.receipt-details > strong { color: var(--text); font-size: 12px; }
.receipt-details > p { margin: 6px 0 12px; color: var(--muted); font-size: 10px; }
.receipt-preview { display: block; width: min(100%, 520px); max-height: 440px; object-fit: contain; object-position: left center; border: 1px solid var(--line); border-radius: 4px; background: #19191b; }
.receipt-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.receipt-actions .primary-button { width: auto; margin: 0; }
.receipt-actions .text-button { padding: 12px 0; }

.lower-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.lower-section .eyebrow { margin-bottom: 11px; }
.lower-section h2 { margin-bottom: 0; font-size: 22px; font-weight: 500; }
.lower-section > p, .privacy-notice p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.privacy-notice {
  padding: 22px 24px;
  margin: 16px 0 50px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(255 255 255 / 2%);
}

.privacy-notice h2 { margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.privacy-notice p + p { margin-top: 10px; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 28px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: #8c8984;
  font-size: 10px;
}

footer span:first-child { color: #d1ccc4; font-weight: 600; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 12px; padding: 55px 0 64px; }
  .hero-copy { padding-bottom: 10px; }
  .hero-description { max-width: 520px; }
  .principle-list { grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 11px; }
  .principle-list b { display: block; margin: 0 0 5px; }
  .form-card { width: min(100%, 560px); }
}

@media (max-width: 540px) {
  .site-header, main, footer { width: min(100% - 32px, 1120px); }
  .site-header { height: 68px; }
  .hero { padding-top: 43px; }
  h1 { font-size: 42px; }
  .principle-list { grid-template-columns: 1fr; gap: 11px; }
  .principle-list b { display: inline; margin: 0 8px 0 0; }
  .form-card { padding: 24px 20px; }
  .lower-section { grid-template-columns: 1fr; gap: 17px; }
  footer { gap: 15px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
