:root {
  color-scheme: light;
  font-family: ui-rounded, "Nunito", "Avenir Next", system-ui, sans-serif;
  color: #312c2d;
  background: #fffaf5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

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

button, input { font: inherit; }

.page { width: min(100% - 32px, 760px); margin: 0 auto; padding: 56px 0 24px; }
.intro { text-align: center; margin: 0 auto 28px; }
.eyebrow { margin: 0 0 8px; color: #a55b4f; font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.08; letter-spacing: -.04em; }
.description { margin: 12px auto 0; color: #746b6a; font-size: 1rem; }
.story { display: grid; justify-items: center; gap: 10px; }
.video-frame { position: relative; width: min(100%, 760px); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #211f20; box-shadow: 0 18px 44px #3f252018; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: white; pointer-events: none; }
.loading[hidden] { display: none; }
.caption { margin: 0; color: #746b6a; font-size: .88rem; }
.footer { padding-top: 38px; text-align: center; color: #998c87; font-size: .8rem; }

.modal[hidden], .notice[hidden] { display: none; }
.modal { position: fixed; z-index: 5; inset: 0; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: #251b1acc; backdrop-filter: blur(4px); }
.dialog { position: relative; width: min(100%, 440px); max-height: min(92dvh, 760px); overflow: auto; padding: 30px; border-radius: 22px; background: #fffdfb; box-shadow: 0 26px 80px #150d0d44; }
.dialog h2 { margin: 0 32px 10px 0; font-size: 1.8rem; letter-spacing: -.035em; }
.dialog > p:not(.eyebrow):not(.secure-note) { color: #665b59; line-height: 1.5; }
.close { position: absolute; top: 15px; right: 18px; border: 0; background: transparent; color: #655b59; font-size: 1.8rem; cursor: pointer; }
form { display: grid; gap: 9px; margin-top: 20px; }
label { margin-top: 4px; font-size: .85rem; font-weight: 700; }
input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #e4d8d1; border-radius: 11px; background: white; color: #312c2d; }
input:focus { outline: 3px solid #dfad9c66; border-color: #b76f5e; }
.hint, .secure-note { margin: 3px 0 0; color: #786d68; font-size: .78rem; line-height: 1.45; }
.secure-note { margin-top: 13px; text-align: center; }
.pay-button { min-height: 50px; margin-top: 8px; border: 0; border-radius: 12px; background: #a94f3e; color: white; font-weight: 750; cursor: pointer; }
.pay-button:hover { background: #913f31; }
.pay-button:disabled { opacity: .65; cursor: wait; }
.form-error { margin: 0; color: #a12727; font-size: .85rem; }
.notice { position: fixed; z-index: 8; right: 18px; bottom: 18px; width: min(420px, calc(100% - 36px)); padding: 16px 18px; border-radius: 14px; background: #292425; color: white; box-shadow: 0 12px 40px #0003; }

@media (max-width: 540px) {
  .page { padding-top: 34px; }
  .video-frame { width: min(100%, 760px); }
  .dialog { padding: 24px 20px; border-radius: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .dialog { animation: enter .18s ease-out; }
  @keyframes enter { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
}
