/* Shared styles for the inner pages (interest, pay). Mirrors index.html. */
:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #555555;
  --line: rgba(255, 255, 255, 0.22);
  --line-strong: rgba(255, 255, 255, 0.6);
  --soft: rgba(255, 255, 255, 0.62);
  --error: #ff8f8f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* Scanline overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  pointer-events: none;
  z-index: 100;
}

/* Pixel grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 99;
}

/* Header */
header {
  padding: 28px 48px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.pixel-logo img {
  display: block;
  height: 14px;
}

.meta,
footer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

a { color: var(--ink); }

header a,
footer a {
  text-decoration: none;
  transition: text-shadow 0.3s;
}

header a:hover,
footer a:hover {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Page body */
main {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 48px 72px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--ink);
  margin-left: 6px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  opacity: 0.7;
}

@keyframes blink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0; }
}

.lede {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.18),
    0 0 50px rgba(255, 255, 255, 0.08);
  margin-bottom: 48px;
}

.lede em {
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.6),
    0 0 36px rgba(255, 255, 255, 0.25);
}

.back {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--soft);
  margin-bottom: 28px;
  transition: color 0.3s, text-shadow 0.3s;
}

.back:hover {
  color: var(--ink);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Choosers (pick a path) */
.choices {
  list-style: none;
  border-top: 1px solid var(--line);
}

.choice {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.3s;
}

.choice-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: text-shadow 0.3s;
}

.choice-desc {
  grid-column: 1;
  font-size: 17px;
  font-weight: 300;
  color: var(--soft);
}

.choice-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  transition: transform 0.3s;
}

.choice:hover,
.choice:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.choice:hover .choice-title,
.choice:focus-visible .choice-title {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}

.choice:hover .choice-arrow,
.choice:focus-visible .choice-arrow {
  transform: translateX(4px);
}

/* Collapsible section */
.disclosure summary {
  display: inline-flex;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: text-shadow 0.3s;
}

.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; }
.disclosure[open] summary::after { content: "−"; }
.disclosure summary:hover { text-shadow: 0 0 12px rgba(255, 255, 255, 0.3); }
.disclosure[open] summary { margin-bottom: 28px; }

.panel {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 56px;
}

.panel h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.panel p {
  font-size: 17px;
  font-weight: 300;
  color: var(--soft);
  margin-bottom: 24px;
}

.panel p strong {
  color: var(--ink);
  font-weight: 400;
}

/* Forms */
.field { margin-bottom: 26px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

label,
legend {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.optional { color: var(--muted); }

fieldset { border: 0; }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  padding: 6px 0 8px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

select option { background: #000; color: #fff; }

textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

input:focus,
select:focus,
textarea:focus {
  border-bottom-color: var(--ink);
  box-shadow: 0 6px 14px -10px rgba(255, 255, 255, 0.55);
}

::placeholder { color: var(--muted); }

.amount { position: relative; }
.amount::before {
  content: "$";
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
}
.amount input { padding-left: 14px; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

/* Status messages */
.status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  min-height: 1.6em;
}

.status.is-error { color: var(--error); }

.notice {
  border: 1px solid var(--line-strong);
  padding: 18px 20px;
  margin-bottom: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

.notice.is-error { border-color: var(--error); color: var(--error); }

[hidden] { display: none !important; }

/* Footer */
footer {
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

footer .state-tag {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}


/* Responsive */
@media (max-width: 760px) {
  header { padding: 18px 22px; }
  main { padding: 28px 22px 56px; }
  footer { padding: 18px 22px; flex-wrap: wrap; gap: 10px; }
  .meta { display: none; }
  .field-row { grid-template-columns: 1fr; }
}
