/* ==========================================================================
   RelationshipAI — landing page layer (loaded after style.css)
   Everything here is scoped to body.lp so the shared design system is untouched.
   ========================================================================== */

.lp section:not(.hero) { padding: 96px 0; }
.lp .section-head { margin-bottom: 56px; max-width: 680px; }
.lp .section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; }
.lp .section-head p { font-size: 17px; }

/* ---------------- Hero ---------------- */
.lp .hero { position: relative; padding: 84px 24px 56px; overflow: hidden; }
.lp .hero > * { position: relative; z-index: 1; }
.lp .hero .hero-glow {
  position: absolute; z-index: 0; inset: -120px 0 auto 0; height: 620px; pointer-events: none;
  background:
    radial-gradient(ellipse 520px 340px at 78% 0%, rgba(209, 160, 90, 0.20), transparent 70%),
    radial-gradient(ellipse 480px 320px at 14% 8%, rgba(168, 69, 92, 0.18), transparent 70%);
}
.lp .hero h1 { font-size: clamp(36px, 6vw, 66px); line-height: 1.06; max-width: 940px; letter-spacing: -0.02em; }
.lp .hero-sub { font-size: clamp(17px, 2vw, 20px); max-width: 680px; }
.lp .hero-sub strong { color: var(--text); font-weight: 600; }
.lp .btn-lg { padding: 16px 30px; font-size: 16px; border-radius: 12px; }
.lp .btn-gradient { box-shadow: 0 8px 28px rgba(209, 160, 90, 0.22); }
.lp .btn-gradient:hover:not(:disabled) { box-shadow: 0 10px 34px rgba(209, 160, 90, 0.34); }
.lp .hero-note { margin-bottom: 0; }

/* Tabbed demo */
.demo {
  max-width: 760px; margin: 52px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 6px rgba(250, 235, 215, 0.03);
  overflow: hidden;
}
.demo-tabs { display: flex; gap: 6px; padding: 10px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.demo-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--text-muted);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.demo-tab svg { width: 17px; height: 17px; stroke: currentColor; }
.demo-tab:hover { color: var(--text); }
.demo-tab.active { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }
.demo-tab.active svg { stroke: var(--accent-1); }
.demo-panel { padding: 22px 24px 26px; }
.demo-panel[hidden] { display: none; }

.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.demo-bar-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.chip {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--radius-pill);
  background: rgba(250, 235, 215, 0.06); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}
.chip-memory { color: var(--accent-1); background: rgba(209, 160, 90, 0.10); border-color: rgba(209, 160, 90, 0.28); }

.demo .mock-row, .vis-card .mock-row { display: flex; margin: 10px 0; }
.demo .mock-row.user, .vis-card .mock-row.user { justify-content: flex-end; }
.demo .bubble, .vis-card .bubble { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.demo .mock-row.user .bubble, .vis-card .mock-row.user .bubble { background: var(--accent-1); color: var(--ink); border-bottom-right-radius: 4px; }
.demo .mock-row.ai .bubble, .vis-card .mock-row.ai .bubble { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }

.memory-note {
  margin-top: 16px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; color: var(--text-muted);
  background: rgba(209, 160, 90, 0.07); border: 1px dashed rgba(209, 160, 90, 0.35);
}
.memory-note span { color: var(--accent-1); font-weight: 700; margin-right: 8px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }

.debrief {
  margin-top: 16px; border-radius: 14px; overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
}
.debrief-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 11px 16px; font-size: 13.5px; }
.debrief-row + .debrief-row { border-top: 1px solid var(--border); }
.debrief-row strong { color: var(--accent-1); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; padding-top: 2px; }
.debrief-row span { color: var(--text-muted); }

.frameworks {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px;
  margin-top: 40px; font-size: 14px; color: var(--text-muted);
}
.frameworks-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.frameworks i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-1); opacity: 0.7; }

