/* One dark palette, shared with the apps: the navy of the app icon and its cyan link. */
:root {
  --background: #0f1620;
  --shell: #2a3542;
  --edge: #3d4a59;
  --well: #131b25;
  --card: #1d2733;
  --text: #eef3f6;
  --secondary: #8fa1b1;
  --link: #18d9d7;
  --ok: #59dbab;
  --waiting: #ffb861;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  background:
    radial-gradient(900px 520px at 78% -6%, #172d46 0%, transparent 70%),
    radial-gradient(circle at 1px 1px, rgb(143 161 177 / 0.09) 1px, transparent 0) 0 0 / 28px 28px,
    var(--background);
  background-attachment: scroll, scroll, scroll;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--link);
  color: var(--background);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(var(--gutter), calc((100vw - var(--page)) / 2));
  background: rgb(15 22 32 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(61 74 89 / 0.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 22%;
}

.top nav,
.bottom nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}

.top nav a,
.bottom nav a {
  color: var(--secondary);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.top nav a:hover,
.bottom nav a:hover {
  color: var(--text);
}

.top nav .nav-cta {
  padding: 7px 14px;
  border: 1px solid var(--edge);
  border-radius: 9px;
  color: var(--text);
}

.top nav .nav-cta:hover {
  border-color: var(--link);
}

@media (max-width: 640px) {
  .top nav a:not(.nav-cta) {
    display: none;
  }
}

/* Shared pieces */

main {
  width: min(100%, calc(var(--page) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--link);
  font: 500 0.8125rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The link from the app icon, drawn before each label. */
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--link);
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.button:hover {
  border-color: var(--link);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  border-color: var(--link);
  background: var(--link);
  color: var(--background);
}

.button.primary:hover {
  background: #4be6e4;
}

.button .file {
  font: 500 0.8125rem/1 var(--mono);
  white-space: nowrap;
  opacity: 0.75;
}

@media (max-width: 420px) {
  .button .file {
    font-size: 0.75rem;
  }
}

.note {
  max-width: 68ch;
  margin-top: 28px;
  color: var(--secondary);
  font-size: 0.9375rem;
}

/* Hero */

.hero {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  padding: clamp(48px, 9vw, 104px) 0 clamp(56px, 9vw, 104px);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.02fr 0.98fr;
  }
}

.lede {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--secondary);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.fine {
  margin-top: 16px;
  color: var(--secondary);
  font-size: 0.875rem;
}

/* The rig: the Clicks joined to MyWhoosh, as the desktop apps draw them.
   Every measurement is a multiple of --u, so the drawing scales as one piece. */

.rig-frame {
  container-type: inline-size;
  padding: clamp(18px, 3vw, 30px) clamp(14px, 3vw, 30px) 18px;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: linear-gradient(160deg, rgb(29 39 51 / 0.9), rgb(19 27 37 / 0.9));
  box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.rig {
  --u: clamp(8px, 4cqw, 20px);
  display: flex;
  align-items: flex-start;
}

.controller {
  flex: none;
  width: calc(6.4 * var(--u));
}

.puck {
  position: relative;
  height: calc(8.6 * var(--u));
  border: calc(0.15 * var(--u)) solid var(--edge);
  border-radius: calc(2 * var(--u));
  background: var(--shell);
}

.well {
  position: absolute;
  left: calc(0.55 * var(--u));
  top: calc(0.5 * var(--u));
  width: calc(5 * var(--u));
  height: calc(4.6 * var(--u));
  border-radius: calc(1.3 * var(--u));
  background: var(--well);
}

.well i {
  position: absolute;
  width: calc(1.25 * var(--u));
  height: calc(1.25 * var(--u));
  border-radius: 50%;
  background: var(--card);
}

.well i:nth-child(1) { left: calc(1.875 * var(--u)); top: calc(0.4 * var(--u)); }
.well i:nth-child(2) { left: calc(0.5 * var(--u)); top: calc(1.675 * var(--u)); }
.well i:nth-child(3) { left: calc(3.25 * var(--u)); top: calc(1.675 * var(--u)); }
.well i:nth-child(4) { left: calc(1.875 * var(--u)); top: calc(2.95 * var(--u)); }

.well.faces i:nth-child(1) { background: #21b9e5; }
.well.faces i:nth-child(2) { background: #f47130; }
.well.faces i:nth-child(3) { background: #58c86b; }
.well.faces i:nth-child(4) { background: #d94a94; }

.bar {
  position: absolute;
  left: calc(0.6 * var(--u));
  right: calc(0.6 * var(--u));
  bottom: calc(0.6 * var(--u));
  height: calc(2.4 * var(--u));
  padding: 0;
  border: 0;
  border-radius: calc(0.95 * var(--u));
  background: var(--well);
  color: var(--text);
  font: 600 calc(1.9 * var(--u)) / 1 var(--sans);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), transform 120ms var(--ease);
}

.bar.accent {
  color: var(--link);
}

.bar:hover {
  background: #0d141c;
}

.bar:active {
  transform: scale(0.97);
}

.bar.lit {
  background: var(--link);
  color: var(--background);
  transition-duration: 0ms;
}

.caption {
  margin-top: calc(0.6 * var(--u));
  color: var(--secondary);
  font-size: max(11px, calc(0.65 * var(--u)));
  text-align: center;
  white-space: nowrap;
}

.link {
  position: relative;
  flex: 1 1 0;
  min-width: calc(1.6 * var(--u));
  height: 3px;
  margin-top: calc(4.3 * var(--u) - 1.5px);
  overflow: hidden;
  background: var(--edge);
}

.link.reverse {
  transform: scaleX(-1);
}

.link b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, var(--link));
  opacity: 0;
}

.link.fire b {
  animation: pulse 300ms linear;
}

@keyframes pulse {
  from { left: -45%; opacity: 1; }
  to { left: 100%; opacity: 1; }
}

.node {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(0.12 * var(--u));
  width: calc(7 * var(--u));
  height: calc(5.4 * var(--u));
  margin-top: calc(1.6 * var(--u));
  border: calc(0.1 * var(--u)) solid var(--edge);
  border-radius: calc(0.8 * var(--u));
  background: var(--background);
  transition: border-color 500ms var(--ease);
}

.node.bump {
  border-color: var(--link);
  transition-duration: 0ms;
}

.node-title {
  color: var(--secondary);
  font: 600 max(9px, calc(0.5 * var(--u))) / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-count {
  font: 700 calc(2.3 * var(--u)) / 1.05 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.node-sub {
  color: var(--secondary);
  font-size: max(10px, calc(0.55 * var(--u)));
  line-height: 1;
}

.rig-hint {
  margin-top: 16px;
  color: var(--secondary);
  font-size: 0.8125rem;
  text-align: center;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 5px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: var(--well);
  color: var(--text);
  font: 600 0.8125rem/1.4 var(--mono);
  text-align: center;
}

/* Sections */

.band {
  padding: clamp(48px, 8vw, 88px) 0;
  border-top: 1px solid rgb(61 74 89 / 0.5);
}

.band.split {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .band.split {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
}

/* Steps sit on a rail, like the Clicks on their link. */
.steps {
  position: relative;
  display: grid;
  gap: 28px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
}

.step-number {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: 2px solid var(--edge);
  border-radius: 50%;
  background: var(--shell);
  color: var(--text);
  font: 600 0.875rem/1 var(--mono);
}

.steps li:last-child .step-number {
  color: var(--link);
}

.steps p {
  max-width: 36ch;
  margin-top: 8px;
  color: var(--secondary);
}

/* Each step is joined to the next one by the link. */
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  background: var(--link);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .steps li:not(:last-child)::before {
    left: 23px;
    top: 22px;
    width: calc(100% + 40px);
    height: 3px;
  }
}

@media (max-width: 759px) {
  .steps li {
    padding-left: 66px;
  }

  .step-number {
    position: absolute;
    left: 0;
    top: -8px;
  }

  .steps li:not(:last-child)::before {
    left: 22px;
    top: 0;
    width: 3px;
    height: calc(100% + 28px);
  }
}

/* Downloads */

.downloads {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .downloads {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--edge);
  border-radius: 20px;
  background: var(--card);
  transition: border-color 200ms var(--ease);
}

.card.yours {
  border-color: var(--link);
}

.card header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.card > p {
  color: var(--secondary);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--secondary);
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.tag.ok { color: var(--ok); }
.tag.waiting { color: var(--waiting); }

details {
  width: 100%;
  border-top: 1px solid var(--edge);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* The disclosure marker is the two shift buttons: + opens, − closes. */
summary::after {
  content: "+";
  flex: none;
  color: var(--link);
  font: 600 1.25rem/1 var(--mono);
}

details[open] > summary::after {
  content: "−";
  color: var(--text);
}

details ol {
  display: grid;
  gap: 8px;
  padding-left: 1.3em;
  color: var(--secondary);
  font-size: 0.9375rem;
}

details p {
  max-width: 70ch;
  padding-bottom: 16px;
  color: var(--secondary);
}

details ol + p {
  margin-top: 12px;
  font-size: 0.9375rem;
}

details ol:last-child {
  padding-bottom: 6px;
}

details strong,
.checks strong {
  color: var(--text);
  font-weight: 600;
}

.card details {
  margin-top: 4px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px clamp(20px, 3vw, 28px);
  border: 1px dashed var(--edge);
  border-radius: 20px;
}

.stores p {
  margin-right: auto;
  color: var(--secondary);
  font-size: 0.9375rem;
}

@media (max-width: 560px) {
  .stores p {
    flex-basis: 100%;
  }
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  color: var(--secondary);
  font-weight: 600;
  cursor: default;
}

.store em {
  color: var(--waiting);
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* What you need */

.checks {
  display: grid;
  gap: 18px;
  padding: 0;
  color: var(--secondary);
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--link);
}

/* Help */

.faq {
  max-width: 800px;
  margin-top: 32px;
  border-bottom: 1px solid var(--edge);
}

.faq summary {
  padding: 18px 0;
  font-size: 1.0625rem;
}

/* Footer */

.bottom {
  width: min(100%, calc(var(--page) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid rgb(61 74 89 / 0.5);
}

.bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal {
  max-width: 78ch;
  margin-top: 20px;
  color: var(--secondary);
  font-size: 0.8125rem;
}

/* Privacy and Terms */

.prose {
  max-width: 720px;
  padding: clamp(40px, 7vw, 80px) 0;
}

.prose h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.prose .updated {
  margin-top: 14px;
  color: var(--secondary);
  font: 500 0.8125rem/1.4 var(--mono);
}

.prose h2 {
  max-width: none;
  margin-top: 44px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul {
  margin-top: 14px;
  color: var(--secondary);
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .rig-frame {
    animation: rise 620ms var(--ease) both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .hero-copy > :nth-child(5) { animation-delay: 280ms; }
  .rig-frame { animation-delay: 200ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }

  .link.fire b {
    animation: none;
  }
}
