/* ---- Polish pass 6: calmer surfaces, richer cards, a finished footer ---- */

/* A faint wash of colour at the top of every page, behind everything. */
body {
    background:
        radial-gradient(1100px 520px at 88% -120px, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
        radial-gradient(900px 480px at -10% 0, color-mix(in srgb, #3fc9d8 7%, transparent), transparent 70%),
        var(--bg);
    background-repeat: no-repeat;
}

/* Header: frosted glass; the current page sits in a soft pill. */
.site-header {
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
}
@media (min-width: 64rem) {
    .site-nav a { border-radius: 999px; transition: color var(--speed) var(--ease), background var(--speed) var(--ease); }
    .site-nav a[aria-current] { background: color-mix(in srgb, var(--accent) 18%, transparent); }
    .site-nav a[aria-current]::after { display: none; }
}

/* Hero: a fine dot grid fading out behind the watches. */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.4px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000, transparent 75%);
    opacity: .7;
}
/* The figures sit in small tiles. */
.hero-facts { gap: 12px; }
.hero-facts div {
    min-width: 112px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius);
    background: color-mix(in srgb, var(--card) 70%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-facts dd { font-size: 1.65rem; line-height: 1.1; }
/* Where the designs install from. */
.hero-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.hero-stores li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; color: var(--ink); }
.hero-stores li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--platform, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--platform, var(--accent)) 22%, transparent); }
.hero-stores .label { padding: 0; border: 0; background: none; font-weight: 500; color: var(--muted); }
.hero-stores .label::before { display: none; }
.hero-stores .platform-garmin { --platform: #2f7de1; }
.hero-stores .platform-wearos { --platform: #1f9d55; }
.hero-stores .platform-fitbit { --platform: #0aa5b8; }

/* Section titles: tighter and a little bolder. */
.section-head h2 { letter-spacing: -.025em; font-weight: 780; }
.section-lede { max-width: 56ch; }

/* Cards: a softer frame, a spotlit stage with a shadow under the dial, a clear footer. */
.card {
    border-radius: calc(var(--radius-lg) - 2px);
    box-shadow: 0 1px 2px rgba(11, 13, 17, .04), 0 8px 24px -16px rgba(11, 13, 17, .22);
}
.card-media::after {
    content: ""; position: absolute; left: 22%; right: 22%; bottom: 5%; height: 7%; z-index: 0; pointer-events: none;
    border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent);
    filter: blur(4px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.card-media img { position: relative; z-index: 1; padding: 6%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18)); }
.card:hover .card-media::after { opacity: .7; transform: scaleX(.88); }
.card-body { gap: 7px; padding: 15px 17px 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--tint, var(--accent)) 4%, var(--card)), var(--card) 60%); }
.card-actions { padding-top: 12px; border-top: 1px dashed var(--line); margin-top: auto; }
.card-store { border-radius: 999px; }
.card:hover { border-color: color-mix(in srgb, var(--tint, var(--accent)) 45%, transparent); }

/* Fitbit dials are square screens: no floor shadow trick needed, keep the drop shadow. */
.platform-fitbit .card-media::after { left: 28%; right: 28%; }

/* Questions: the open one carries an accent edge and an accent icon. */
.faq-item { transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.faq-item:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: inset 3px 0 0 var(--accent), var(--shadow-md); }
.faq-item[open] .faq-icon { background: var(--accent); color: var(--accent-ink); }
.faq-icon { transition: background var(--speed) var(--ease); }

/* Footer: a gradient rule on top and links that slide on hover. */
.site-footer { position: relative; border-top: 0; }
.site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #3fc9d8, var(--accent), transparent);
}
.footer-links h2 { color: var(--accent-text); }
.footer-links a { display: inline-block; transition: color var(--speed) var(--ease), translate var(--speed) var(--ease); }
.footer-links a:hover { translate: 4px 0; }

