@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap");

:root {
  --ink: #0f0b08;
  --cream: #fff7eb;
  --paper: #fffaf2;
  --orange: #e8820a;
  --orange-dark: #c9610a;
  --gold: #f5a623;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 247, 235, 0.72), transparent 32%),
    radial-gradient(circle at 78% 20%, rgba(245, 166, 35, 0.72), transparent 28%),
    linear-gradient(135deg, var(--orange-dark), var(--orange) 52%, var(--gold));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(15, 11, 8, 0.7);
  outline-offset: 3px;
}

.page-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.signup-card {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid rgba(15, 11, 8, 0.16);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.86);
  box-shadow: 0 24px 70px rgba(15, 11, 8, 0.28);
  backdrop-filter: blur(14px);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(232, 130, 10, 0.15);
  color: #a94800;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
}

h1 {
  max-width: 420px;
  font-size: clamp(3rem, 10vw, 5.2rem);
}

.lede {
  margin: 20px 0 0;
  color: rgba(15, 11, 8, 0.68);
  font-size: 1rem;
  line-height: 1.65;
}

.signup-form {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.signup-form label {
  display: grid;
  gap: 8px;
  color: rgba(15, 11, 8, 0.76);
  font-size: 0.92rem;
  font-weight: 800;
}

.signup-form input:not([type="text"][tabindex="-1"]) {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1.5px solid rgba(15, 11, 8, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.signup-form input:focus {
  border-color: rgba(15, 11, 8, 0.52);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(232, 130, 10, 0.12);
}

#anotheremail,
.hidden-frame {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signup-form button,
.modal-card button {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 14px 28px rgba(15, 11, 8, 0.24);
}

.signup-form button:hover,
.modal-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 11, 8, 0.3);
}

.signup-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.privacy-note {
  margin: 18px 0 0;
  color: rgba(15, 11, 8, 0.48);
  font-size: 0.78rem;
  line-height: 1.5;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal[aria-hidden="false"] {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 11, 8, 0.58);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(100%, 440px);
  padding: 34px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(15, 11, 8, 0.38);
  text-align: center;
}

.modal-card h2 {
  font-size: 2.4rem;
}

.modal-card p {
  margin: 16px 0 24px;
  color: rgba(15, 11, 8, 0.7);
  line-height: 1.6;
}

.modal-card button {
  width: 100%;
}

.success-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(232, 130, 10, 0.14);
  color: #0f0b08;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-page {
  min-height: 100svh;
  background: #1b1713;
}

.pdf-page::before {
  display: none;
}

.pdf-viewer {
  width: 100vw;
  height: 100svh;
}

.pdf-viewer object {
  width: 100%;
  height: 100%;
  border: 0;
  background: #1b1713;
}

.pdf-viewer p {
  margin: 0;
  padding: 24px;
  color: var(--cream);
}

.pdf-viewer a {
  color: var(--gold);
}

@media (max-width: 520px) {
  .page-shell {
    padding: 18px;
  }

  .signup-card {
    border-radius: 20px;
  }
}
