@font-face {
  font-family: 'General Sans';
  src: url('/static/homepage/fonts/GeneralSans-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/static/homepage/fonts/BricolageGrotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

body {
  background: #F5EFE5 !important;
  color: #1B1815 !important;
}

.ar-page {
  --bg: #F5EFE5;
  --surface: #FFFDF9;
  --ink: #1B1815;
  --muted: #6C6257;
  --hair: rgba(27, 24, 21, 0.11);
  --gold: #C28A2A;
  --cta: #D63C08;
  --cta-hover: #B8320A;
  --women: #B85D6E;
  --men: #3F6688;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--ink);
  padding: 58px 20px 64px;
}

.ar-page *, .ar-page *::before, .ar-page *::after {
  box-sizing: border-box;
}

.ar-shell {
  max-width: 1320px;
  margin: 0 auto;
}

/* Breadcrumb — identical to /on-wrist */
.ar-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--muted);
  margin-bottom: 3px;
}
.ar-crumb a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.ar-crumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header — identical to /on-wrist */
.ar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.ar-header > div:first-child {
  min-width: 0;
  flex: 1 1 320px;
}
.ar-header-title-wrap {
  padding-left: 16px;
}
.ar-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}
.ar-title-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}
.ar-title-copy-btn:hover,
.ar-title-copy-btn.is-copied {
  border-color: var(--cta);
  color: var(--cta);
  background: #FFF7F4;
}
.ar-header h1 {
  font-family: 'General Sans', Inter, sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.68rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.ar-header h1 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.ar-header h1 a:hover,
.ar-header h1 a:focus-visible {
  color: #D63C08;
  border-bottom-color: rgba(214, 60, 8, 0.45);
  outline: none;
}
.ar-sub {
  font-size: 0.77rem;
  color: var(--muted);
  opacity: 0.85;
  margin: 2px 0 0;
  max-width: 640px;
  line-height: 1.3;
}

/* Header Compare bar — exact /on-wrist style */
.ar-compare-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 5px 7px 5px 13px;
  box-shadow: 0 2px 10px rgba(27, 24, 21, 0.05);
  transition: border-color 0.16s, background 0.16s;
}
.ar-compare-bar.active {
  background: #FFF9EE;
  border-color: rgba(194, 138, 42, 0.55);
  box-shadow: 0 2px 12px rgba(194, 138, 42, 0.14);
}
.ar-compare-bar label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ar-compare-bar select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 2px 4px;
  cursor: pointer;
  outline: none;
}
.ar-toggle-tag {
  border: 0;
  border-radius: 999px;
  padding: 5px 11px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #E7E0D6;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ar-compare-bar.active .ar-toggle-tag {
  background: var(--gold);
  color: #fff;
}

/* Workbench: Stage + /on-wrist-style Docked Controls Panel */
.ar-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 14px;
  align-items: stretch;
  min-height: calc(100vh - 150px);
}

.ar-stage-card {
  position: relative;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #171411;
  border: 1px solid rgba(27, 24, 21, 0.14);
  box-shadow: 0 14px 36px -22px rgba(27, 24, 21, 0.28);
  display: flex;
  flex-direction: column;
}

.ar-viewport {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: radial-gradient(circle at 50% 40%, #26211c 0%, #15120f 100%);
  overflow: hidden;
  flex: 1 1 auto;
}

.ar-media-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ar-media-layer.is-mirrored {
  transform: scaleX(-1);
}

#arVideo,
#arDemoCanvas,
#arCanvas,
#arDebugCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#arVideo {
  object-fit: cover;
  z-index: 1;
}
#arDemoCanvas {
  object-fit: cover;
  z-index: 1;
  display: none;
}
.ar-viewport.is-demo #arVideo { display: none; }
.ar-viewport.is-demo #arDemoCanvas { display: block; }
#arCanvas { z-index: 2; pointer-events: none; }
#arDebugCanvas { z-index: 3; pointer-events: none; }

/* Full-bleed Gate Overlays (Landing / Permission / Loading / Error) */
.ar-gate {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(35, 30, 25, 0.84) 0%, rgba(16, 14, 12, 0.94) 100%);
}
.ar-gate[hidden] { display: none !important; }

