/* Service pages, the SEO guide and the homepage pathways.
   Loaded after style.css, only by the pages that use these blocks. */

/* ---------- screenshots in device frames ---------- */
.browser { border: 1px solid #e3e3e3; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
.browser-bar { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 12px; background: #f2f2f2; }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d4; }
.browser img, .phone img { display: block; width: 100%; height: auto; }
.phone { border: 5px solid #111; border-radius: 22px; overflow: hidden; background: #111; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25); }
.shots { position: relative; display: block; padding-bottom: 40px; }
.shots .phone { position: absolute; right: 5%; bottom: 0; width: 23%; }

/* ---------- featured client and demo blocks ---------- */
.dealer-examples .section-title, .demo-drive .section-title { font-size: 50px; line-height: 1.05; max-width: 900px; margin-top: 15px; }
.case-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: center; margin-top: 50px; }
.case-text .meta { color: var(--secondary); font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.case-text .text { margin-top: 14px; font-size: 18px; }
.case-list { margin: 24px 0 26px; padding: 0; list-style: none; }
.case-list li { position: relative; padding-left: 26px; margin-top: 14px; font-size: 17px; line-height: 1.55; }
.case-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--theme); }
.case-list strong { font-weight: 600; color: var(--primary); }
.case-list a { color: var(--theme); text-decoration: underline; text-underline-offset: 3px; }
.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 70px 0 0; }
.case-gallery figure { margin: 0; }
.case-gallery .frame { aspect-ratio: 1440 / 926; display: flex; align-items: flex-start; }
.case-gallery .frame .browser { width: 100%; }
.case-gallery .frame.is-phone { justify-content: center; align-items: flex-start; border-radius: 12px; background: #f3f3f0; overflow: hidden; }
.case-gallery .frame.is-phone .phone { width: 34%; margin-top: 7%; }
.case-gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--secondary); }
.demo-drive-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; padding: 60px; border-radius: 20px; background: #f3f3f0; }
.badge-pill { display: inline-block; padding: 3px 10px; border: 1px solid var(--theme); border-radius: 999px; color: var(--theme); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.demo-drive .text { margin: 18px 0 28px; font-size: 18px; }

/* ---------- service page building blocks ---------- */
.gl-hero .gl-kicker { display: inline-block; margin-bottom: 18px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--theme); }
.gl-hero .gl-lede { font-size: 21px; line-height: 1.6; color: #333; }
.gl-hero .text-wrapper .text + .text { margin-top: 18px; }
.gl-hero .text-wrapper .text a, .gl-body a:not(.rr-btn):not(.rr-btn-underline):not(.gl-card-link) { color: var(--theme); text-decoration: underline; text-underline-offset: 3px; }
.gl-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.gl-cta-row .rr-btn.btn-border { border-color: rgba(17, 17, 17, 0.35); }

.gl-section .section-title { font-size: 50px; line-height: 1.05; max-width: 980px; margin-top: 15px; }
.gl-intro { max-width: 860px; margin-top: 22px; font-size: 19px; line-height: 1.65; color: #333; }
.gl-intro + .gl-intro { margin-top: 14px; }

.gl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
.gl-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gl-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gl-card { padding: 30px; border: 1px solid #e3e3e3; border-radius: 16px; background: #fff; }
.gl-card h3 { font-size: 23px; line-height: 1.25; }
.gl-card p { margin-top: 12px; font-size: 17px; line-height: 1.6; }
.gl-card .gl-tag { display: inline-block; margin-bottom: 12px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary); }

.gl-steps { counter-reset: glstep; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; margin: 46px 0 0; padding: 0; list-style: none; }
.gl-steps > li { counter-increment: glstep; position: relative; padding: 26px 24px 24px; border-radius: 16px; background: #f3f3f0; }
.gl-steps > li::before { content: counter(glstep, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: var(--theme); }
.gl-steps h3 { font-size: 21px; line-height: 1.25; }
.gl-steps p { margin-top: 10px; font-size: 16px; line-height: 1.6; }

.gl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 46px; }
.gl-split.media-wide { grid-template-columns: 1fr 1.25fr; }
.gl-split > figure { margin: 0; }
.gl-split figcaption, .gl-figcap { margin-top: 14px; font-size: 15px; color: var(--secondary); }

.gl-list { margin: 22px 0 0; padding: 0; list-style: none; }
.gl-list li { position: relative; padding-left: 28px; margin-top: 12px; font-size: 17px; line-height: 1.55; }
.gl-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--theme); }
.gl-list.is-plain li::before { content: ""; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--theme); }
.gl-list strong { font-weight: 600; color: var(--primary); }

.gl-phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 46px; }
.gl-phones figure { margin: 0; }
.gl-phones .panel { display: flex; justify-content: center; padding: 26px 0 0; border-radius: 14px; background: #f3f3f0; overflow: hidden; aspect-ratio: 4 / 5; }
.gl-phones .phone { width: 64%; align-self: flex-start; }
.gl-phones figcaption { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--secondary); }

