/* =========================================================
   Accord — landing page (index.html)
   ========================================================= */

.landing .container { max-width: 1240px; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #FFFFFF; }

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding-top: 20px; padding-bottom: 20px;
}
.topbar__nav { display: flex; flex-wrap: wrap; gap: 24px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
.topbar__nav a { color: #E7E5E4; }
.topbar__nav a:hover { color: #FFFFFF; }
/* "Home" (the live feed) stands out as the way in. */
.topbar__nav .topbar__home { display: inline-flex; align-items: center; gap: 6px; margin: -6px 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(45, 212, 191, .16); color: #FFFFFF; font-weight: 700; }
.topbar__nav .topbar__home:hover { background: rgba(45, 212, 191, .28); }
.hero__browse { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 16px; font-weight: 700; color: #99F6E4; }
.hero__browse:hover { color: #FFFFFF; }
.hero__browse:hover svg { transform: translateX(3px); }
.hero__browse svg { transition: transform .2s; }
.topbar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.topbar__actions .btn { font-size: 14px; }

.hero__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-top: 48px; padding-bottom: 80px;
}
.hero__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero__definition { font-size: 15px; color: #A8B5B1; }
.hero__definition strong { font-family: var(--font-display); color: #FFFFFF; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 6.4vw, 76px); line-height: 1; letter-spacing: -2.5px;
}
.hero__title span { color: var(--coral); }
.hero__lead { font-size: 19px; line-height: 1.6; color: #C9D2CF; max-width: 540px; }

.hero__search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 600px; }
.hero__search-box {
  flex: 999 1 300px; display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 18px; background: #FFFFFF; border-radius: 999px;
}
.hero__search-box input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.hero__search-box input::placeholder { color: #78716C; }
.hero__search-box:focus-within { outline: 3px solid var(--coral); outline-offset: 2px; }
.hero__search .btn { flex: 1 1 auto; }

/* ---------- Handshake illustration ---------- */
/* One clean column: request -> offer -> the accord BBscrow protects. */
.handshake {
  flex: 1 1 400px; min-width: 0; max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column;
}
.handshake__card {
  width: 88%;
  background: #FFFFFF; color: var(--ink); border-radius: 18px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.handshake__card .tag { align-self: flex-start; }
.handshake__card strong { font-size: 16px; line-height: 1.35; }
.handshake__card > span:last-child { font-size: 14px; color: var(--muted); }
.handshake__card--a { align-self: flex-start; }
.handshake__card--b { align-self: flex-end; }

.handshake__link {
  align-self: center; width: 0; height: 28px;
  border-left: 2px dashed var(--ink-line);
}

.handshake__seal {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 18px;
  background: var(--primary); color: #FFFFFF;
  border: 1px solid var(--primary-light);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.handshake__icon {
  width: 44px; height: 44px; flex: none; border-radius: 999px;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.16);
}
.handshake__seal-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.handshake__seal-text strong { font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.handshake__seal-text span { font-size: 14px; line-height: 1.4; color: #D1FAF5; }

/* ---------- Just posted strip ---------- */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; overflow-x: auto; }
.ticker__label {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #C2410C;
}
.ticker__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--coral); }
.ticker__items { display: flex; gap: 12px; }
.ticker__items a {
  flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  background: #F5F5F4; color: var(--ink); font-size: 14px;
  max-width: 360px; overflow: hidden; text-overflow: ellipsis;
}
.ticker__items a:hover { background: var(--primary-soft); color: var(--primary-text); }

/* ---------- Sections ---------- */
.section { padding-top: 72px; padding-bottom: 0; display: flex; flex-direction: column; gap: 28px; }
.section__title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); letter-spacing: -1.5px; line-height: 1.05; }
.section__title--sm { font-size: clamp(28px, 3vw, 36px); letter-spacing: -1px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.section__link { font-weight: 700; }

/* ---------- Intents ---------- */
.intents { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.intent {
  text-align: left; padding: 24px; min-height: 150px;
  border: 2px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.intent strong { font-family: var(--font-display); font-size: 24px; }
.intent span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.intent:hover { border-color: var(--ink); }
.intent[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.intent[aria-pressed="true"] span { color: #D6D3D1; }

.intent-example {
  background: var(--coral-soft); border: 1px solid var(--coral-line); border-radius: 20px;
  padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.intent-example > div { flex: 999 1 380px; display: flex; flex-direction: column; gap: 4px; }
.intent-example__label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--coral-text); }
.intent-example p { font-size: 18px; line-height: 1.5; }

/* ---------- Live preview ---------- */
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.live-empty { color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.steps__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.steps__item strong { font-family: var(--font-display); font-size: 20px; }
.steps__item span:last-child { font-size: 15px; line-height: 1.55; color: var(--body); }
.steps__num {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-text);
  font-family: var(--font-display); font-weight: 800;
}
.steps__num--coral { background: var(--coral); color: var(--ink); }
.steps__item--hold { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.steps__item--hold .steps__num { background: #FFFFFF; }
.steps__item--hold span:last-child { color: #E6F7F4; }

/* ---------- Trust ---------- */
.trust { margin-top: 72px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__inner {
  padding-top: 48px; padding-bottom: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px;
}
.trust__item { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 6px; align-items: start; }
.trust__item svg {
  grid-row: span 2; width: 44px; height: 44px; padding: 10px; box-sizing: border-box;
  border-radius: 12px; background: var(--primary-soft);
}
.trust__item strong { font-family: var(--font-display); font-size: 19px; line-height: 1.3; }
.trust__item span { font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------- Closing ---------- */
.closing { background: var(--coral); color: var(--ink); }
.closing__inner {
  padding-top: 64px; padding-bottom: 64px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.closing h2 { font-family: var(--font-display); font-size: clamp(38px, 5vw, 56px); letter-spacing: -2px; line-height: 1; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.closing__outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.closing__outline:hover { background: var(--ink); color: #FFFFFF; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .topbar__nav { order: 3; flex-basis: 100%; gap: 18px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .topbar__actions { margin-left: auto; }
  .hero__inner { padding-top: 24px; padding-bottom: 56px; gap: 40px; }
  .hero__title { letter-spacing: -1.5px; }
  .hero__lead { font-size: 17px; }

  .handshake { flex-basis: 100%; max-width: none; }
  .handshake__card { width: 94%; padding: 16px 18px; }
  .handshake__link { height: 20px; }
  .handshake__seal { padding: 14px 16px; }

  /* Tighter, even spacing */
  .section { padding-top: 48px; gap: 20px; }
  .section__title { letter-spacing: -1px; }
  .intents { gap: 10px; }
  .intent { min-height: 0; padding: 18px 20px; gap: 6px; }
  .intent strong { font-size: 20px; }
  .intent-example { padding: 18px 20px; }
  .intent-example p { font-size: 16px; }
  .intent-example .btn { width: 100%; }

  /* Steps: number beside the text instead of on top */
  .steps { gap: 10px; }
  .steps__item {
    display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px;
    padding: 16px 18px; align-items: start;
  }
  .steps__num { grid-row: span 2; width: 38px; height: 38px; font-size: 15px; }
  .steps__item strong { font-size: 18px; line-height: 1.3; }
  .steps__item span:last-child { font-size: 14px; }

  .trust { margin-top: 48px; }
  .trust__inner { padding-top: 36px; padding-bottom: 36px; gap: 22px; }
  .trust__item strong { font-size: 17px; }
  .trust__item span { font-size: 14px; }

  .closing__inner { padding-top: 48px; padding-bottom: 48px; gap: 20px; }
  .closing__actions { width: 100%; }
  .closing__actions .btn { flex: 1 1 160px; }

}

@media (max-width: 420px) {
  .topbar__actions .btn-outline-light:not(.install-btn) { display: none; }
}