/* home.css - public homepage for trust-first conversion to app.quiver.work. */

.home-page {
  min-height: 100vh;
  /* Flat warm canvas. Earlier iteration used a three-stop diagonal gradient
     (beige → bg → faint green) as "modern" background decoration; the warm
     OKLCH neutral palette already carries the brand mood without it. */
  background: var(--bg);
  color: var(--text);
}

.home-wrap {
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
}

.home-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  background: color-mix(in oklch, var(--bg) 84%, var(--surface) 16%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.home-topbar__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-topbar__brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}

.home-topbar__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-topbar__link {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--rad-sm);
}

.home-topbar__link:hover {
  color: var(--text);
  background: var(--surface-warm);
}

.home-topbar__link:focus-visible {
  color: var(--text);
}

.home-topbar__cta {
  min-height: 44px;
}

.home-hero {
  padding: 56px 0 46px;
  border-bottom: 1px solid var(--border-soft);
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.home-hero__copy {
  min-width: 0;
}

.home-hero__title {
  max-width: 14ch;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.8vw, 4.85rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero__subhead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.home-hero__cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero__cta-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.home-hero__proof-mobile {
  display: none;
}

.home-hero__trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  max-width: 58ch;
}

.home-hero__trust li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  padding-left: 18px;
}

.home-hero__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: var(--rad-pill);
  background: var(--studio);
}

.home-artifact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  transform: none;
}

.home-artifact__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.home-artifact__phase {
  padding: 3px 9px;
  border-radius: var(--rad-pill);
  transition: background 0.3s ease, color 0.3s ease;
}

.home-artifact__phase--draft {
  background: var(--surface-strong);
  color: var(--muted);
}
.home-artifact__phase--confirm {
  background: var(--surface-strong);
  color: var(--muted-soft);
}
.home-artifact__phase-sep {
  color: var(--muted-soft);
  font-size: 11px;
}

/* Frames stack on top of each other; only one visible at a time via animation */
.home-artifact__frames {
  position: relative;
  min-height: 140px;
}

/* Animate: show Draft frame for 4s, fade to Confirm for 4s, loop */
.home-artifact__frame {
  animation-duration: 8s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.home-artifact__frame--confirm {
  position: absolute;
  inset: 0;
}
.home-artifact__frame--draft {
  animation-name: artifact-frame-draft;
}
.home-artifact__frame--confirm {
  animation-name: artifact-frame-confirm;
}
@keyframes artifact-frame-draft {
  0%, 45%   { opacity: 1; pointer-events: auto; }
  50%, 95%  { opacity: 0; pointer-events: none; }
  100%      { opacity: 1; pointer-events: auto; }
}
@keyframes artifact-frame-confirm {
  0%, 45%   { opacity: 0; pointer-events: none; }
  50%, 95%  { opacity: 1; pointer-events: auto; }
  100%      { opacity: 0; pointer-events: none; }
}
/* Phase label tracks the frame */
.home-artifact:has(.home-artifact__frame--confirm[style*="opacity: 1"]) .home-artifact__phase--confirm {
  background: var(--studio);
  color: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  .home-artifact__frame { animation: none; }
  .home-artifact__frame--confirm { display: none; }
}

.home-artifact__job,
.home-artifact__draft {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--rad-md);
  background: var(--surface-warm);
}

.home-artifact__draft {
  margin-top: 12px;
  background: var(--primary-soft);
  border-color: var(--success-border);
}

/* Confirm frame */
.home-artifact__claim {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--rad-md);
  background: var(--surface-warm);
}

.home-artifact__quote {
  margin: 0;
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}

.home-artifact__decision {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.home-artifact__btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--rad-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--text);
  cursor: default;
}

.home-artifact__btn--approve {
  background: var(--studio);
  color: var(--surface);
  border-color: var(--studio);
}

.home-artifact__label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--fw-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-artifact p {
  margin: 0;
  line-height: 1.55;
}

.home-artifact__checks {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.home-artifact__checks li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-artifact__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: var(--rad-pill);
}

.home-artifact__dot.is-ok {
  background: var(--success);
}

.home-artifact__dot.is-review {
  background: var(--warning);
}

.home-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-soft);
}

.home-section .section-label {
  margin: 0 0 12px;
}

.home-section .section-h2 {
  margin-bottom: 24px;
  max-width: 32ch;
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  line-height: 1.12;
}

.home-section__lede {
  max-width: 70ch;
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.home-section__note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad-md);
  padding: 18px;
}

.home-steps__num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--studio);
  font-size: 2rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.home-steps__title,
.home-cards__title,
.home-objections__title,
.home-timebox h3,
.home-privacy-box h3 {
  margin: 0;
  font-size: 16px;
  font-weight: var(--fw-strong);
  letter-spacing: 0;
}