/* ---------------- Core tools ---------------- */
.lp .tools-intro { padding: 72px 0 0; }
.lp .tools-intro .section-head { margin-bottom: 0; }
.lp .core { padding: 64px 0; }
.core-split { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.core-reverse .core-split { grid-template-columns: 1.08fr 1fr; }
.core-reverse .core-text { order: 2; }
.core-reverse .core-visual { order: 1; }

.core-num {
  display: block; font-family: var(--font-display); font-size: 64px; font-weight: 500; line-height: 1;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.85; margin-bottom: 6px;
}
.core-text .section-tag { display: block; margin-bottom: 8px; }
.core-text h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; margin-bottom: 18px; letter-spacing: -0.015em; }
.core-text > p { font-size: 17px; }
.core-list { list-style: none; padding: 0; margin: 22px 0 30px; }
.core-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15.5px; color: var(--text-muted); }
.core-list li strong { color: var(--text); font-weight: 600; }
.core-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; stroke: var(--success); }

.core-visual { position: relative; }
.core-visual::before {
  content: ""; position: absolute; inset: -28px; z-index: 0; pointer-events: none; border-radius: 40px;
  background: radial-gradient(ellipse at 50% 40%, rgba(209, 160, 90, 0.14), transparent 68%);
}
.vis-card {
  position: relative; z-index: 1; padding: 22px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.vis-float {
  position: absolute; z-index: 2; padding: 11px 15px; border-radius: 14px; font-size: 12.5px; line-height: 1.4;
  background: var(--bg-elevated); border: 1px solid rgba(209, 160, 90, 0.4); color: var(--text-muted);
  box-shadow: var(--shadow); max-width: 220px;
}
.vis-float strong { display: block; color: var(--accent-1); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 2px; }
.vis-float-a { right: -18px; bottom: -22px; }
.vis-float-b { left: -18px; bottom: -22px; }

/* ---------------- Extras ---------------- */
.lp .extras { background: linear-gradient(180deg, transparent, rgba(250, 235, 215, 0.025), transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.extras-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.extra-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.extra-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.extra-card .feature-icon svg { width: 20px; height: 20px; stroke: var(--ink); }
.extra-card h3 { font-size: 17px; margin-bottom: 6px; }
.extra-card p { font-size: 14.5px; margin: 0; }

/* ---------------- Pricing ---------------- */
.billing-toggle {
  display: flex; width: fit-content; margin: 0 auto 40px; padding: 5px; gap: 4px;
  background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
}
.billing-btn {
  padding: 10px 22px; border-radius: var(--radius-pill); border: 0; background: transparent; color: var(--text-muted);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.billing-btn.active { background: var(--accent-grad); color: var(--ink); }
.billing-save { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(139, 171, 111, 0.18); color: var(--success); }
.billing-btn.active .billing-save { background: rgba(26, 20, 13, 0.16); color: var(--ink); }

.lp .pricing-grid { gap: 22px; }
.lp .price-card { padding: 34px 28px; border-radius: 22px; }
.lp .price-card.featured {
  box-shadow: 0 0 0 1px rgba(209, 160, 90, 0.45), 0 24px 70px rgba(209, 160, 90, 0.12);
  transform: translateY(-8px);
}
.lp .price-value { font-size: 46px; line-height: 1.05; margin-bottom: 2px; }
.lp .price-value span.per, .lp .price-value > span:not(.amt) { font-size: 15px; font-family: var(--font-body); color: var(--text-faint); font-weight: 400; }
.price-billed { font-size: 12.5px; color: var(--text-faint); margin: 0 0 14px; min-height: 18px; }
.lp .price-features li span { color: var(--text-muted); }
.lp .price-features li span strong { color: var(--text); font-weight: 600; }
.lp .price-features li svg { margin-top: 3px; }

/* ---------------- Misc polish ---------------- */
.lp .step { border-radius: 18px; }
.lp .compare-table-wrap { border-radius: 20px; }
.lp .cta-banner { box-shadow: 0 30px 80px rgba(209, 160, 90, 0.18); }
.lp .cta-banner h2 { font-size: clamp(28px, 3.6vw, 40px); }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .core-split, .core-reverse .core-split { grid-template-columns: 1fr; gap: 44px; }
  .core-reverse .core-text, .core-reverse .core-visual { order: unset; }
  .vis-float-a { right: 8px; } .vis-float-b { left: 8px; }
  .lp .price-card.featured { transform: none; }
  .extras-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp section:not(.hero) { padding: 64px 0; }
  .lp .core { padding: 40px 0; }
  .lp .tools-intro { padding-top: 56px; }
  .lp .hero { padding: 56px 18px 40px; }
  .lp .btn-lg { width: 100%; }
  .lp .hero-cta { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
  .demo { margin-top: 40px; border-radius: 18px; }
  .demo-panel { padding: 18px 16px 20px; }
  .demo-tab { font-size: 13.5px; padding: 10px 8px; gap: 6px; }
  .demo .bubble, .vis-card .bubble { max-width: 92%; font-size: 14px; }
  .debrief-row { grid-template-columns: 1fr; gap: 2px; }
  .core-num { font-size: 52px; }
  .vis-card { padding: 16px; }
  .vis-float { display: none; }
  .billing-btn { padding: 9px 14px; font-size: 13.5px; }
  .lp .price-card { padding: 28px 22px; }
}

/* glow halos intentionally extend past the cards; never let them add a horizontal scrollbar */
.lp main { overflow-x: clip; }
@media (max-width: 640px) { .core-visual::before { inset: -12px; } }

/* ---- fixes after first visual pass ---- */
.lp h1, .lp h2 { text-wrap: balance; }
.lp .price-value .amt { font-family: var(--font-display); font-size: 46px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.vis-float-a { right: -18px; bottom: -44px; }
.vis-float-b { left: -18px; bottom: -44px; }
.lp .core-visual { margin-bottom: 28px; }
@media (max-width: 960px) { .vis-float-a { right: 8px; bottom: -40px; } .vis-float-b { left: 8px; bottom: -40px; } }

/* specificity: beat `.lp section:not(.hero)` for the tighter core-tool rhythm */
.lp section.tools-intro { padding: 72px 0 8px; }
.lp section.core { padding: 56px 0 72px; }
@media (max-width: 640px) { .lp section.tools-intro { padding: 56px 0 0; } .lp section.core { padding: 36px 0 48px; } }

/* hero glow spans the full viewport width (no visible box edges); main clips any overflow */
.lp .hero { overflow: visible; }
.lp .hero .hero-glow { inset: auto; top: -120px; left: 50%; width: 100vw; transform: translateX(-50%); height: 640px; }

/* ======================= Blog ======================= */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.post-card:hover { border-color: rgba(209, 160, 90, 0.5); transform: translateY(-3px); background: var(--surface-hover); }
.post-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-tag {
  display: inline-block; padding: 3px 11px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-1);
  background: rgba(209, 160, 90, 0.10); border: 1px solid rgba(209, 160, 90, 0.28);
}
.post-meta { font-size: 12.5px; color: var(--text-faint); }
.post-card h3 { font-size: 21px; line-height: 1.25; margin: 4px 0 0; color: var(--text); }
.post-card p { font-size: 14.5px; margin: 0; flex: 1; }
.post-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-1); margin-top: 6px; }
.post-more svg { width: 16px; height: 16px; stroke: currentColor; transition: transform 0.15s ease; }
.post-card:hover .post-more svg { transform: translateX(3px); }
.blog-all { text-align: center; margin: 36px 0 0; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.blog-hero { padding: 72px 0 24px !important; text-align: center; }
.blog-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; max-width: 780px; margin: 0 auto 16px; letter-spacing: -0.02em; font-weight: 500; }
.blog-hero p { font-size: 18px; max-width: 600px; margin: 0 auto; }
.lp section.blog-list { padding: 40px 0 72px; }
.blog-empty { text-align: center; }
.more-posts h2 { font-size: 26px; margin-bottom: 24px; }
.lp section.blog-latest { padding: 80px 0; }

.article { padding: 56px 0 24px !important; }
.article-wrap { max-width: 760px; }
.article-back { display: inline-block; font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.article-back:hover { color: var(--text); }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.article h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 14px; }
.article-meta { font-size: 14px; color: var(--text-faint); margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.article-body { font-size: 18px; line-height: 1.75; color: var(--text-muted); }
.article-body p { color: var(--text-muted); margin: 0 0 22px; font-size: 18px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--text); }
.article-body h2 { font-size: 28px; line-height: 1.2; margin: 48px 0 14px; color: var(--text); }
.article-body h3 { font-size: 21px; margin: 32px 0 10px; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin: 6px 0; padding-left: 4px; }
.article-body li::marker { color: var(--accent-1); }
.article-body a { color: var(--accent-1); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--accent-1); border-radius: 0 14px 14px 0;
  background: rgba(209, 160, 90, 0.07); color: var(--text); font-family: var(--font-display); font-size: 20px; line-height: 1.5;
}
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.article-body img { border-radius: 14px; margin: 28px 0; }
.article-body code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--bg-elevated); border: 1px solid var(--border); }
.article-body pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--border); margin: 0 0 24px; }
.article-body pre code { background: none; border: 0; padding: 0; }
.article-cta {
  margin: 56px 0 24px; padding: 36px 32px; text-align: center; border-radius: 22px;
  background: linear-gradient(180deg, rgba(209, 160, 90, 0.14), var(--surface)); border: 1px solid rgba(209, 160, 90, 0.4);
}
.article-cta h2 { font-size: 26px; margin-bottom: 8px; }
.article-cta p { margin: 0 auto 22px; max-width: 480px; }
.article-note { font-size: 13px; color: var(--text-faint); text-align: center; margin: 0 0 32px; }