/* Dark: deeper glass and dials that glow instead of casting shadows. */
:root[data-site-appearance="dark"] .card { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 30px -18px rgba(0, 0, 0, .8); }
:root[data-site-appearance="dark"] .card-media::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--tint, var(--accent)) 40%, transparent), transparent); opacity: .55; }
:root[data-site-appearance="dark"] .card-media img { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
:root[data-site-appearance="dark"] .hero::before { opacity: .45; }

@media (max-width: 47.99rem) {
    .hero-facts div { min-width: 0; flex: 1; padding: 10px 14px; }
    .hero-stores { justify-content: center; }
    .card-media img { padding: 4%; }
}
@media (prefers-reduced-motion: reduce) {
    .footer-links a:hover { translate: none; }
}

/* ---- Polish pass 7: the face page's family, guides, support, the footer's place ---- */

/* Short pages keep the footer at the bottom of the window. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }

/* A design family: one row of small dials that scrolls sideways. */
.series-dials {
    display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 14px; flex-wrap: nowrap;
    margin: 18px 0 0; padding: 4px 48px 14px 2px;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; overscroll-behavior-x: contain;
    mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}
.series-dials li { scroll-snap-align: start; }
.series-dials a {
    display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 0; padding: 0; border: 0; border-radius: 0;
    background: none; font-size: .8rem; font-weight: 600; line-height: 1.25; text-align: center; color: var(--muted);
}
.series-dials img, .series-dial-empty {
    width: 96px; height: 96px; border-radius: var(--dial-radius, 50%); object-fit: var(--dial-fit, cover); background: #000;
    box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px rgba(0, 0, 0, .45);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.series-dials span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.series-dials a:hover, .series-dials a:focus-visible { color: var(--ink); }
.series-dials a:hover img, .series-dials a:focus-visible img { transform: translateY(-4px) scale(1.05); box-shadow: 0 0 0 2px var(--accent), 0 14px 24px -12px rgba(0, 0, 0, .5); }

/* Guides: each platform is one card, clickable as a whole. */
.guide-platforms .guide-platform {
    position: relative; border-radius: var(--radius-lg); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
    background: linear-gradient(150deg, color-mix(in srgb, var(--platform, var(--accent)) 7%, var(--card)), var(--card) 60%);
}
.guide-platforms .guide-platform h2 a { text-decoration: none; }
.guide-platforms .guide-platform h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-platforms .guide-platform h2 a::before {
    content: "→"; position: absolute; right: 22px; bottom: 16px; font-size: 1.1rem; color: var(--platform, var(--accent-text));
    opacity: 0; translate: -6px 0; transition: opacity .3s var(--ease), translate .3s var(--ease);
}
.guide-platforms .guide-platform:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--platform, var(--accent)) 45%, var(--line)); box-shadow: var(--shadow-md); }
.guide-platforms .guide-platform:hover h2 a::before { opacity: 1; translate: 0 0; }
.guide-platforms .guide-platform:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.guide-platforms .guide-platform img { transition: transform .6s var(--ease); }
.guide-platforms .guide-platform:hover img { transform: scale(1.05); }
.guide-platforms .guide-platform .eyebrow { color: color-mix(in srgb, var(--platform, var(--accent)) 70%, var(--ink)); }
.guide-platform.platform-garmin, .support-guide-list .platform-garmin { --platform: #2f7de1; }
.guide-platform.platform-wearos, .support-guide-list .platform-wearos { --platform: #1f9d55; }
.guide-platform.platform-fitbit, .support-guide-list .platform-fitbit { --platform: #0aa5b8; }
.guide-platform.platform-amazfit, .support-guide-list .platform-amazfit { --platform: #e8890c; }

/* Support: the guides as link cards; fields light up when in use. */
.support-guide-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.support-guide-list li { margin: 0; }
.support-guide-list a {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); color: var(--ink); text-decoration: none;
    transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.support-guide-list a > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.support-guide-list small { color: var(--muted); font-size: .8rem; }
.support-guide-icon {
    display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px;
    background: color-mix(in srgb, var(--platform) 14%, var(--card)); color: color-mix(in srgb, var(--platform) 70%, var(--ink));
}
.support-guide-icon svg { width: 20px; height: 20px; }
.support-guide-arrow { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: translate var(--speed) var(--ease), color var(--speed) var(--ease); }
.support-guide-list a:hover { border-color: color-mix(in srgb, var(--platform) 50%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.support-guide-list a:hover .support-guide-arrow { translate: 3px 0; color: var(--platform); }
.support-panel { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.support-panel :is(input, textarea) { transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.support-panel :is(input, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }

@media (prefers-reduced-motion: reduce) {
    .guide-platforms .guide-platform:hover, .support-guide-list a:hover { transform: none; }
    .guide-platforms .guide-platform:hover img, .series-dials a:hover img { transform: none; }
}

/* ---- Polish pass 8: a friendlier 404, guides that keep their place ---- */

/* 404: a watch stopped at 4:04 while its second hand keeps searching. */
.error-page { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lost-dial { width: clamp(150px, 22vw, 200px); height: auto; margin-bottom: 18px; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .22)); }
.lost-strap { fill: color-mix(in srgb, var(--ink) 16%, var(--bg)); }
.lost-case { fill: color-mix(in srgb, var(--ink) 75%, #3a4250); }
.lost-face { fill: #0b0d11; }
.lost-ticks rect { fill: #ffffff; opacity: .55; }
.lost-hour, .lost-minute, .lost-second { stroke-linecap: round; }
.lost-hour { stroke: #f5f6f8; stroke-width: 6; }
.lost-minute { stroke: #f5f6f8; stroke-width: 4; }
.lost-second { stroke: var(--accent); stroke-width: 2; transform-origin: 100px 100px; animation: lost-search 4.5s cubic-bezier(.6, 0, .3, 1) infinite; }
.lost-ring { transform-origin: 100px 100px; animation: lost-ring 9s linear infinite; }
@keyframes lost-search {
    0% { rotate: 0deg; } 30% { rotate: 140deg; } 42% { rotate: 120deg; } 70% { rotate: 300deg; } 82% { rotate: 284deg; } 100% { rotate: 360deg; }
}
@keyframes lost-ring { to { rotate: 1turn; } }
.lost-search {
    display: flex; align-items: center; gap: 10px; width: min(100%, 520px); margin: 26px auto 0; padding: 6px 6px 6px 16px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: var(--shadow-md);
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.lost-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent), var(--shadow-md); }
.lost-search svg { width: 20px; height: 20px; flex: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.lost-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.lost-search .btn { padding-inline: 20px; }
.lost-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.lost-platforms a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card); font-size: .9rem; font-weight: 650; transition: border-color var(--speed) var(--ease), translate var(--speed) var(--ease);
}
.lost-platforms a:hover { border-color: var(--platform, var(--accent)); translate: 0 -2px; }
.lost-platforms small { color: var(--muted); font-weight: 600; }
.lost-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--platform, var(--accent)); }
.lost-platforms .platform-garmin { --platform: #2f7de1; }
.lost-platforms .platform-wearos { --platform: #1f9d55; }
.lost-platforms .platform-fitbit { --platform: #0aa5b8; }
.lost-platforms .platform-amazfit { --platform: #e8890c; }

/* Guides: the contents stay under the header while reading, and mark the part on screen. */
.guide-contents {
    position: sticky; top: 64px; z-index: 20; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -8px; padding: 8px; border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
}
.guide-contents::-webkit-scrollbar { display: none; }
.guide-contents a { flex: none; border-radius: 999px; background: var(--card); transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.guide-contents a:hover { text-decoration: none; border-color: var(--accent); }
.guide-contents a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.guide-section, [id^="guide-"] { scroll-margin-top: 140px; }

@media (prefers-reduced-motion: reduce) {
    .lost-second, .lost-ring { animation: none; }
    .lost-platforms a:hover { translate: none; }
}
.lost-platforms .lost-all { background: var(--ink); border-color: var(--ink); color: var(--bg); }
