/* Halveron Free Audit — static portal */
:root {
  --ink: #0e0e0e;
  --ember: #ff4301;
  --chalk: #fafaf8;
  --muted: #6b6865;
  --border: rgba(14, 14, 14, 0.12);
  --bg: #ffffff;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

/* —— Auth layout —— */
.audit-auth {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

@media (min-width: 768px) {
  .audit-auth {
    flex-direction: row;
  }
}

.audit-auth-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.audit-auth-inner {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.audit-brand {
  /* Matches homepage .brand-mark / .gn-brand */
  font-size: clamp(1.3rem, 1vw + 1rem, 2.25rem);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.audit-auth h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.audit-auth h1 .ember {
  color: var(--ember);
}

.audit-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.audit-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.audit-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.audit-glass {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(14, 14, 14, 0.04);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.audit-glass:focus-within {
  border-color: rgba(255, 67, 1, 0.7);
  background: rgba(255, 67, 1, 0.05);
}

.audit-glass input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--ink);
  border-radius: 1rem;
  outline: none;
}

.audit-password {
  position: relative;
}

.audit-password input {
  padding-right: 3rem;
}

.audit-toggle-pass {
  position: absolute;
  inset: 0 0.75rem 0 auto;
  display: flex;
  align-items: center;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.audit-toggle-pass svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.audit-toggle-pass svg[hidden],
.audit-toggle-pass svg.is-hidden {
  display: none !important;
}

.audit-toggle-pass:hover {
  color: var(--ink);
}

.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.audit-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.audit-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--ember);
}

.audit-link {
  color: var(--ember);
  text-decoration: none;
}

.audit-link:hover {
  text-decoration: underline;
}

.audit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.audit-btn-primary {
  background: var(--ember);
  color: #fff;
}

.audit-btn-primary:hover {
  filter: brightness(1.05);
}

.audit-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.audit-btn-ghost:hover {
  background: var(--chalk);
}

.audit-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audit-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--border);
}

.audit-divider span {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  background: var(--bg);
  font-size: 0.875rem;
  color: var(--muted);
}

.audit-switch {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.audit-name-field[hidden],
.audit-signin-only[hidden] {
  display: none !important;
}

/* Hero panel */
.audit-hero {
  display: none;
  flex: 1;
  position: relative;
  padding: 1rem;
}

@media (min-width: 768px) {
  .audit-hero {
    display: block;
  }
}

.audit-hero-bg {
  position: absolute;
  inset: 1rem;
  border-radius: 1.5rem;
  background-size: cover;
  background-position: center;
}

.audit-hero-shade {
  position: absolute;
  inset: 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.8), rgba(14, 14, 14, 0.25), transparent);
  pointer-events: none;
}

.audit-testimonials {
  position: absolute;
  bottom: 2.25rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.audit-testimonials-row {
  overflow: hidden;
  pointer-events: auto;
}

.audit-testimonials-track {
  display: flex;
  width: max-content;
  animation: audit-marquee 48s linear infinite;
  will-change: transform;
}

.audit-testimonials-row-b .audit-testimonials-track {
  animation-duration: 58s;
  animation-delay: -18s;
}

.audit-testimonials-set {
  display: flex;
  gap: 0.85rem;
  flex-shrink: 0;
  padding-right: 0.85rem;
}

.audit-testimonials:hover .audit-testimonials-track {
  animation-play-state: paused;
}

@keyframes audit-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.audit-testimonial {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 17rem;
  flex-shrink: 0;
  padding: 1.15rem 1.2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  color: #fff;
}

.audit-testimonial img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  object-fit: cover;
  flex-shrink: 0;
}

.audit-testimonial p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.audit-testimonial .handle {
  color: rgba(255, 255, 255, 0.55);
}

.audit-testimonial .quote {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .audit-testimonials {
    -webkit-mask-image: none;
    mask-image: none;
    align-items: center;
    pointer-events: none;
  }

  .audit-testimonials-row {
    width: 100%;
  }

  .audit-testimonials-row-b {
    display: none;
  }

  .audit-testimonials-track {
    animation: none;
    width: 100%;
    justify-content: center;
    gap: 0.85rem;
  }

  .audit-testimonials-set:nth-child(2) {
    display: none;
  }

  .audit-testimonials-set {
    justify-content: center;
    flex-wrap: wrap;
  }

  .audit-testimonial:nth-child(n + 3) {
    display: none;
  }
}

/* —— Workspace —— */
.audit-workspace {
  min-height: 100dvh;
  background: var(--chalk);
  color: var(--ink);
}

.audit-ws-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.audit-ws-header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.audit-ws-header .audit-brand {
  text-decoration: none;
}

.audit-ws-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.audit-ws-email {
  display: none;
  color: var(--muted);
}

@media (min-width: 640px) {
  .audit-ws-email {
    display: inline;
  }
}

.audit-signout {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.audit-signout:hover {
  border-color: var(--ink);
}

.audit-ws-main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.audit-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

.audit-ws-main h1 {
  margin: 0.75rem 0 0;
  max-width: 48rem;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.audit-ws-main > .audit-lead {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem);
}

.audit-ws-form {
  margin-top: 2.5rem;
  max-width: 36rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 2px rgba(14, 14, 14, 0.04);
}

.audit-ws-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.audit-ws-form input,
.audit-ws-form textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(250, 250, 248, 0.7);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  outline: none;
  resize: vertical;
}

.audit-ws-form input:focus,
.audit-ws-form textarea:focus {
  border-color: var(--ember);
}

.audit-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Motion */
.animate-element {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  animation: fadeSlideIn 0.7s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-250 { animation-delay: 0.25s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }
.animate-delay-900 { animation-delay: 0.9s; }

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-element {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}