@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 48px 0 8px !important; }
  .article { padding: 36px 0 8px !important; }
  .article-body, .article-body p { font-size: 17px; }
  .article-body h2 { font-size: 24px; margin-top: 38px; }
  .article-cta { padding: 28px 20px; }
  .lp section.blog-latest { padding: 56px 0; }
}

.article-cta .ig-line { margin: 20px auto 0; font-size: 14.5px; color: var(--text-faint); }
.article-cta .ig-line a { color: var(--accent-1); text-decoration: underline; text-underline-offset: 3px; }



/* ---- v4: restrained mascot accents (premium first), merged sections, readability ---- */
.demo-wrap { position: relative; max-width: 760px; margin: 52px auto 0; }
.demo-wrap .demo { margin: 0 auto; }
.extras-label { margin: 56px 0 18px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2-text); }
.lp section.approach { padding: 56px 0 72px; }
.lp .hero-note { font-size: 14px; color: var(--text-muted); }
.price-billed { font-size: 13.5px; color: var(--text-muted); }
.compare-note, .pricing-note { font-size: 14px; color: var(--text-muted); }
.frameworks-label { color: var(--text-muted); }
@media (max-width: 640px) { .lp .hero-note { font-size: 14px; } .extras-label { margin-top: 40px; } }

/* ---- early-access email form ---- */
.soon-form { display: grid; gap: 10px; margin-top: 16px; }
.soon-input {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: 16px;
  background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border-strong);
}
.soon-input::placeholder { color: var(--text-faint); }
.soon-input:focus { outline: 2px solid var(--accent-1); outline-offset: 1px; border-color: transparent; }
.soon-form .btn { width: 100%; justify-content: center; }
.soon-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.soon-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soon-error { margin: 0; font-size: 14px; color: var(--danger-text); }
.soon-fine { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.soon-fine a { color: var(--text); text-decoration: underline; }
#soon-modal .modal-close-row { margin-top: 14px; }

/* ---- Wisp mascot: floating, glowing, used sparingly ---- */
.wisp { display: none; position: absolute; pointer-events: none; user-select: none; height: auto; z-index: 2;
  filter: drop-shadow(0 0 26px rgba(255, 176, 96, 0.22)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35)); animation: wispFloat 7s ease-in-out infinite; }
