/* Services funnel additions on top of the roofing styles (tokens, base, quiz, proof, book).
   Needs those first. Same tokens, no new colors. */

/* Tiles: one column for long answers. */
.tiles.stack { grid-template-columns: 1fr; }
.tiles.stack .tile { min-height: 60px; text-align: left; padding: 14px 18px; }
.tile[aria-pressed="true"] { border-color: var(--color-accent); background: var(--color-accent-subtle); }
.step h2 { text-wrap: balance; }
.quiz .other-box { margin-top: 16px; }
.quiz .row2 { gap: 0 12px; grid-template-columns: 1fr 1fr; }
.quiz .row2 .field { min-width: 0; }
.quiz .btn-3d { margin-top: 8px; }

/* Guarantee terms trigger under the subhead: a small text link (it is a button for the dialog). */
.terms-link { padding: 0; border: 0; background: none; color: var(--color-text-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.terms-link:hover { color: var(--color-accent); }
.terms-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

/* Guarantee terms dialog */
dialog.terms { width: min(92vw, 480px); max-height: 85vh; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-elevated); color: var(--color-text); box-shadow: 0 20px 60px rgba(14, 16, 19, 0.25); }
dialog.terms::backdrop { background: rgba(14, 16, 19, 0.55); }
.terms-inner { padding: 24px; }
.terms-inner h2 { font-size: 1.35rem; }
.terms-list { margin: 0 0 16px; padding-left: 1.2em; color: var(--color-text-secondary); }
.terms-list li { margin-bottom: 8px; }

/* Placeholder markers (case study slots, calendar, video, terms). Clearly not finished content. */
.slot-tag { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border: 1px dashed var(--color-error); border-radius: 6px; color: var(--color-error); font: 700 0.75rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.terms .slot-tag { display: none; }
.is-dev .terms .slot-tag { display: inline-block; }

/* Case cards: stacked on phones, side by side from tablet when slots are filled. */
.cases { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.case-slot { border: 2px dashed var(--color-border-strong); box-shadow: none; background: var(--color-bg-card-hover); }
.case-slot .eyebrow { color: var(--color-error); }
.slot-note { color: var(--color-text-secondary); font-size: 0.95rem; }

/* Testimonial carousel: native horizontal scroll snap inside its own box (the page itself never scrolls sideways). */
.carousel { max-width: 640px; margin: 0 auto; }
.carousel-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: var(--radius); }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
/* Each slide keeps its own height; funnel.js sizes the track to the slide in view so short messages do not float. */
.carousel-track { align-items: flex-start; transition: height 0.2s ease; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: var(--radius); background: #1b1d21; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 12px 0 0; }
.carousel-btn { width: 48px; height: 48px; border: 1px solid var(--color-border-strong); border-radius: 50%; background: #fff; color: var(--color-text); font: 700 1.6rem/1 var(--font-sans); cursor: pointer; touch-action: manipulation; }
.carousel-btn:hover, .carousel-btn:focus-visible { border-color: var(--color-accent); background: var(--color-accent-subtle); outline: none; }
.carousel-count { margin: 0; min-width: 4em; font: 500 0.85rem var(--font-mono); color: var(--color-text-muted); }
.carousel-note { margin: 10px 0 0; }

/* Book page: our own slot picker (Agency OS times), same card look as the quiz. */
.picker { max-width: 640px; margin: 0 auto; padding: 20px 18px 18px; text-align: left; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.picker-tz { margin: 0 0 14px; font: 500 0.78rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.picker-status { margin: 8px 0; color: var(--color-text-secondary); }
.picker-status[hidden], .picker-block[hidden], .picker-confirm[hidden] { display: none; }
.picker-block { margin-bottom: 18px; }
.picker-label { font-size: 1.1rem; margin: 0 0 10px; }
.day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.day-btn, .time-btn {
  min-height: 56px; padding: 8px 6px; border: 1px solid var(--color-border-strong); border-radius: var(--radius); background: #fff;
  color: var(--color-text); font: 700 1rem/1.2 var(--font-sans); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.day-btn { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.day-btn small { font: 500 0.85rem var(--font-sans); color: var(--color-text-secondary); }
.time-btn { min-height: 52px; font-size: 0.98rem; }
.day-btn:hover, .time-btn:hover, .day-btn:focus-visible, .time-btn:focus-visible { border-color: var(--color-accent); outline: none; }
.day-btn[aria-pressed="true"], .time-btn[aria-pressed="true"] { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }
.day-btn[aria-pressed="true"] small { color: #fff; }
.picker-confirm { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.picker-choice { margin: 0 0 4px; font-weight: 700; font-size: 1.05rem; text-align: center; }
.picker .btn-3d { margin-top: 10px; }
@media (min-width: 560px) { .day-grid { grid-template-columns: repeat(5, 1fr); } .time-grid { grid-template-columns: repeat(4, 1fr); } }

/* Booked page */
.booked h1 { margin-bottom: 12px; }
.booked-when { max-width: 32em; margin: 0 auto 20px; font-size: 1.15rem; font-weight: 600; color: var(--color-text-secondary); }
.cal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 22px; }
.cal-actions[hidden] { display: none; }
.cal-actions { flex-direction: column; align-items: center; }
.cal-actions .btn { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 360px; text-align: center; }
.btn-ghost { background: #fff; color: var(--color-accent); border: 1px solid var(--color-accent); }
.btn-ghost:hover { background: var(--color-accent-subtle); }
.call-note { max-width: 640px; margin: 0 auto 24px; padding: 16px 18px; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-left: 5px solid var(--color-accent); border-radius: var(--radius); box-shadow: var(--shadow); text-align: left; }
.call-note b { font-size: clamp(1.05rem, 4vw, 1.25rem); line-height: 1.3; }
.call-note span { display: block; margin-top: 6px; color: var(--color-text-muted, inherit); }
.video-slot { max-width: 700px; margin: 0 auto; }
.video-slot[hidden] { display: none; }
.video-slot.has-video { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-slot iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-bg-card-hover); color: var(--color-text-secondary); padding: 16px; }
.video-placeholder p { margin: 0 0 6px; }

/* Not a fit */
.nofit-note { max-width: 32em; margin: 0 auto; }

/* Footer */
.foot-brand { font-weight: 800; color: var(--color-text); margin-bottom: 6px; }
.site-foot p { margin-bottom: 10px; }
