:root {
  --tempo-bg: #fff;
  --tempo-ink: #000;
  --tempo-cream: #fff;
  --tempo-accent: #e84e1b;
  --tempo-muted: #6e6e73;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--tempo-bg);
  color: var(--tempo-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  text-align: center;
}
.content {
  display: flex;
  width: min(100%, 390px);
  flex-direction: column;
  align-items: center;
}
.steps,
.x-nudge,
.x-guide {
  display: none;
}
.tempo-logo {
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 23px;
  object-fit: contain;
  animation: logo-float 7s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: perspective(600px) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
  25% { transform: perspective(600px) translate3d(2px, -5px, 0) rotateX(4deg) rotateY(-5deg); }
  50% { transform: perspective(600px) translate3d(0, -8px, 0) rotateX(0deg) rotateY(0deg); }
  75% { transform: perspective(600px) translate3d(-2px, -4px, 0) rotateX(-3deg) rotateY(5deg); }
}
.title {
  margin: 28px 0 0;
  font-size: clamp(32px, 9vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.sub {
  max-width: 340px;
  margin: 17px 0 0;
  color: var(--tempo-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}
.launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin-top: 32px;
  padding: 0 20px 0 15px;
  border-radius: 999px;
  background: var(--tempo-ink);
  color: var(--tempo-cream);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms cubic-bezier(0.25, 1, 0.5, 1), background-color 180ms ease;
}
.launch img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}
.launch:active {
  transform: scale(0.975);
}
@media (hover: hover) {
  .launch:hover {
    background: #1d1d1f;
  }
}
.launch:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.22);
  outline-offset: 4px;
}
.launch[data-state="copied"] {
  background: #333336;
}
.privacy-choices {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  color: var(--tempo-muted);
  font-size: 12px;
}
.privacy-choices a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* X-only handoff coach mark. Normal browsers never receive this class. */
body.x-browser .stage {
  align-items: stretch;
  justify-content: flex-start;
  padding: clamp(96px, 18svh, 128px) 28px 148px;
  text-align: left;
}
body.x-browser .content {
  width: min(100%, 348px);
  margin: 0 auto;
  align-items: stretch;
  gap: 0;
}
body.x-browser .tempo-logo {
  width: 58px;
  height: 58px;
  margin-bottom: 25px;
  border-radius: 17px;
}
body.x-browser .title {
  max-width: 320px;
  margin-top: 0;
  font-size: clamp(32px, 9vw, 38px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.04em;
}
body.x-browser .sub {
  max-width: 320px;
  margin-top: 11px;
  color: var(--tempo-muted);
  font-size: 15px;
  line-height: 1.4;
  opacity: 1;
}
body.x-browser .steps {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
body.x-browser .step {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-size: 15px;
  line-height: 1.3;
}
body.x-browser .step + .step::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 40px;
  height: 1px;
  background: rgba(38, 28, 24, 0.1);
  content: "";
}
body.x-browser .step-number {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tempo-ink);
  color: var(--tempo-cream);
  font-size: 11px;
  font-weight: 750;
}
body.x-browser .step strong {
  font-weight: 760;
}
body.x-browser .launch {
  align-self: flex-start;
  min-height: 40px;
  margin-top: 13px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(98, 74, 63, 0.34);
  border-radius: 0;
  background: transparent;
  color: #624a3f;
  font-size: 12px;
  font-weight: 680;
}
body.x-browser .launch:active {
  transform: scale(0.98);
  background: rgba(38, 28, 24, 0.06);
}
body.x-browser .launch[data-state="copied"] {
  border-color: rgba(46, 111, 72, 0.32);
  background: transparent;
  color: #285c3b;
}
body.x-browser .x-nudge {
  display: block;
  max-width: 320px;
  margin: 3px 0 0;
  color: #8a7469;
  font-size: 10.5px;
  line-height: 1.45;
}
body.x-browser .x-nudge a {
  color: inherit;
  font-weight: 650;
  text-decoration-color: rgba(138, 116, 105, 0.5);
  text-underline-offset: 2px;
}
body.x-browser .x-guide,
body.x-guide-only .x-guide {
  position: fixed;
  z-index: 2;
  /* X reduces the web viewport above its tweet sheet. Anchoring to that
     viewport edge places the arrow tip beside the native toolbar. */
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  width: 116px;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform: translateX(-50%);
  animation: guide-arrive 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.guide-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.x-browser .guide-label,
body.x-guide-only .guide-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--tempo-accent);
  color: var(--tempo-cream);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.01em;
  box-shadow: 0 5px 16px rgba(154, 56, 22, 0.16);
}
.guide-instruction {
  display: none;
}
body.x-guide-only .x-guide {
  width: min(350px, calc(100vw - 32px));
}
body.x-guide-only .launch {
  display: none;
}
body.x-guide-only .guide-label {
  display: none;
}
body.x-guide-only .guide-instruction {
  display: grid;
  justify-items: center;
  gap: 6px;
}
body.x-guide-only .guide-tap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tempo-muted);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
body.x-guide-only .guide-open {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--tempo-muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
}
body.x-guide-only .guide-open strong {
  color: #1d1d1f;
  font-size: clamp(19px, 5.2vw, 22px);
  font-weight: 750;
  letter-spacing: -0.025em;
}
body.x-guide-only .menu-dots {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
body.x-guide-only .menu-dots span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
body.x-browser .guide-arrow,
body.x-guide-only .guide-arrow {
  width: 72px;
  height: 78px;
  margin-top: 2px;
  overflow: visible;
  color: var(--tempo-accent);
  animation: guide-nudge 1800ms cubic-bezier(0.65, 0, 0.35, 1) 700ms infinite;
}
body.x-guide-only .guide-arrow {
  margin-top: 12px;
}
body.x-browser .guide-arrow path,
body.x-guide-only .guide-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.5;
}
@keyframes guide-arrive {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes guide-nudge {
  0%, 72%, 100% { transform: translateY(0); }
  84% { transform: translateY(5px); }
}
@media (max-height: 650px) {
  body.x-browser .stage {
    padding-top: clamp(84px, 16svh, 104px);
    padding-bottom: 116px;
  }
  body.x-browser .title {
    margin-top: 0;
    font-size: 30px;
  }
  body.x-browser .sub {
    margin-top: 10px;
    font-size: 14px;
  }
  body.x-browser .steps {
    margin-top: 10px;
  }
  body.x-browser .step {
    min-height: 40px;
    font-size: 14px;
  }
  body.x-browser .launch {
    margin-top: 8px;
  }
  body.x-browser .x-nudge {
    margin-top: 2px;
    font-size: 10.5px;
  }
  body.x-browser .guide-arrow,
  body.x-guide-only .guide-arrow {
    height: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tempo-logo {
    animation: none;
  }
  body.x-browser .x-guide,
  body.x-browser .guide-arrow,
  body.x-guide-only .x-guide,
  body.x-guide-only .guide-arrow {
    animation: none;
  }
  .launch:active {
    transform: none;
  }
}

.manual-copy {
  box-sizing: border-box;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  color: var(--tempo-ink);
  background: var(--tempo-bg);
  font: inherit;
  font-size: 14px;
}
/* Leave room for the native-browser guide and privacy footer on short screens. */
body.x-guide-only .stage {
  padding-bottom: 200px;
}
@media (max-height: 600px) {
  body.x-guide-only .stage {
    justify-content: flex-start;
  }
}