@keyframes wispFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.demo-wrap { margin-top: 84px; }
.wisp-hero-r { display: block; right: 6px; top: -72px; width: 76px; animation-delay: -2.4s; }
@media (min-width: 1180px) {
  .demo-wrap { margin-top: 52px; }
  .wisp-hero-l { display: block; left: -176px; bottom: 6px; width: 124px; }
  .wisp-hero-r { right: -176px; top: auto; bottom: 26px; width: 130px; animation-delay: -4.6s; }
}
.lp .cta-banner { position: relative; }
@media (min-width: 900px) {
  .wisp-cta { display: block; right: 56px; bottom: -6px; width: 92px; filter: drop-shadow(0 12px 22px rgba(60, 20, 30, 0.35)); animation-delay: -1.5s; }
}
@media (prefers-reduced-motion: reduce) { .wisp { animation: none; } }

/* ---- peeking mascots: they hold on to the top edge of a card ---- */
.peek { position: absolute; z-index: 3; height: auto; pointer-events: none; user-select: none; }
.peek-host { position: relative; margin-top: 148px; }
.peek-compare { width: 76px; left: 61%; transform: translateX(-50%); bottom: calc(100% - 8px); }
.has-peek { position: relative; }
.peek-pro { width: 104px; right: 30px; bottom: calc(100% - 10px); }
.peek-premium { width: 108px; right: 22px; bottom: calc(100% - 9px); }
.pricing-grid { margin-top: 132px; }
@media (max-width: 960px) {
  .pricing-grid { margin-top: 120px; }
  .pricing-grid .price-card.has-peek { margin-top: 118px; }
  .peek-compare { left: auto; right: 14px; transform: none; width: 68px; }
}
@media (max-width: 640px) { .peek-host { margin-top: 138px; } .peek-premium { width: 92px; } .peek-pro { width: 92px; } }