.ar-gate-card {
  width: 100%;
  max-width: 440px;
  background: #FFFDF9;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: 24px 24px 20px;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55);
}
.ar-gate-preview {
  display: block;
  width: 268px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 968 / 677;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 14px;
  border: 1px solid rgba(27, 24, 21, 0.08);
  background: #F5EFE5;
}
.ar-gate-preview.is-ring-photo {
  object-fit: contain;
  background: #fff;
  padding: 10px;
}
.ar-gate-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F5EFE5;
  border: 1px solid rgba(27, 24, 21, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin: 0 auto 12px;
}
.ar-gate-card h2,
.ar-gate-card .ar-gate-title {
  font-family: 'General Sans', Inter, sans-serif;
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.18;
  margin: 0 0 8px;
  color: var(--ink);
}
.ar-gate-card p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.ar-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 310px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-family: 'Bricolage Grotesque', Inter, sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.ar-primary-btn:hover { background: var(--cta-hover); }
.ar-primary-btn:active { transform: translateY(1px); }
.ar-primary-btn:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }

.ar-kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}
.ar-kbd-hint {
  margin: 7px 0 0 !important;
  font-size: 0.75rem !important;
  color: #877c6f !important;
}
.ar-gate-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 24, 21, 0.08);
}
.ar-text-btn {
  background: none;
  border: 0;
  padding: 4px 6px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ar-text-btn:hover { color: var(--cta); }

/* Determinate Loading Bar inside #gateLoading */
.ar-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid rgba(27, 24, 21, 0.13);
  border-top-color: var(--cta);
  border-radius: 50%;
  animation: arSpin 0.8s linear infinite;
}
@keyframes arSpin { to { transform: rotate(360deg); } }

