/* Vita app screen explorations */
@import url('app-screens-themes.css');
@import url('app-screens-mockups.css');

:root {
  --page-bg: #06080c;
  --page-ink: #e8edf5;
  --page-muted: #8b95a8;
  --page-hairline: rgba(255, 255, 255, 0.08);
  --page-vital: #1bc7a1;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Outfit', var(--font);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --phone-w: 300px;
  --phone-h: 620px;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--page-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 140px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--page-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--page-vital);
}

.top {
  text-align: center;
  margin-bottom: 48px;
}

.top .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-vital);
  margin-bottom: 10px;
}

.top h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.top p {
  color: var(--page-muted);
  max-width: 58ch;
  margin: 0 auto 28px;
  font-size: 15px;
}

.top p code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--page-ink);
}

/* ─── Choose guide ─── */
.choose-guide {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: left;
  border: 1px solid var(--page-hairline);
  border-radius: 16px;
  padding: 20px 20px 16px;
  background: rgba(255, 255, 255, 0.02);
}

.choose-guide-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
  color: var(--page-ink);
}

.choose-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.choose-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--page-hairline);
  background: transparent;
  color: var(--page-ink);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.choose-row:hover {
  border-color: rgba(27, 199, 161, 0.35);
  background: rgba(27, 199, 161, 0.04);
}

.choose-row-priority {
  font-size: 13px;
  font-weight: 600;
  grid-column: 1;
}

.choose-row-pick {
  font-size: 12px;
  font-weight: 700;
  color: var(--page-vital);
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.choose-row-why {
  font-size: 12px;
  color: var(--page-muted);
  grid-column: 1 / -1;
  line-height: 1.45;
}

.choose-skip {
  font-size: 12px;
  color: var(--page-muted);
}

.choose-skip summary {
  cursor: pointer;
  color: var(--page-muted);
  padding: 6px 0;
}

.choose-skip ul {
  margin: 8px 0 0 18px;
  line-height: 1.55;
}

.choose-skip strong {
  color: var(--page-ink);
  font-weight: 600;
}

.gallery-card--tier-2.selected,
.gallery-card--tier-3.selected {
  border-color: var(--page-vital);
}

.theme-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.mode-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.mode-filter button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--page-hairline);
  background: transparent;
  color: var(--page-muted);
  cursor: pointer;
}

.mode-filter button.active {
  background: rgba(27, 199, 161, 0.12);
  border-color: rgba(27, 199, 161, 0.35);
  color: var(--page-vital);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto 40px;
  text-align: left;
}

.system-card {
  border: 1px solid var(--page-hairline);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s var(--ease);
}

.system-card:hover {
  border-color: rgba(27, 199, 161, 0.25);
}

.system-card.active {
  border-color: var(--page-vital);
  box-shadow: 0 0 0 1px rgba(27, 199, 161, 0.2);
}

.system-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.system-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.system-card .inspire {
  font-size: 11px;
  color: var(--page-muted);
  line-height: 1.4;
}

.system-pair-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.system-pair-btns button {
  font-size: 11px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--page-hairline);
  background: transparent;
  color: var(--page-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.system-pair-btns button i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.system-pair-btns button.active {
  border-color: transparent;
  color: #041210;
  background: var(--page-vital);
}

.system-mini-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.system-mini-row .phone {
  --phone-w: 130px;
  --phone-h: 260px;
  border-radius: 20px;
  border-width: 2px;
  font-size: 0.55em;
  pointer-events: none;
}

.system-mini-row .phone-notch {
  width: 48px;
  height: 14px;
  top: 6px;
}

.system-mini-row .phone-status,
.system-mini-row .tab-bar,
.system-mini-row .chip-row:nth-child(2),
.system-mini-row .sheet-sub {
  display: none;
}

.system-mini-row .bottom-sheet {
  padding: 6px 8px 0;
}

.system-mini-row .cta {
  padding: 8px;
  font-size: 10px;
  margin-bottom: 4px;
}

.theme-groups {
  max-width: 920px;
  margin: 0 auto 16px;
  text-align: left;
}

.theme-group {
  margin-bottom: 14px;
}

.theme-group-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin-bottom: 8px;
  text-align: center;
}

.theme-bar button,
.theme-chip {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--page-hairline);
  background: transparent;
  color: var(--page-muted);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.theme-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.theme-bar button:hover,