/* ======================================================================== */
/* Landing redesign: three main tools, more-tools grid, plan compare        */
/* ======================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* hero demo: three tabs */
.demo-tabs { flex-wrap: wrap; }
.chip-risk { color: #e7b46a; background: rgba(231, 180, 106, 0.12); border-color: rgba(231, 180, 106, 0.35); }

/* the three main tools */
.lp section.tools-intro { padding: 80px 0 24px; }
.lp .tools-intro .section-head { margin-bottom: 40px; }
.tool-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 28px 26px 24px; border-radius: 22px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--accent-1); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); }
.tool-card-start { border-color: rgba(209, 160, 90, 0.55); background: linear-gradient(180deg, rgba(209, 160, 90, 0.10), var(--surface) 60%); }
.tool-card-icon {
  width: 52px; height: 52px; border-radius: 15px; background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.tool-card-icon svg { width: 26px; height: 26px; stroke: var(--ink); }
.tool-card-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-1); }
.tool-card h3 { font-size: 24px; line-height: 1.15; margin: 2px 0 4px; color: var(--text); }
.tool-card p { font-size: 15.5px; margin: 0 0 14px; color: var(--text-muted); flex: 1; }
.tool-card-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.tool-card-more svg { width: 16px; height: 16px; stroke: var(--accent-1); transition: transform 0.18s ease; }
.tool-card:hover .tool-card-more svg { transform: translateX(4px); }

/* message check visual */
.mc-read { margin: 12px 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted); }
.mc-read strong { display: block; color: var(--accent-1); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.mc-versions { display: grid; gap: 8px; }
.mc-version { padding: 11px 14px; border-radius: 12px; font-size: 14px; color: var(--text); background: rgba(209, 160, 90, 0.08); border: 1px solid rgba(209, 160, 90, 0.28); }
.mc-version span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-1); margin-bottom: 2px; }