.gl-panel { padding: 50px; border-radius: 20px; background: #f3f3f0; }
.gl-note { margin-top: 26px; padding: 18px 22px; border-left: 4px solid var(--theme); border-radius: 6px; background: rgba(27, 67, 50, 0.06); font-size: 16px; line-height: 1.6; }

.gl-pricing { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; margin-top: 46px; }
.gl-price { padding: 36px; border: 2px solid var(--theme); border-radius: 16px; background: #fff; }
.gl-price .amount { font-size: 46px; line-height: 1.05; font-weight: 500; color: var(--theme); }
.gl-price .amount small { font-size: 18px; font-weight: 400; color: var(--secondary); }
.gl-price .then { margin-top: 10px; font-size: 22px; color: var(--primary); }
.gl-price p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--secondary); }

.gl-table { width: 100%; margin-top: 36px; border-collapse: collapse; font-size: 17px; }
.gl-table th, .gl-table td { padding: 14px 16px; border-bottom: 1px solid #e3e3e3; text-align: left; vertical-align: top; line-height: 1.5; }
.gl-table th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary); font-weight: 500; }
.gl-table td:first-child { font-weight: 600; color: var(--primary); }

.gl-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.gl-card-link { display: block; padding: 26px; border: 1px solid #e3e3e3; border-radius: 14px; color: var(--primary); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.gl-card-link:hover { border-color: var(--theme); color: var(--primary); transform: translateY(-2px); }
.gl-card-link strong { display: block; font-size: 20px; font-weight: 500; }
.gl-card-link span { display: block; margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--secondary); }
.gl-card-link em { display: inline-block; margin-top: 14px; font-style: normal; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--theme); }

