.service-link { background: transparent; margin-top: 5px; }
.service-link.active { background: var(--active); }
.service-link:not(.active) .service-dot { visibility: hidden; }
.sidebar { overflow-y: auto; }
.brand-caption { margin-bottom: 30px; }
.sidebar-paper { margin-bottom: 18px; }
.ar-hero { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 8px; background: #eff0ed; }
.ar-hero-copy { align-self: center; padding: 24px 32px; }
.ar-hero h1 { font-size: 32px; line-height: 1.4; font-weight: 500; }
.ar-hero h1 span { color: var(--accent); }
.ar-hero-copy > p { margin-top: 15px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.ar-hero-copy > .button { margin-top: 18px; font-size: 12px; min-height: 42px; }
.ar-hero-picker { display: flex; gap: 17px; margin-top: 18px; }
.ar-hero-picker button { padding: 5px 0; font-size: 12px; color: var(--muted); border-bottom: 1px solid transparent; }
.ar-hero-picker button.active { color: var(--text); border-color: var(--text); }
#ar-hero-preview { min-width: 0; }
.ar-stage { position: relative; background: #cfc9bf; overflow: hidden; aspect-ratio: 1.3; isolation: isolate; }
.ar-hero .ar-stage { height: 100%; min-height: 330px; aspect-ratio: auto; }
.ar-stage > img, .ar-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ar-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ar-stage-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: start; gap: 12px; z-index: 2; pointer-events: none; }
.ar-stage-status { display: flex; align-items: center; gap: 6px; background: #fff; color: #3d483d; padding: 5px 9px; border-radius: 4px; font-size: 11px; }
.ar-stage-status svg { width: 14px; height: 14px; }
.ar-live-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #2f392f; background: #fff; padding: 5px 9px; border-radius: 4px; }
.ar-live-dot svg { width: 12px; height: 12px; }
.ar-stage-bottom { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; color: #293329; font-size: 11px; }
.ar-stage-bottom > span { background: #fffffff0; padding: 3px 7px; border-radius: 3px; }
.ar-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.ar-product-card .product-image { aspect-ratio: .86; }
.ar-product-card .product-image img { object-fit: cover; }
.ar-product-card .product-price small { display: block; margin: 3px 0 0; }
.ar-image-tag { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 5px; background: #fffffff0; padding: 4px 7px; border-radius: 3px; font-size: 11px; }
.ar-image-tag svg { width: 13px; height: 13px; }
.ar-image-cta { position: absolute; inset: auto 12px 12px; display: flex; justify-content: space-between; align-items: center; background: #fffffff0; border-radius: 4px; padding: 9px 10px; font-size: 11px; }
.ar-image-cta svg { width: 15px; height: 15px; }
.ar-detail-grid { grid-template-columns: 1.18fr 1fr; gap: 34px; }
.ar-preview-frame { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ar-detail-stage { aspect-ratio: 1.12; }
.ar-preview-controls { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--surface); }
.ar-mode-switch { display: flex; background: var(--raised); padding: 3px; border-radius: 6px; }
.ar-mode-switch > button { min-height: 36px; padding: 6px 16px; font-size: 12px; color: var(--muted); border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; }
.ar-mode-switch > button svg { width: 14px; height: 14px; }
.ar-mode-switch > button.active { background: var(--text); color: var(--surface); }
.ar-effect-settings { padding: 16px 0 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ar-effect-settings > label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.ar-effect-settings input { width: 100px; accent-color: var(--accent); cursor: pointer; min-height: 30px; }
.ar-effect-settings output { width: 34px; font-size: 11px; font-variant-numeric: tabular-nums; }
.ar-effect-settings > .button { min-height: 36px; padding: 6px 11px; font-size: 12px; }
.ar-light-colors { display: flex; gap: 4px; }
.ar-light-colors > button { padding: 6px 9px; border-radius: 4px; min-height: 36px; font-size: 12px; color: var(--muted); }
.ar-light-colors > button.active { background: var(--active); color: var(--text); }
.ar-preview-caption { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.ar-camera-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ar-camera-actions .text-link { margin: 0; font-size: 12px; }
.ar-camera-notice { color: var(--muted); font-size: 11px; line-height: 1.9; padding: 12px 0; }
.ar-camera-target { display: none; position: absolute; width: 80px; height: 80px; left: calc(50% - 40px); top: calc(45% - 40px); border: 1px solid #ffffffb0; border-radius: 12px; pointer-events: none; }
.camera-mode { cursor: crosshair; background: #252b27; }
.camera-mode > img { visibility: hidden; }
.camera-mode .ar-camera-target { display: block; }
.ar-effect-description { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin-bottom: 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ar-effect-description > svg { color: var(--accent); }
.ar-effect-description b { font-size: 12px; font-weight: 500; }
.ar-effect-description p { margin-top: 3px; font-size: 12px; color: var(--muted); }
.ar-how { margin-top: 40px; }
.ar-how-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.ar-how-grid article > span { font-size: 12px; color: var(--muted); }
.ar-how-grid h3 { margin: 11px 0 10px; }
.ar-how-grid p { font-size: 13px; color: var(--muted); line-height: 1.9; }
@media(max-width:1200px) {
  .ar-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ar-product-card .product-image { aspect-ratio: 1.2; }
  .ar-hero-copy { padding: 24px; }
  .ar-hero h1 { font-size: 28px; }
  .ar-live-dot { display: none; }
  .ar-detail-grid { gap: 26px; }
}
@media(max-width:900px) {
  .ar-hero-copy { padding: 26px; }
  .ar-hero .ar-stage { min-height: 340px; }
  .ar-hero-picker { gap: 15px; }
  .ar-detail-grid { grid-template-columns: 1.12fr 1fr; gap: 24px; }
  .ar-mode-switch > button { padding: 6px 10px; }
}
@media(max-width:600px) {
  .ar-hero { grid-template-columns: 54% 46%; }
  .ar-hero-copy { padding: 20px 16px; }
  .ar-hero h1 { font-size: 20px; line-height: 1.5; }
  .ar-hero-copy > p { font-size: 12px; margin-top: 12px; }
  .ar-hero-copy > .button { margin-top: 18px; min-height: 44px; }
  .ar-hero-picker { display: none; }
  .ar-hero-picker button { min-height: 40px; padding: 7px 0; }
  .ar-hero .ar-stage { min-height: 310px; height: 100%; aspect-ratio: auto; }
  .ar-hero .ar-stage > img { object-fit: cover; object-position: center; }
  .ar-hero .ar-hero-copy > .button { padding: 9px 8px; font-size: 11px; gap: 6px; }
  .ar-hero-copy > .button svg { width: 14px; height: 14px; }
  .ar-hero .ar-stage-bottom > span:last-child { display: none; }
  .ar-stage-top { top: 12px; left: 12px; right: 12px; }
  .ar-stage-bottom { bottom: 12px; left: 12px; right: 12px; }
  .ar-product-grid { gap: 26px 14px; }
  .ar-product-card .product-image { aspect-ratio: .85; }
  .ar-image-tag { top: 9px; left: 9px; padding: 3px 5px; font-size: 11px; }
  .ar-image-tag svg { display: none; }
  .ar-image-cta { inset: auto 8px 8px; padding: 7px 8px; }
  .ar-product-card .product-name { font-size: 14px; }
  .ar-product-card .product-description { font-size: 11px; }
  .ar-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .ar-detail-stage { aspect-ratio: 1.06; }
  .ar-preview-controls { padding: 10px; }
  .ar-mode-switch > button { min-height: 40px; padding: 7px 16px; }
  .ar-effect-settings input { width: 92px; min-height: 44px; }
  .ar-effect-settings > .button, .ar-light-colors > button { min-height: 44px; }
  .ar-preview-caption { font-size: 13px; margin-bottom: 16px; }
  .ar-camera-notice { font-size: 12px; }
  .ar-how-grid { grid-template-columns: 1fr; gap: 22px; }
  .ar-how-grid h3 { margin: 8px 0; }
  .ar-how { margin-top: 32px; }
  .sidebar-bottom { padding-top: 24px; }
  .sidebar-paper { padding-top: 16px; }
}
/* Keep the model name above its preview when two useful columns no longer fit. */
@media(max-width:900px) {
  .ar-detail-grid { display:flex; flex-direction:column; gap:0; }
  .ar-detail-grid > .detail-info { display:contents; }
  .ar-detail-grid > .detail-info > * { order:1; }
  .ar-detail-grid > .detail-info > .eyebrow { order:-3; margin-bottom:8px; }
  .ar-detail-grid > .detail-info > h1 { order:-2; margin-bottom:6px; }
  .ar-detail-grid > .detail-info > .english { order:-1; margin-bottom:20px; }
  .ar-detail-grid > div { order:0; margin-bottom:26px; }
  .ar-detail-grid > .detail-info > .text-link { align-self:flex-start; }
  .ar-detail-grid > .detail-info > .detail-actions { margin-top:6px; }
}
.ar-comparison-intro { margin-bottom:16px; }
.ar-comparison-intro h2 { font-size:18px; }
.ar-comparison-intro p { font-size:12px; color:var(--muted); margin-top:5px; }
.ar-person-stage { aspect-ratio:var(--comparison-aspect); }
.ar-compare-image { position:absolute; top:0; bottom:0; width:50%; overflow:hidden; }
.ar-compare-normal { left:0; }
.ar-compare-augmented { left:50%; }
.ar-compare-image img { position:absolute; top:0; width:200%; max-width:none; height:100%; object-fit:fill; }
.ar-compare-normal img { left:0; }
.ar-compare-augmented img { left:-100%; }
.ar-original .ar-compare-augmented img { left:0; }
.ar-person-stage .ar-stage-bottom { left:12px; right:12px; bottom:12px; }
.ar-person-stage .ar-stage-bottom > span { padding:5px 10px; font-size:12px; font-weight:500; }
.ar-person-stage .ar-stage-bottom > span:last-child { margin-right:0; }
.ar-person-stage.camera-mode .ar-compare-image { visibility:hidden; }
.ar-person-stage.camera-mode .ar-stage-bottom { display:none; }
@media(max-width:600px) {
  .ar-person-stage { aspect-ratio:var(--comparison-aspect); }
  .ar-comparison-intro h2 { font-size:17px; }
  .ar-comparison-intro p { font-size:11px; }
  .ar-person-stage .ar-stage-top { top:8px; left:8px; }
  .ar-person-stage .ar-stage-status { padding:3px 6px; font-size:11px; }
  .ar-person-stage .ar-stage-bottom { left:8px; right:8px; bottom:8px; }
  .ar-person-stage .ar-stage-bottom > span { padding:4px 7px; font-size:11px; }
}
@media(max-width:900px) { .ar-detail-grid { align-items:stretch; } }
