/* /use-cases and /business-case (views.use_cases / views.business_case).
   A split hero (headline left, lede right), a sunken tab strip, then quiet
   sections divided by hairlines. Terracotta only on the closing call to
   action; the selected tab and the lead figure use the inverse surface. */

.uc-page { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6) 24px; color: var(--text-body); }
.uc-page h1, .uc-page h2, .uc-page h3 { font-family: var(--font-display); color: var(--text-strong); font-weight: 500; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
.uc-page p { margin: 0; }
.uc-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }

.uc-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; padding: 80px 0 48px; }
.uc-hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.03; }
.uc-hero p { font-size: 18px; line-height: 1.5; max-width: 44ch; }

/* Tabs */
.uc-tabs { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 4px; padding: 4px; border-radius: var(--radius-lg); background: var(--surface-sunken); overflow-x: auto; }
.uc-tabs [role="tab"] {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--text-muted); text-align: left; cursor: pointer; font: inherit;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.uc-tabs [role="tab"]:hover { color: var(--text-strong); }
.uc-tabs [role="tab"][aria-selected="true"] { background: var(--surface-inverse); color: var(--surface-page); }
.uc-tabs [role="tab"]:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.uc-tab-ic { width: 38px; height: 38px; flex: none; }
.uc-tab-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.uc-tab-text .uc-eyebrow { font-size: 11.5px; color: inherit; opacity: .7; }
.uc-tab-text b { font-family: var(--font-body); font-weight: 500; font-size: 16.5px; }

/* Use-case panel */
.uc-panel { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; padding: 56px 0 48px; }
.uc-panel[hidden] { display: none; }
.uc-panel-text { min-width: 0; }
.uc-panel h2 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.uc-lede { margin-top: 16px !important; font-size: 17px; line-height: 1.6; max-width: 58ch; }
.uc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.uc-chips span { font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 3px 10px; }
.uc-steps { list-style: none; counter-reset: uc-step; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.uc-steps li { counter-increment: uc-step; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.uc-steps li::before { content: "0" counter(uc-step); grid-row: span 2; font-family: var(--font-mono); font-size: 13px; color: var(--text-subtle); padding-top: 2px; }
.uc-steps b { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--text-strong); }
.uc-steps span { font-size: 15px; color: var(--text-muted); }
.uc-value { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.uc-value h3 { font-size: 16px; margin-bottom: 6px; }
.uc-value p { font-size: 14px; color: var(--text-muted); }

.uc-device { position: sticky; top: 96px; display: grid; gap: 14px; }
.uc-frame { aspect-ratio: 9 / 16; max-width: 100%; overflow: hidden; border-radius: var(--radius-2xl); background: var(--surface-sunken); border: 1px solid var(--border-subtle); }
.uc-frame video, .uc-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-device .uc-frame { box-shadow: var(--shadow-lg); }
/* The landing's player (landing-property.css .lp-prop-sound, landing.css
   .lp-reel-zoom): a mute toggle on clips with sound, click to watch large. */
.uc-frame { position: relative; }
.uc-frame.is-zoomable { cursor: zoom-in; }
.uc-sound { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 40px; height: 40px; padding: 0; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(10, 9, 8, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.uc-sound .on, .uc-sound.is-on .off { display: none; }
.uc-sound.is-on .on { display: inline; }
.uc-zoom { padding: 0; border: none; background: none; overflow: visible; max-width: none; max-height: none; }
.uc-zoom::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(6px); }
.uc-zoom video { display: block; height: min(86vh, 900px); max-width: 92vw; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); background: #000; box-shadow: var(--shadow-lg); }
.uc-zoom.wide video { height: auto; width: min(80vw, 1400px, 86vh * 16 / 9); aspect-ratio: 16 / 9; }
.uc-zoom-close { position: absolute; top: 0; right: -52px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.uc-zoom-close:hover { background: rgba(255, 255, 255, 0.26); }
@media (max-width: 760px) {
  .uc-zoom video { height: auto; width: 92vw; max-height: 86vh; }
  .uc-zoom.wide video { width: 92vw; }
  .uc-zoom-close { top: 8px; right: 8px; background: rgba(10, 9, 8, .5); }
}
.uc-out { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-card); }
.uc-out div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.uc-out div span:first-child { color: var(--text-strong); font-weight: 500; }
.uc-out div span:last-child { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-align: right; }

/* Sections */
.uc-block { padding: 72px 0; border-top: 1px solid var(--border-subtle); }
.uc-sec-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; margin-bottom: 36px; }
.uc-sec-head h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.uc-sec-head p { color: var(--text-muted); max-width: 46ch; }

/* Two 9:16 reels and the 16:9 tour in one row at the same height
   (1 : 1 : 3.16); on phones the reels pair up and the tour goes full width. */
.uc-styles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 3.16fr); gap: 20px; align-items: start; }
.uc-styles[hidden] { display: none; }
/* The listing a set of example videos was made from (_use_case_input.html) */
.uc-input[hidden] { display: none; }
.uc-in-card { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; padding: 18px; border-radius: var(--radius-2xl); background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); }
.uc-in-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; min-height: 240px; border-radius: var(--radius-lg); overflow: hidden; }
.uc-in-tile { position: relative; padding: 0; border: 0; cursor: zoom-in; font-family: var(--font-body); background: var(--surface-sunken); overflow: hidden; }
.uc-in-tile:first-child { grid-row: span 2; }
.uc-in-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--duration-base) var(--ease-standard); }
.uc-in-tile:hover img { transform: scale(1.04); }
.uc-in-tile:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -2px; }
.uc-in-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 16, 12, .55); color: #fff; font-weight: 600; font-size: 15px; }
.uc-in-info { display: flex; flex-direction: column; gap: 10px; padding: 6px 8px 6px 0; min-width: 0; }
.uc-in-info h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.uc-in-price { font-family: var(--font-display); font-size: 18px; color: var(--text-strong); }
.uc-in-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.uc-in-facts span { padding: 5px 10px; border-radius: var(--radius-pill); background: var(--surface-sunken); font-size: 13px; color: var(--text-body); }
.uc-in-intro { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uc-in-agent { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 13px; color: var(--text-muted); }
.uc-in-agent img { height: 26px; width: auto; }
.uc-in-made { display: flex; align-items: center; gap: 14px; margin: 26px 0 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); white-space: nowrap; }
.uc-in-made::before, .uc-in-made::after { content: ""; flex: 1; height: 1px; background: var(--border-default); }
.uc-in-made svg { width: 14px; height: 14px; flex: none; margin-right: -6px; }
@media (max-width: 760px) {
  .uc-in-card { grid-template-columns: 1fr; gap: 16px; padding: 12px; }
  .uc-in-mosaic { min-height: 200px; }
  .uc-in-info { padding: 0 4px 4px; }
  .uc-in-made { white-space: normal; text-align: center; }
}
/* Photo viewer, as the Listing studio's (listing-studio.css .ls-lightbox) */
.uc-lb { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 56px 72px; background: rgba(20, 18, 15, .92); }
.uc-lb[hidden] { display: none; }
.uc-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.uc-lb-count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 13px; color: rgba(255, 255, 255, .85); }
.uc-lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); color: #fff; }
.uc-lb-btn svg { width: 22px; height: 22px; }
.uc-lb-btn:hover { background: rgba(255, 255, 255, .28); }
.uc-lb-btn.close { top: 14px; right: 14px; }
.uc-lb-btn.prev { left: 14px; top: 50%; transform: translateY(-50%); }
.uc-lb-btn.next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .uc-lb { padding: 64px 12px; }
  .uc-lb-btn.prev, .uc-lb-btn.next { top: auto; bottom: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .uc-in-tile img { transition: none; } }
