/* ConnectWear site. Colors follow the CW4 app icon. */
:root {
  --bg: #070f2e;
  --bg-2: #0a1640;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #eef3ff;
  --muted: #a3b1d6;
  --blue: #3fa9ff;
  --cyan: #4ce0ff;
  --violet: #6a4cff;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(30, 107, 255, 0.35), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(106, 76, 255, 0.25), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  background-color: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
svg { display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 15, 46, 0.7);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 22%; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cyan); background: rgba(76, 224, 255, 0.08);
  border: 1px solid rgba(76, 224, 255, 0.25); border-radius: 999px;
}
h1 {
  margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #a9cfff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 22px 0 30px; font-size: 19px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; height: 50px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 16px;
}
.btn-primary {
  background: linear-gradient(135deg, #1e6bff, var(--violet));
  box-shadow: 0 10px 30px rgba(30, 107, 255, 0.35);
}
.btn-ghost { border: 1px solid var(--panel-border); background: var(--panel); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }
.fineprint { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Sections */
.section { padding: 72px 0; }
.section-title {
  margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em;
  text-align: center; font-weight: 800;
}
.section-lede { margin: 0 auto 44px; max-width: 36em; text-align: center; color: var(--muted); font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  padding: 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(63, 169, 255, 0.4); transform: translateY(-2px); }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.3), rgba(106, 76, 255, 0.3));
  border: 1px solid rgba(63, 169, 255, 0.3);
}
.icon svg, .privacy-icon svg {
  width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.steps li { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); }
.step-n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; background: linear-gradient(135deg, #1e6bff, var(--violet));
}
.steps h3 { margin: 14px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Privacy */
.privacy {
  display: flex; gap: 24px; align-items: flex-start; padding: 36px;
  border-radius: 24px; max-width: 880px;
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.16), rgba(106, 76, 255, 0.12));
  border: 1px solid rgba(63, 169, 255, 0.25);
}
.privacy h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.01em; }
.privacy p { margin: 0; color: var(--muted); font-size: 17px; }
.privacy-icon {
  flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(76, 224, 255, 0.1); border: 1px solid rgba(76, 224, 255, 0.3);
}
.privacy-icon svg { width: 28px; height: 28px; }

/* FAQ */
details {
  border-bottom: 1px solid var(--panel-border); padding: 4px 0;
}
details:first-of-type { margin-top: 30px; border-top: 1px solid var(--panel-border); }
summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; font-size: 17px;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--blue);
}
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--panel-border); padding: 36px 0 48px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .fineprint { margin: 0; max-width: 40em; }

