/* ===========================================================================
   Public account pages — /signup, /login, /forgot, /reset.
   Dressed in the sirlinksalot.co brand rather than the report's look: lime
   top bar, pixel (Press Start 2P) headlines, Poppins text, chunky orange
   buttons with a hard shadow, and a sky band with a pixel ground strip.
   Fonts are self-hosted like the report's (no third-party requests).
   =========================================================================== */

@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/Poppins-400.woff2) format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/Poppins-600.woff2) format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/Poppins-700.woff2) format("woff2");
}
@font-face {
  font-family: "Press Start 2P";
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/PressStart2P-400.woff2) format("woff2");
}

.account-body {
  --sl-navy: #0a1535;
  --sl-lime: #6ccc00;
  --sl-orange: #cc6200;
  --sl-orange-dark: #7a3a00;
  --sl-green: #00a651;
  --sl-sky-1: #4a9ff0;
  --sl-sky-2: #a9dbff;
  --sl-pixel: "Press Start 2P", ui-monospace, monospace;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--sl-navy);
  background: #f7f7f7;
}

/* ---- top bar ---------------------------------------------------------------- */

.sl-top {
  background: var(--sl-lime);
}

.sl-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.sl-logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}

.sl-logo b {
  font-style: italic;
  font-weight: 700;
}

.sl-logo:hover {
  text-decoration: none;
}

.sl-top-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--sl-orange);
  border-radius: 4px;
  padding: 7px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.sl-top-link:hover {
  text-decoration: none;
  background: #b35600;
}

/* ---- sky band ---------------------------------------------------------------- */

.sl-sky {
  position: relative;
  background: linear-gradient(180deg, var(--sl-sky-1) 0%, var(--sl-sky-2) 100%);
  padding: 44px 0 64px;
}

/* Pixel ground: a grass row over dirt, drawn with stepped gradients. */
.sl-sky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background:
    linear-gradient(90deg, #3fa21a 50%, #4cb522 50%) 0 0 / 16px 8px repeat-x,
    linear-gradient(180deg, transparent 8px, #6b3f1f 8px);
}

.account-main {
  flex: 1;
}

/* ---- signup -------------------------------------------------------------------- */

.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: start;
}

.sl-headline {
  font-family: var(--sl-pixel);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--sl-navy);
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.55);
}

.sl-headline em {
  font-style: normal;
  color: var(--sl-orange);
}

.sl-lede {
  margin-top: 18px;
  font-size: 1.05rem;
  max-width: 30em;
}

.sl-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.sl-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sl-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: var(--sl-green);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18);
}

.sl-list li.is-locked {
  font-weight: 400;
  opacity: 0.8;
}

.sl-list li.is-locked::before {
  background: var(--sl-orange);
}

.sl-trust {
  margin-top: 26px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}

/* ---- form card: a hard-edged retro panel, not a soft SaaS card ---------------- */

.sl-card {
  background: #fff;
  border: 3px solid var(--sl-navy);
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--sl-navy);
  padding: 24px;
}

.sl-card h2 {
  font-family: var(--sl-pixel);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.sl-card .field {
  margin-bottom: 12px;
}

.sl-card .field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--sl-navy);
}

.sl-card input[type="text"],
.sl-card input[type="email"],
.sl-card input[type="password"] {
  width: 100%;
  border: 2px solid #c9cfdb;
  border-radius: 4px;
  padding: 9px 11px;
  font-size: 0.95rem;
}

.sl-card input:focus {
  border-color: var(--sl-navy);
  box-shadow: none;
}

.sl-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 12px 12px;
  border: 0;
  border-radius: 4px;
  background: var(--sl-orange);
  color: #fff;
  font-family: var(--sl-pixel);
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: 0 4px 0 var(--sl-orange-dark);
  cursor: pointer;
  transition: transform 60ms ease, box-shadow 60ms ease;
}

.sl-btn:hover {
  background: #b35600;
}

.sl-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--sl-orange-dark);
}

.sl-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.sl-btn:focus-visible {
  outline: 3px solid var(--sl-navy);
  outline-offset: 3px;
}

.sl-fine {
  margin-top: 14px;
  font-size: 0.82rem;
  text-align: center;
  color: #56607a;
}

.sl-fine a {
  color: var(--sl-navy);
  font-weight: 600;
}