.uc-styles .is-wide .uc-frame { aspect-ratio: 16 / 9; }
.uc-styles > div { display: grid; gap: 12px; align-content: start; }
.uc-styles h3 { font-size: 18px; }
.uc-styles p { font-size: 14px; color: var(--text-muted); }

.uc-table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--surface-card); }
.uc-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.uc-table th { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.uc-table td { padding: 16px 18px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; color: var(--text-muted); }
.uc-table tr:last-child td { border-bottom: 0; }
.uc-table td:first-child { color: var(--text-strong); font-weight: 500; white-space: nowrap; }
.uc-table .uc-mono { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; color: var(--text-body); }

/* Closing call to action: the inverse surface, with the site's primary
   "go" button (terracotta pill, label then an arrow in a white badge). */
.uc-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; margin: 24px 0 72px; padding: 52px; border-radius: var(--radius-2xl); background: var(--surface-inverse); }
.uc-cta h2 { color: var(--surface-page) !important; font-size: clamp(26px, 3.2vw, 40px); }
.uc-cta p { margin-top: 8px !important; color: var(--surface-page); opacity: .7; }
.uc-cta-btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 10px 0 24px; border-radius: var(--radius-pill); background: var(--color-primary); color: var(--text-on-brand); font-family: var(--font-body); font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background var(--duration-fast) var(--ease-standard); }
.uc-cta-btn:hover, .uc-cta-btn:focus-visible { background: var(--color-primary-hover); color: var(--text-on-brand); text-decoration: none; }
.uc-cta-btn svg { width: 15px; height: 15px; box-sizing: content-box; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .24); stroke-width: 2.6; animation: lp-url-nudge 2.8s ease-in-out infinite; }
@keyframes lp-url-nudge { 0%, 60%, 100% { transform: translateX(0); } 75% { transform: translateX(4px); } 90% { transform: translateX(-1px); } }