.home-steps__body,
.home-cards__body,
.home-objections__body,
.home-timebox p,
.home-privacy-list {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.home-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-cards__item,
.home-timebox,
.home-privacy-box {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad-md);
  padding: 18px;
}

/* ── Trust tenets: numbered flow, no cards ────────────────── */

.home-tenets {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
  max-width: 920px;
}

.home-tenets__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
}

.home-tenets__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-tenets__num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--studio);
}

.home-tenets__title {
  font-size: 18px;
  font-weight: var(--fw-strong);
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: var(--ls-snug);
}

.home-tenets__body p {
  margin: 0;
  color: var(--muted);
  line-height: var(--lh-relaxed);
  max-width: 56ch;
}

@media (max-width: 720px) {
  .home-tenets__item {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }
  .home-tenets__num {
    font-size: 2.2rem;
  }
}

/* ── Section figure / screenshot caption ─────────────────── */

.home-figure {
  margin: 40px 0 0;
  max-width: 760px;
  /* Matte frame around screenshots: a darker warm mat that lifts the
     image off the cream page background. The page bg is oklch(0.965)
     so the matte needs to be meaningfully darker, not just a hair
     different, to actually read as a frame. */
  padding: 24px;
  background: var(--surface-strong);
  border: 1px solid color-mix(in oklch, var(--border) 70%, var(--text) 12%);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-md);
}

.home-figure--wide {
  max-width: 940px;
}

.home-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
  box-shadow: var(--shadow-warm-xs);
}

.home-figure__cap {
  margin: 16px 4px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .home-figure {
    padding: 12px;
    margin-top: 28px;
  }
  .home-figure__cap {
    margin: 12px 2px 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-cards__item,
  .home-objections__item,
  .home-timebox,
  .home-privacy-box,
  .home-steps__item {
    transition:
      transform var(--t-normal) var(--ease-out),
      border-color var(--t-normal) var(--ease-out),
      box-shadow var(--t-normal) var(--ease-out);
  }

  .home-cards__item:hover,
  .home-objections__item:hover,
  .home-timebox:hover,
  .home-privacy-box:hover,
  .home-steps__item:hover {
    transform: translateY(-2px);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
  }
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 14px;
  max-width: 920px;
}

.home-timebox {
  background: var(--primary-soft);
  border-color: var(--success-border);
}

.home-privacy-list {
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.home-section--cta {
  background: color-mix(in oklch, var(--surface) 74%, var(--primary-soft) 26%);
}

.home-section--cta .home-wrap {
  max-width: 820px;
}

.home-final-cta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.home-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-footer__brand {
  font-weight: var(--fw-strong);
  letter-spacing: var(--ls-tight);
}

.home-footer__links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.home-footer__copy {
  color: var(--muted-soft);
  font-size: 12px;
}

.home-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.home-footer a:hover {
  color: var(--text);
}

@media (max-width: 960px) {
  .home-hero__inner,
  .home-split {
    grid-template-columns: 1fr;
  }

  .home-artifact {
    max-width: 560px;
    transform: none;
  }

  .home-steps,
  .home-cards,
  .home-objections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-wrap {
    width: min(1120px, 100% - 28px);
  }

  .home-topbar__inner {
    min-height: 66px;
  }

  .home-topbar__nav {
    gap: 6px;
  }

  .home-topbar__link[href="/privacy"] {
    display: none;
  }

  .home-topbar__link {
    font-size: 13px;
    padding: 10px 8px;
  }

  .home-topbar__cta {
    padding: 10px 12px;
    font-size: 13px;
  }

  .home-hero {
    padding: 44px 0 40px;
  }

  .home-hero__title {
    max-width: 15ch;
    font-size: clamp(2.25rem, 10.8vw, 3.25rem);
  }

  .home-hero__subhead {
    font-size: 16px;
  }

  .home-hero__cta-note {
    margin-top: 10px;
    font-size: 12.5px;
  }

  .home-hero__cta-row .btn--ghost {
    border: 0;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    font-size: 1rem;
    font-weight: var(--fw-medium);
  }

  .home-hero__proof-mobile {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
  }

  .home-hero__proof-mobile li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    padding-left: 16px;
  }

  .home-hero__proof-mobile li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: var(--rad-pill);
    background: var(--studio);
  }

  .home-hero__cta-row .btn {
    width: 100%;
  }

  .home-hero__trust {
    display: none;
  }

  .home-artifact {
    display: none;
  }

  .home-section {
    padding: 54px 0;
  }

  .home-footer__inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .home-topbar__link {
    display: none;
  }

  .home-topbar__cta {
    max-width: 154px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