/* Small screens */
/* Device frames around real screenshots */
.device-watch {
  position: relative; width: 100%; max-width: 260px; padding: 14px;
  border-radius: 30%/26%;
  background: linear-gradient(145deg, #3a4157, #12151f 60%, #2a2f40);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.device-watch::after {
  content: ""; position: absolute; right: -8px; top: 26%; width: 10px; height: 18%;
  border-radius: 5px; background: linear-gradient(90deg, #2a2f40, #6b7390);
}
.device-watch img { display: block; width: 100%; height: auto; border-radius: 24%/20%; background: #000; }
.device-phone {
  width: 100%; max-width: 300px; padding: 10px; border-radius: 40px; background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.device-phone img { display: block; width: 100%; height: auto; border-radius: 30px; }

/* Hero devices: the watch in front of the phone */
.hero-art { position: relative; justify-content: center; min-height: 520px; }
.hero-phone { position: absolute; right: 8%; top: 0; max-width: 250px; transform: rotate(4deg); opacity: 0.95; }
.hero-watch { position: absolute; left: 4%; bottom: 0; max-width: 230px; z-index: 1; }

/* Spotlights */
.spot {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center;
  padding: 44px 0; border-top: 1px solid var(--panel-border);
}
.spot:first-of-type { border-top: 0; }
.spot-flip .spot-media { order: 2; }
.spot-media { display: flex; justify-content: center; }
.spot-eyebrow {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cyan);
}
.spot-copy h3, .health-copy h2, .phone-copy h2 {
  margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em;
}
.spot-copy p, .health-copy p, .phone-copy p { margin: 0; color: var(--muted); font-size: 17px; max-width: 32em; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--panel); border: 1px solid var(--panel-border);
}

/* Health */
.health, .phone-app { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.health-art {
  position: relative; padding: 32px; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(500px 260px at 20% 0%, rgba(255, 55, 95, 0.28), transparent 70%),
    radial-gradient(400px 260px at 100% 100%, rgba(255, 159, 10, 0.18), transparent 70%),
    var(--panel);
  border: 1px solid rgba(255, 55, 95, 0.25);
}
.pulse { width: 100%; height: auto; }
.health-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 24px; }
.health-stats div { display: flex; flex-direction: column; }
.stat-n { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.stat-l { color: var(--muted); font-size: 14px; }
.health-card { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.health .chips li { border-color: rgba(255, 55, 95, 0.3); }

/* The phone app */
.phone-media { display: flex; justify-content: center; }
.phone-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.phone-points li {
  padding: 14px 16px 14px 44px; position: relative; color: var(--muted); font-size: 16px;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-border);
}
.phone-points li::before {
  content: ""; position: absolute; left: 16px; top: 21px; width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.phone-points strong { color: var(--text); }

@media (max-width: 860px) {
  .hero { padding: 56px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { min-height: 460px; max-width: 420px; margin: 0 auto; width: 100%; }
  .spot, .spot-flip, .health, .phone-app { grid-template-columns: 1fr; gap: 28px; }
  .spot-flip .spot-media { order: 0; }
  .spot-copy, .health-copy, .phone-copy { text-align: center; }
  .spot-copy p, .health-copy p, .phone-copy p { margin: 0 auto; }
  .chips { justify-content: center; }
  .phone-points { text-align: left; }
  .device-watch { max-width: 220px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-links a[href="#health"], .nav-links a[href="#phone-app"] { display: none; }
  .privacy { flex-direction: column; padding: 26px; }
  .section { padding: 56px 0; }
}

.footer-links { display: flex; gap: 22px; font-size: 15px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Text pages (privacy, support) */
.page { padding: 64px 0 24px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); }
.page .updated { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.prose { margin-top: 36px; font-size: 17px; }
.prose h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -0.01em; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; }
.prose p, .prose li { color: #c9d3ee; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--blue); }
.callout {
  margin: 28px 0; padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.16), rgba(106, 76, 255, 0.12));
  border: 1px solid rgba(63, 169, 255, 0.25);
}
.callout p { margin: 0; }
.contact-card {
  margin: 32px 0; padding: 28px; border-radius: 24px; text-align: center;
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.18), rgba(106, 76, 255, 0.14));
  border: 1px solid rgba(63, 169, 255, 0.3);
}
.contact-card p { margin: 0 0 16px; color: var(--muted); }
.contact-card .btn { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--panel-border); }
.prose th { color: var(--text); font-weight: 600; }
.prose td { color: #c9d3ee; }
.prose td:first-child { color: var(--text); font-weight: 500; width: 28%; }

/* Walkthroughs */
.walk-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 36px; }
.walk-tab {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
  padding: 10px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-border);
}
.walk-tab[aria-selected="true"] {
  color: var(--text); border-color: transparent;
  background: linear-gradient(135deg, #1e6bff, var(--violet));
}
.walk-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.walk-panel[hidden] { display: none; }
.walk-stage { justify-self: center; }
.walk-stage.device-watch { max-width: 280px; }
.walk-stage.device-phone { max-width: 290px; }
.walk-screen { position: relative; overflow: hidden; background: #000; }
.device-watch .walk-screen { border-radius: 24%/20%; aspect-ratio: 422 / 514; }
.device-phone .walk-screen { border-radius: 30px; aspect-ratio: 600 / 1333; background: #edf0f4; }
.walk-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0;
  opacity: 0; transform: translateX(8%); transition: opacity 0.45s ease, transform 0.45s ease;
}
.walk-screen img.is-shown { opacity: 1; transform: none; }
.walk-tap {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55); border: 2px solid #fff; opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(76, 224, 255, 0.6);
}
.device-phone .walk-tap { background: rgba(30, 107, 255, 0.35); border-color: #1e6bff; }
.walk-tap.is-tapping { animation: walk-tap 1.4s ease-out forwards; }
@keyframes walk-tap {
  0% { opacity: 0; transform: scale(1.6); }
  25% { opacity: 1; transform: scale(1); }
  45% { transform: scale(0.82); box-shadow: 0 0 0 0 rgba(76, 224, 255, 0.6); }
  80% { opacity: 1; box-shadow: 0 0 0 22px rgba(76, 224, 255, 0); }
  100% { opacity: 0.9; transform: scale(1); }
}
.walk-side h3 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.walk-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.walk-steps button {
  width: 100%; text-align: left; font: inherit; font-size: 16px; color: var(--muted); cursor: pointer;
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: transparent; border: 1px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.walk-steps button:hover { color: var(--text); }
.walk-steps button.is-current { color: var(--text); background: var(--panel); border-color: rgba(63, 169, 255, 0.4); }
.walk-n {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.08);
}
.is-current .walk-n { background: linear-gradient(135deg, #1e6bff, var(--violet)); }
.walk-controls { display: flex; gap: 8px; margin-top: 16px; }
.walk-controls button {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer;
  min-width: 44px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--panel-border);
}
.walk-controls button:hover { border-color: rgba(255, 255, 255, 0.25); }
@media (prefers-reduced-motion: reduce) {
  .walk-screen img { transition: none; transform: none; }
  .walk-tap.is-tapping { animation: none; opacity: 1; }
}
@media (max-width: 860px) {
  .walk-panel { grid-template-columns: 1fr; gap: 24px; }
  .walk-stage.device-watch { max-width: 230px; }
  .walk-stage.device-phone { max-width: 240px; }
}