/* Business case */
.bc-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 72px; }
.bc-fig { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--surface-card); }
.bc-fig p { margin-top: auto !important; font-size: 13px; color: var(--text-subtle); }
.bc-fig.is-inverse { background: var(--surface-inverse); border-color: transparent; }
.bc-fig.is-inverse .bc-big, .bc-fig.is-inverse .bc-what, .bc-fig.is-inverse p { color: var(--surface-page); }
.bc-fig.is-inverse p { opacity: .65; }
.bc-big { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -.03em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.bc-what { font-weight: 500; color: var(--text-strong); }

.bc-calc { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden; background: var(--surface-card); }
.bc-calc > div { padding: 32px; min-width: 0; }
.bc-inputs { display: grid; gap: 24px; border-right: 1px solid var(--border-subtle); }
.bc-field { display: grid; gap: 8px; }
.bc-field > span { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; color: var(--text-strong); }
.bc-field output { font-family: var(--font-mono); font-size: 13px; color: var(--text-body); font-variant-numeric: tabular-nums; }
.bc-field small { font-size: 12px; color: var(--text-subtle); }
.bc-field input[type="range"] { width: 100%; accent-color: var(--color-primary); }
.bc-seg { display: flex; flex-wrap: wrap; gap: 4px; width: max-content; max-width: 100%; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.bc-seg button { border: 0; background: transparent; font: inherit; font-size: 13px; padding: 6px 14px; border-radius: var(--radius-pill); color: var(--text-muted); cursor: pointer; }
.bc-seg button[aria-pressed="true"] { background: var(--surface-card); color: var(--text-strong); box-shadow: var(--shadow-xs); }
.bc-seg button:focus-visible { outline: 2px solid var(--border-focus); }
.bc-results { display: grid; gap: 24px; align-content: start; background: var(--surface-page); }
.bc-results .uc-eyebrow { display: block; margin-bottom: 6px; }
.bc-note { margin-top: 8px !important; font-size: 13px; color: var(--text-muted); }
.bc-bars { display: grid; gap: 12px; }
.bc-bar { display: grid; grid-template-columns: 110px 1fr 90px; gap: 12px; align-items: center; font-size: 13px; }
.bc-track { height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-sunken); }
.bc-track span { display: block; height: 100%; border-radius: 5px; background: var(--text-subtle); transition: width var(--duration-base) var(--ease-standard); }
.bc-bar.is-us .bc-track span { background: var(--text-strong); }
.bc-bar > span:last-child { text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.bc-kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.bc-kv div { display: grid; gap: 2px; }
.bc-kv b { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.bc-kv span { font-size: 12px; color: var(--text-muted); }

.bc-scen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bc-sc { display: grid; gap: 12px; align-content: start; padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--surface-card); }
.bc-sc h3 { font-size: 18px; }
.bc-sc p { font-size: 14px; color: var(--text-muted); }
.bc-sc dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--border-subtle); font-size: 13px; }
.bc-sc dt { color: var(--text-muted); }
.bc-sc dd { margin: 0; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--text-strong); }
.bc-sc > div { display: grid; gap: 2px; }
.bc-save { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -.02em; color: var(--text-strong); }
.bc-sc > div span { font-size: 13px; color: var(--text-muted); }

.bc-assume { list-style: none; counter-reset: bc-a; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; padding: 0; }
.bc-assume li { counter-increment: bc-a; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-muted); }
.bc-assume li::before { content: "0" counter(bc-a); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-subtle); padding-top: 3px; }
.bc-assume b { color: var(--text-strong); font-weight: 500; }

@media (max-width: 900px) {
  .uc-hero, .uc-sec-head { grid-template-columns: 1fr; gap: 16px; }
  .uc-hero { padding: 48px 0 32px; }
  .uc-panel { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .uc-device { position: static; max-width: 320px; }
  .uc-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-styles .is-wide { grid-column: 1 / -1; }
  .uc-value, .bc-figs, .bc-scen, .bc-assume, .bc-calc { grid-template-columns: 1fr; }
  .bc-inputs { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .uc-cta { padding: 32px; }
}
@media (max-width: 520px) {
  .uc-page { padding: 0 var(--space-4) 16px; }
  .uc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .uc-tab-text { overflow-wrap: anywhere; hyphens: auto; }
  .uc-tabs [role="tab"] { gap: 10px; padding: 12px; }
  .uc-tab-ic { width: 28px; height: 28px; }
  .uc-tab-text b { font-size: 15px; }
  .uc-tab-text .uc-eyebrow { font-size: 10px; }
  .bc-calc > div { padding: 22px; }
  .bc-bar { grid-template-columns: 84px 1fr 72px; }
  .uc-cta-btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-cta-btn svg { animation: none; }
  .uc-tabs [role="tab"], .bc-track span { transition: none; }
}
