:root {
  color-scheme: light;
  --ink: #21183e;
  --muted: #716987;
  --purple: #6d35d4;
  --pink: #e4488c;
  --cream: #fffdf6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 9% 12%, #f5dcff 0, transparent 31rem),
    radial-gradient(ellipse at 92% 18%, #d7f6f1 0, transparent 27rem),
    #f7f5fc;
  font-family: "Segoe UI", Arial, sans-serif;
}

.site-header, .site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { min-height: 82px; }
.brand {
  color: var(--ink);
  font: 700 13px "Segoe UI", Arial, sans-serif;
  letter-spacing: 1.4px;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-radius: 10px;
  font-size: 19px;
}
.test-badge {
  padding: 8px 12px;
  color: #155e52;
  background: #d4f5ea;
  border: 1px solid #a9e8d7;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.hero {
  min-height: 540px;
  padding: 55px 0 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
.hero h1, .result-page h1 {
  margin-bottom: 20px;
  font: 700 clamp(42px, 6vw, 68px)/1.04 "Segoe UI", Arial, sans-serif;
  letter-spacing: -3.2px;
}
.hero h1 span {
  color: var(--purple);
  background: linear-gradient(90deg, #7136d8, #e4488c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro {
  max-width: 550px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.honesty-note {
  max-width: 560px;
  margin-top: 27px;
  padding: 16px;
  display: flex;
  gap: 13px;
  background: #fff8df;
  border: 1px solid #f4dda1;
  border-radius: 14px;
}
.note-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #744b00;
  background: #ffd879;
  border-radius: 50%;
  font-weight: 700;
}
.honesty-note p { margin: 0; color: #725d2c; font-size: 13px; line-height: 1.6; }

.sample-card {
  position: relative;
  min-height: 380px;
  padding: 38px 30px 26px;
  overflow: hidden;
  color: #162654;
  background:
    radial-gradient(ellipse at 100% 0, #fbecc4 0, transparent 45%),
    linear-gradient(145deg, #fffdf6, #fff7e3);
  border: 1px solid #e6d3a3;
  border-radius: 22px;
  box-shadow: 0 25px 70px #16265428, inset 0 0 0 7px #fffbef, inset 0 0 0 10px #162654,
    inset 0 0 0 13px #fffbef, inset 0 0 0 15px #c9982a;
  text-align: center;
  transform: rotate(2deg);
}
.sample-kicker { color: #a8780f; font-size: 9px; font-weight: 700; letter-spacing: 2px; line-height: 1.6; }
.sample-card h2 { margin: 16px 0 6px; font: 700 37px/1.05 Georgia, "Times New Roman", serif; color: #162654; }
.sample-rule { margin: 10px auto; color: #c9982a; font-size: 11px; letter-spacing: 5px; }
.sample-award { margin: 10px 0 2px; color: #5d6788; font-size: 12px; }
.sample-name { margin-bottom: 8px; color: #b01e52; font: 700 24px Georgia, "Times New Roman", serif; }
.sample-description { color: #3b466b; font-size: 13px; line-height: 1.6; }
.sample-footer { margin-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sample-signature { flex: 1 1 120px; min-width: 0; display: grid; justify-items: start; text-align: left; }
.signature-mark { padding: 0 6px 1px; font: italic 700 25px Georgia, "Times New Roman", serif; color: #162654; }
.signature-title {
  width: 100%;
  max-width: 170px;
  padding-top: 4px;
  color: #5d6788;
  border-top: 1.5px solid #162654;
  font-size: 9px;
  font-weight: 700;
}
.seal {
  flex: none;
  width: 82px;
  height: 82px;
  margin: 0 6px 6px 0;
  display: grid;
  place-content: center;
  color: #162654;
  background: radial-gradient(circle, #f6d77a 0%, #d9a83a 64%, #a87612 100%);
  border: 3px dotted #8a5f0c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e8c25e, 0 6px 16px #8a5f0c55;
  line-height: 1.1;
  transform: rotate(-8deg);
}
.seal small { font-size: 6px; font-weight: 800; letter-spacing: 1px; }
.seal strong { font: 700 21px Georgia, "Times New Roman", serif; }
.sample-disclaimer { margin: 16px 0 0; color: #801438; font-size: 8px; font-weight: 700; letter-spacing: 1px; }

.checkout-section {
  width: min(650px, 100%);
  margin: 14px auto 100px;
  padding: 46px;
  background: #fff;
  border: 1px solid #ebe5f4;
  border-radius: 26px;
  box-shadow: 0 22px 65px #38215b12;
}
.section-heading { margin-bottom: 25px; text-align: center; }
.section-heading h2 { margin-bottom: 10px; font: 700 34px "Segoe UI", Arial, sans-serif; }
.section-heading > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.6; }
.payment-card { display: grid; gap: 10px; }
.payment-card label { margin-top: 8px; font-size: 12px; font-weight: 700; }
.payment-card input, .payment-card select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfaff;
  border: 1px solid #ddd6e9;
  border-radius: 11px;
  font: 15px "Segoe UI", Arial, sans-serif;
  outline: none;
}
.payment-card input:focus, .payment-card select:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px #8b5cf622; }
.field-help { margin: -4px 0 3px; color: #817991; font-size: 11px; line-height: 1.5; }
.amount-row { display: grid; grid-template-columns: 1fr 140px; gap: 12px; }
.amount-field, .currency-field { display: grid; gap: 10px; }
.amount-input { position: relative; }
.amount-input > span { position: absolute; top: 13px; left: 14px; color: #75668d; font-weight: 600; }
.amount-input input { padding-left: 34px; }
.pay-button {
  min-height: 54px;
  margin-top: 10px;
  padding: 0 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: linear-gradient(100deg, #7136d8, #bd3fa6 55%, #e4488c);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 9px 22px #9748c133;
  cursor: pointer;
  font: 700 15px "Segoe UI", Arial, sans-serif;
}
.pay-button:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.pay-button:disabled { cursor: not-allowed; filter: grayscale(.5); opacity: .6; }
.secure-note { margin: 5px 0 0; color: #61796c; font-size: 11px; text-align: center; }
.legal-copy { margin: 5px 0 0; color: #8b8495; font-size: 10px; line-height: 1.6; text-align: center; }
.checkout-agreement {
  min-width: 0;
  margin: 14px 0 0;
  padding: 18px;
  color: #403454;
  background: linear-gradient(135deg, #f5efff, #fff4f8);
  border: 1px solid #d6c3ef;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
}
.checkout-agreement legend { padding: 0 6px; color: #55229e; font-size: 14px; font-weight: 700; }
.checkout-agreement p { margin-bottom: 12px; }
.refund-summary { color: #801438; }
.agreement-links { display: grid; gap: 7px; }
.agreement-links a, .legal-card a { color: #6130b5; text-underline-offset: 3px; }
.payment-card .agreement-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.payment-card .agreement-option input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--purple);
}
.agreement-option span { min-width: 0; }
.checkout-agreement .agreement-meta { margin: 12px 0 0; color: #655574; font-size: 11px; }
.legal-page { max-width: 900px; margin: 30px auto 70px; }
.legal-card {
  padding: clamp(22px, 5vw, 48px);
  background: #fff;
  border: 1px solid #e6dcef;
  border-radius: 24px;
  box-shadow: 0 22px 65px #38215b12;
  overflow-wrap: anywhere;
}
.legal-card h1 { margin-bottom: 12px; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; }
.policy-version { color: #655574; font-size: 13px; }
.policy-warning { padding: 16px; color: #72521f; background: #fff5d8; border: 1px solid #ebd194; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.policy-warning strong { display: block; }
.policy-navigation { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 22px 0; font-size: 14px; }
.legal-card section { margin-top: 30px; scroll-margin-top: 20px; }
.legal-card h2 { margin-bottom: 12px; color: #55229e; font-size: 22px; }
.legal-card section p, .legal-card li { color: #493d5b; font-size: 15px; line-height: 1.8; }
.legal-card li + li { margin-top: 10px; }
.policy-highlight { padding: 20px; background: #fff2f7; border: 1px solid #f1c0d3; border-radius: 14px; }
.legal-card .back-link { display: inline-block; }
.setup-notice, .notice {
  margin: 12px 0 18px;
  padding: 13px 15px;
  display: grid;
  gap: 4px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.5;
}
.setup-notice { color: #55406f; background: #f3edff; border: 1px solid #ddcef9; }
.notice-error { color: #8d1834; background: #fff0f2; border: 1px solid #f5c2cf; }
.notice-info { color: #155e52; background: #e9faf5; border: 1px solid #bcebdc; }

.result-page { min-height: 68vh; display: grid; justify-items: center; align-content: center; text-align: center; }
.result-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #7136d8, #e4488c);
  border-radius: 24px;
  font-size: 35px;
  box-shadow: 0 12px 35px #9748c133;
}
.result-page h1 { font-size: clamp(40px, 6vw, 58px); }
.result-icon.tone-success { background: linear-gradient(135deg, #162654, #c9982a); box-shadow: 0 12px 35px #c9982a44; }
.result-icon.tone-warning { background: linear-gradient(135deg, #f2a13c, #e4488c); }
.result-icon.tone-error { background: linear-gradient(135deg, #b01e52, #e4488c); }
.result-icon.tone-info { background: linear-gradient(135deg, #2563eb, #7136d8); }
.refresh-button {
  margin: 4px 0 18px;
  padding: 12px 22px;
  color: #fff;
  background: linear-gradient(135deg, #7136d8, #e4488c);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px #9748c133;
}
.result-copy, .result-warning { max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.result-warning { padding: 13px 16px; color: #725d2c; background: #fff8df; border-radius: 12px; font-size: 12px; }
.back-link { margin-top: 15px; color: var(--purple); font-weight: 700; text-decoration: none; }
.site-footer {
  min-height: 76px;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: #817991;
  border-top: 1px solid #e8e2f0;
  font-size: 11px;
}
.site-footer a { color: inherit; text-decoration-color: #b7a9ce; }
.site-footer a:hover { color: var(--purple); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 16px; }

@media (max-width: 760px) {
  .site-header, .site-footer, main { width: min(100% - 32px, 560px); }
  .hero { padding: 34px 0 48px; grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { letter-spacing: -2px; }
  .sample-card { width: min(100%, 430px); justify-self: center; transform: none; }
  .checkout-section { padding: 30px 21px; margin-bottom: 58px; }
}

@media (max-width: 430px) {
  .brand { font-size: 10px; letter-spacing: .8px; }
  .test-badge { padding: 7px 9px; font-size: 8px; }
  .amount-row { grid-template-columns: 1fr 105px; }
  .sample-card { padding: 34px 24px 24px; }
  .seal { width: 70px; height: 70px; }
  .seal strong { font-size: 18px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