.ar-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.ar-progress-track {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: #EBE4D9;
  overflow: hidden;
  border: 1px solid rgba(27, 24, 21, 0.08);
}
.ar-progress-fill {
  height: 100%;
  width: 6%;
  border-radius: 999px;
  background: linear-gradient(90deg, #E8561A 0%, #D63C08 100%);
  transition: width 0.22s ease-out;
}
.ar-progress-pct {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Live HUD inside stage */
.ar-hud-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.ar-hud-top[hidden] { display: none !important; }
.ar-hud-top > * { pointer-events: auto; }

.ar-status-pill,
.ar-metrics-pill,
.ar-hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FAF6EF;
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ar-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
}
.ar-status-pill.is-locked .ar-status-dot {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}
.ar-hud-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ar-hud-btn {
  cursor: pointer;
  font-family: inherit;
}
.ar-hud-btn:hover { background: rgba(34, 30, 26, 0.9); border-color: rgba(255, 255, 255, 0.3); }
.ar-hud-btn.is-active {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}
.ar-debug-hud {
  position: absolute;
  top: 52px;
  left: 14px;
  z-index: 6;
  pointer-events: none;
  background: rgba(16, 14, 11, 0.84);
  color: #FDE68A;
  border: 1px solid rgba(253, 230, 138, 0.28);
  border-radius: 10px;
  padding: 7px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.45;
  white-space: pre;
  backdrop-filter: blur(8px);
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floating Position Pill — matches /on-wrist `.ow-pos-hud-pill` */
.ar-pos-hud-pill {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 253, 249, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(27, 24, 21, 0.12);
  border-radius: 999px;
  padding: 5px 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}
.ar-pos-hud-pill[hidden] { display: none !important; }
.ar-pos-hud-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.ar-pos-hud-pill input[type="range"] {
  width: 112px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.ar-pos-hud-pill strong {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink);
  width: 78px;
  flex-shrink: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ar-hud-bottom {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.ar-hud-bottom[hidden] { display: none !important; }
.ar-wrist-prompt {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FAF6EF;
  font-size: 0.76rem;
  font-weight: 500;
  text-align: center;
}

/* Stage bottom action strip */
.ar-stage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1A1714;
  color: #DDD5CA;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.ar-stage-bar strong { color: #FFFDF9; }
.ar-stage-bar-actions {
  display: inline-flex;
  gap: 7px;
}
.ar-stage-bar-actions[hidden] { display: none !important; }
.ar-bar-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFDF9;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease;
}
.ar-bar-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.ar-bar-btn.is-active {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}
.ar-bar-btn.is-active:hover:not(:disabled) { background: var(--cta-hover); }
.ar-bar-btn:disabled { opacity: 0.36; cursor: not-allowed; }

/* Controls Panel — copied cleanly from /on-wrist `.ow-controls-panel` */
.ar-controls-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 9px 12px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
}
.ar-ctrl-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.ar-ctrl-spaced { margin-top: 6px; }
.ar-ctrl-label span, .ar-ctrl-label strong, .ar-ctrl-label label { white-space: nowrap; }
.ar-ctrl-label strong {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}
.ar-wear-all-btn {
  border: 1px solid rgba(214, 60, 8, 0.35);
  background: rgba(214, 60, 8, 0.07);
  color: var(--cta);
  border-radius: 999px;
  padding: 2px 9px;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.ar-wear-all-btn:hover {
  background: rgba(214, 60, 8, 0.15);
  border-color: var(--cta);
}
.ar-wear-all-btn.is-active {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

/* Wrist vs Smart Rings (AR Finger) Mode Switcher */
.ar-mode-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 2.5px;
  border-radius: 999px;
  background: #EFE9DF;
  border: 1px solid rgba(27, 24, 21, 0.08);
  margin-bottom: 8px;
}
.ar-mode-bar button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 4.5px 8px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
}
.ar-mode-bar button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(27, 24, 21, 0.13);
}
/* Lock picker stack height to max(Wrist grid, Smart Rings grid) so tab toggles cause 0px canvas height shift */
.ar-picker-stack {
  display: grid;
  align-items: start;
}
.ar-picker-stack > div {
  grid-area: 1 / 1;
  min-width: 0;
}
.ar-picker-stack > .is-inactive {
  visibility: hidden;
  pointer-events: none;
}
.ar-ring-btn {
  border-left: 3px solid var(--ring-accent, #7A8390);
}
.ar-ring-btn.active {
  background: #23262E;
  border-color: #23262E;
  color: #FAF6EF;
}
.ar-ring-btn[data-ring-slug="pebble-index-01"] {
  background: #FFF8F5;
}
.ar-ring-btn[data-ring-slug="pebble-index-01"].active {
  background: #A93209;
  border-color: #A93209;
  color: #fff;
}
.ar-finger-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.ar-finger-row button {
  border: 1px solid var(--hair);
  background: #FAF7F2;
  color: var(--muted);
  font: inherit;
  font-size: 0.65rem;
  font-weight: 650;
  padding: 4px 4px;
  border-radius: 6px;
  cursor: pointer;
}
.ar-finger-row button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FAF6EF;
}
.ar-finger-row button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Categorized 2-col device selector — exact /on-wrist visual system */
.ar-dev-section { margin-bottom: 5px; }
.ar-dev-section:last-child { margin-bottom: 0; }
.ar-dev-cat-head {
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ar-cat-pip { width: 6px; height: 6px; border-radius: 2px; display: inline-block; }
.ar-dev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.ar-dev-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border: 1px solid var(--hair);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4.5px 7.5px;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  min-width: 0;
}
.ar-dev-btn:not(.active):hover { background: #FAF7F2; border-color: rgba(27, 24, 21, 0.22); }
.ar-dev-btn .ar-dev-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-dev-btn[data-cat="over"]  { border-left: 3px solid #4A5B8C; }
.ar-dev-btn[data-cat="watch"] { border-left: 3px solid #2A7562; }
.ar-dev-btn[data-slug="chargerless-ray"] {
  border-left: 3px solid var(--gold);
  background: #FFFBF2;
}
.ar-dev-btn[data-slug="chargerless-ray"]:not(.active):hover { background: #FBF4E4; }
.ar-dev-btn.active { color: #FAF6EF; }
.ar-dev-btn[data-cat="over"].active  { background: #2D3859; border-color: #2D3859; }
.ar-dev-btn[data-cat="watch"].active { background: #1B4F42; border-color: #1B4F42; }
.ar-dev-btn[data-slug="chargerless-ray"].active { background: #8A5A12; border-color: #8A5A12; }

/* Women + Men ANSUR II normal distribution bell curves — matching /wearables-on-wrist */
.ar-dist-wrap { display: flex; flex-direction: column; gap: 5px; }
.ar-dist-row {
  background: #FAF7F2;
  border: 1px solid rgba(27, 24, 21, 0.08);
  border-radius: 9px;
  padding: 4px 8px 5px;
}
.ar-dist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.ar-dist-title {
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.ar-dist-title .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.ar-dist-row.women .ar-dist-title { color: #8F3E4E; }
.ar-dist-row.women .ar-dist-title .dot { background: var(--women); }
.ar-dist-row.men .ar-dist-title { color: #2E4F6E; }
.ar-dist-row.men .ar-dist-title .dot { background: var(--men); }

.ar-preset-strip {
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 1.5px;
  gap: 2px;
  background: rgba(27, 24, 21, 0.045);
  border: 1px solid rgba(27, 24, 21, 0.08);
}
.ar-preset-strip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.65rem;
  font-weight: 650;
  padding: 2px 6px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
  white-space: nowrap;
}
.ar-preset-strip button:hover { color: var(--ink); }

.ar-curve-track {
  position: relative;
  height: 21px;
  width: 100%;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  border-radius: 6px;
}
.ar-curve-track:focus-visible {
  box-shadow: 0 0 0 2px rgba(27, 24, 21, 0.45);
}
.ar-curve-svg {
  display: block;
  width: 100%;
  height: 15px;
  overflow: visible;
  pointer-events: none;
}
.ar-curve-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 3px;
  border-radius: 99px;
  background: rgba(27, 24, 21, 0.14);
  pointer-events: none;
}
.ar-curve-fill {
  position: absolute;
  left: 0;
  bottom: 5px;
  height: 3px;
  border-radius: 99px;
  pointer-events: none;
}
.ar-dist-row.women .ar-curve-fill { background: rgba(184, 93, 110, 0.52); }
.ar-dist-row.men .ar-curve-fill   { background: rgba(63, 102, 136, 0.52); }
.ar-curve-thumb {
  position: absolute;
  bottom: 0.5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(27, 24, 21, 0.32);
  pointer-events: none;
}
.ar-dist-row.women .ar-curve-thumb { background: var(--women); }
.ar-dist-row.men .ar-curve-thumb   { background: var(--men); }

.ar-scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--muted);
  padding: 0 2px;
  margin-top: -2px;
  font-variant-numeric: tabular-nums;
}

.ar-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
  margin: 2px 0 0;
}

/* Segmented control + mini toggles */
.ar-seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
  border-radius: 999px;
  background: #EFE9DF;
  border: 1px solid rgba(27, 24, 21, 0.08);
}
.ar-seg button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 5px 8px;
  cursor: pointer;
}
.ar-seg button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(27, 24, 21, 0.12);
}
.ar-seg button:disabled { opacity: 0.45; cursor: not-allowed; }

.ar-toggles-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.ar-mini-toggle {
  padding: 6px 5px;
  border-radius: 8px;
  border: 1px solid var(--hair);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.69rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ar-mini-toggle.is-active {
  background: var(--ink);
  color: #FAF6EF;
  border-color: var(--ink);
}

.ar-spec-footer {
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid rgba(27, 24, 21, 0.08);
  font-size: 0.71rem;
  color: var(--muted);
}
.ar-spec-items {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 2.85em;
}
.ar-spec-items span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ar-spec-items strong { color: var(--ink); }

/* Ray lead card cleanly below the full-height workbench */
.ar-ray-strip {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ar-ray-strip-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 540px;
  min-width: 0;
}
.ar-ray-strip-photo {
  width: 124px;
  height: 100px;
  object-fit: cover;
  background: #F5EFE5;
  border: 1px solid rgba(27, 24, 21, 0.08);
  border-radius: 12px;
  padding: 0;
  flex-shrink: 0;
}
.ar-ray-strip-copy {
  min-width: 0;
}
.ar-ray-strip h2 {
  font-family: 'General Sans', Inter, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 5px;
}
.ar-ray-strip p {
  margin: 0;
  max-width: 720px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
.ar-ray-strip-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.ar-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-family: 'Bricolage Grotesque', Inter, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.16s ease;
}
.ar-cta-link:hover { background: var(--cta-hover); color: #fff; }
.ar-sec-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ar-sec-link:hover { color: var(--cta); }

/* Editorial notes & FAQ — full desktop shell width */
.ar-editorial {
  margin-top: 38px;
  width: 100%;
  max-width: none;
}
.ar-editorial-intro {
  max-width: 820px;
}
.ar-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
  margin-top: 12px;
}
.ar-editorial-grid h2 {
  margin-top: 18px;
}
.ar-editorial h2 {
  font-family: 'General Sans', Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 28px 0 10px;
  color: var(--ink);
}
.ar-editorial h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 18px 0 6px;
  color: var(--ink);
}
.ar-editorial p, .ar-editorial li {
  font-size: 0.94rem;
  line-height: 1.62;
  color: #463E36;
  margin: 0 0 10px;
}
.ar-editorial a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ar-editorial a:hover { color: var(--cta); }
.ar-fine {
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  margin-top: 20px !important;
}

@media (max-width: 980px) {
  .ar-workbench { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ar-viewport { aspect-ratio: 4 / 3; min-height: 340px; }
  .ar-editorial-grid { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 600px) {
  .ar-page { padding: 72px 12px 64px; }
  .ar-header-title-wrap { padding-left: 0; }
  .ar-viewport { aspect-ratio: auto; min-height: 465px; max-height: none; }
  .ar-hud-top { top: 10px; left: 10px; right: 10px; }
  .ar-status-pill, .ar-metrics-pill { padding: 5px 9px; font-size: 0.69rem; white-space: nowrap; }
  .ar-pos-hud-pill { bottom: 72px; padding: 4px 10px; gap: 6px; }
  .ar-pos-hud-pill input[type="range"] { width: 88px; }
  .ar-pos-hud-pill strong { width: 64px; }
  .ar-wrist-prompt { font-size: 0.69rem; padding: 5px 11px; }
  .ar-gate { padding: 14px; }
  .ar-gate-card { padding: 16px 14px 14px; }
  .ar-gate-preview { width: 176px; margin-bottom: 10px; }
  .ar-gate-card h2,
.ar-gate-card .ar-gate-title { font-size: 1.16rem; margin-bottom: 6px; }
  .ar-gate-card p { font-size: 0.8rem; margin-bottom: 12px; }
  .ar-gate-foot { margin-top: 10px; padding-top: 9px; }
}

/* Inline Apple Watch 42 | 46 mm size switcher inside AR Watches grid */
.ar-dev-sized { justify-content: space-between; gap: 4px; padding-right: 4px; }
.ar-size-inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px;
  border-radius: 5px;
  background: rgba(27, 24, 21, 0.08);
  flex-shrink: 0;
}
.ar-dev-btn.active .ar-size-inline { background: rgba(255, 255, 255, 0.22); }
.ar-size-opt {
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  opacity: 0.72;
  cursor: pointer;
}
.ar-size-opt.active { background: #FFFDF9; color: #1B1815; opacity: 1; }

/* Frozen-frame Export Share Card Bar */
.ar-frozen-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 14px;
  background: #2A211B;
  border-top: 1px solid rgba(214, 60, 8, 0.45);
  color: #FAF6EF;
  font-size: 0.76rem;
}
.ar-frozen-label { color: #F5E7D6; font-weight: 500; }
.ar-frozen-actions { display: inline-flex; gap: 7px; flex-wrap: wrap; }
.ar-card-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  color: #FFFDF9;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.ar-card-btn:hover { background: rgba(255, 255, 255, 0.20); }
.ar-card-btn-primary {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}
.ar-card-btn-primary:hover { background: var(--cta-hover); }

/* Share row inside AR sidebar footer */
.ar-share-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  margin-top: 0;
}
.ar-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--hair);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.67rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.ar-share-btn:hover { border-color: var(--cta); color: var(--cta); background: #FFF7F4; }
.ar-share-3d { width: 100%; padding: 6px 10px; font-size: 0.72rem; color: var(--cta); border-color: rgba(214, 60, 8, 0.28); background: #FFF7F4; }

/* SSR Specs Table on /ar-wrist pages */
.ar-table-wrap {
  margin: 14px 0 22px;
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--surface);
}
.ar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.ar-table caption {
  text-align: left;
  padding: 11px 14px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.ar-table th, .ar-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(27, 24, 21, 0.08);
  white-space: nowrap;
}
.ar-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #FAF6EF;
}
.ar-table tbody tr:last-child th,
.ar-table tbody tr:last-child td { border-bottom: 0; }
.ar-table tbody tr.is-current { background: #FFF8EE; }
.ar-table a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ar-table a:hover { color: var(--cta); }
