﻿/* Page styles for /barcode-reader/sdk-mobile (DBR Mobile design). */

/* The design uses static Inter; disable variable-font optical sizing so
   line breaks match the Figma frames. */
body {
    font-optical-sizing: none;
}

/* The hero video card keeps the design's 16:9 frame at every breakpoint,
   including the stacked layouts below lg. */
.sdk-mobile #overview .video-wrapper {
    aspect-ratio: 16 / 9;
}

/* The fixed-height logo grid centres each brand mark; the images keep their
   own aspect ratio so nothing is squeezed at narrow widths. */
.sdk-mobile .logo-strip img {
    object-fit: contain;
}

/* Hero video carousel: one card at a time, arrows on the card edges and the
   three dots centred at the bottom of the card. Buttons carry no focus
   outline so the card stays clean. */
.sdk-mobile .video-carousel [hidden] {
    display: none;
}

/* The design's card has no playback progress bar; the dots carry position. */
.sdk-mobile .video-carousel .video-progress {
    display: none;
}

/* The hero autoplays, but the slide caption is part of the design and must
   stay readable while the video runs. */
.sdk-mobile .video-carousel .video.playing .video-title,
.sdk-mobile .video-carousel .video.playing .video-mask {
    opacity: 1;
}

.sdk-mobile .video-carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    outline: none;
    background-color: rgba(255, 255, 255, 0.45);
    color: #101828;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.15s ease;
}

.sdk-mobile .video-carousel-nav:focus,
.sdk-mobile .video-carousel-nav:focus-visible {
    outline: none;
    box-shadow: none;
}

.sdk-mobile .video-carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.sdk-mobile .video-carousel-nav.prev {
    left: 12px;
}

.sdk-mobile .video-carousel-nav.next {
    right: 12px;
}

.sdk-mobile .video-carousel-nav .icon {
    width: 16px;
    height: 16px;
}

.sdk-mobile .video-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    z-index: 10;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.sdk-mobile .video-carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    outline: none;
    background-color: #fff;
    opacity: 0.35;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.sdk-mobile .video-carousel-dots button:focus,
.sdk-mobile .video-carousel-dots button:focus-visible {
    outline: none;
}

.sdk-mobile .video-carousel-dots button:hover {
    opacity: 0.85;
}

.sdk-mobile .video-carousel-dots button.active {
    background-color: #fe8e14;
    opacity: 1;
}

/* Android benchmark rings: an SVG stroke so the arc ends stay rounded and the
   circle never gets squeezed by the surrounding flex row. */
/* Benchmark rings, CSS only: a conic-gradient band plus two round caps at the
   arc ends. The diameter follows the design (152 on phones/tablets, 120 on
   desktop) but is capped at half the card so it can never overflow. */
.sdk-mobile .ring-chart {
    position: relative;
    width: clamp(96px, calc(50% - 8px), 152px);
    aspect-ratio: 1 / 1;
    flex: none;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color) calc(var(--ring-p) * 1%), #f3f4f6 0);
}

.sdk-mobile .ring-chart::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background-color: #fff;
}

.sdk-mobile .ring-cap {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

.sdk-mobile .ring-cap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background-color: var(--ring-color);
}

.sdk-mobile .ring-cap.end {
    transform: rotate(calc(var(--ring-p) * 3.6deg));
}

.sdk-mobile .ring-chart.r80 {
    --ring-p: 80.2;
    --ring-color: #fe8e14;
}

.sdk-mobile .ring-chart.r23 {
    --ring-p: 23.3;
    --ring-color: #6a7282;
}