.theme-chip:hover {
  border-color: rgba(27, 199, 161, 0.35);
  color: var(--page-ink);
}

.theme-bar button.active,
.theme-chip.active {
  background: var(--chip-active-bg, var(--page-vital));
  border-color: transparent;
  color: var(--chip-active-text, #041210);
}

.theme-chip.active {
  background: var(--page-vital);
  color: #041210;
  border-color: transparent;
}

.theme-note {
  text-align: center;
  font-size: 12px;
  color: var(--page-muted);
  font-family: var(--mono);
  margin-bottom: 40px;
}

.palette-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--page-muted);
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--page-hairline);
  border-radius: 999px;
}

.swatch i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

section {
  margin-bottom: 56px;
}

section h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

section .sub {
  color: var(--page-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.screen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.screen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.screen-card .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--page-ink);
  text-align: center;
}

.screen-card .hint {
  font-size: 11px;
  color: var(--page-muted);
  text-align: center;
  max-width: var(--phone-w);
}

/* ─── Phone chrome ─── */
.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: 36px;
  background: var(--bg);
  color: var(--text);
  border: 3px solid #1e2430;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  z-index: 5;
}

.screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ─── Shared UI atoms ─── */
.map-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--map-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--map-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: var(--surface-2);
}

.map-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 35%, var(--map-tint), transparent 55%);
}

/* Light previews: no map wash, no tinted pin core, no CTA glow */
.phone[data-theme$='-light'] .map-bg::after {
  display: none;
}

.phone[data-theme$='-light'] .map-pin::after {
  display: none;
}

.phone[data-theme$='-light'] .map-pin,
.phone[data-theme$='-light'] .btn-primary,
.phone[data-theme$='-light'] .cta {
  box-shadow: none;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -100%);
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: var(--cta-shadow);
}

.map-pin::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--on-primary);
  border-radius: 50%;
  opacity: 0.35;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
  z-index: 4;
  position: relative;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--text);
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-soft);
}

.bottom-sheet {
  margin-top: auto;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--hairline);
  padding: 12px 16px 0;
  z-index: 4;
  position: relative;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--hairline);
  margin: 0 auto 14px;
}

.sheet-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.sheet-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text-muted);
  border: 1px solid var(--hairline);
}

.chip.active {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
  border-color: transparent;
}

.cta {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 14px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  box-shadow: var(--cta-shadow);
  margin-bottom: 8px;
}

.cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hairline);
  box-shadow: none;
}

.tab-bar {
  display: flex;
  justify-content: space-around;
  padding: 10px 8px 16px;
  background: var(--tab-bg);
  border-top: 1px solid var(--hairline);
  margin-top: auto;
}

.tab-bar span {
  font-size: 10px;
  color: var(--text-subtle);
  text-align: center;
}

.tab-bar span.on {
  color: var(--primary);
  font-weight: 600;
}

/* ─── Login screen ─── */
.screen-login {
  padding: 20px 20px 0;
  background: var(--bg);
  flex: 1;
}

.logo-lockup {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transform: rotate(-6deg);
}

.logo-lockup span {
  font-size: 10px;
  font-weight: 800;
  color: var(--on-primary);
  letter-spacing: 0.06em;
}

.login h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.login p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 15px;
}

.field .prefix {
  color: var(--text-muted);
  font-weight: 500;
}

.otp-hint {
  font-size: 11px;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 12px;
}

/* ─── Waiting offers ─── */
.wait-panel {
  flex: 1;
  padding: 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.pulse-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  margin: 24px auto 16px;
  position: relative;
  opacity: 0.9;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--primary-soft);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.2; }
}

.wait-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.wait-sub {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.offer-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}

.offer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.offer-name {
  font-weight: 700;
  font-size: 14px;
}

.offer-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.offer-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.offer-actions {
  display: flex;
  gap: 8px;
}

.offer-actions button {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: default;
}

.btn-accept {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-decline {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--hairline);
}

/* ─── Provider home ─── */
.provider-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  font-size: 12px;
  font-weight: 600;
}

.toggle-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
}

.provider-map-area {
  flex: 1;
  position: relative;
  min-height: 200px;
}

.request-stack {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  z-index: 3;
}

