/* Ball Bearing website. Dark like the app, with its find-it yellow. No web fonts, no scripts. */
:root {
  color-scheme: dark;
  --bg: #0a0c0b;
  --raised: #131715;
  --raised-2: #1a1f1c;
  --band: #0c2419;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f5f4;
  --muted: #a5aeaa;
  --yellow: #ffcc00;
  --on-yellow: #000;
  --green: #11613f;
  --round: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--round); line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--on-yellow); padding: 8px 14px; border-radius: 999px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(10, 12, 11, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 19px/1 var(--round); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 520px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font: 800 17px/1 var(--round); text-decoration: none; white-space: nowrap; }
.btn-yellow { background: var(--yellow); color: var(--on-yellow); box-shadow: 0 6px 18px -6px rgba(255, 204, 0, 0.45); }
.btn-ghost { color: var(--text); border: 1.5px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.btn-soon { cursor: default; }
.btn-soon small { font: 600 13px/1 var(--sans); opacity: 0.7; }

/* Hero */
.hero { position: relative; overflow-x: clip; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 0.65fr; align-items: center; gap: clamp(32px, 6vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--round); color: var(--yellow); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.18); }
.hero h1 { font-size: clamp(40px, 5.3vw, 62px); font-weight: 800; }
.hero h1 .hl { color: var(--yellow); display: block; }
.lede { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); color: #d6dcd9; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(17, 97, 63, 0.45); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before { content: ""; position: absolute; inset: 6% 0 0; background: radial-gradient(closest-side, rgba(255, 204, 0, 0.18), rgba(17, 97, 63, 0.22) 55%, transparent); filter: blur(10px); z-index: -1; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
}

/* Phone frame */
.phone { --pw: 320px; position: relative; width: var(--pw); max-width: 100%; margin: 0; padding: calc(var(--pw) * 0.03); border-radius: calc(var(--pw) * 0.16); background: linear-gradient(150deg, #3a3f3c, #121413 45%, #2a2e2c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6); }
.phone img { width: 100%; height: auto; aspect-ratio: 720 / 1565; object-fit: cover; border-radius: calc(var(--pw) * 0.135); background: #000; }
.phone-sm { --pw: 250px; }
@media (max-width: 860px) { .phone { --pw: 280px; } .phone-sm { --pw: 240px; } }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-band { background: linear-gradient(180deg, var(--band), #0a1a12); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.kicker { display: block; font: 700 14px/1 var(--round); color: var(--yellow); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); counter-reset: step; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step .phone { margin-bottom: 28px; }
.step h3 { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); font: 800 17px/1 var(--round); }
.step p { margin-top: 12px; color: var(--muted); max-width: 22em; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 64px; } }

/* Honest compass */
.h2-lg { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.diagram .lbl { font: 700 12px var(--round); fill: #f3f5f4; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.diagram { background: var(--raised); border: 1px solid var(--line); border-radius: 28px; padding: clamp(14px, 2.4vw, 24px); }
.diagram svg { width: 100%; height: auto; border-radius: 18px; }
.diagram figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.points .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 204, 0, 0.12); display: grid; place-items: center; color: var(--yellow); }
.points .ico svg { width: 22px; height: 22px; }
.points strong { display: block; font-family: var(--round); font-size: 18px; }
.points span.t { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .diagram { order: 2; } }

/* Walker animation in the diagram */
.walker { animation: walk 7s ease-in-out infinite; }
@keyframes walk {
  0%, 8% { transform: translate(200px, 478px); opacity: 0; }
  14% { opacity: 1; }
  78% { transform: translate(226px, 179px); opacity: 1; }
  92%, 100% { transform: translate(226px, 179px); opacity: 0; }
}
.found-ring { animation: ring 7s ease-out infinite; transform-origin: 252.5px 164.4px; transform-box: view-box; }
@keyframes ring { 0%, 76% { opacity: 0; transform: scale(0.4); } 82% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2); } }
.dash { stroke-dasharray: 7 7; animation: march 1.4s linear infinite; }
@keyframes march { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) {
  .walker { animation: none; transform: translate(213px, 330px); }
  .found-ring, .dash { animation: none; }
  .found-ring { opacity: 0; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; }
.plan { background: var(--raised); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.5vw, 36px); display: flex; flex-direction: column; }
.plan-paid { background: linear-gradient(160deg, #241f05, var(--raised) 55%); border-color: rgba(255, 204, 0, 0.45); }
.plan h3 { font-size: 22px; font-weight: 800; }
.price { margin-top: 14px; font: 800 48px/1 var(--round); letter-spacing: -0.02em; }
.price small { font: 600 17px/1 var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan .sub { margin-top: 10px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.plan-paid .ticks li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 204, 0, 0.25); color: #d6dcd9; font-size: 15px; }
.plan-note strong { color: var(--text); }
.fine { margin-top: 22px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; }
.shield { width: clamp(72px, 10vw, 104px); height: auto; }
.privacy-band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.privacy-band p { margin-top: 12px; color: #cfd6d3; max-width: 44em; }
@media (max-width: 640px) { .privacy-band .wrap { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; padding-right: 4px; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 700 18px/1.3 var(--round); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details > div { padding: 0 0 20px; color: #cfd6d3; }
.faq details > div p + p { margin-top: 10px; }
.more { margin-top: 26px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 18px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--yellow); }
.legal { font-size: 13px; opacity: 0.8; }

/* Text pages: privacy, support, 404 */
.page { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 104px); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5.4vw, 54px); font-weight: 800; }
.page .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.page .intro { margin-top: 22px; font-size: 19px; color: #d6dcd9; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 800; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; color: #d3d9d6; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--yellow); }
.summary-card { margin-top: 32px; background: var(--raised); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 16px; padding: 20px 24px; }
.summary-card ul { margin: 8px 0 0; }
.contact-card { margin-top: 36px; background: linear-gradient(160deg, #241f05, var(--raised) 60%); border: 1px solid rgba(255, 204, 0, 0.45); border-radius: 24px; padding: clamp(22px, 3.4vw, 32px); }
.contact-card h2 { margin-top: 0; }
.contact-card .btn { margin-top: 16px; }
.lost { text-align: center; }
.lost .wrap { display: grid; justify-items: center; gap: 18px; }
.lost .ball { width: 120px; height: 120px; }
