/* Shared editorial styles for the public homepage and About page. Loaded after
   landing.css so both pages inherit the same brand tokens, navigation, buttons,
   spacing, and responsive behavior. */

/* The accessible skip link is styled in the shared landing.css so every public
   page that loads it gets the same overscroll-safe behavior. */

.landing-nav nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

/* ---- Hero ---- */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(30px, 5vw, 58px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px) 0 clamp(8px, 2vw, 20px);
}

.about-hero-copy,
.about-hero-media {
  min-width: 0;
}

.about-hero h1 {
  margin: 14px 0 20px;
  font: clamp(2.5rem, 4.4vw, 4rem) / 1.02 "Libre Caslon Display", Georgia, serif;
  letter-spacing: -0.025em;
}

.about-lede {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-hero-actions {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
}

.about-hero-media {
  margin: 0;
}

.about-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 20px 55px rgba(17, 23, 25, 0.14);
}

.about-hero-media figcaption {
  margin: 11px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ---- Content sections ---- */
.about-section {
  margin: clamp(30px, 5vw, 56px) 0;
}

.about-section h2 {
  margin: 0 0 18px;
  font: clamp(1.7rem, 3.4vw, 2.7rem) / 1.05 "Libre Caslon Display", Georgia, serif;
  letter-spacing: -0.03em;
}

.about-prose {
  max-width: 720px;
}

.about-prose p {
  margin: 0 0 16px;
  color: #33403f;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-emphasis {
  color: var(--ink) !important;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 1.3rem !important;
  line-height: 1.35 !important;
}

/* ---- Homepage product story ---- */
#calculator,
.homepage-story {
  scroll-margin-top: 112px;
}

.homepage-story {
  padding-top: clamp(18px, 3vw, 34px);
}

.homepage-story-layout {
  display: grid;
  grid-template-areas:
    "history lifecycle"
    "ledger lifecycle";
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 3.5vw, 42px) clamp(20px, 4vw, 40px);
  align-items: start;
}

.homepage-running-copy {
  grid-area: history;
}

.homepage-story-layout .about-lifecycle {
  grid-area: lifecycle;
}

.homepage-ledger-intro {
  grid-area: ledger;
  align-self: end;
  margin-bottom: 0;
}

.public-marketing-heading {
  max-width: 780px;
}

.ledger-benefits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(34px, 4vw, 48px);
}