/* more tools */
.lp section.more-tools { padding: 88px 0 72px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.more-card {
  padding: 22px 22px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.more-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.more-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.more-card .feature-icon { width: 40px; height: 40px; margin: 0; border-radius: 11px; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; }
.more-card .feature-icon svg { width: 20px; height: 20px; stroke: var(--ink); }
.more-card h3 { font-size: 17.5px; margin: 0 0 6px; color: var(--text); }
.more-card p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--text-muted); }
.plan-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); }
.tag-free { color: #a9c98c; border-color: rgba(139, 171, 111, 0.45); background: rgba(139, 171, 111, 0.10); }
.tag-pro { color: var(--accent-1); border-color: rgba(209, 160, 90, 0.5); background: rgba(209, 160, 90, 0.10); }
.tag-premium { color: #e58aa0; border-color: rgba(207, 106, 130, 0.5); background: rgba(207, 106, 130, 0.10); }
.more-also { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; align-items: center; font-size: 14px; color: var(--text-muted); }
.more-also strong { color: var(--text); margin-right: 4px; }
.more-also span { padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }

/* pricing cards: lead line + plan compare */
.price-features li.price-lead { padding: 0 0 6px; font-weight: 700; color: var(--text); }
.price-features li.price-lead span { color: var(--text); font-weight: 700; }
.plan-compare { max-width: 900px; margin: 36px auto 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.plan-compare > summary {
  list-style: none; cursor: pointer; padding: 18px 24px; font-weight: 600; font-size: 16px; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}
.plan-compare > summary::-webkit-details-marker { display: none; }
.plan-compare > summary::after { content: "+"; font-size: 22px; color: var(--accent-1); line-height: 1; }
.plan-compare[open] > summary::after { content: "\2212"; }
.plan-compare-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.plan-table th, .plan-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.plan-table thead th { color: var(--text); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; background: var(--bg-elevated); }
.plan-table tbody th { color: var(--text); font-weight: 600; width: 28%; }
.plan-table tbody tr:last-child th, .plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-table .pt-yes svg { width: 18px; height: 18px; stroke: var(--success); }
.plan-table .pt-no { color: var(--text-faint); }

@media (max-width: 900px) {
  .tool-trio, .more-grid { grid-template-columns: 1fr; }
  .tool-card h3 { font-size: 22px; }
}
@media (min-width: 901px) and (max-width: 1060px) {
  .more-grid { grid-template-columns: repeat(2, 1fr); }
}
.plan-table .pt-no svg { width: 15px; height: 15px; stroke: var(--text-faint); opacity: 0.7; }

/* Not-included rows: a red cross, so the gap between plans is easy to see */
.price-features li.no svg { stroke: #e0645a; }
.price-features li.no span { color: var(--text-faint); }
.plan-table .pt-no svg { stroke: #e0645a; opacity: 1; }

.pricing-guarantee + .pricing-guarantee { margin-top: 12px; }
.pricing-assurances { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.pricing-assurances .pricing-guarantee, .pricing-assurances .pricing-guarantee + .pricing-guarantee { margin-top: 0; flex: 1 1 340px; max-width: 520px; }

/* ---- Credibility pass: example labels, hero email field, collapsible tools ---- */
.anchor { display: block; height: 0; scroll-margin-top: 84px; }
.demo-example { font-style: normal; margin-left: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); vertical-align: middle; }
.hero-signup { display: flex; gap: 10px; max-width: 540px; margin: 28px auto 0; }
.hero-signup-input { flex: 1; min-width: 0; padding: 16px 18px; border-radius: 14px; font: inherit; font-size: 16px; background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border-strong); }
.hero-signup-input::placeholder { color: var(--text-faint); }
.hero-signup-input:focus { outline: 2px solid var(--accent-1); outline-offset: 1px; border-color: transparent; }
.hero-signup .btn { white-space: nowrap; }
.hero-error { margin: 10px 0 0; text-align: center; }
.hero-signup-done { margin: 28px auto 0; max-width: 540px; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(139, 171, 111, 0.45); background: rgba(139, 171, 111, 0.10); color: var(--text); text-align: center; }
.lp .hero-note { margin-top: 14px; }
.hero-more { color: var(--text); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.more-toggle { display: none; margin: 18px auto 0; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 700px) {
  .hero-signup { flex-direction: column; margin-top: 24px; }
  .hero-signup .btn { width: 100%; justify-content: center; }
  .more-grid.is-collapsed .more-card:nth-child(n+4) { display: none; }
  .more-toggle { display: block; }
}

/* ======================================================================== */
/* Mobile layout: swipe instead of endless stacking                          */
/* ======================================================================== */
.tool-tabs, .carousel-dots { display: none; }
@media (max-width: 700px) {
  /* The three main tools: one at a time, switched with tabs */
  .tool-tabs { display: flex; gap: 6px; margin: 0 16px 8px; padding: 6px; border-radius: 16px; background: var(--bg-elevated); border: 1px solid var(--border-strong); }
  .tool-tabs button { flex: 1; padding: 11px 6px; border: 0; border-radius: 11px; background: transparent; color: var(--text-muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .tool-tabs button[aria-selected="true"] { background: var(--accent-grad); color: var(--ink); }
  .tool-tab-hidden { display: none !important; }

  /* Pricing and blog: swipeable rows with the next card peeking in */
  .pricing-grid, .post-grid { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pricing-grid::-webkit-scrollbar, .post-grid::-webkit-scrollbar { display: none; }
  .pricing-grid > *, .post-grid > * { flex: 0 0 86%; scroll-snap-align: center; min-width: 0; }
  .pricing-grid { margin-top: 0; padding-top: 128px; align-items: stretch; }
  .pricing-grid .price-card.has-peek { margin-top: 0; }
  .pricing-grid .reveal-item, .post-grid .reveal-item { opacity: 1 !important; transform: none !important; }
  .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .carousel-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--border-strong); cursor: pointer; }
  .carousel-dots button[aria-current="true"] { width: 22px; border-radius: 999px; background: var(--accent-1); }
}

/* ---- Mobile pass 2: compare tabs, tools row, compact steps, shorter FAQ ---- */
.compare-tabs, .faq-more { display: none; }
@media (max-width: 700px) {
  /* Compare: RelationshipAI plus ONE other column at a time, so nothing is cut off */
  .compare-tabs { display: flex; gap: 6px; margin: 0 0 12px; padding: 5px; border-radius: 14px; background: var(--bg-elevated); border: 1px solid var(--border-strong); }
  .compare-tabs button { flex: 1; padding: 10px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  .compare-tabs button[aria-selected="true"] { background: var(--accent-grad); color: var(--ink); }
  .compare-table { min-width: 0; table-layout: fixed; font-size: 13px; }
  .compare-table th, .compare-table td { white-space: normal; padding: 11px 10px; vertical-align: top; }
  .compare-table th:first-child, .compare-table td:first-child { width: 36%; }
  .compare-table thead th { font-size: 13px; }
  .compare-wrap-bot th:nth-child(4), .compare-wrap-bot td:nth-child(4) { display: none; }
  .compare-wrap-therapy th:nth-child(3), .compare-wrap-therapy td:nth-child(3) { display: none; }

  /* Small tools: a swipe row with a counter (replaces the show-all button) */
  .more-toggle { display: none !important; }
  .more-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .more-grid::-webkit-scrollbar { display: none; }
  .more-grid > * { flex: 0 0 78%; scroll-snap-align: center; min-width: 0; }
  .more-grid .reveal-item { opacity: 1 !important; transform: none !important; }
  .carousel-count { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-faint); letter-spacing: 0.04em; }

  /* How it works: compact numbered rows */
  #how-it-works .steps { gap: 18px; }
  #how-it-works .step { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding-top: 0; }
  #how-it-works .step .step-number { grid-row: 1 / span 2; width: 38px; height: 38px; margin: 0; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 14px; }
  #how-it-works .step h3 { margin: 0 0 4px; font-size: 17px; }
  #how-it-works .step p { margin: 0; }

  /* FAQ: first questions only, the rest on request */
  .faq .faq-item.faq-extra { display: none; }
  .faq.faq-open .faq-item.faq-extra { display: block; }
  .faq-more { display: block; margin: 16px auto 0; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
}

/* ---- One section for the three main tools (no repeated demos) ---- */
.tool-card-full { text-decoration: none; gap: 8px; }
.tool-card-full:hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
.tool-card-full.tool-card-start:hover { border-color: rgba(209, 160, 90, 0.55); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tool-card-num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent-2-text); opacity: 0.55; }
.tool-card-full p { flex: 0 0 auto; margin: 0; }
.tool-card-full .core-list { flex: 1; margin: 14px 0 22px; }
.tool-card-full .core-list li { font-size: 15px; padding: 6px 0; }
.tool-card-full .btn { align-self: flex-start; }

/* ======================================================================== */
/* Mobile: description + example of each main tool live in one tab           */
/* ======================================================================== */
@media (max-width: 700px) {
  body.tools-merged .tools-intro { display: none; }
  .demo-detail-head { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); text-align: left; }
  .demo-detail-head .tool-card-tag { display: inline-block; margin-bottom: 10px; }
  .demo-detail-head h3 { font-size: 21px; line-height: 1.22; margin: 0 0 8px; }
  .demo-detail-head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
  .demo-detail-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); text-align: left; }
  .demo-detail-foot .core-list { margin: 0 0 18px; }
  .demo-detail-foot .core-list li { font-size: 14.5px; padding: 5px 0; }
  .demo-detail-foot .btn { display: flex; width: 100%; justify-content: center; align-items: center; }
}

/* ======================================================================== */
/* Mobile pricing v2: stacked compact plans, details fold open               */
/* ======================================================================== */
.price-toggle { display: none; }
@media (max-width: 700px) {
  .lp .pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; overflow: visible; scroll-snap-type: none; margin: 0; padding: 14px 0 0; align-items: start; }
  .lp .pricing-grid > * { flex: none; min-width: 0; }
  .lp .pricing-grid .peek { display: none; }
  .lp .pricing-grid .reveal-item { opacity: 1 !important; transform: none !important; }
  .carousel-dots { display: none !important; }

  .lp .price-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: start; padding: 20px 18px 16px; border-radius: 20px; transform: none; margin-top: 0; }
  .lp .price-card.featured { box-shadow: 0 0 0 1px rgba(209, 160, 90, 0.5), 0 14px 40px rgba(209, 160, 90, 0.14); }
  .lp .price-card .price-badge { left: 18px; top: -12px; }
  .lp .price-card .price-persona { grid-column: 1; grid-row: 1; margin: 0 0 4px; font-size: 11px; }
  .lp .price-card h3 { grid-column: 1; grid-row: 2; margin: 0; font-size: 24px; line-height: 1.1; }
  .lp .price-card .price-value { grid-column: 2; grid-row: 1 / span 2; margin: 0; text-align: right; line-height: 1; align-self: center; }
  .lp .price-card .price-value .amt { font-size: 32px; }
  .lp .price-card .price-value .per, .lp .price-card .price-value > span:not(.amt) { display: block; margin-top: 4px; font-size: 12.5px; }
  .lp .price-card .price-desc { grid-column: 1 / -1; grid-row: 3; margin: 14px 0 6px; font-size: 14.5px; line-height: 1.5; }
  .lp .price-card .price-billed { grid-column: 1 / -1; grid-row: 4; margin: 0 0 14px; min-height: 0; font-size: 12.5px; }
  .lp .price-card > .btn { grid-column: 1 / -1; grid-row: 5; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .lp .price-card .price-toggle { grid-column: 1 / -1; grid-row: 6; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 12px 0 2px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .lp .price-card .price-toggle svg { width: 18px; height: 18px; stroke: currentColor; transition: transform 0.2s ease; }
  .lp .price-card.is-open .price-toggle svg { transform: rotate(180deg); }
  .lp .price-card .price-toggle:hover { color: var(--text); }
  .lp .price-card .price-features { grid-column: 1 / -1; grid-row: 7; display: none; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
  .lp .price-card.is-open .price-features { display: block; }
}