.gl-final { padding: 60px; border-radius: 20px; background: #111; color: #fff; }
.gl-final .section-title { color: #fff; max-width: 860px; }
.gl-final .text { margin-top: 18px; max-width: 760px; font-size: 18px; color: #d6d6d6; }
.gl-final .text a { color: #fff; text-decoration: underline; }
.gl-final .rr-btn { background-color: #fff; border-color: #fff; }
.gl-final .rr-btn .btn-wrap .text-one { color: #111; }
.gl-final .rr-btn.btn-border { background-color: transparent; border-color: rgba(255, 255, 255, 0.5); }
.gl-final .rr-btn.btn-border .btn-wrap .text-one { color: #fff; }
.gl-final .rr-btn-underline { color: #fff; }

/* ---------- homepage pathways ---------- */
.gl-paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 46px; }
.gl-path { display: flex; flex-direction: column; padding: 30px 26px; border-radius: 16px; background: #f3f3f0; color: var(--primary); text-decoration: none; transition: background 0.2s, transform 0.2s; }
.gl-path:hover { background: #e9ece6; color: var(--primary); transform: translateY(-3px); }
.gl-path strong { font-size: 23px; line-height: 1.25; font-weight: 500; }
.gl-path span { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--secondary); }
.gl-path em { margin-top: auto; padding-top: 18px; font-style: normal; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--theme); }

/* ---------- long-form guide ---------- */
.gl-guide .meta { flex-wrap: wrap; }
.gl-guide .meta span { white-space: normal; }
.gl-guide .gl-answer p + p { margin-top: 12px; }
.gl-guide .gl-answer { margin-top: 40px; padding: 26px 30px; border-radius: 14px; background: #f3f3f0; font-size: 19px; line-height: 1.65; }
.gl-guide .gl-answer strong { color: var(--primary); }
.gl-guide .gl-toc { margin-top: 30px; padding: 24px 30px 18px; border: 1px solid #e3e3e3; border-radius: 12px; }
.gl-guide .gl-toc p { margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary); }
.gl-guide .gl-toc ol { columns: 2; column-gap: 40px; margin: 12px 0 0; padding-left: 22px; }
.gl-guide .gl-toc li { list-style: decimal; margin-bottom: 6px; break-inside: avoid; font-size: 17px; }
.gl-guide .gl-toc a { color: var(--primary); text-decoration: none; }
.gl-guide .gl-toc a:hover { color: var(--theme); text-decoration: underline; }
.gl-guide h2.gl-h2 { margin-top: 60px; padding-top: 30px; border-top: 1px solid #e6e6e6; font-size: 34px; line-height: 1.2; }
.gl-guide h3.gl-h3 { margin-top: 32px; font-size: 23px; line-height: 1.3; font-weight: 500; }
.gl-guide .gl-body p { margin-top: 16px; font-size: 18px; line-height: 1.7; }
.gl-guide .gl-body ul.gl-bullets, .gl-guide .gl-body ol.gl-numbers { margin: 16px 0 0; padding-left: 24px; }
.gl-guide .gl-body ul.gl-bullets li { list-style: disc; margin-top: 8px; font-size: 18px; line-height: 1.65; }
.gl-guide .gl-body ol.gl-numbers li { list-style: decimal; margin-top: 8px; font-size: 18px; line-height: 1.65; }
.gl-guide .gl-example { margin-top: 22px; padding: 22px 26px; border: 1px dashed #b9c4bd; border-radius: 12px; background: #fafaf7; }
.gl-guide .gl-example .label { display: inline-block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--theme); }
.gl-guide .gl-example p { margin-top: 8px !important; font-size: 17px !important; }
.gl-guide .gl-src { font-size: 15px; color: var(--secondary); }
.gl-guide .gl-src a { color: var(--secondary) !important; }
.gl-guide .gl-service { margin-top: 22px; padding: 18px 22px; border-left: 4px solid var(--theme); border-radius: 6px; background: rgba(27, 67, 50, 0.06); font-size: 17px; line-height: 1.6; }
.gl-guide .gl-service p { margin: 0 !important; font-size: 17px !important; }
.gl-check { margin: 20px 0 0; padding: 0; list-style: none; }
.gl-check li { margin-top: 10px; }
.gl-check label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 17px; line-height: 1.55; }
.gl-check input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--theme); }
.gl-check input:checked + span { color: var(--secondary); text-decoration: line-through; }
.gl-check-progress { margin-top: 14px; font-size: 15px; color: var(--secondary); }

/* ---------- smaller screens ---------- */
@media (max-width: 1199px) {
  .gl-paths, .gl-grid.cols-4, .gl-phones { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .dealer-examples .section-title, .demo-drive .section-title, .gl-section .section-title { font-size: 36px; }
  .case-hero, .demo-drive-inner, .gl-split, .gl-split.media-wide, .gl-pricing { grid-template-columns: 1fr; gap: 40px; }
  .case-gallery, .gl-grid, .gl-grid.cols-2, .gl-related { grid-template-columns: 1fr; gap: 22px; }
  .demo-drive-inner, .gl-panel, .gl-final { padding: 30px 22px; }
  .gl-guide .gl-toc ol { columns: 1; }
  .gl-guide h2.gl-h2 { font-size: 28px; }
}
@media (max-width: 575px) {
  .gl-paths, .gl-grid.cols-4 { grid-template-columns: 1fr; }
  .gl-phones { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gl-phones .phone { width: 78%; }
  .gl-hero .gl-lede { font-size: 19px; }
  .gl-table, .gl-table tbody, .gl-table tr, .gl-table td { display: block; width: 100%; }
  .gl-table thead { display: none; }
  .gl-table tr { padding: 12px 0; border-bottom: 1px solid #e3e3e3; }
  .gl-table td { padding: 4px 0; border: 0; }
  .gl-price .amount { font-size: 38px; }
}

/* sub-headings inside service page sections */
.gl-subhead { margin: 26px 0 0; font-size: 22px; line-height: 1.3; font-weight: 500; }
.gl-split > div > .gl-subhead:first-child, .gl-pricing > div > .gl-subhead:first-child { margin-top: 0; }
.gl-card .gl-list li { font-size: 16px; }
.gl-hero .section-thumb figure img { display: block; }

/* before/after AI description example (inventory page) */
.before-after-comparison { display: grid; gap: 16px; }
.comparison-column { padding: 22px 24px; border-radius: 14px; }
.comparison-column.before { background: #f3f3f0; }
.comparison-column.after { border: 2px solid var(--theme); background: #fff; }
.comparison-column h3 { font-size: 15px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--secondary); }
.comparison-column p { margin-top: 10px; font-size: 17px; line-height: 1.6; }

/* homepage pathways sit between the about block and the video */
.home-paths { padding-bottom: 90px; }
.home-paths .section-title { font-size: 50px; line-height: 1.05; max-width: 900px; margin-top: 15px; }
@media (max-width: 991px) {
  .home-paths { padding-bottom: 60px; }
  .home-paths .section-title { font-size: 34px; }
}
.home-paths .gl-path { background: #fff; border: 1px solid #e3e3e3; }
.home-paths .gl-path:hover { background: #fff; border-color: var(--theme); }

/* guide: breadcrumb, subtitle, stacked tables on phones, inline code */
.gl-guide .gl-crumbs { margin-bottom: 18px; font-size: 14px; color: var(--secondary); }
.gl-guide .gl-crumbs a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }
.gl-guide .gl-crumbs span { margin: 0 4px; }
.gl-guide .gl-subtitle { margin-top: 18px; max-width: 820px; font-size: 21px; line-height: 1.5; color: #333; }
.gl-guide .gl-body .gl-table { margin-top: 22px; font-size: 16px; }
.gl-guide .gl-body .gl-table td:first-child { font-weight: 500; }
.gl-guide code { padding: 2px 6px; border-radius: 4px; background: #f3f3f0; font-size: 15px; word-break: break-all; }
.gl-guide .gl-cta-row { margin-top: 22px; }
@media (max-width: 575px) {
  .gl-table.is-stacked td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--secondary); }
  .gl-table.is-stacked td { padding: 6px 0; }
  .gl-guide .gl-subtitle { font-size: 18px; }
}
