/* Posted True — Look A (Clean Proof) with Look C problem cards.
   Button fill uses a darker proof green (#247A53) so white label text
   meets WCAG AA. Brand green #2E9E6B stays on checks and accents. */

:root {
  --ink: #1F2A44;
  --ink-soft: #3A4660;
  --paper: #FAFAF7;
  --proof: #2E9E6B;
  --proof-btn: #247A53;
  --proof-btn-hover: #1B5E3F;
  --gray: #E6E8EC;
  --white: #ffffff;
  --issue: #8A4A4A;
  --header-h: 4.25rem;
  --wrap: 70rem;
  --gutter: 1.25rem;
  --radius: 1rem;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 0 rgba(31, 42, 68, 0.04);
}

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.05rem, 7.2vw, 3.2rem);
}

.hero-break {
  display: none;
}

h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  max-width: 24ch;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p, ul, ol {
  margin: 0 0 1rem;
}

a {
  color: var(--proof-btn);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--proof-btn-hover);
}

:focus-visible {
  outline: 3px solid var(--proof);
  outline-offset: 3px;
}

::selection {
  background: rgba(46, 158, 107, 0.28);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - (var(--gutter) * 2), 42rem);
}

.wrap-form {
  width: min(100% - (var(--gutter) * 2), 44rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--proof-btn);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(31, 42, 68, 0.12);
}

.btn:hover,
.btn:focus-visible {
  background: var(--proof-btn-hover);
  color: var(--white);
}

.btn:active {
  transform: translateY(1px);
}

.btn-header {
  flex-shrink: 0;
  min-height: 2.6rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.92rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 92%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark-check {
  display: inline-flex;
  color: var(--proof);
  flex-shrink: 0;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  margin-right: 1.25rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

@media (min-width: 52rem) {
  .site-nav {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--gray);
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 28ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  margin: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* Phone mockup */
.phone {
  width: min(100%, 19.5rem);
}

.phone-body {
  position: relative;
  background: var(--ink);
  border-radius: 2rem;
  padding: 0.7rem 0.65rem 0.85rem;
  box-shadow:
    0 0 0 1px rgba(31, 42, 68, 0.4),
    0 18px 40px rgba(31, 42, 68, 0.18);
}

.phone-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5.5rem;
  height: 1.05rem;
  background: #121826;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  background: var(--white);
  border-radius: 1.45rem;
  overflow: hidden;
  min-height: 28rem;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--ink);
}

.status-icons {
  display: flex;
  align-items: flex-end;
  gap: 0.18rem;
}

.status-icons .sig {
  display: block;
  width: 0.22rem;
  background: var(--ink);
  border-radius: 1px;
}

.status-icons .sig:nth-child(1) { height: 0.28rem; }
.status-icons .sig:nth-child(2) { height: 0.4rem; }
.status-icons .sig:nth-child(3) { height: 0.52rem; }

.status-icons .bat {
  width: 1rem;
  height: 0.52rem;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  margin-left: 0.15rem;
  position: relative;
}

.status-icons .bat::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  right: 35%;
  background: var(--ink);
}

.listing {
  padding: 0.15rem 1rem 1.1rem;
}

.storefront {
  border-radius: 0.7rem;
  overflow: hidden;
  margin-bottom: 0.7rem;
  background: var(--gray);
}

.storefront svg {
  display: block;
  height: 6.6rem;
  width: 100%;
}

.listing-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.listing-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0.15rem 0 0.1rem;
  letter-spacing: -0.02em;
}

.listing-cat {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.listing-rows {
  display: grid;
  gap: 0.7rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--gray);
}

.listing-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.row-icon {
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.row-body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.row-label {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.val-wrong,
.val-right {
  display: block;
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.35;
}

.val-wrong {
  position: relative;
  width: fit-content;
  color: var(--ink);
  animation: wrong-cycle 12s ease-in-out infinite;
}

.val-wrong::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 1.5px;
  width: 0;
  background: var(--issue);
  transform: translateY(-50%);
  animation: strike 12s ease-in-out infinite;
}

.val-right {
  color: var(--proof-btn);
  opacity: 0;
  animation: show-right 12s ease-in-out infinite;
}

.posted-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.95rem;
  min-height: 1.5rem;
}

.posted-words {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.landed-check {
  display: inline-flex;
  opacity: 0;
  transform: translateY(-12px) scale(0.6);
  animation: land-check 12s ease-in-out infinite;
}

@keyframes strike {
  0%, 16% { width: 0; }
  26%, 84% { width: 100%; }
  94%, 100% { width: 0; }
}

@keyframes wrong-cycle {
  0%, 20% { color: var(--ink); }
  26%, 84% { color: var(--issue); }
  94%, 100% { color: var(--ink); }
}

@keyframes show-right {
  0%, 28% { opacity: 0; }
  38%, 84% { opacity: 1; }
  94%, 100% { opacity: 0; }
}

@keyframes land-check {
  0%, 42% { opacity: 0; transform: translateY(-14px) scale(0.5); }
  50% { opacity: 1; transform: translateY(2px) scale(1.08); }
  55%, 84% { opacity: 1; transform: translateY(0) scale(1); }
  94%, 100% { opacity: 0; transform: translateY(-8px) scale(0.7); }
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
}

.section-alt .card {
  background: var(--paper);
}

.section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.hero[id] {
  scroll-margin-top: var(--header-h);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--proof-btn);
}