.homepage-audience {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: clamp(28px, 5vw, 50px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.homepage-audience h2 {
  margin-top: 10px;
}

.founder-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: clamp(30px, 5vw, 56px) 0;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.founder-teaser h2 {
  max-width: 720px;
  margin: 10px 0 12px;
  font: clamp(1.7rem, 3.4vw, 2.7rem) / 1.08 "Libre Caslon Display", Georgia, serif;
  letter-spacing: -0.03em;
}

.founder-teaser p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pricing-panel {
  display: block;
}

.pricing-intro {
  max-width: 780px;
  margin-bottom: 24px;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pricing-grid .plan-card {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.pricing-grid .plan-card strong,
.pricing-grid .plan-card span {
  display: block;
}

.pricing-grid .plan-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.pricing-grid .plan-card .plan-price {
  margin-top: 5px;
  color: var(--brass-dark);
  font-size: 1.2rem;
  font-weight: 800;
}

.pricing-grid .plan-card span:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-grid .plan-card-contact {
  grid-column: 1 / -1;
  background: #f6efe3;
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.pricing-actions p {
  max-width: 620px;
  font-size: 0.9rem;
}

/* ---- Life of a judgment (two column) ---- */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

.about-lifecycle {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  padding: 20px;
}

.about-lifecycle ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-lifecycle li {
  display: grid;
  grid-template-columns: 42px auto;
  gap: 4px 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--panel);
}

.about-lifecycle span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.about-lifecycle strong,
.about-lifecycle small {
  display: block;
}

.about-lifecycle small {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---- Smart CCP Lookup spotlight ---- */
.about-ccp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(164, 119, 55, 0.14), transparent 22rem),
    rgba(255, 250, 241, 0.9);
  box-shadow: var(--shadow);
}

.about-ccp-copy h2 {
  margin: 10px 0 16px;
}

.about-ccp-copy p {
  max-width: 520px;
  margin: 0 0 16px;
  color: #33403f;
  font-size: 1.02rem;
  line-height: 1.72;
}

.about-ccp-caveat {
  color: var(--muted) !important;
  font-size: 0.94rem !important;
}

.about-ccp-copy .btn {
  margin-top: 6px;
}

/* Non-interactive demonstration of the paid Smart CCP Lookup. Pure CSS, no
   scripts and no ccpLookup module — this must never become a working lookup. */
.about-ccp-demo {
  min-width: 0;
}

.about-demo-window {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(17, 23, 25, 0.14);
  overflow: hidden;
}

.about-demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.about-demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d1c3;
}

.about-demo-bar-label {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.about-demo-body {
  padding: 20px;
}

.about-demo-label {
  display: block;
  margin-bottom: 8px;
  color: #263034;
  font-size: 0.83rem;
  font-weight: 800;
}

.about-demo-input {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--brass);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 0 0 4px rgba(164, 119, 55, 0.16);
  font-weight: 600;
}

.about-demo-typed {
  color: var(--ink);
}

.about-demo-caret {
  width: 2px;
  height: 20px;
  margin-left: 2px;
  background: var(--brass-dark);
}

.about-demo-menu {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.about-demo-option {
  padding: 13px 15px;
}

.about-demo-option.is-active {
  background: #f7efe0;
  box-shadow: inset 3px 0 0 var(--brass);
}

.about-demo-option strong {
  display: block;
  color: var(--brass-dark);
  font-size: 0.9rem;
}

.about-demo-option span {
  display: block;
  margin-top: 3px;
  color: #33403f;
  font-size: 0.86rem;
  line-height: 1.45;
}

.about-demo-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: no-preference) {
  .about-demo-caret {
    animation: about-caret-blink 1.1s step-end infinite;
  }

  .about-demo-option.is-active {
    animation: about-option-in 0.5s ease-out both;
    animation-delay: 0.35s;
  }

  @keyframes about-caret-blink {
    50% {
      opacity: 0;
    }
  }

  @keyframes about-option-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ---- Audience list ---- */
.about-audience {
  max-width: 720px;
  margin: 4px 0 24px;
  padding-left: 22px;
  color: #33403f;
}

.about-audience li {
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.about-audience li::marker {
  color: var(--brass);
}

/* ---- Disclaimer callout ---- */
.about-disclaimer {
  display: grid;
  grid-template-columns: 26px auto;
  gap: 14px;
  max-width: 760px;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f6efe3;
}

.about-disclaimer svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  fill: none;
  stroke: var(--brass-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-disclaimer p {
  margin: 0 0 12px;
  color: #4a534f;
  font-size: 0.95rem;
  line-height: 1.65;
}

.about-disclaimer p:last-child {
  margin-bottom: 0;
}

/* ---- Final CTA ---- */
.about-cta {
  margin: clamp(30px, 5vw, 56px) 0 70px;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.about-cta .eyebrow {
  color: #e6c78d;
}

.about-cta h2 {
  margin: 12px 0 12px;
  font: clamp(2rem, 4vw, 3.2rem) / 1 "Libre Caslon Display", Georgia, serif;
  letter-spacing: -0.03em;
}

.about-cta p {
  max-width: 720px;
  margin: 0 auto;
  color: #ccd5d2;
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.about-cta .btn-primary {
  background: var(--white);
  color: var(--ink);
}

/* Footer styles now live in the shared landing.css so the homepage and About
   page render an identical branded footer from one source of truth. */

@media (max-width: 960px) {
  .about-hero,
  .about-split,
  .about-ccp,
  .homepage-audience {
    grid-template-columns: 1fr;
  }

  .about-hero {
    align-items: start;
  }

  #calculator,
  .homepage-story {
    scroll-margin-top: 178px;
  }

  .founder-teaser {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .homepage-story-layout {
    grid-template-areas:
      "history"
      "lifecycle"
      "ledger";
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ledger-benefits,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid .plan-card-contact {
    grid-column: auto;
  }

  .about-ccp,
  .homepage-audience,
  .founder-teaser {
    padding: 22px;
    border-radius: 24px;
  }

  .about-hero {
    gap: 28px;
    padding-top: 32px;
  }

  .about-hero-media img {
    border-radius: 20px;
  }

  .about-hero-media figcaption {
    margin-inline: 2px;
    font-size: 0.76rem;
  }

  .about-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .about-cta-actions .btn {
    justify-content: center;
    width: 100%;
  }

  #calculator,
  .homepage-story {
    scroll-margin-top: 164px;
  }

  .about-demo-body {
    padding: 16px;
  }

  .about-demo-option span {
    overflow-wrap: anywhere;
  }
}
