/* ─── LV TRAIL RELAUNCH STYLES (Nov 2026, fix batch 1) ─────────
   Loaded AFTER /shared.css on main-site pages only. shared.css stays
   untouched because /starter-website also depends on it.             */

/* HEADER: links + CTA. One row from 960px, two rows 640–959px,
   hamburger below 640px (shared.css breakpoint). Labels never wrap. */
.nav-inner { max-width: 1040px; }
.nav-links a { font-size: 0.86rem; padding: 0 13px; }
.nav-cta { white-space: nowrap; }
.nav-logo { min-height: 44px; }
.nav-hamburger { justify-self: end; padding: 14px 11px; margin-right: -11px; min-width: 44px; min-height: 44px; justify-content: center; }
@media (max-width: 639px) {
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav .nav-cta { display: none; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .nav-inner { grid-template-columns: auto 1fr; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .nav .nav-cta { justify-self: end; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}
.mobile-menu a.mobile-cta { font-family: var(--font-body); font-size: 1rem; }

/* Anchor targets clear the sticky header (measured header height + 16px) */
html { scroll-padding-top: 76px; }
@media (min-width: 640px) and (max-width: 959px) { html { scroll-padding-top: 102px; } }

/* FOOTER (contrast ≥ 4.5:1 on #1A1A18; tagline inside the footer container) */
.footer-inner { max-width: 1040px; }
.footer-copy { max-width: 46ch; color: #D4D4CE; }
.footer-copy a { color: #FFFFFF; }
.footer-links a { white-space: nowrap; color: #D4D4CE; }
.footer-links a:hover, .footer-copy a:hover { color: var(--stone); }
.footer-tagline { max-width: 1040px; margin: 28px auto 0; text-align: left; color: #C9B48F; }
.rl main a[href^="tel:"], .footer-copy a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 639px) {
  .footer-links { gap: 0; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .footer-copy a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Old blog posts: standalone "Back to all articles" link gets a 44px tap target (style only) */
main a[href="/blog/"][style*="font-weight:600"] { display: inline-flex; align-items: center; min-height: 44px; }

/* Old blog posts: breadcrumb links get a 44px tap area without shifting layout (padding offset by negative margin) */
.breadcrumb-inner a { display: inline-block; padding: 15px 10px; margin: -15px -10px; }

/* PAGE FRAME */
.rl-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.rl-narrow { max-width: 720px; }
.rl-sec { padding: 64px 0; }
.rl-sec.alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rl-sec.dark { background: var(--forest); color: var(--cream); }
@media (max-width: 640px) { .rl-sec { padding: 44px 0; } }

.rl-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8A6E45; margin: 0 0 12px; }
.rl-sec.dark .rl-eyebrow, .rl-wide .rl-eyebrow { color: var(--stone); }
.rl-eyebrow a { color: inherit; display: inline-block; padding: 15px 0; margin: -15px 0; }

.rl h1, .rl h2, .rl h3 { font-family: var(--font-display); line-height: 1.18; letter-spacing: -0.015em; color: var(--forest); text-wrap: balance; }
.rl h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
.rl h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); font-weight: 700; }
.rl h3 { font-size: 1.25rem; font-weight: 700; }
.rl .rl-sec.dark h2, .rl .rl-sec.dark h3, .rl .rl-wide h3 { color: var(--cream); }
.rl main p { margin: 0 0 14px; max-width: 66ch; line-height: 1.65; color: var(--ink-soft); }
.rl .rl-sec.dark p { color: rgba(255,255,255,0.82); }
.rl main b, .rl main strong { color: var(--ink); font-weight: 600; }
.rl .rl-sec.dark b { color: var(--cream); }
.rl .rl-lede { font-size: 1.15rem; margin-top: 18px; max-width: 62ch; }
.rl .rl-lede.sm { font-size: 1.05rem; margin-top: 14px; }
.rl main a:not(.rl-btn):not(.rl-path) { color: var(--forest-mid); text-decoration: underline; text-underline-offset: 3px; }
.rl main ul, .rl main ol { padding-left: 20px; color: var(--ink-soft); line-height: 1.6; }
.rl main li { margin-bottom: 8px; }
.rl-mt { margin-top: 24px; }

/* BUTTONS + STANDALONE LINKS (44px tap targets) */
.rl-btn { display: inline-flex; align-items: center; min-height: 44px; background: var(--forest); color: var(--cream); font-weight: 600; font-size: 0.95rem; padding: 11px 22px; border-radius: var(--radius); white-space: nowrap; transition: background 0.2s, transform 0.15s; }
.rl-btn:hover { background: var(--forest-mid); transform: translateY(-1px); }
.rl-btn.stone { background: var(--stone); color: var(--forest); }
.rl-btn.stone:hover { background: #d4b892; }
.rl-more, .rl-textlink { display: inline-flex; align-items: center; min-height: 44px; }
.rl-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }

/* HOME HERO */
.rl-hero { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,0.75fr); gap: 40px; align-items: center; }
.rl-herovis { display: flex; justify-content: center; align-items: flex-end; padding-bottom: 24px; }
.rl-herovis .rl-browser { flex: 0 1 330px; min-width: 0; }
.rl-herovis .rl-phone { width: 120px; margin-left: -60px; transform: translateY(24px); }
.rl-paths { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
@media (min-width: 480px) { .rl-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rl-path { display: block; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; transition: border-color 0.2s, transform 0.15s; }
.rl-path:hover { border-color: var(--forest); transform: translateY(-1px); }
.rl-path b { display: block; color: var(--forest); font-size: 0.95rem; }
.rl-path span { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }
@media (max-width: 959px) {
  .rl-hero { grid-template-columns: 1fr; }
  .rl-herovis { justify-content: flex-start; }
  .rl-herovis .rl-browser { flex: 0 1 560px; }
  .rl-herovis .rl-phone { width: 140px; margin-left: -90px; }
}
@media (max-width: 639px) {
  .rl-herovis .rl-phone { width: 104px; margin-left: -64px; }
}

/* DEVICE FRAMES: screenshots sit in a 16:10 frame, top-anchored, never wider than their container */
.rl-browser { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); box-shadow: 0 12px 32px rgba(30,58,47,0.12); }
.rl-bar { display: flex; gap: 6px; align-items: center; padding: 8px 12px; background: var(--stone-light); border-bottom: 1px solid var(--border); font-size: 0.75rem; color: var(--ink-muted); }
.rl-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); display: inline-block; flex: none; }
.rl-bar span { margin-left: 8px; background: var(--white); border-radius: 4px; padding: 2px 10px; flex: 1; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.rl-phone { width: 150px; border: 7px solid #1A1A18; border-radius: 26px; overflow: hidden; background: #1A1A18; box-shadow: 0 18px 40px rgba(30,58,47,0.22); flex: none; position: relative; }
.rl-phone img { width: 100%; height: auto; aspect-ratio: 360 / 560; object-fit: cover; object-position: top center; }

/* Work + blog showcases: laptop capped at 720px, phone overlapping its lower-right corner; stacked below 640px */
.rl-showcase { display: flex; align-items: flex-end; margin: 18px 0 36px; }
.rl-showcase .rl-browser { flex: 0 1 720px; min-width: 0; }
.rl-showcase .rl-phone { width: 150px; margin-left: -110px; transform: translateY(28px); }
@media (max-width: 639px) {
  .rl-showcase { flex-direction: column; align-items: center; margin-bottom: 18px; }
  .rl-showcase .rl-browser { flex: none; width: 100%; }
  .rl-showcase .rl-phone { margin: 16px 0 0; transform: none; width: 140px; }
}

/* CARD GRIDS: column count chosen per card count so every row is full */
.rl-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.rl-grid > * { min-width: 0; }
@media (min-width: 640px) {
  .rl-grid.g2, .rl-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rl-grid.g7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rl-grid.g7 > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .rl-grid.g3, .rl-grid.g7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rl-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 24px; overflow: hidden; }
.rl-card h3 + p, .rl-card h3 + ul { margin-top: 10px; }
.rl-card ul { margin-top: 10px; }
.rl-thumb { display: block; width: calc(100% + 48px); margin: -24px -24px 16px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--stone-light); }
.rl-thumb picture { display: block; width: 100%; height: 100%; }
.rl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.rl-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--forest-mid); background: var(--forest-light); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.rl-two { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .rl-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rl-two > div { border-left: 3px solid var(--stone); padding-left: 18px; }
.rl-two h3 + p { margin-top: 8px; }
.rl-stack { display: flex; flex-direction: column; gap: 24px; }
.rl-card h2 { font-size: 1.6rem; }

/* FULL-WIDTH BANDS (dark leadership band, light SaaS band) */
.rl-wide { background: var(--forest); color: var(--cream); border-radius: 10px; padding: 26px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; margin-top: 20px; }
.rl-wide .rl-eyebrow { margin: 0 0 6px; max-width: none; }
.rl .rl-wide p { color: rgba(255,255,255,0.82); margin: 8px 0 0; max-width: none; }
.rl-wide.light { background: var(--stone-light); color: var(--ink); border: 1px solid var(--border); margin-top: 32px; }
.rl-wide.light .rl-eyebrow { color: #8A6E45; }
.rl .rl-wide.light h3 { color: var(--forest); }
.rl .rl-wide.light p { color: var(--ink-soft); }
.rl-wide-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rl-askanyway { margin: 40px auto 0 !important; text-align: center; max-width: 62ch; }
@media (max-width: 959px) {
  .rl-wide { grid-template-columns: 1fr; }
  .rl-wide .rl-btn { justify-self: start; }
}
/* Tablet: band label stays on one line (full-width text column, tighter tracking) */
@media (min-width: 640px) and (max-width: 959px) {
  .rl-wide .rl-eyebrow { font-size: 0.7rem; letter-spacing: 0.06em; white-space: nowrap; }
}

.rl-quote { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--forest); line-height: 1.5; }
.rl .rl-quote { color: var(--forest); }
.rl-pull { border-left: 3px solid var(--stone); padding-left: 18px; }
.rl-pull .rl-quote { margin: 0; }
.rl-pull .rl-cite, .rl-cite { font-size: 0.88rem; margin: 8px 0 0; }
.rl-muted { color: var(--ink-muted) !important; }

/* FAQ */
.rl-faq { margin-top: 20px; }
.rl-faq details { border-bottom: 1px solid var(--border); padding: 6px 0; }
.rl-faq summary { font-weight: 600; font-size: 1.05rem; color: var(--forest); padding: 10px 28px 10px 0; min-height: 44px; }
.rl-faq details p { margin: 4px 0 12px; }

/* BLOG */
.rl-postlist > div h3 a { display: block; padding: 9px 0; color: var(--forest) !important; text-decoration: none !important; }
.rl-postlist > div h3 a:hover { text-decoration: underline !important; }
.rl-date { font-size: 0.88rem; margin: 0 0 6px !important; color: var(--ink-muted) !important; }
.rl-byline { margin-top: 14px; color: var(--ink-muted) !important; }
.rl-post h2 { font-size: 1.5rem; margin-top: 32px; margin-bottom: 10px; }
.rl-post .rl-showcase { margin-top: 22px; }

/* CONTACT FORM */
.rl-form { display: flex; flex-direction: column; gap: 18px; }
.rl-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.rl-form input, .rl-form select, .rl-form textarea { width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; font-family: var(--font-body); background: var(--white); color: var(--ink); }
.rl-form input:focus, .rl-form select:focus, .rl-form textarea:focus { border-color: var(--forest); }
.rl-form textarea { resize: vertical; }
.rl-form .rl-pair { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .rl-form .rl-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rl-form button { align-self: flex-start; border: 0; cursor: pointer; font-family: var(--font-body); }
.rl-form .rl-disclaimer { font-size: 0.82rem; margin: 0; }