.sdk-mobile .ring-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sdk-mobile .ring-value {
    font-family: var(--font-inter);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

/* The design's "Explore more case studies" button is a flat 1px outline. */
.sdk-mobile .explore-btn {
    border-radius: 6px;
    box-shadow: none;
    background-color: transparent;
    color: #101828;
}

/* Download badges: a scannable store QR appears on hover so desktop visitors
   can pull up the app on their phone. Hidden on devices without hover.
   (Same component as the batch barcode scanner page.) */
.app-qr-pop {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 137px;
    padding: 12px 12px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}

.app-qr:hover .app-qr-pop,
.app-qr:focus-within .app-qr-pop {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (hover: none) {
    .app-qr-pop {
        display: none;
    }
}

/* The Figma type scale carries its own letter-spacing (px values), which is
   tighter than the shared heading classes; without it the hero H1 wraps a
   line earlier than the design at 768. */
.sdk-mobile .heading-01 {
    letter-spacing: -1.12px;
}

.sdk-mobile .heading-02 {
    letter-spacing: -0.07px;
}

.sdk-mobile .heading-03 {
    letter-spacing: -0.16px;
}

@media (min-width: 48rem) {
    .sdk-mobile .heading-02 {
        letter-spacing: -0.16px;
    }
}

@media (min-width: 64rem) {
    .sdk-mobile .heading-02 {
        letter-spacing: -0.27px;
    }
}

@media (min-width: 80rem) {
    .sdk-mobile .heading-02 {
        letter-spacing: -0.4px;
    }
}

.sdk-mobile .why-ring {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 48px solid #fe8e14;
    border-radius: 50%;
    pointer-events: none;
}

.sdk-mobile .why-ring-left {
    top: -120px;
    left: -120px;
}

.sdk-mobile .why-ring-right {
    right: -120px;
    bottom: -120px;
}

/* Benchmark rings: the design keeps 20/28 numbers at every breakpoint and the
   rings must stay circular inside the card. */
.sdk-mobile .ring-chart {
    flex-shrink: 0;
}

.sdk-mobile .ring-value {
    font-family: var(--font-inter);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

/* Card titles in the design stay 20/28 at every breakpoint while heading-04
   grows to 24 at lg. */
.sdk-mobile .title-card {
    font-family: var(--font-inter);
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
}

@media (min-width: 64rem) {
    .sdk-mobile .title-card {
        font-size: 20px;
        line-height: 28px;
    }
}

/* The hero's outlined trial button is white-filled in the design. The hover
   rule has to repeat the id selector: `.sdk-mobile #overview .btn-...` is more
   specific than the shared `.btn.btn-primary-outline:hover`, so without it the
   hover tint would never apply. */
.sdk-mobile #overview .btn-primary-outline {
    background-color: #fff;
}

.sdk-mobile #overview .btn-primary-outline:hover {
    background-color: rgba(254, 142, 20, 0.1);
}

/* The scan-condition cards use the design's slightly darker border. */
.sdk-mobile #scan-conditions .card {
    border-color: #dcdfe6;
}

/* The design keeps the hero H1 leading at 64px from lg up (48/64 at 1194). */
@media (min-width: 64rem) and (max-width: 79.98rem) {
    .sdk-mobile .heading-01 {
        line-height: 64px;
    }
}

/* The 440 frame keeps this section's heading at 32/40 (the other sections drop
   to 28/36 on phones). */
@media (max-width: 47.98rem) {
    .sdk-mobile #scan-conditions h2 {
        font-size: 32px;
        line-height: 40px;
    }
}

/* Mobile demo collage: four screenshots placed exactly like the design frame
   (630x441, radius 18, 31.46deg tilt, each 189px wide = 30% of the panel).
   Rebuilding it from the full-resolution screenshots keeps the phone UI text
   sharp at every DPR instead of resampling one flattened image. */
.sdk-mobile .demo-collage {
    position: relative;
    width: 100%;
    aspect-ratio: 630 / 441;
    overflow: hidden;
    border-radius: 18px;
    background-color: #020618;
}

.sdk-mobile .demo-shot {
    position: absolute;
    width: 30%;
    height: auto;
    transform: rotate(31.46deg);
    transform-origin: 0 0;
}

.sdk-mobile .demo-shot--1 {
    left: 55.64%;
    top: 45.24%;
}

.sdk-mobile .demo-shot--3 {
    left: 90.21%;
    top: -33.97%;
}

.sdk-mobile .demo-shot--2 {
    left: 48.55%;
    top: -32.07%;
}

.sdk-mobile .demo-shot--4 {
    left: 13.55%;
    top: 46.98%;
}