.account-notice {
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin-bottom: 14px;
  background: #e8f6ee;
  color: #0b5b3d;
}

.account-notice.is-warning {
  background: #fff4e0;
  color: #7a3a00;
}

.account-done {
  text-align: center;
}

.account-done h2 {
  margin-bottom: 10px;
}

.spam-tip {
  text-align: left;
  margin: 16px 0 0;
  line-height: 1.5;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--sl-orange);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.turnstile-slot {
  margin: 4px 0 10px;
}

/* "Is that domain right?" under the Website field */
.domain-check {
  margin-top: 8px;
  padding: 10px 12px;
  border: 2px solid #0a1535;
  border-radius: 4px;
  background: #fff8e6;
  font-size: 0.88rem;
}

.domain-check p {
  margin: 0 0 8px;
  font-weight: 600;
}

.domain-check-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-check-btns button {
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.domain-check-yes {
  border: 0;
  background: var(--sl-orange);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 0 var(--sl-orange-dark);
}

.domain-check-keep {
  border: 1px solid #b8bfcf;
  background: #fff;
  color: #0a1535;
}

.form-error {
  font-size: 0.85rem;
  min-height: 0;
}

/* ---- login / forgot / reset ---------------------------------------------------- */

.single-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.sl-sub {
  font-size: 0.9rem;
  color: #56607a;
  margin: -8px 0 16px;
}

@media (max-width: 900px) {
  .signup-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sl-sky {
    padding-top: 28px;
  }
}

@media (max-width: 520px) {
  .sl-card {
    padding: 18px;
    box-shadow: 4px 4px 0 var(--sl-navy);
  }
  .sl-logo {
    font-size: 1.1rem;
  }
}

/* Privacy policy / terms links — Google requires the policy to be linked
   from the app's homepage (/signup). */
.acct-legal {
  /* The footer IS the dirt under the grass strip — a separate grey band
     below the ground looked tacked on. */
  background: #6b3f1f;
  color: #f3dcc3;
  text-align: center;
  padding: 4px 16px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.acct-legal a {
  color: #f3dcc3;
  text-decoration: none;
  font-weight: 600;
}

.acct-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---- Privacy policy page ---- */
.legal-main {
  background: var(--sl-sky-2, #a9dbff);
  padding: 36px 0 48px;
}

.legal-wrap {
  max-width: 820px;
}

.legal-card {
  background: #fff;
  color: #0a1535;
  border: 2px solid #0a1535;
  border-radius: 6px;
  box-shadow: 6px 6px 0 #0a1535;
  padding: 36px 40px;
  line-height: 1.65;
  font-size: 0.97rem;
}

.legal-card h1 {
  margin: 0 0 18px;
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: 1.2rem;
  font-family: inherit;
}

.legal-card h3 {
  margin: 20px 0 6px;
  font-size: 1rem;
}

.legal-card p,
.legal-card ul {
  margin: 0 0 12px;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-card li {
  margin-bottom: 4px;
}

.legal-card code {
  font-size: 0.85em;
  background: #eef2f7;
  padding: 1px 5px;
  border-radius: 4px;
}

.legal-card a {
  color: #cc6200;
  word-break: break-word;
}

.legal-table {
  overflow-x: auto;
  margin: 8px 0 16px;
}

.legal-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border: 1px solid #d9e0ea;
}

.legal-table th {
  background: #f4f7fb;
}

@media (max-width: 640px) {
  .legal-card {
    padding: 22px 18px;
  }
}

/* ---- The riding knight (signup) — the homepage's footer knight, riding
   left to right along the grass. Purely decorative. ---- */
.sl-sky {
  overflow: hidden; /* the knight starts and ends off-screen */
}

body[data-page="signup"] .sl-sky {
  padding-bottom: 150px; /* a lane for the knight under the form */
}

.sl-rider {
  position: absolute;
  left: 0;
  right: 0;
  /* The image has ~12px of empty space under the hooves (at 96px wide):
     8px up puts the hooves just into the grass row. */
  bottom: 8px;
  height: 0;
  pointer-events: none;
}

.sl-rider-img {
  position: absolute;
  bottom: 0;
  left: -120px;
  width: 96px;
  height: auto;
  image-rendering: pixelated;
  animation: sl-ride 22s linear infinite;
  pointer-events: auto; /* click it and it jumps */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Jump: a second animation alongside the ride — same name in the same
   slot, so the ride carries on rather than restarting. */
.sl-rider-img.is-jumping {
  animation: sl-ride 22s linear infinite, sl-jump 0.6s ease-out;
}

@keyframes sl-jump {
  0% { transform: translateY(0); }
  38% { transform: translateY(-64px); }
  62% { transform: translateY(-64px); }
  100% { transform: translateY(0); }
}

.sl-rider-img:not([src]) {
  visibility: hidden;
}

@keyframes sl-ride {
  0% { left: -120px; }
  100% { left: 110%; }
}

@media (max-width: 640px) {
  body[data-page="signup"] .sl-sky {
    padding-bottom: 120px;
  }
  .sl-rider-img {
    width: 72px;
    animation-duration: 14s;
  }
  .sl-rider-img.is-jumping {
    animation: sl-ride 14s linear infinite, sl-jump 0.6s ease-out;
  }
}

/* Motion off: the knight stands still at the left. */
@media (prefers-reduced-motion: reduce) {
  .sl-rider-img,
  .sl-rider-img.is-jumping {
    animation: none;
    left: 6%;
  }
}

/* ---- /start: the first-run wizard ------------------------------------------ */

.sl-top-btn {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.wiz-wrap {
  max-width: 480px;
}

.wiz-steps {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sl-navy);
}

.wiz-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.55;
}

.wiz-steps li span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--sl-navy);
  border-radius: 50%;
  background: #fff;
  font-size: 0.72rem;
}

.wiz-steps li.is-off {
  opacity: 0.35;
  text-decoration: line-through;
}

.wiz-steps li.is-current {
  opacity: 1;
}

.wiz-steps li.is-current span {
  background: var(--sl-orange);
  border-color: var(--sl-orange);
  color: #fff;
}

.wiz-steps li.is-done {
  opacity: 1;
}

.wiz-steps li.is-done span {
  background: var(--sl-green);
  border-color: var(--sl-green);
  color: #fff;
  font-size: 0;
}

.wiz-steps li.is-done span::after {
  content: "✓";
  font-size: 0.72rem;
}

.wiz-card h2:focus {
  outline: none;
}

.wiz-card .sl-sub {
  margin-bottom: 16px;
}

.wiz-bar {
  height: 14px;
  border: 2px solid var(--sl-navy);
  border-radius: 3px;
  background: #eef3fb;
  overflow: hidden;
}

.wiz-bar span {
  display: block;
  height: 100%;
  width: 4%;
  background: repeating-linear-gradient(-45deg, var(--sl-orange) 0 10px, #e07a1a 10px 20px);
  background-size: 28px 28px;
  transition: width 600ms ease;
  animation: wiz-stripes 900ms linear infinite;
}

.wiz-bar.is-done span {
  background: var(--sl-green);
  animation: none;
}

@keyframes wiz-stripes {
  to { background-position: 28px 0; }
}

.wiz-status {
  margin: 10px 0 18px;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.wiz-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wiz-actions .sl-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.wiz-later {
  font-size: 0.88rem;
}

.wiz-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.wiz-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e3e8f2;
  font-size: 0.92rem;
}

.wiz-item:last-child {
  border-bottom: 0;
}

.wiz-label {
  flex: 1;
}

.wiz-tick {
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid #b8bfcf;
  border-top-color: var(--sl-orange);
  border-radius: 50%;
  animation: wiz-spin 800ms linear infinite;
}

.wiz-item.is-ready .wiz-tick {
  border: 0;
  background: var(--sl-green);
  animation: none;
  position: relative;
}

.wiz-item.is-ready .wiz-tick::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.wiz-item.is-stopped .wiz-tick {
  border-color: #d5dae5;
  animation: none;
}

.wiz-wait {
  color: #6b7690;
  font-size: 0.85rem;
}

@keyframes wiz-spin {
  to { transform: rotate(360deg); }
}

.wiz-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
}

.wiz-google svg {
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  width: 24px;
  height: 24px;
}

.wiz-skip {
  text-align: center;
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .wiz-bar span,
  .wiz-tick {
    animation: none;
  }
}

@media (max-width: 420px) {
  .wiz-steps {
    font-size: 0;
  }

  .wiz-steps li span {
    font-size: 0.72rem;
  }
}