.stack-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.stack-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stack-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stack-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.dist {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.dist span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.stack-cta {
  font-size: 12px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
}

/* ─── Active visit ─── */
.visit-header {
  padding: 8px 16px;
  z-index: 4;
  position: relative;
}

.visit-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}

.visit-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.visit-map {
  flex: 1;
  position: relative;
}

.route-line {
  position: absolute;
  left: 28%;
  top: 42%;
  width: 44%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: rotate(-18deg);
  opacity: 0.5;
}

.marker-patient {
  position: absolute;
  left: 62%;
  top: 52%;
  width: 12px;
  height: 12px;
  background: var(--text);
  border: 2px solid var(--surface);
  border-radius: 50%;
}

.marker-provider {
  position: absolute;
  left: 30%;
  top: 38%;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: var(--cta-shadow);
}

.visit-dock {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: 14px 16px 0;
  z-index: 4;
}

.visit-dock h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.visit-dock p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.progress-bar {
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  margin-bottom: 14px;
  overflow: hidden;
}

.progress-bar i {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}

/* ─── Rate screen ─── */
.rate-body {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  background: var(--bg);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--hairline);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}

.stars {
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 20px;
}

.compare-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.compare-scroll .screen-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.compare-scroll .phone {
  --phone-w: 200px;
  --phone-h: 420px;
  border-radius: 28px;
  border-width: 2px;
  font-size: 0.88em;
}

.compare-scroll .phone-notch {
  width: 70px;
  height: 20px;
  top: 8px;
}

[data-select].selected .phone {
  outline: 2px solid var(--selection-accent, #1bc7a1);
  outline-offset: 4px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.compare-card {
  border: 1px solid var(--page-hairline);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.compare-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--page-muted);
}

.compare-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.compare-row span {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--page-hairline);
}

.selection-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  background: rgba(6, 8, 12, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--page-hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}

.selection-bar.visible {
  transform: translateY(0);
}

.selection-bar .picks {
  font-size: 13px;
  color: var(--page-muted);
}

.selection-bar .picks strong {
  color: var(--page-vital);
}

.selection-bar button {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--page-vital);
  color: #041210;
  cursor: pointer;
}

@media (max-width: 640px) {
  .screen-row {
    gap: 20px;
  }
}

/* ─── Light-only faithful gallery ─── */
.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.screen-tabs button {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--page-hairline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--page-muted);
  cursor: pointer;
}

.screen-tabs button.active {
  background: rgba(27, 199, 161, 0.12);
  border-color: rgba(27, 199, 161, 0.35);
  color: var(--page-ink);
  font-weight: 600;
}

.light-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: start;
}

.gallery-card {
  cursor: pointer;
  border-radius: 20px;
  border: 1px solid var(--page-hairline);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 16px 20px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.gallery-card:hover {
  border-color: rgba(27, 199, 161, 0.3);
  transform: translateY(-2px);
}

.gallery-card.selected {
  border-color: var(--page-vital);
  box-shadow: 0 0 0 1px rgba(27, 199, 161, 0.25);
}

.gallery-card-head {
  margin-bottom: 14px;
}

.gallery-card-head h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-card-head h3 i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gallery-card-head .ref {
  font-size: 11px;
  color: var(--page-muted);
  line-height: 1.4;
}

.gallery-card .phone {
  width: 100%;
  max-width: 100%;
  --phone-h: 640px;
  margin: 0 auto;
}

.gallery-count {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--page-muted);
  margin-bottom: 20px;
}

.gallery-section {
  margin-bottom: 48px;
}

.gallery-section-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--page-muted);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gallery-card--brand,
.gallery-card.pick {
  border-color: rgba(27, 199, 161, 0.45);
  background: rgba(27, 199, 161, 0.04);
}

.gallery-card.pick.selected {
  border-color: var(--page-vital);
  box-shadow: 0 0 0 2px rgba(27, 199, 161, 0.35), 0 12px 40px rgba(27, 199, 161, 0.08);
}

.brand-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--page-vital);
  color: #041210;
  vertical-align: middle;
  margin-left: 4px;
}

.brand-badge.subtle {
  background: rgba(27, 199, 161, 0.15);
  color: var(--page-vital);
}

a.brand-badge {
  text-decoration: none;
}

a.brand-badge:hover {
  filter: brightness(1.08);
}