.kicker::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background-color: var(--proof);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 4.7 8.4 9.5 3.3' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.7rem 0.7rem;
  flex-shrink: 0;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.section-cta {
  margin: 1.75rem 0 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  list-style: none;
}

.card-icon {
  display: inline-flex;
  color: var(--proof-btn);
  margin-bottom: 0.7rem;
}

/* Problem cards */
.problem-grid,
.who-grid,
.steps {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.problem-card h3,
.who-card h3,
.step-card h3 {
  margin-bottom: 0.4rem;
}

.problem-card p,
.who-card p,
.step-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* How it works */
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--proof-btn);
  letter-spacing: -0.03em;
  line-height: 1;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--proof-btn);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* "Free" is short, large-ish bold text on brand green. For the longer
   "Ask about plans" chip, use ink on soft gray so small type stays AA. */
.step-tag-muted {
  background: var(--gray);
  color: var(--ink);
}

/* Who */
.who-grid {
  grid-template-columns: 1fr;
}

/* Before / after */
.compare {
  display: grid;
  gap: 1rem;
}

.compare-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--issue);
}

.compare-label-ok {
  color: var(--proof-btn);
}

.compare-photo {
  position: relative;
  border-radius: 0.7rem;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: var(--gray);
}

.compare-photo svg {
  display: block;
  width: 100%;
  height: 7.25rem;
}

.photo-caption {
  display: block;
  padding: 0.35rem 0.6rem;
  background: rgba(31, 42, 68, 0.86);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
}

.compare-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.compare-list li {
  padding-left: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.compare-list .issue,
.compare-list .fix {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.compare-list .issue { color: var(--issue); }
.compare-list .fix { color: var(--proof-btn); }

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.02rem;
  padding: 1rem 2.6rem 1rem 1.15rem;
  position: relative;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--ink-soft);
}

/* Form */
.audit-form {
  padding: 1.25rem 1.15rem 1.4rem;
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}

.field {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 650;
  font-size: 0.92rem;
}

.optional {
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cfd3da;
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5A6480;
}

.field input:hover,
.field textarea:hover {
  border-color: #b4bac4;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--proof);
  outline-offset: 0;
  border-color: var(--proof-btn);
  background: var(--white);
}

.form-actions {
  margin: 1.2rem 0 0;
}

.form-note {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  min-height: 1.2em;
}

/* Privacy */
.privacy-page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  max-width: 16ch;
}

.privacy-prose p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.privacy-prose a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d5d8e0;
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.4rem;
}

.footer-wordmark {
  margin: 0 0 0.45rem;
  color: var(--white);
}

.footer-wordmark .wordmark-name {
  color: var(--white);
}

.footer-tag {
  margin: 0;
  color: #c5cad3;
  max-width: 22rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.footer-nav a,
.site-footer a {
  color: #e8eaee;
  text-decoration: none;
  font-weight: 550;
}

.footer-nav a:hover,
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.copyright {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #b7bdc8;
}

/* Larger screens */
@media (min-width: 40rem) {
  :root { --gutter: 1.75rem; }

  .section {
    padding: 4.25rem 0;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .problem-grid,
  .compare {
    grid-template-columns: 1fr 1fr;
  }

  .who-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-wide {
    grid-column: 1 / -1;
  }

  .audit-form {
    padding: 1.6rem 1.5rem 1.7rem;
  }
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1fr auto;
    gap: 3.5rem;
    align-items: center;
  }

  .hero-break {
    display: block;
  }

  .hero-sub {
    font-size: 1.25rem;
    max-width: 24ch;
  }

  .phone {
    width: 20.5rem;
  }

  .steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }

  .who-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .who-card:nth-child(1) { grid-column: span 2; }
  .who-card:nth-child(2) { grid-column: span 2; }
  .who-card:nth-child(3) { grid-column: span 2; }
  .who-card:nth-child(4) { grid-column: span 3; }
  .who-card:nth-child(5) { grid-column: span 3; }

  .problem-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

/* Reduced motion: show the corrected listing, no looping animation */
@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }

  .btn:active {
    transform: none;
  }

  .val-wrong {
    animation: none;
    color: var(--issue);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
  }

  .val-wrong::after {
    animation: none;
    width: 0;
  }

  .val-right {
    animation: none;
    opacity: 1;
  }

  .landed-check {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
