/* ============================================================
   Subtext landing page A — confrontational/action variant
   Mobile-first. Most layout lives in Tailwind utilities; this
   file holds animations, custom components, and a11y polish.
   ============================================================ */

/* -------- Focus appearance (WCAG 2.2 §2.4.11) -------- */
:focus-visible {
  outline: 2px solid #E07856;
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------- Reduced-motion preferences -------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   HERO — split-screen image
   ============================================================ */

.split-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reserve space to prevent CLS while the SVG loads */
  aspect-ratio: 680 / 480;
  max-width: 560px;
}

.split-img {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .split-img {
    animation: hero-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 80ms;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pre-headline::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #E07856;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.25); }
}

/* ============================================================
   IDENTITY CHECKLIST
   ============================================================ */

.identity-list {
  /* hover-target spacing */
}

.identity-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #FAF8F4;
  border: 1px solid #EBE6DE;
  border-radius: 12px;
  /* Minimum 24x24 hit target on the whole row (WCAG 2.5.8) */
  min-height: 48px;
  cursor: default;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.identity-item:hover,
.identity-item:focus-within,
.identity-item.is-resonant {
  border-color: #E07856;
  background: #FDECE4;
  transform: translateX(2px);
}

.identity-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #C45D3F;
  background: #FFFFFF;
  position: relative;
  margin-top: 1px;
}

.identity-item:hover .identity-check::after,
.identity-item:focus-within .identity-check::after,
.identity-item.is-resonant .identity-check::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 8px;
  width: 4px;
  height: 10px;
  border-right: 2.5px solid #C45D3F;
  border-bottom: 2.5px solid #C45D3F;
  transform: rotate(45deg);
}

.identity-text {
  font-size: 1rem;
  line-height: 1.45;
  color: #0B1F3A;
  font-weight: 500;
}

@media (min-width: 640px) {
  .identity-text {
    font-size: 1.0625rem;
  }
}

/* ============================================================
   HOW IT WORKS — numbered steps
   ============================================================ */

.how-step {
  padding: 24px 20px;
  background: #FFFFFF;
  border: 1px solid #EBE6DE;
  border-radius: 14px;
  position: relative;
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #0B1F3A;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  font-feature-settings: "tnum";
}

/* ============================================================
   VERDICT MOCKUP
   ============================================================ */

.verdict-card-wrap {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .verdict-card-wrap {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .verdict-card-img {
    animation: verdict-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 120ms;
  }
}

@keyframes verdict-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   SOCIAL PROOF cards
   ============================================================ */

.proof-card {
  /* Extra top padding so the decorative quote mark sits above the quote
     text without overlapping it. */
  padding: 28px 22px 22px;
  background: #FFFFFF;
  border: 1px solid #EBE6DE;
  border-radius: 14px;
  position: relative;
  transition: border-color 160ms ease, transform 160ms ease;
}

/* Decorative quote mark — small, in the top-left corner. Sits ABOVE the
   card (negative top) and well clear of the text, so it never overlays
   the first line of the quote. */
.proof-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #FFFFFF;
  background: #E07856;
  border-radius: 999px;
  font-family: Georgia, serif;
  font-weight: 700;
  padding-bottom: 6px; /* visual nudge — glyph baseline sits high in serif */
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.08);
}

.proof-card:hover {
  border-color: #E07856;
  transform: translateY(-2px);
}

.proof-quote {
  font-size: 1.0625rem;
  line-height: 1.45;
  color: #0B1F3A;
  font-weight: 500;
  /* No top padding needed — card padding already reserves the space. */
}

.proof-attr {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: #5C5247;
  font-weight: 500;
}

/* ============================================================
   PRICING — anchor rows
   ============================================================ */

.anchor-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.anchor-label {
  font-weight: 500;
  color: #F4F1EC;
  white-space: nowrap;
}

.anchor-divider {
  flex: 1 1 auto;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

.anchor-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
  white-space: nowrap;
}

/* ============================================================
   SCARCITY PROGRESS BAR
   ============================================================ */

.scarcity-bar {
  width: 100%;
  height: 12px;
  background: #F4F1EC;
  border: 1px solid #EBE6DE;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.scarcity-fill {
  height: 100%;
  background: linear-gradient(90deg, #E07856 0%, #C45D3F 100%);
  border-radius: 999px;
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .scarcity-fill {
    animation: fill-bar 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 200ms;
  }
}

@keyframes fill-bar {
  from { width: 0%; }
  to   { width: 67.3%; }
}

/* ============================================================
   PRIVACY lines
   ============================================================ */

.privacy-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #0B1F3A;
}

.privacy-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #E07856;
  margin-top: 10px;
}

/* ============================================================
   Form fields — minimum target sizes (WCAG 2.5.8)
   ============================================================ */

input[type="email"] {
  font-size: 16px; /* prevent iOS zoom */
}

input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: #C45D3F;
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq-list {
  /* spacing managed by Tailwind utilities on the <ul> */
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid #EBE6DE;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 160ms ease;
}

.faq-item:hover,
.faq-item:focus-within {
  border-color: #E07856;
}

.faq-details {
  width: 100%;
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  /* Minimum 44px target (WCAG 2.5.8) */
  min-height: 56px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

/* Hide the default summary disclosure triangle in all engines */
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::marker {
  content: '';
}

.faq-summary:focus-visible {
  outline: 2px solid #E07856;
  outline-offset: 2px;
  border-radius: 8px;
}

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: #0B1F3A;
  line-height: 1.35;
  flex: 1 1 auto;
}

@media (min-width: 640px) {
  .faq-q { font-size: 1.0625rem; }
}

/* Plus-to-minus icon, built in CSS — no SVG needed. */
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  border-radius: 999px;
  background: #FAF8F4;
  border: 1px solid #EBE6DE;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #0B1F3A;
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.faq-icon::before {
  /* horizontal bar */
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  /* vertical bar (becomes a "+") */
  width: 2px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.faq-details[open] .faq-icon {
  background: #FDECE4;
  border-color: #E07856;
  transform: rotate(180deg);
}

.faq-details[open] .faq-icon::after {
  /* collapse vertical bar — leaves a minus */
  opacity: 0;
}

.faq-a {
  padding: 0 20px 20px;
  color: #5C5247;
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .faq-a {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .faq-details[open] .faq-a {
    animation: faq-slide 220ms ease-out both;
  }
}

@keyframes faq-slide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   "What we'll never do" trust strip
   ============================================================ */

.never-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #F4F1EC;
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .never-line {
    font-size: 1.0625rem;
  }
}

.never-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(224, 120, 86, 0.18);
  color: #E07856;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}

/* ============================================================
   "Made by a human" footer credit
   ============================================================ */

.made-by {
  font-style: italic;
  color: #5C5247;
}

.made-by-sig {
  margin-left: 6px;
  font-style: normal;
  font-weight: 600;
  color: #C45D3F;
  font-family: Georgia, serif;
}

/* ============================================================
   Smooth scroll for anchor links
   ============================================================ */

html {
  scroll-behavior: smooth;
}
